Automatic date update in version.in
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="move-if-change"
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559host_shared
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
574READELF_FOR_TARGET
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577OBJCOPY_FOR_TARGET
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
584GOC_FOR_TARGET
585GFORTRAN_FOR_TARGET
586GCJ_FOR_TARGET
587GCC_FOR_TARGET
588CXX_FOR_TARGET
589CC_FOR_TARGET
590READELF
591OBJDUMP
592OBJCOPY
593WINDMC
594WINDRES
595STRIP
596RANLIB
597NM
598LIPO
599LD
600DLLTOOL
601AS
602AR
603RUNTEST
604EXPECT
605MAKEINFO
606FLEX
607LEX
608M4
609BISON
610YACC
611WINDRES_FOR_BUILD
612WINDMC_FOR_BUILD
613RANLIB_FOR_BUILD
614NM_FOR_BUILD
615LD_FOR_BUILD
616LDFLAGS_FOR_BUILD
617GOC_FOR_BUILD
618GFORTRAN_FOR_BUILD
619GCJ_FOR_BUILD
620DLLTOOL_FOR_BUILD
621CXX_FOR_BUILD
622CXXFLAGS_FOR_BUILD
623CFLAGS_FOR_BUILD
624CC_FOR_BUILD
625AS_FOR_BUILD
626AR_FOR_BUILD
627target_configdirs
628configdirs
629build_configdirs
630INSTALL_GDB_TK
631GDB_TK
632CONFIGURE_GDB_TK
633build_tooldir
634tooldir
635GCC_SHLIB_SUBDIR
636RPATH_ENVVAR
637target_configargs
638host_configargs
639build_configargs
640BUILD_CONFIG
641LDFLAGS_FOR_TARGET
642CXXFLAGS_FOR_TARGET
643CFLAGS_FOR_TARGET
644DEBUG_PREFIX_CFLAGS_FOR_TARGET
645SYSROOT_CFLAGS_FOR_TARGET
646extra_host_zlib_configure_flags
647extra_host_libiberty_configure_flags
648stage1_languages
649extra_linker_plugin_flags
650extra_linker_plugin_configure_flags
651islinc
652isllibs
653poststage1_ldflags
654poststage1_libs
655stage1_ldflags
656stage1_libs
657extra_isl_gmp_configure_flags
658extra_mpc_mpfr_configure_flags
659extra_mpc_gmp_configure_flags
660extra_mpfr_configure_flags
661gmpinc
662gmplibs
663do_compare
664GNATMAKE
665GNATBIND
666ac_ct_CXX
667CXXFLAGS
668CXX
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
676EXTRA_CONFIGARGS_LIBJAVA
677extra_liboffloadmic_configure_flags
678target_subdir
679host_subdir
680build_subdir
681build_libsubdir
682AWK
683SED
684LN_S
685LN
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697target_noncanonical
698host_noncanonical
699build_noncanonical
700build_os
701build_vendor
702build_cpu
703build
704TOPLEVEL_CONFIGURE_ARGUMENTS
705target_alias
706host_alias
707build_alias
708LIBS
709ECHO_T
710ECHO_N
711ECHO_C
712DEFS
713mandir
714localedir
715libdir
716psdir
717pdfdir
718dvidir
719htmldir
720infodir
721docdir
722oldincludedir
723includedir
724localstatedir
725sharedstatedir
726sysconfdir
727datadir
728datarootdir
729libexecdir
730sbindir
731bindir
732program_transform_name
733prefix
734exec_prefix
735PACKAGE_URL
736PACKAGE_BUGREPORT
737PACKAGE_STRING
738PACKAGE_VERSION
739PACKAGE_TARNAME
740PACKAGE_NAME
741PATH_SEPARATOR
742SHELL'
743ac_subst_files='serialization_dependencies
744host_makefile_frag
745target_makefile_frag
746alphaieee_frag
747ospace_frag'
748ac_user_opts='
749enable_option_checking
750with_build_libsubdir
751with_system_zlib
752enable_as_accelerator_for
753enable_offload_targets
754enable_gold
755enable_ld
756enable_libquadmath
757enable_libquadmath_support
758enable_libada
759enable_libssp
760enable_libstdcxx
761enable_liboffloadmic
762enable_static_libjava
763enable_bootstrap
764with_mpc
765with_mpc_include
766with_mpc_lib
767with_mpfr_dir
768with_mpfr
769with_mpfr_include
770with_mpfr_lib
771with_gmp_dir
772with_gmp
773with_gmp_include
774with_gmp_lib
775with_host_libstdcxx
776with_stage1_libs
777with_stage1_ldflags
778with_boot_libs
779with_boot_ldflags
780with_isl
781with_isl_include
782with_isl_lib
783enable_isl_version_check
784enable_lto
785enable_linker_plugin_configure_flags
786enable_linker_plugin_flags
787enable_stage1_languages
788enable_objc_gc
789with_build_sysroot
790with_debug_prefix_map
791with_build_config
792enable_vtable_verify
793enable_serial_configure
794with_build_time_tools
795enable_maintainer_mode
796enable_stage1_checking
797enable_werror
798enable_host_shared
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CXX
809CXXFLAGS
810CCC
811build_configargs
812host_configargs
813target_configargs
814AR
815AS
816DLLTOOL
817LD
818LIPO
819NM
820RANLIB
821STRIP
822WINDRES
823WINDMC
824OBJCOPY
825OBJDUMP
826READELF
827CC_FOR_TARGET
828CXX_FOR_TARGET
829GCC_FOR_TARGET
830GCJ_FOR_TARGET
831GFORTRAN_FOR_TARGET
832GOC_FOR_TARGET
833AR_FOR_TARGET
834AS_FOR_TARGET
835DLLTOOL_FOR_TARGET
836LD_FOR_TARGET
837LIPO_FOR_TARGET
838NM_FOR_TARGET
839OBJCOPY_FOR_TARGET
840OBJDUMP_FOR_TARGET
841RANLIB_FOR_TARGET
842READELF_FOR_TARGET
843STRIP_FOR_TARGET
844WINDRES_FOR_TARGET
845WINDMC_FOR_TARGET'
846
847
848# Initialize some variables set by options.
849ac_init_help=
850ac_init_version=false
851ac_unrecognized_opts=
852ac_unrecognized_sep=
853# The variables have the same names as the options, with
854# dashes changed to underlines.
855cache_file=/dev/null
856exec_prefix=NONE
857no_create=
858no_recursion=
859prefix=NONE
860program_prefix=NONE
861program_suffix=NONE
862program_transform_name=s,x,x,
863silent=
864site=
865srcdir=
866verbose=
867x_includes=NONE
868x_libraries=NONE
869
870# Installation directory options.
871# These are left unexpanded so users can "make install exec_prefix=/foo"
872# and all the variables that are supposed to be based on exec_prefix
873# by default will actually change.
874# Use braces instead of parens because sh, perl, etc. also accept them.
875# (The list follows the same order as the GNU Coding Standards.)
876bindir='${exec_prefix}/bin'
877sbindir='${exec_prefix}/sbin'
878libexecdir='${exec_prefix}/libexec'
879datarootdir='${prefix}/share'
880datadir='${datarootdir}'
881sysconfdir='${prefix}/etc'
882sharedstatedir='${prefix}/com'
883localstatedir='${prefix}/var'
884includedir='${prefix}/include'
885oldincludedir='/usr/include'
886docdir='${datarootdir}/doc/${PACKAGE}'
887infodir='${datarootdir}/info'
888htmldir='${docdir}'
889dvidir='${docdir}'
890pdfdir='${docdir}'
891psdir='${docdir}'
892libdir='${exec_prefix}/lib'
893localedir='${datarootdir}/locale'
894mandir='${datarootdir}/man'
895
896ac_prev=
897ac_dashdash=
898for ac_option
899do
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
905 fi
906
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
911
912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
917
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
922
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
927
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
937
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
942
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
975
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985"enable_$ac_useropt"
986"*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1011
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1016
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1046
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1120
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205"with_$ac_useropt"
1206"*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231Try \`$0 --help' for more information."
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 ;;
1251
1252 esac
1253done
1254
1255if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error "missing argument to $ac_option"
1258fi
1259
1260if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266fi
1267
1268# Check all directory arguments for consistency.
1269for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1273do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287done
1288
1289# There might be people who depend on the old broken behavior: `$host'
1290# used to hold the argument of --host etc.
1291# FIXME: To remove some day.
1292build=$build_alias
1293host=$host_alias
1294target=$target_alias
1295
1296# FIXME: To remove some day.
1297if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error "working directory cannot be determined"
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error "pwd does not report name of working directory"
1319
1320
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330$as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352else
1353 ac_srcdir_defaulted=no
1354fi
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362 pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
1373case $srcdir in
1374 *" "*)
1375 as_fn_error "path to source, $srcdir, contains spaces"
1376 ;;
1377esac
1378ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379
1380for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394\`configure' configures this package to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447_ACEOF
1448
1449 cat <<\_ACEOF
1450
1451Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455
1456System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464
1465 cat <<\_ACEOF
1466
1467Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-as-accelerator-for=ARG
1472 build as offload target compiler. Specify offload
1473 host triple by ARG
1474 --enable-offload-targets=LIST
1475 enable offloading to devices from comma-separated
1476 LIST of TARGET[=DIR]. Use optional path to find
1477 offload target compiler during the build
1478 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1479 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1480 --disable-libquadmath do not build libquadmath directory
1481 --disable-libquadmath-support
1482 disable libquadmath support for Fortran
1483 --enable-libada build libada directory
1484 --enable-libssp build libssp directory
1485 --disable-libstdcxx do not build libstdc++-v3 directory
1486 --enable-liboffloadmic=ARG
1487 build liboffloadmic [ARG={no,host,target}]
1488 --enable-static-libjava[=ARG]
1489 build static libjava [default=no]
1490 --enable-bootstrap enable bootstrapping [yes if native build]
1491 --disable-isl-version-check
1492 disable check for ISL version
1493 --enable-lto enable link time optimization support
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
1505 --enable-vtable-verify Enable vtable verification feature
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1516 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --enable-host-shared build host code as shared libraries
1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
1523 --with-system-zlib use installed libz
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1533 --with-mpfr-include=PATH
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
1543 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1544 linking with PPL
1545 --with-stage1-libs=LIBS libraries for stage1
1546 --with-stage1-ldflags=FLAGS
1547 linker flags for stage1
1548 --with-boot-libs=LIBS libraries for stage2 and later
1549 --with-boot-ldflags=FLAGS
1550 linker flags for stage2 and later
1551 --with-isl=PATH Specify prefix directory for the installed ISL
1552 package. Equivalent to
1553 --with-isl-include=PATH/include plus
1554 --with-isl-lib=PATH/lib
1555 --with-isl-include=PATH Specify directory for installed ISL include files
1556 --with-isl-lib=PATH Specify the directory for the installed ISL library
1557 --with-build-sysroot=SYSROOT
1558 use sysroot as the system root during the build
1559 --with-debug-prefix-map='A=B C=D ...'
1560 map A to B, C to D ... in debug information
1561 --with-build-config='NAME NAME2...'
1562 use config/NAME.mk build configuration
1563 --with-build-time-tools=PATH
1564 use given path to find target tools during the build
1565
1566Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CXX C++ compiler command
1575 CXXFLAGS C++ compiler flags
1576 build_configargs
1577 additional configure arguments for build directories
1578 host_configargs
1579 additional configure arguments for host directories
1580 target_configargs
1581 additional configure arguments for target directories
1582 AR AR for the host
1583 AS AS for the host
1584 DLLTOOL DLLTOOL for the host
1585 LD LD for the host
1586 LIPO LIPO for the host
1587 NM NM for the host
1588 RANLIB RANLIB for the host
1589 STRIP STRIP for the host
1590 WINDRES WINDRES for the host
1591 WINDMC WINDMC for the host
1592 OBJCOPY OBJCOPY for the host
1593 OBJDUMP OBJDUMP for the host
1594 READELF READELF for the host
1595 CC_FOR_TARGET
1596 CC for the target
1597 CXX_FOR_TARGET
1598 CXX for the target
1599 GCC_FOR_TARGET
1600 GCC for the target
1601 GCJ_FOR_TARGET
1602 GCJ for the target
1603 GFORTRAN_FOR_TARGET
1604 GFORTRAN for the target
1605 GOC_FOR_TARGET
1606 GOC for the target
1607 AR_FOR_TARGET
1608 AR for the target
1609 AS_FOR_TARGET
1610 AS for the target
1611 DLLTOOL_FOR_TARGET
1612 DLLTOOL for the target
1613 LD_FOR_TARGET
1614 LD for the target
1615 LIPO_FOR_TARGET
1616 LIPO for the target
1617 NM_FOR_TARGET
1618 NM for the target
1619 OBJCOPY_FOR_TARGET
1620 OBJCOPY for the target
1621 OBJDUMP_FOR_TARGET
1622 OBJDUMP for the target
1623 RANLIB_FOR_TARGET
1624 RANLIB for the target
1625 READELF_FOR_TARGET
1626 READELF for the target
1627 STRIP_FOR_TARGET
1628 STRIP for the target
1629 WINDRES_FOR_TARGET
1630 WINDRES for the target
1631 WINDMC_FOR_TARGET
1632 WINDMC for the target
1633
1634Use these variables to override the choices made by `configure' or to help
1635it to find libraries and programs with nonstandard names/locations.
1636
1637Report bugs to the package provider.
1638_ACEOF
1639ac_status=$?
1640fi
1641
1642if test "$ac_init_help" = "recursive"; then
1643 # If there are subdirs, report their specific --help.
1644 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645 test -d "$ac_dir" ||
1646 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647 continue
1648 ac_builddir=.
1649
1650case "$ac_dir" in
1651.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652*)
1653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654 # A ".." for each directory in $ac_dir_suffix.
1655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656 case $ac_top_builddir_sub in
1657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659 esac ;;
1660esac
1661ac_abs_top_builddir=$ac_pwd
1662ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663# for backward compatibility:
1664ac_top_builddir=$ac_top_build_prefix
1665
1666case $srcdir in
1667 .) # We are building in place.
1668 ac_srcdir=.
1669 ac_top_srcdir=$ac_top_builddir_sub
1670 ac_abs_top_srcdir=$ac_pwd ;;
1671 [\\/]* | ?:[\\/]* ) # Absolute name.
1672 ac_srcdir=$srcdir$ac_dir_suffix;
1673 ac_top_srcdir=$srcdir
1674 ac_abs_top_srcdir=$srcdir ;;
1675 *) # Relative name.
1676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677 ac_top_srcdir=$ac_top_build_prefix$srcdir
1678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679esac
1680ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682 cd "$ac_dir" || { ac_status=$?; continue; }
1683 # Check for guested configure.
1684 if test -f "$ac_srcdir/configure.gnu"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687 elif test -f "$ac_srcdir/configure"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure" --help=recursive
1690 else
1691 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692 fi || ac_status=$?
1693 cd "$ac_pwd" || { ac_status=$?; break; }
1694 done
1695fi
1696
1697test -n "$ac_init_help" && exit $ac_status
1698if $ac_init_version; then
1699 cat <<\_ACEOF
1700configure
1701generated by GNU Autoconf 2.64
1702
1703Copyright (C) 2009 Free Software Foundation, Inc.
1704This configure script is free software; the Free Software Foundation
1705gives unlimited permission to copy, distribute and modify it.
1706_ACEOF
1707 exit
1708fi
1709
1710## ------------------------ ##
1711## Autoconf initialization. ##
1712## ------------------------ ##
1713
1714# ac_fn_c_try_compile LINENO
1715# --------------------------
1716# Try to compile conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_compile ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext
1721 if { { ac_try="$ac_compile"
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_compile") 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_objext; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 return $ac_retval
1749
1750} # ac_fn_c_try_compile
1751
1752# ac_fn_cxx_try_compile LINENO
1753# ----------------------------
1754# Try to compile conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_cxx_try_compile ()
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext
1759 if { { ac_try="$ac_compile"
1760case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_cxx_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784fi
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 return $ac_retval
1787
1788} # ac_fn_cxx_try_compile
1789
1790# ac_fn_cxx_try_link LINENO
1791# -------------------------
1792# Try to link conftest.$ac_ext, and return whether this succeeded.
1793ac_fn_cxx_try_link ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1798case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 $as_test_x conftest$ac_exeext
1818 }; then :
1819 ac_retval=0
1820else
1821 $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825fi
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 return $ac_retval
1833
1834} # ac_fn_cxx_try_link
1835
1836# ac_fn_c_try_link LINENO
1837# -----------------------
1838# Try to link conftest.$ac_ext, and return whether this succeeded.
1839ac_fn_c_try_link ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext conftest$ac_exeext
1843 if { { ac_try="$ac_link"
1844case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_link") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest$ac_exeext && {
1862 test "$cross_compiling" = yes ||
1863 $as_test_x conftest$ac_exeext
1864 }; then :
1865 ac_retval=0
1866else
1867 $as_echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871fi
1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874 # interfere with the next link command; also delete a directory that is
1875 # left behind by Apple's compiler. We do this before executing the actions.
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 return $ac_retval
1879
1880} # ac_fn_c_try_link
1881cat >config.log <<_ACEOF
1882This file contains any messages produced by compilers while
1883running configure, to aid debugging if configure makes a mistake.
1884
1885It was created by $as_me, which was
1886generated by GNU Autoconf 2.64. Invocation command line was
1887
1888 $ $0 $@
1889
1890_ACEOF
1891exec 5>>config.log
1892{
1893cat <<_ASUNAME
1894## --------- ##
1895## Platform. ##
1896## --------- ##
1897
1898hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906
1907/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1911/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914
1915_ASUNAME
1916
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 $as_echo "PATH: $as_dir"
1923 done
1924IFS=$as_save_IFS
1925
1926} >&5
1927
1928cat >&5 <<_ACEOF
1929
1930
1931## ----------- ##
1932## Core tests. ##
1933## ----------- ##
1934
1935_ACEOF
1936
1937
1938# Keep a trace of the command line.
1939# Strip out --no-create and --no-recursion so they do not pile up.
1940# Strip out --silent because we don't want to record it for future runs.
1941# Also quote any args containing shell meta-characters.
1942# Make two passes to allow for proper duplicate-argument suppression.
1943ac_configure_args=
1944ac_configure_args0=
1945ac_configure_args1=
1946ac_must_keep_next=false
1947for ac_pass in 1 2
1948do
1949 for ac_arg
1950 do
1951 case $ac_arg in
1952 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954 | -silent | --silent | --silen | --sile | --sil)
1955 continue ;;
1956 *\'*)
1957 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 esac
1959 case $ac_pass in
1960 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 2)
1962 as_fn_append ac_configure_args1 " '$ac_arg'"
1963 if test $ac_must_keep_next = true; then
1964 ac_must_keep_next=false # Got value, back to normal.
1965 else
1966 case $ac_arg in
1967 *=* | --config-cache | -C | -disable-* | --disable-* \
1968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970 | -with-* | --with-* | -without-* | --without-* | --x)
1971 case "$ac_configure_args0 " in
1972 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 esac
1974 ;;
1975 -* ) ac_must_keep_next=true ;;
1976 esac
1977 fi
1978 as_fn_append ac_configure_args " '$ac_arg'"
1979 ;;
1980 esac
1981 done
1982done
1983{ ac_configure_args0=; unset ac_configure_args0;}
1984{ ac_configure_args1=; unset ac_configure_args1;}
1985
1986# When interrupted or exit'd, cleanup temporary files, and complete
1987# config.log. We remove comments because anyway the quotes in there
1988# would cause problems or look ugly.
1989# WARNING: Use '\'' to represent an apostrophe within the trap.
1990# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991trap 'exit_status=$?
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 cat <<\_ASBOX
1997## ---------------- ##
1998## Cache variables. ##
1999## ---------------- ##
2000_ASBOX
2001 echo
2002 # The following way of writing the cache mishandles newlines in values,
2003(
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2006 case $ac_val in #(
2007 *${as_nl}*)
2008 case $ac_var in #(
2009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011 esac
2012 case $ac_var in #(
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2016 esac ;;
2017 esac
2018 done
2019 (set) 2>&1 |
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
2022 sed -n \
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 ;; #(
2026 *)
2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 ;;
2029 esac |
2030 sort
2031)
2032 echo
2033
2034 cat <<\_ASBOX
2035## ----------------- ##
2036## Output variables. ##
2037## ----------------- ##
2038_ASBOX
2039 echo
2040 for ac_var in $ac_subst_vars
2041 do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in
2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045 esac
2046 $as_echo "$ac_var='\''$ac_val'\''"
2047 done | sort
2048 echo
2049
2050 if test -n "$ac_subst_files"; then
2051 cat <<\_ASBOX
2052## ------------------- ##
2053## File substitutions. ##
2054## ------------------- ##
2055_ASBOX
2056 echo
2057 for ac_var in $ac_subst_files
2058 do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 esac
2063 $as_echo "$ac_var='\''$ac_val'\''"
2064 done | sort
2065 echo
2066 fi
2067
2068 if test -s confdefs.h; then
2069 cat <<\_ASBOX
2070## ----------- ##
2071## confdefs.h. ##
2072## ----------- ##
2073_ASBOX
2074 echo
2075 cat confdefs.h
2076 echo
2077 fi
2078 test "$ac_signal" != 0 &&
2079 $as_echo "$as_me: caught signal $ac_signal"
2080 $as_echo "$as_me: exit $exit_status"
2081 } >&5
2082 rm -f core *.core core.conftest.* &&
2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084 exit $exit_status
2085' 0
2086for ac_signal in 1 2 13 15; do
2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088done
2089ac_signal=0
2090
2091# confdefs.h avoids OS command line length limits that DEFS can exceed.
2092rm -f -r conftest* confdefs.h
2093
2094$as_echo "/* confdefs.h */" > confdefs.h
2095
2096# Predefined preprocessor variables.
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_NAME "$PACKAGE_NAME"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104_ACEOF
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_VERSION "$PACKAGE_VERSION"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_STRING "$PACKAGE_STRING"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_URL "$PACKAGE_URL"
2120_ACEOF
2121
2122
2123# Let the site file select an alternate cache file if it wants to.
2124# Prefer an explicitly selected file to automatically selected ones.
2125ac_site_file1=NONE
2126ac_site_file2=NONE
2127if test -n "$CONFIG_SITE"; then
2128 ac_site_file1=$CONFIG_SITE
2129elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2132else
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
2135fi
2136for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137do
2138 test "x$ac_site_file" = xNONE && continue
2139 if test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142 sed 's/^/| /' "$ac_site_file" >&5
2143 . "$ac_site_file"
2144 fi
2145done
2146
2147if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special
2149 # files actually), so we avoid doing that.
2150 if test -f "$cache_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152$as_echo "$as_me: loading cache $cache_file" >&6;}
2153 case $cache_file in
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2156 esac
2157 fi
2158else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160$as_echo "$as_me: creating cache $cache_file" >&6;}
2161 >$cache_file
2162fi
2163
2164# Check that the precious variables saved in the cache have kept the same
2165# value.
2166ac_cache_corrupted=false
2167for ac_var in $ac_precious_vars; do
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
2172 case $ac_old_set,$ac_new_set in
2173 set,)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,set)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2181 ,);;
2182 *)
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2191 else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2195 fi
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2200 fi;;
2201 esac
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2204 case $ac_new_val in
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2207 esac
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211 esac
2212 fi
2213done
2214if $ac_cache_corrupted; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220fi
2221## -------------------- ##
2222## Main body of script. ##
2223## -------------------- ##
2224
2225ac_ext=c
2226ac_cpp='$CPP $CPPFLAGS'
2227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239progname=$0
2240# if PWD already has a value, it is probably wrong.
2241if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2242
2243# Export original configure arguments for use by sub-configures.
2244# Quote arguments with shell meta charatcers.
2245TOPLEVEL_CONFIGURE_ARGUMENTS=
2246set -- "$progname" "$@"
2247for ac_arg
2248do
2249 case "$ac_arg" in
2250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2252 # if the argument is of the form -foo=baz, quote the baz part only
2253 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2254 *) ;;
2255 esac
2256 # Add the quoted argument to the list.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2258done
2259if test "$silent" = yes; then
2260 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2261fi
2262# Remove the initial space we just introduced and, as these will be
2263# expanded by make, quote '$'.
2264TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2265
2266
2267# Find the build, host, and target systems.
2268ac_aux_dir=
2269for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270 for ac_t in install-sh install.sh shtool; do
2271 if test -f "$ac_dir/$ac_t"; then
2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/$ac_t -c"
2274 break 2
2275 fi
2276 done
2277done
2278if test -z "$ac_aux_dir"; then
2279 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2280fi
2281
2282# These three variables are undocumented and unsupported,
2283# and are intended to be withdrawn in a future Autoconf release.
2284# They can cause serious problems if a builder's source tree is in a directory
2285# whose full name contains unusual characters.
2286ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2287ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2288ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2289
2290
2291# Make sure we can run config.sub.
2292$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2293 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2294
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2296$as_echo_n "checking build system type... " >&6; }
2297if test "${ac_cv_build+set}" = set; then :
2298 $as_echo_n "(cached) " >&6
2299else
2300 ac_build_alias=$build_alias
2301test "x$ac_build_alias" = x &&
2302 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2303test "x$ac_build_alias" = x &&
2304 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2305ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2306 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2307
2308fi
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2310$as_echo "$ac_cv_build" >&6; }
2311case $ac_cv_build in
2312*-*-*) ;;
2313*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2314esac
2315build=$ac_cv_build
2316ac_save_IFS=$IFS; IFS='-'
2317set x $ac_cv_build
2318shift
2319build_cpu=$1
2320build_vendor=$2
2321shift; shift
2322# Remember, the first character of IFS is used to create $*,
2323# except with old shells:
2324build_os=$*
2325IFS=$ac_save_IFS
2326case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2327
2328
2329 case ${build_alias} in
2330 "") build_noncanonical=${build} ;;
2331 *) build_noncanonical=${build_alias} ;;
2332esac
2333
2334
2335
2336 case ${host_alias} in
2337 "") host_noncanonical=${build_noncanonical} ;;
2338 *) host_noncanonical=${host_alias} ;;
2339esac
2340
2341
2342
2343 case ${target_alias} in
2344 "") target_noncanonical=${host_noncanonical} ;;
2345 *) target_noncanonical=${target_alias} ;;
2346esac
2347
2348
2349
2350
2351test "$host_noncanonical" = "$target_noncanonical" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
2354 program_transform_name=s,y,y,
2355
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2357$as_echo_n "checking host system type... " >&6; }
2358if test "${ac_cv_host+set}" = set; then :
2359 $as_echo_n "(cached) " >&6
2360else
2361 if test "x$host_alias" = x; then
2362 ac_cv_host=$ac_cv_build
2363else
2364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2365 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2366fi
2367
2368fi
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2370$as_echo "$ac_cv_host" >&6; }
2371case $ac_cv_host in
2372*-*-*) ;;
2373*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2374esac
2375host=$ac_cv_host
2376ac_save_IFS=$IFS; IFS='-'
2377set x $ac_cv_host
2378shift
2379host_cpu=$1
2380host_vendor=$2
2381shift; shift
2382# Remember, the first character of IFS is used to create $*,
2383# except with old shells:
2384host_os=$*
2385IFS=$ac_save_IFS
2386case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2387
2388
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2390$as_echo_n "checking target system type... " >&6; }
2391if test "${ac_cv_target+set}" = set; then :
2392 $as_echo_n "(cached) " >&6
2393else
2394 if test "x$target_alias" = x; then
2395 ac_cv_target=$ac_cv_host
2396else
2397 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2398 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2399fi
2400
2401fi
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2403$as_echo "$ac_cv_target" >&6; }
2404case $ac_cv_target in
2405*-*-*) ;;
2406*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2407esac
2408target=$ac_cv_target
2409ac_save_IFS=$IFS; IFS='-'
2410set x $ac_cv_target
2411shift
2412target_cpu=$1
2413target_vendor=$2
2414shift; shift
2415# Remember, the first character of IFS is used to create $*,
2416# except with old shells:
2417target_os=$*
2418IFS=$ac_save_IFS
2419case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2420
2421
2422# The aliases save the names the user supplied, while $host etc.
2423# will get canonicalized.
2424test -n "$target_alias" &&
2425 test "$program_prefix$program_suffix$program_transform_name" = \
2426 NONENONEs,x,x, &&
2427 program_prefix=${target_alias}-
2428
2429test "$program_prefix" != NONE &&
2430 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431# Use a double $ so make ignores it.
2432test "$program_suffix" != NONE &&
2433 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434# Double any \ or $.
2435# By default was `s,x,x', remove it if useless.
2436ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439
2440
2441# Get 'install' or 'install-sh' and its variants.
2442# Find a good install program. We prefer a C program (faster),
2443# so one script is as good as another. But avoid the broken or
2444# incompatible versions:
2445# SysV /etc/install, /usr/sbin/install
2446# SunOS /usr/etc/install
2447# IRIX /sbin/install
2448# AIX /bin/install
2449# AmigaOS /C/install, which installs bootblocks on floppy discs
2450# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453# OS/2's system install, which has a completely different semantic
2454# ./install, which can be erroneously created by make from ./install.sh.
2455# Reject install programs that cannot install multiple files.
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457$as_echo_n "checking for a BSD-compatible install... " >&6; }
2458if test -z "$INSTALL"; then
2459if test "${ac_cv_path_install+set}" = set; then :
2460 $as_echo_n "(cached) " >&6
2461else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 # Account for people who put trailing slashes in PATH elements.
2468case $as_dir/ in #((
2469 ./ | .// | /[cC]/* | \
2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2472 /usr/ucb/* ) ;;
2473 *)
2474 # OSF1 and SCO ODT 3.0 have their own names for install.
2475 # Don't use installbsd from OSF since it installs stuff as root
2476 # by default.
2477 for ac_prog in ginstall scoinst install; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2480 if test $ac_prog = install &&
2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # AIX install. It has an incompatible calling convention.
2483 :
2484 elif test $ac_prog = install &&
2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # program-specific install script used by HP pwplus--don't use.
2487 :
2488 else
2489 rm -rf conftest.one conftest.two conftest.dir
2490 echo one > conftest.one
2491 echo two > conftest.two
2492 mkdir conftest.dir
2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494 test -s conftest.one && test -s conftest.two &&
2495 test -s conftest.dir/conftest.one &&
2496 test -s conftest.dir/conftest.two
2497 then
2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499 break 3
2500 fi
2501 fi
2502 fi
2503 done
2504 done
2505 ;;
2506esac
2507
2508 done
2509IFS=$as_save_IFS
2510
2511rm -rf conftest.one conftest.two conftest.dir
2512
2513fi
2514 if test "${ac_cv_path_install+set}" = set; then
2515 INSTALL=$ac_cv_path_install
2516 else
2517 # As a last resort, use the slow shell script. Don't cache a
2518 # value for INSTALL within a source directory, because that will
2519 # break other packages using the cache if that directory is
2520 # removed, or if the value is a relative name.
2521 INSTALL=$ac_install_sh
2522 fi
2523fi
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525$as_echo "$INSTALL" >&6; }
2526
2527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528# It thinks the first close brace ends the variable substitution.
2529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
2531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532
2533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2536$as_echo_n "checking whether ln works... " >&6; }
2537if test "${acx_cv_prog_LN+set}" = set; then :
2538 $as_echo_n "(cached) " >&6
2539else
2540 rm -f conftestdata_t
2541echo >conftestdata_f
2542if ln conftestdata_f conftestdata_t 2>/dev/null
2543then
2544 acx_cv_prog_LN=ln
2545else
2546 acx_cv_prog_LN=no
2547fi
2548rm -f conftestdata_f conftestdata_t
2549
2550fi
2551if test $acx_cv_prog_LN = no; then
2552 LN="cp"
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2554$as_echo "no, using $LN" >&6; }
2555else
2556 LN="$acx_cv_prog_LN"
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2558$as_echo "yes" >&6; }
2559fi
2560
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2562$as_echo_n "checking whether ln -s works... " >&6; }
2563LN_S=$as_ln_s
2564if test "$LN_S" = "ln -s"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566$as_echo "yes" >&6; }
2567else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2569$as_echo "no, using $LN_S" >&6; }
2570fi
2571
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2573$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2574if test "${ac_cv_path_SED+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2578 for ac_i in 1 2 3 4 5 6 7; do
2579 ac_script="$ac_script$as_nl$ac_script"
2580 done
2581 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2582 { ac_script=; unset ac_script;}
2583 if test -z "$SED"; then
2584 ac_path_SED_found=false
2585 # Loop through the user's path and test for each of PROGNAME-LIST
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_prog in sed gsed; do
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2594 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2595# Check for GNU ac_path_SED and select it if it is found.
2596 # Check for GNU $ac_path_SED
2597case `"$ac_path_SED" --version 2>&1` in
2598*GNU*)
2599 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2600*)
2601 ac_count=0
2602 $as_echo_n 0123456789 >"conftest.in"
2603 while :
2604 do
2605 cat "conftest.in" "conftest.in" >"conftest.tmp"
2606 mv "conftest.tmp" "conftest.in"
2607 cp "conftest.in" "conftest.nl"
2608 $as_echo '' >> "conftest.nl"
2609 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2611 as_fn_arith $ac_count + 1 && ac_count=$as_val
2612 if test $ac_count -gt ${ac_path_SED_max-0}; then
2613 # Best one so far, save it but keep looking for a better one
2614 ac_cv_path_SED="$ac_path_SED"
2615 ac_path_SED_max=$ac_count
2616 fi
2617 # 10*(2^10) chars as input seems more than enough
2618 test $ac_count -gt 10 && break
2619 done
2620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2621esac
2622
2623 $ac_path_SED_found && break 3
2624 done
2625 done
2626 done
2627IFS=$as_save_IFS
2628 if test -z "$ac_cv_path_SED"; then
2629 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2630 fi
2631else
2632 ac_cv_path_SED=$SED
2633fi
2634
2635fi
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2637$as_echo "$ac_cv_path_SED" >&6; }
2638 SED="$ac_cv_path_SED"
2639 rm -f conftest.sed
2640
2641for ac_prog in gawk mawk nawk awk
2642do
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644set dummy $ac_prog; ac_word=$2
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646$as_echo_n "checking for $ac_word... " >&6; }
2647if test "${ac_cv_prog_AWK+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649else
2650 if test -n "$AWK"; then
2651 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_AWK="$ac_prog"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664done
2665 done
2666IFS=$as_save_IFS
2667
2668fi
2669fi
2670AWK=$ac_cv_prog_AWK
2671if test -n "$AWK"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2673$as_echo "$AWK" >&6; }
2674else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676$as_echo "no" >&6; }
2677fi
2678
2679
2680 test -n "$AWK" && break
2681done
2682
2683
2684srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2685
2686# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2687# a relative path.
2688if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2689 INSTALL="${srcpwd}/install-sh -c"
2690fi
2691
2692# Set srcdir to "." if that's what it is.
2693# This is important for multilib support.
2694pwd=`${PWDCMD-pwd}`
2695if test "${pwd}" = "${srcpwd}" ; then
2696 srcdir=.
2697fi
2698
2699topsrcdir=$srcpwd
2700
2701extra_host_args=
2702
2703### To add a new directory to the tree, first choose whether it is a target
2704### or a host dependent tool. Then put it into the appropriate list
2705### (library or tools, host or target), doing a dependency sort.
2706
2707# Subdirs will be configured in the order listed in build_configdirs,
2708# configdirs, or target_configdirs; see the serialization section below.
2709
2710# Dependency sorting is only needed when *configuration* must be done in
2711# a particular order. In all cases a dependency should be specified in
2712# the Makefile, whether or not it's implicitly specified here.
2713
2714# Double entries in build_configdirs, configdirs, or target_configdirs may
2715# cause circular dependencies and break everything horribly.
2716
2717# these library is used by various programs built for the build
2718# environment
2719#
2720build_libs="build-libiberty build-libcpp"
2721
2722# these tools are built for the build environment
2723build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2724
2725# these libraries are used by various programs built for the host environment
2726#f
2727host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2728
2729# these tools are built for the host environment
2730# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2731# know that we are building the simulator.
2732# binutils, gas and ld appear in that order because it makes sense to run
2733# "make check" in that particular order.
2734# If --enable-gold is used, "gold" may replace "ld".
2735host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2736
2737# libgcj represents the runtime libraries only used by gcj.
2738libgcj="target-libffi \
2739 target-zlib \
2740 target-libjava"
2741
2742# these libraries are built for the target environment, and are built after
2743# the host libraries and the host tools (which may be a cross compiler)
2744# Note that libiberty is not a target library.
2745target_libraries="target-libgcc \
2746 target-libbacktrace \
2747 target-libgloss \
2748 target-newlib \
2749 target-libgomp \
2750 target-libcilkrts \
2751 target-liboffloadmic \
2752 target-libatomic \
2753 target-libitm \
2754 target-libstdc++-v3 \
2755 target-libsanitizer \
2756 target-libvtv \
2757 target-libmpx \
2758 target-libssp \
2759 target-libquadmath \
2760 target-libgfortran \
2761 target-boehm-gc \
2762 ${libgcj} \
2763 target-libobjc \
2764 target-libada \
2765 target-libgo"
2766
2767# these tools are built using the target libraries, and are intended to
2768# run only in the target environment
2769#
2770# note: any program that *uses* libraries that are in the "target_libraries"
2771# list belongs in this list.
2772#
2773target_tools="target-rda"
2774
2775################################################################################
2776
2777## All tools belong in one of the four categories, and are assigned above
2778## We assign ${configdirs} this way to remove all embedded newlines. This
2779## is important because configure will choke if they ever get through.
2780## ${configdirs} is directories we build using the host tools.
2781## ${target_configdirs} is directories we build using the target tools.
2782configdirs=`echo ${host_libs} ${host_tools}`
2783target_configdirs=`echo ${target_libraries} ${target_tools}`
2784build_configdirs=`echo ${build_libs} ${build_tools}`
2785
2786
2787
2788################################################################################
2789
2790srcname="gnu development package"
2791
2792# This gets set non-empty for some net releases of packages.
2793appdirs=""
2794
2795# Define is_cross_compiler to save on calls to 'test'.
2796is_cross_compiler=
2797if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
2799else
2800 is_cross_compiler=yes
2801fi
2802
2803# Find the build and target subdir names.
2804
2805# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806# have matching libraries, they should use host libraries: Makefile.tpl
2807# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808# However, they still use the build modules, because the corresponding
2809# host modules (e.g. bison) are only built for the host when bootstrap
2810# finishes. So:
2811# - build_subdir is where we find build modules, and never changes.
2812# - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814# Prefix 'build-' so this never conflicts with target_subdir.
2815build_subdir="build-${build_noncanonical}"
2816
2817# Check whether --with-build-libsubdir was given.
2818if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
2820else
2821 build_libsubdir="$build_subdir"
2822fi
2823
2824# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828else
2829 host_subdir=.
2830fi
2831# No prefix.
2832target_subdir=${target_noncanonical}
2833
2834# Be sure to cover against remnants of an in-tree build.
2835if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838fi
2839
2840# Skipdirs are removed silently.
2841skipdirs=
2842# Noconfigdirs are removed loudly.
2843noconfigdirs=""
2844
2845use_gnu_ld=
2846# Make sure we don't let GNU ld be added if we didn't want it.
2847if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
2849 noconfigdirs="$noconfigdirs ld gold"
2850fi
2851
2852use_gnu_as=
2853# Make sure we don't let GNU as be added if we didn't want it.
2854if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
2857fi
2858
2859use_included_zlib=
2860
2861# Check whether --with-system-zlib was given.
2862if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864fi
2865
2866# Make sure we don't let ZLIB be added if we didn't want it.
2867if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870fi
2871
2872# some tools are so dependent upon X11 that if we're not building with X,
2873# it's not even worth trying to configure, much less build, that tool.
2874
2875case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
2878 skipdirs="${skipdirs} tk itcl libgui"
2879 # We won't be able to build gdbtk without X.
2880 enable_gdbtk=no
2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883esac
2884
2885# Some are only suitable for cross toolchains.
2886# Remove these if host=target.
2887cross_only="target-libgloss target-newlib target-opcodes"
2888
2889case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
2891esac
2892
2893# If both --with-headers and --with-libs are specified, default to
2894# --without-newlib.
2895if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
2900fi
2901
2902# Recognize --with-newlib/--without-newlib.
2903case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906esac
2907
2908# Check whether --enable-as-accelerator-for was given.
2909if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2911fi
2912
2913
2914# Check whether --enable-offload-targets was given.
2915if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921else
2922 enable_offload_targets=
2923fi
2924
2925
2926# Handle --enable-gold, --enable-ld.
2927# --disable-gold [--enable-ld]
2928# Build only ld. Default option.
2929# --enable-gold [--enable-ld]
2930# Build both gold and ld. Install gold as "ld.gold", install ld
2931# as "ld.bfd" and "ld".
2932# --enable-gold=default [--enable-ld]
2933# Build both gold and ld. Install gold as "ld.gold" and "ld",
2934# install ld as "ld.bfd".
2935# --enable-gold[=default] --disable-ld
2936# Build only gold, which is then installed as both "ld.gold" and "ld".
2937# --enable-gold --enable-ld=default
2938# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939# and ld.bfd).
2940# In other words, ld is default
2941# --enable-gold=default --enable-ld=default
2942# Error.
2943
2944default_ld=
2945# Check whether --enable-gold was given.
2946if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
2948else
2949 ENABLE_GOLD=no
2950fi
2951
2952case "${ENABLE_GOLD}" in
2953 yes|default)
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2960 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
2972 case "${target}" in
2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974 | aarch64*-*-* | tilegx*-*-*)
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
2979 ENABLE_GOLD=yes
2980 ;;
2981 esac
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
3001 if test x${default_ld} != x; then
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
3018
3019# Configure extra directories which are host specific
3020
3021case "${host}" in
3022 *-cygwin*)
3023 configdirs="$configdirs libtermcap" ;;
3024esac
3025
3026# A target can indicate whether a language isn't supported for some reason.
3027# Only spaces may be used in this macro; not newlines or tabs.
3028unsupported_languages=
3029
3030# Remove more programs from consideration, based on the host or
3031# target this usually means that a port of the program doesn't
3032# exist yet.
3033
3034case "${host}" in
3035 i[3456789]86-*-msdosdjgpp*)
3036 noconfigdirs="$noconfigdirs tcl tk itcl"
3037 ;;
3038esac
3039
3040
3041# Check whether --enable-libquadmath was given.
3042if test "${enable_libquadmath+set}" = set; then :
3043 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3044else
3045 ENABLE_LIBQUADMATH=yes
3046fi
3047
3048if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049 noconfigdirs="$noconfigdirs target-libquadmath"
3050fi
3051
3052
3053# Check whether --enable-libquadmath-support was given.
3054if test "${enable_libquadmath_support+set}" = set; then :
3055 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3056else
3057 ENABLE_LIBQUADMATH_SUPPORT=yes
3058fi
3059
3060enable_libquadmath_support=
3061if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062 enable_libquadmath_support=no
3063fi
3064
3065
3066# Check whether --enable-libada was given.
3067if test "${enable_libada+set}" = set; then :
3068 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3069else
3070 ENABLE_LIBADA=yes
3071fi
3072
3073if test "${ENABLE_LIBADA}" != "yes" ; then
3074 noconfigdirs="$noconfigdirs gnattools"
3075fi
3076
3077# Check whether --enable-libssp was given.
3078if test "${enable_libssp+set}" = set; then :
3079 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3080else
3081 ENABLE_LIBSSP=yes
3082fi
3083
3084
3085# Check whether --enable-libstdcxx was given.
3086if test "${enable_libstdcxx+set}" = set; then :
3087 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3088else
3089 ENABLE_LIBSTDCXX=default
3090fi
3091
3092if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3093 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3094fi
3095
3096# If this is accelerator compiler and its target is intelmic we enable
3097# target liboffloadmic by default. If this is compiler with offloading
3098# for intelmic we enable host liboffloadmic by default. Otherwise
3099# liboffloadmic is disabled by default.
3100# Check whether --enable-liboffloadmic was given.
3101if test "${enable_liboffloadmic+set}" = set; then :
3102 enableval=$enable_liboffloadmic; case "$enableval" in
3103 no | host | target)
3104 enable_liboffloadmic=$enableval ;;
3105 *)
3106 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3107esac
3108else
3109 if test x"$enable_as_accelerator_for" != x; then
3110 case "${target}" in
3111 *-intelmic-* | *-intelmicemul-*)
3112 enable_liboffloadmic=target
3113 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3114 ;;
3115 *)
3116 enable_liboffloadmic=no
3117 ;;
3118 esac
3119else
3120 case "${enable_offload_targets}" in
3121 *-intelmic-* | *-intelmicemul-*)
3122 enable_liboffloadmic=host
3123 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3124 ;;
3125 *)
3126 enable_liboffloadmic=no
3127 ;;
3128 esac
3129fi
3130fi
3131
3132
3133
3134# Save it here so that, even in case of --enable-libgcj, if the Java
3135# front-end isn't enabled, we still get libgcj disabled.
3136libgcj_saved=$libgcj
3137case $enable_libgcj in
3138yes)
3139 # If we reset it here, it won't get added to noconfigdirs in the
3140 # target-specific build rules, so it will be forcibly enabled
3141 # (unless the Java language itself isn't enabled).
3142 libgcj=
3143 ;;
3144no)
3145 # Make sure we get it printed in the list of not supported target libs.
3146 # Don't disable libffi, though, other languages use it.
3147 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3148 # Clear libgcj_saved so that even if java is enabled libffi won't be
3149 # built.
3150 libgcj_saved=
3151 ;;
3152esac
3153
3154# Check whether --enable-static-libjava was given.
3155if test "${enable_static_libjava+set}" = set; then :
3156 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3157else
3158 ENABLE_STATIC_LIBJAVA=no
3159fi
3160
3161enable_static_libjava=
3162if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3163 enable_static_libjava=yes
3164fi
3165
3166if test x$enable_static_libjava != xyes ; then
3167 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3168fi
3169
3170
3171# Disable libgomp on non POSIX hosted systems.
3172if test x$enable_libgomp = x ; then
3173 # Enable libgomp by default on hosted POSIX systems.
3174 case "${target}" in
3175 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3176 ;;
3177 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3178 ;;
3179 *-*-solaris2* | *-*-hpux11*)
3180 ;;
3181 *-*-darwin* | *-*-aix*)
3182 ;;
3183 *)
3184 noconfigdirs="$noconfigdirs target-libgomp"
3185 ;;
3186 esac
3187fi
3188
3189# Disable libatomic on unsupported systems.
3190if test -d ${srcdir}/libatomic; then
3191 if test x$enable_libatomic = x; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3193$as_echo_n "checking for libatomic support... " >&6; }
3194 if (srcdir=${srcdir}/libatomic; \
3195 . ${srcdir}/configure.tgt; \
3196 test -n "$UNSUPPORTED")
3197 then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200 noconfigdirs="$noconfigdirs target-libatomic"
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203$as_echo "yes" >&6; }
3204 fi
3205 fi
3206fi
3207
3208# Disable libcilkrts on unsupported systems.
3209if test -d ${srcdir}/libcilkrts; then
3210 if test x$enable_libcilkrts = x; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3212$as_echo_n "checking for libcilkrts support... " >&6; }
3213 if (srcdir=${srcdir}/libcilkrts; \
3214 . ${srcdir}/configure.tgt; \
3215 test -n "$UNSUPPORTED")
3216 then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219 noconfigdirs="$noconfigdirs target-libcilkrts"
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222$as_echo "yes" >&6; }
3223 fi
3224 fi
3225fi
3226
3227# Disable liboffloadmic on unsupported systems.
3228if test -d ${srcdir}/liboffloadmic; then
3229 if test x$enable_liboffloadmic != xno; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3231$as_echo_n "checking for liboffloadmic support... " >&6; }
3232 if (srcdir=${srcdir}/liboffloadmic; \
3233 . ${srcdir}/configure.tgt; \
3234 test -n "$UNSUPPORTED")
3235 then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238 noconfigdirs="$noconfigdirs target-liboffloadmic"
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242 fi
3243 fi
3244fi
3245
3246# Disable libitm on unsupported systems.
3247if test -d ${srcdir}/libitm; then
3248 if test x$enable_libitm = x; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3250$as_echo_n "checking for libitm support... " >&6; }
3251 if (srcdir=${srcdir}/libitm; \
3252 . ${srcdir}/configure.tgt; \
3253 test -n "$UNSUPPORTED")
3254 then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256$as_echo "no" >&6; }
3257 noconfigdirs="$noconfigdirs target-libitm"
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260$as_echo "yes" >&6; }
3261 fi
3262 fi
3263fi
3264
3265# Disable libsanitizer on unsupported systems.
3266if test -d ${srcdir}/libsanitizer; then
3267 if test x$enable_libsanitizer = x; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3269$as_echo_n "checking for libsanitizer support... " >&6; }
3270 if (srcdir=${srcdir}/libsanitizer; \
3271 . ${srcdir}/configure.tgt; \
3272 test -n "$UNSUPPORTED")
3273 then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275$as_echo "no" >&6; }
3276 noconfigdirs="$noconfigdirs target-libsanitizer"
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279$as_echo "yes" >&6; }
3280 fi
3281 fi
3282fi
3283
3284# Disable libvtv on unsupported systems.
3285if test -d ${srcdir}/libvtv; then
3286 if test x$enable_libvtv = x; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3288$as_echo_n "checking for libvtv support... " >&6; }
3289 if (srcdir=${srcdir}/libvtv; \
3290 . ${srcdir}/configure.tgt; \
3291 test "$VTV_SUPPORTED" != "yes")
3292 then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295 noconfigdirs="$noconfigdirs target-libvtv"
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298$as_echo "yes" >&6; }
3299 fi
3300 fi
3301fi
3302
3303
3304# Enable libmpx on supported systems by request.
3305if test -d ${srcdir}/libmpx; then
3306 if test x$enable_libmpx = xyes; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3308$as_echo_n "checking for libmpx support... " >&6; }
3309 if (srcdir=${srcdir}/libmpx; \
3310 . ${srcdir}/configure.tgt; \
3311 test "$LIBMPX_SUPPORTED" != "yes")
3312 then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315 noconfigdirs="$noconfigdirs target-libmpx"
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318$as_echo "yes" >&6; }
3319 fi
3320 else
3321 noconfigdirs="$noconfigdirs target-libmpx"
3322 fi
3323fi
3324
3325
3326
3327# Disable libquadmath for some systems.
3328case "${target}" in
3329 avr-*-*)
3330 noconfigdirs="$noconfigdirs target-libquadmath"
3331 ;;
3332 # libquadmath is unused on AIX and libquadmath build process use of
3333 # LD_LIBRARY_PATH can break AIX bootstrap.
3334 powerpc-*-aix* | rs6000-*-aix*)
3335 noconfigdirs="$noconfigdirs target-libquadmath"
3336 ;;
3337esac
3338
3339# Disable libssp for some systems.
3340case "${target}" in
3341 avr-*-*)
3342 # No hosted I/O support.
3343 noconfigdirs="$noconfigdirs target-libssp"
3344 ;;
3345 powerpc-*-aix* | rs6000-*-aix*)
3346 noconfigdirs="$noconfigdirs target-libssp"
3347 ;;
3348 rl78-*-*)
3349 # libssp uses a misaligned load to trigger a fault, but the RL78
3350 # doesn't fault for those - instead, it gives a build-time error
3351 # for explicit misaligned loads.
3352 noconfigdirs="$noconfigdirs target-libssp"
3353 ;;
3354 visium-*-*)
3355 # No hosted I/O support.
3356 noconfigdirs="$noconfigdirs target-libssp"
3357 ;;
3358esac
3359
3360# Disable libstdc++-v3 for some systems.
3361# Allow user to override this if they pass --enable-libstdc++-v3
3362if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3363 case "${target}" in
3364 *-*-vxworks*)
3365 # VxWorks uses the Dinkumware C++ library.
3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367 ;;
3368 arm*-wince-pe*)
3369 # the C++ libraries don't build on top of CE's C libraries
3370 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371 ;;
3372 avr-*-*)
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 esac
3376fi
3377
3378# Disable Fortran for some systems.
3379case "${target}" in
3380 mmix-*-*)
3381 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3382 unsupported_languages="$unsupported_languages fortran"
3383 ;;
3384esac
3385
3386# Disable Java if libffi is not supported.
3387case "${target}" in
3388 aarch64-*-*)
3389 ;;
3390 alpha*-*-*)
3391 ;;
3392 arm*-*-*)
3393 ;;
3394 cris-*-*)
3395 ;;
3396 frv-*-*)
3397 ;;
3398 hppa*-*-linux*)
3399 ;;
3400 hppa*-*-hpux*)
3401 ;;
3402 i?86-*-*)
3403 ;;
3404 ia64*-*-*)
3405 ;;
3406 m32r*-*-*)
3407 ;;
3408 m68k-*-*)
3409 ;;
3410 mips*-*-rtems*)
3411 ;;
3412 mips*-*-linux*)
3413 ;;
3414 powerpc*-*-linux*)
3415 ;;
3416 powerpc-*-darwin*)
3417 ;;
3418 powerpc-*-aix* | rs6000-*-aix*)
3419 ;;
3420 powerpc-*-freebsd*)
3421 ;;
3422 powerpc64-*-freebsd*)
3423 ;;
3424 powerpc*-*-rtems*)
3425 ;;
3426 s390-*-* | s390x-*-*)
3427 ;;
3428 sh-*-* | sh[34]*-*-*)
3429 ;;
3430 sh64-*-* | sh5*-*-*)
3431 ;;
3432 sparc*-*-*)
3433 ;;
3434 x86_64-*-*)
3435 ;;
3436 *-*-*)
3437 unsupported_languages="$unsupported_languages java"
3438 ;;
3439esac
3440
3441# Disable Java, libgcj or related libraries for some systems.
3442case "${target}" in
3443 powerpc-*-darwin*)
3444 ;;
3445 i[3456789]86-*-darwin*)
3446 ;;
3447 x86_64-*-darwin[912]*)
3448 ;;
3449 *-*-darwin*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3451 ;;
3452 *-*-netware*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ;;
3455 *-*-rtems*)
3456 noconfigdirs="$noconfigdirs ${libgcj}"
3457 ;;
3458 *-*-tpf*)
3459 noconfigdirs="$noconfigdirs ${libgcj}"
3460 ;;
3461 *-*-uclinux*)
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3463 ;;
3464 *-*-vxworks*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3466 ;;
3467 alpha*-*-*vms*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3469 ;;
3470 arm*-*-freebsd*)
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3472 ;;
3473 arm-wince-pe)
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3475 ;;
3476 arm*-*-symbianelf*)
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3478 ;;
3479 bfin-*-*)
3480 noconfigdirs="$noconfigdirs target-boehm-gc"
3481 ;;
3482 cris-*-* | crisv32-*-*)
3483 unsupported_languages="$unsupported_languages java"
3484 case "${target}" in
3485 *-*-linux*)
3486 ;;
3487 *) # See PR46792 regarding target-libffi.
3488 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3489 esac
3490 ;;
3491 hppa*64*-*-linux*)
3492 # In this case, it's because the hppa64-linux target is for
3493 # the kernel only at this point and has no libc, and thus no
3494 # headers, crt*.o, etc., all of which are needed by these.
3495 unsupported_languages="$unsupported_languages java"
3496 ;;
3497 hppa*64*-*-hpux*)
3498 noconfigdirs="$noconfigdirs ${libgcj}"
3499 ;;
3500 hppa*-hp-hpux11*)
3501 ;;
3502 hppa*-*-hpux*)
3503 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3504 # build on HP-UX 10.20.
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3506 ;;
3507 ia64*-*-*vms*)
3508 noconfigdirs="$noconfigdirs ${libgcj}"
3509 ;;
3510 i[3456789]86-w64-mingw*)
3511 noconfigdirs="$noconfigdirs ${libgcj}"
3512 ;;
3513 i[3456789]86-*-mingw*)
3514 noconfigdirs="$noconfigdirs ${libgcj}"
3515 ;;
3516 x86_64-*-mingw*)
3517 noconfigdirs="$noconfigdirs ${libgcj}"
3518 ;;
3519 mmix-*-*)
3520 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3521 ;;
3522 powerpc-*-aix*)
3523 # copied from rs6000-*-* entry
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3525 ;;
3526 rs6000-*-aix*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3528 ;;
3529 ft32-*-*)
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3531 ;;
3532 *-*-lynxos*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3534 ;;
3535esac
3536
3537# Disable the go frontend on systems where it is known to not work. Please keep
3538# this in sync with contrib/config-list.mk.
3539case "${target}" in
3540*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3541 unsupported_languages="$unsupported_languages go"
3542 ;;
3543esac
3544
3545# Disable libgo for some systems where it is known to not work.
3546# For testing, you can easily override this with --enable-libgo.
3547if test x$enable_libgo = x; then
3548 case "${target}" in
3549 *-*-darwin*)
3550 # PR 46986
3551 noconfigdirs="$noconfigdirs target-libgo"
3552 ;;
3553 *-*-cygwin* | *-*-mingw*)
3554 noconfigdirs="$noconfigdirs target-libgo"
3555 ;;
3556 *-*-aix*)
3557 noconfigdirs="$noconfigdirs target-libgo"
3558 ;;
3559 esac
3560fi
3561
3562# Default libgloss CPU subdirectory.
3563libgloss_dir="$target_cpu"
3564
3565case "${target}" in
3566 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3567 libgloss_dir=wince
3568 ;;
3569 aarch64*-*-* )
3570 libgloss_dir=aarch64
3571 ;;
3572 arm*-*-*)
3573 libgloss_dir=arm
3574 ;;
3575 cris-*-* | crisv32-*-*)
3576 libgloss_dir=cris
3577 ;;
3578 hppa*-*-*)
3579 libgloss_dir=pa
3580 ;;
3581 i[3456789]86-*-*)
3582 libgloss_dir=i386
3583 ;;
3584 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3585 libgloss_dir=m68hc11
3586 ;;
3587 m68*-*-* | fido-*-*)
3588 libgloss_dir=m68k
3589 ;;
3590 mips*-*-*)
3591 libgloss_dir=mips
3592 ;;
3593 powerpc*-*-*)
3594 libgloss_dir=rs6000
3595 ;;
3596 sparc*-*-*)
3597 libgloss_dir=sparc
3598 ;;
3599esac
3600
3601# Disable newlib and libgloss for various target OSes.
3602case "${target}" in
3603 alpha*-dec-osf*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 i[3456789]86-*-linux*)
3607 # This section makes it possible to build newlib natively on linux.
3608 # If we are using a cross compiler then don't configure newlib.
3609 if test x${is_cross_compiler} != xno ; then
3610 noconfigdirs="$noconfigdirs target-newlib"
3611 fi
3612 noconfigdirs="$noconfigdirs target-libgloss"
3613 # If we are not using a cross compiler, do configure newlib.
3614 # Note however, that newlib will only be configured in this situation
3615 # if the --with-newlib option has been given, because otherwise
3616 # 'target-newlib' will appear in skipdirs.
3617 ;;
3618 i[3456789]86-*-rdos*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 sparc-*-sunos4*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-aix*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-beos*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 *-*-chorusos)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636 *-*-dragonfly*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 ;;
3639 *-*-freebsd*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 ;;
3642 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 ;;
3645 *-*-lynxos*)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 ;;
3648 *-*-mingw*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 *-*-netbsd*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654 *-*-netware*)
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 ;;
3657 *-*-tpf*)
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 ;;
3660 *-*-uclinux*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 ;;
3663 *-*-vxworks*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 ;;
3666esac
3667
3668case "${target}" in
3669 *-*-chorusos)
3670 ;;
3671 powerpc-*-darwin*)
3672 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3673 noconfigdirs="$noconfigdirs sim target-rda"
3674 ;;
3675 i[3456789]86-*-darwin*)
3676 noconfigdirs="$noconfigdirs ld gprof"
3677 noconfigdirs="$noconfigdirs sim target-rda"
3678 ;;
3679 x86_64-*-darwin[912]*)
3680 noconfigdirs="$noconfigdirs ld gas gprof"
3681 noconfigdirs="$noconfigdirs sim target-rda"
3682 ;;
3683 *-*-darwin*)
3684 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3685 noconfigdirs="$noconfigdirs sim target-rda"
3686 ;;
3687 *-*-dragonfly*)
3688 ;;
3689 *-*-freebsd*)
3690 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3691 && test -f /usr/local/include/gmp.h; then
3692 with_gmp=/usr/local
3693 fi
3694 ;;
3695 *-*-kaos*)
3696 # Remove unsupported stuff on all kaOS configurations.
3697 noconfigdirs="$noconfigdirs target-libgloss"
3698 ;;
3699 *-*-netbsd*)
3700 ;;
3701 *-*-netware*)
3702 ;;
3703 *-*-rtems*)
3704 noconfigdirs="$noconfigdirs target-libgloss"
3705 # this is not caught below because this stanza matches earlier
3706 case $target in
3707 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3708 esac
3709 ;;
3710 # The tpf target doesn't support gdb yet.
3711 *-*-tpf*)
3712 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3713 ;;
3714 *-*-uclinux*)
3715 noconfigdirs="$noconfigdirs target-rda"
3716 ;;
3717 *-*-vxworks*)
3718 ;;
3719 alpha*-dec-osf*)
3720 # ld works, but does not support shared libraries.
3721 # gas doesn't generate exception information.
3722 noconfigdirs="$noconfigdirs gas ld"
3723 ;;
3724 alpha*-*-*vms*)
3725 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3726 ;;
3727 alpha*-*-*)
3728 # newlib is not 64 bit ready
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730 ;;
3731 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3732 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3733 ;;
3734 arc-*-*|arceb-*-*)
3735 noconfigdirs="$noconfigdirs target-libgloss"
3736 ;;
3737 arm-*-pe*)
3738 noconfigdirs="$noconfigdirs target-libgloss"
3739 ;;
3740 arm-*-riscix*)
3741 noconfigdirs="$noconfigdirs ld target-libgloss"
3742 ;;
3743 avr-*-rtems*)
3744 ;;
3745 avr-*-*)
3746 if test x${with_avrlibc} != xno; then
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748 fi
3749 ;;
3750 c4x-*-* | tic4x-*-*)
3751 noconfigdirs="$noconfigdirs target-libgloss"
3752 ;;
3753 tic54x-*-*)
3754 noconfigdirs="$noconfigdirs target-libgloss gdb"
3755 ;;
3756 d10v-*-*)
3757 noconfigdirs="$noconfigdirs target-libgloss"
3758 ;;
3759 d30v-*-*)
3760 noconfigdirs="$noconfigdirs gdb"
3761 ;;
3762 fr30-*-elf*)
3763 noconfigdirs="$noconfigdirs gdb"
3764 ;;
3765 ft32-*-*)
3766 noconfigdirs="$noconfigdirs target-rda gprof"
3767 ;;
3768 moxie-*-*)
3769 noconfigdirs="$noconfigdirs"
3770 ;;
3771 h8300*-*-*)
3772 noconfigdirs="$noconfigdirs target-libgloss"
3773 ;;
3774 h8500-*-*)
3775 noconfigdirs="$noconfigdirs target-libgloss"
3776 ;;
3777 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3778 ;;
3779 hppa*64*-*-hpux*)
3780 noconfigdirs="$noconfigdirs gdb"
3781 ;;
3782 hppa*-*-hpux11*)
3783 noconfigdirs="$noconfigdirs gdb ld"
3784 ;;
3785 hppa*64*-*-linux*)
3786 ;;
3787 hppa*-*-linux*)
3788 ;;
3789 hppa*-*-*elf* | \
3790 hppa*-*-lites* | \
3791 hppa*-*-openbsd* | \
3792 hppa*64*-*-*)
3793 ;;
3794 hppa*-*-pro*)
3795 ;;
3796 hppa*-*-*)
3797 noconfigdirs="$noconfigdirs ld"
3798 ;;
3799 i960-*-*)
3800 noconfigdirs="$noconfigdirs gdb"
3801 ;;
3802 ia64*-*-elf*)
3803 # No gdb support yet.
3804 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3805 ;;
3806 ia64*-**-hpux*)
3807 # No ld support yet.
3808 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3809 ;;
3810 ia64*-*-*vms*)
3811 # No ld support yet.
3812 noconfigdirs="$noconfigdirs libgui itcl ld"
3813 ;;
3814 i[3456789]86-w64-mingw*)
3815 ;;
3816 i[3456789]86-*-mingw*)
3817 target_configdirs="$target_configdirs target-winsup"
3818 ;;
3819 *-*-cygwin*)
3820 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3821 noconfigdirs="$noconfigdirs target-libgloss"
3822 # always build newlib if winsup directory is present.
3823 if test -d "$srcdir/winsup/cygwin"; then
3824 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3825 elif test -d "$srcdir/newlib"; then
3826 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3827 fi
3828 ;;
3829 i[3456789]86-*-pe)
3830 noconfigdirs="$noconfigdirs target-libgloss"
3831 ;;
3832 i[3456789]86-*-sco3.2v5*)
3833 # The linker does not yet know about weak symbols in COFF,
3834 # and is not configured to handle mixed ELF and COFF.
3835 noconfigdirs="$noconfigdirs ld target-libgloss"
3836 ;;
3837 i[3456789]86-*-sco*)
3838 noconfigdirs="$noconfigdirs gprof target-libgloss"
3839 ;;
3840 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3841 noconfigdirs="$noconfigdirs target-libgloss"
3842 ;;
3843 i[3456789]86-*-sysv4*)
3844 noconfigdirs="$noconfigdirs target-libgloss"
3845 ;;
3846 i[3456789]86-*-beos*)
3847 noconfigdirs="$noconfigdirs gdb"
3848 ;;
3849 i[3456789]86-*-rdos*)
3850 noconfigdirs="$noconfigdirs gdb"
3851 ;;
3852 mmix-*-*)
3853 noconfigdirs="$noconfigdirs gdb"
3854 ;;
3855 mt-*-*)
3856 noconfigdirs="$noconfigdirs sim"
3857 ;;
3858 powerpc-*-aix*)
3859 # copied from rs6000-*-* entry
3860 noconfigdirs="$noconfigdirs gprof"
3861 ;;
3862 powerpc*-*-winnt* | powerpc*-*-pe*)
3863 target_configdirs="$target_configdirs target-winsup"
3864 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3865 # always build newlib.
3866 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3867 ;;
3868 # This is temporary until we can link against shared libraries
3869 powerpcle-*-solaris*)
3870 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3871 ;;
3872 powerpc-*-beos*)
3873 noconfigdirs="$noconfigdirs gdb"
3874 ;;
3875 rs6000-*-lynxos*)
3876 noconfigdirs="$noconfigdirs gprof"
3877 ;;
3878 rs6000-*-aix*)
3879 noconfigdirs="$noconfigdirs gprof"
3880 ;;
3881 rs6000-*-*)
3882 noconfigdirs="$noconfigdirs gprof"
3883 ;;
3884 m68k-apollo-*)
3885 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3886 ;;
3887 microblaze*)
3888 noconfigdirs="$noconfigdirs gprof"
3889 ;;
3890 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3891 if test x$with_newlib = xyes; then
3892 noconfigdirs="$noconfigdirs gprof"
3893 fi
3894 ;;
3895 mips*-*-irix5*)
3896 noconfigdirs="$noconfigdirs gprof target-libgloss"
3897 ;;
3898 mips*-*-irix6*)
3899 noconfigdirs="$noconfigdirs gprof target-libgloss"
3900 ;;
3901 mips*-*-bsd*)
3902 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3903 ;;
3904 mips*-*-linux*)
3905 ;;
3906 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3907 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3908 noconfigdirs="$noconfigdirs ld gas gprof"
3909 ;;
3910 mips*-*-*)
3911 noconfigdirs="$noconfigdirs gprof"
3912 ;;
3913 nds32*-*-*)
3914 noconfigdirs="$noconfigdirs gdb"
3915 ;;
3916 nvptx*-*-*)
3917 # nvptx is just a compiler
3918 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3919 ;;
3920 or1k*-*-*)
3921 noconfigdirs="$noconfigdirs gdb"
3922 ;;
3923 sh-*-* | sh64-*-*)
3924 case "${target}" in
3925 sh*-*-elf)
3926 ;;
3927 *)
3928 noconfigdirs="$noconfigdirs target-libgloss" ;;
3929 esac
3930 ;;
3931 sparc-*-sunos4*)
3932 if test x${is_cross_compiler} = xno ; then
3933 use_gnu_ld=no
3934 fi
3935 ;;
3936 tic6x-*-*)
3937 noconfigdirs="$noconfigdirs sim"
3938 ;;
3939 tilepro*-*-* | tilegx*-*-*)
3940 noconfigdirs="$noconfigdirs sim"
3941 ;;
3942 v810-*-*)
3943 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3944 ;;
3945 vax-*-*)
3946 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3947 ;;
3948esac
3949
3950# If we aren't building newlib, then don't build libgloss, since libgloss
3951# depends upon some newlib header files.
3952case "${noconfigdirs}" in
3953 *target-libgloss*) ;;
3954 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3955esac
3956
3957# Work in distributions that contain no compiler tools, like Autoconf.
3958host_makefile_frag=/dev/null
3959if test -d ${srcdir}/config ; then
3960case "${host}" in
3961 i[3456789]86-*-msdosdjgpp*)
3962 host_makefile_frag="config/mh-djgpp"
3963 ;;
3964 *-cygwin*)
3965
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3967$as_echo_n "checking to see if cat works as expected... " >&6; }
3968echo a >cygwin-cat-check
3969if test `cat cygwin-cat-check` = a ; then
3970 rm cygwin-cat-check
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972$as_echo "yes" >&6; }
3973else
3974 rm cygwin-cat-check
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976$as_echo "no" >&6; }
3977 as_fn_error "The cat command does not ignore carriage return characters.
3978 Please either mount the build directory in binary mode or run the following
3979 commands before running any configure script:
3980set -o igncr
3981export SHELLOPTS
3982 " "$LINENO" 5
3983fi
3984
3985 host_makefile_frag="config/mh-cygwin"
3986 ;;
3987 *-mingw*)
3988 host_makefile_frag="config/mh-mingw"
3989 ;;
3990 hppa*-hp-hpux10*)
3991 host_makefile_frag="config/mh-pa-hpux10"
3992 ;;
3993 hppa*-hp-hpux*)
3994 host_makefile_frag="config/mh-pa"
3995 ;;
3996 hppa*-*)
3997 host_makefile_frag="config/mh-pa"
3998 ;;
3999 *-*-darwin*)
4000 host_makefile_frag="config/mh-darwin"
4001 ;;
4002 powerpc-*-aix*)
4003 host_makefile_frag="config/mh-ppc-aix"
4004 ;;
4005 rs6000-*-aix*)
4006 host_makefile_frag="config/mh-ppc-aix"
4007 ;;
4008esac
4009fi
4010
4011if test "${build}" != "${host}" ; then
4012 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4013 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4014 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4015 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4016 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4017 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4018 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4019 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4020 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4021 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4022 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4023 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4024 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4025else
4026 AR_FOR_BUILD="\$(AR)"
4027 AS_FOR_BUILD="\$(AS)"
4028 CC_FOR_BUILD="\$(CC)"
4029 CXX_FOR_BUILD="\$(CXX)"
4030 GCJ_FOR_BUILD="\$(GCJ)"
4031 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4032 GOC_FOR_BUILD="\$(GOC)"
4033 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4034 LD_FOR_BUILD="\$(LD)"
4035 NM_FOR_BUILD="\$(NM)"
4036 RANLIB_FOR_BUILD="\$(RANLIB)"
4037 WINDRES_FOR_BUILD="\$(WINDRES)"
4038 WINDMC_FOR_BUILD="\$(WINDMC)"
4039fi
4040
4041ac_ext=c
4042ac_cpp='$CPP $CPPFLAGS'
4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046if test -n "$ac_tool_prefix"; then
4047 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4048set dummy ${ac_tool_prefix}gcc; ac_word=$2
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050$as_echo_n "checking for $ac_word... " >&6; }
4051if test "${ac_cv_prog_CC+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 if test -n "$CC"; then
4055 ac_cv_prog_CC="$CC" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4064 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4067 fi
4068done
4069 done
4070IFS=$as_save_IFS
4071
4072fi
4073fi
4074CC=$ac_cv_prog_CC
4075if test -n "$CC"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4077$as_echo "$CC" >&6; }
4078else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080$as_echo "no" >&6; }
4081fi
4082
4083
4084fi
4085if test -z "$ac_cv_prog_CC"; then
4086 ac_ct_CC=$CC
4087 # Extract the first word of "gcc", so it can be a program name with args.
4088set dummy gcc; ac_word=$2
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090$as_echo_n "checking for $ac_word... " >&6; }
4091if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4092 $as_echo_n "(cached) " >&6
4093else
4094 if test -n "$ac_ct_CC"; then
4095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 ac_cv_prog_ac_ct_CC="gcc"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108done
4109 done
4110IFS=$as_save_IFS
4111
4112fi
4113fi
4114ac_ct_CC=$ac_cv_prog_ac_ct_CC
4115if test -n "$ac_ct_CC"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4117$as_echo "$ac_ct_CC" >&6; }
4118else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120$as_echo "no" >&6; }
4121fi
4122
4123 if test "x$ac_ct_CC" = x; then
4124 CC=""
4125 else
4126 case $cross_compiling:$ac_tool_warned in
4127yes:)
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4130ac_tool_warned=yes ;;
4131esac
4132 CC=$ac_ct_CC
4133 fi
4134else
4135 CC="$ac_cv_prog_CC"
4136fi
4137
4138if test -z "$CC"; then
4139 if test -n "$ac_tool_prefix"; then
4140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4141set dummy ${ac_tool_prefix}cc; ac_word=$2
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143$as_echo_n "checking for $ac_word... " >&6; }
4144if test "${ac_cv_prog_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146else
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC="$CC" # Let the user override the test.
4149else
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157 ac_cv_prog_CC="${ac_tool_prefix}cc"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161done
4162 done
4163IFS=$as_save_IFS
4164
4165fi
4166fi
4167CC=$ac_cv_prog_CC
4168if test -n "$CC"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170$as_echo "$CC" >&6; }
4171else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173$as_echo "no" >&6; }
4174fi
4175
4176
4177 fi
4178fi
4179if test -z "$CC"; then
4180 # Extract the first word of "cc", so it can be a program name with args.
4181set dummy cc; ac_word=$2
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183$as_echo_n "checking for $ac_word... " >&6; }
4184if test "${ac_cv_prog_CC+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186else
4187 if test -n "$CC"; then
4188 ac_cv_prog_CC="$CC" # Let the user override the test.
4189else
4190 ac_prog_rejected=no
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4199 ac_prog_rejected=yes
4200 continue
4201 fi
4202 ac_cv_prog_CC="cc"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206done
4207 done
4208IFS=$as_save_IFS
4209
4210if test $ac_prog_rejected = yes; then
4211 # We found a bogon in the path, so make sure we never use it.
4212 set dummy $ac_cv_prog_CC
4213 shift
4214 if test $# != 0; then
4215 # We chose a different compiler from the bogus one.
4216 # However, it has the same basename, so the bogon will be chosen
4217 # first if we set CC to just the basename; use the full file name.
4218 shift
4219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4220 fi
4221fi
4222fi
4223fi
4224CC=$ac_cv_prog_CC
4225if test -n "$CC"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4227$as_echo "$CC" >&6; }
4228else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230$as_echo "no" >&6; }
4231fi
4232
4233
4234fi
4235if test -z "$CC"; then
4236 if test -n "$ac_tool_prefix"; then
4237 for ac_prog in cl.exe
4238 do
4239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242$as_echo_n "checking for $ac_word... " >&6; }
4243if test "${ac_cv_prog_CC+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245else
4246 if test -n "$CC"; then
4247 ac_cv_prog_CC="$CC" # Let the user override the test.
4248else
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260done
4261 done
4262IFS=$as_save_IFS
4263
4264fi
4265fi
4266CC=$ac_cv_prog_CC
4267if test -n "$CC"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4269$as_echo "$CC" >&6; }
4270else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272$as_echo "no" >&6; }
4273fi
4274
4275
4276 test -n "$CC" && break
4277 done
4278fi
4279if test -z "$CC"; then
4280 ac_ct_CC=$CC
4281 for ac_prog in cl.exe
4282do
4283 # Extract the first word of "$ac_prog", so it can be a program name with args.
4284set dummy $ac_prog; ac_word=$2
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286$as_echo_n "checking for $ac_word... " >&6; }
4287if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4289else
4290 if test -n "$ac_ct_CC"; then
4291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4292else
4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_ac_ct_CC="$ac_prog"
4301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4303 fi
4304done
4305 done
4306IFS=$as_save_IFS
4307
4308fi
4309fi
4310ac_ct_CC=$ac_cv_prog_ac_ct_CC
4311if test -n "$ac_ct_CC"; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4313$as_echo "$ac_ct_CC" >&6; }
4314else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316$as_echo "no" >&6; }
4317fi
4318
4319
4320 test -n "$ac_ct_CC" && break
4321done
4322
4323 if test "x$ac_ct_CC" = x; then
4324 CC=""
4325 else
4326 case $cross_compiling:$ac_tool_warned in
4327yes:)
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4330ac_tool_warned=yes ;;
4331esac
4332 CC=$ac_ct_CC
4333 fi
4334fi
4335
4336fi
4337
4338
4339test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4341as_fn_error "no acceptable C compiler found in \$PATH
4342See \`config.log' for more details." "$LINENO" 5; }
4343
4344# Provide some information about the compiler.
4345$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4346set X $ac_compile
4347ac_compiler=$2
4348for ac_option in --version -v -V -qversion; do
4349 { { ac_try="$ac_compiler $ac_option >&5"
4350case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353esac
4354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4355$as_echo "$ac_try_echo"; } >&5
4356 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4357 ac_status=$?
4358 if test -s conftest.err; then
4359 sed '10a\
4360... rest of stderr output deleted ...
4361 10q' conftest.err >conftest.er1
4362 cat conftest.er1 >&5
4363 rm -f conftest.er1 conftest.err
4364 fi
4365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4366 test $ac_status = 0; }
4367done
4368
4369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370/* end confdefs.h. */
4371
4372int
4373main ()
4374{
4375
4376 ;
4377 return 0;
4378}
4379_ACEOF
4380ac_clean_files_save=$ac_clean_files
4381ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4382# Try to create an executable without -o first, disregard a.out.
4383# It will help us diagnose broken compilers, and finding out an intuition
4384# of exeext.
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4386$as_echo_n "checking for C compiler default output file name... " >&6; }
4387ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4388
4389# The possible output files:
4390ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4391
4392ac_rmfiles=
4393for ac_file in $ac_files
4394do
4395 case $ac_file in
4396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4397 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4398 esac
4399done
4400rm -f $ac_rmfiles
4401
4402if { { ac_try="$ac_link_default"
4403case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406esac
4407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408$as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_link_default") 2>&5
4410 ac_status=$?
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }; then :
4413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4414# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4415# in a Makefile. We should not override ac_cv_exeext if it was cached,
4416# so that the user can short-circuit this test for compilers unknown to
4417# Autoconf.
4418for ac_file in $ac_files ''
4419do
4420 test -f "$ac_file" || continue
4421 case $ac_file in
4422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4423 ;;
4424 [ab].out )
4425 # We found the default executable, but exeext='' is most
4426 # certainly right.
4427 break;;
4428 *.* )
4429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4430 then :; else
4431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4432 fi
4433 # We set ac_cv_exeext here because the later test for it is not
4434 # safe: cross compilers may not add the suffix if given an `-o'
4435 # argument, so we may need to know it at that point already.
4436 # Even if this section looks crufty: it has the advantage of
4437 # actually working.
4438 break;;
4439 * )
4440 break;;
4441 esac
4442done
4443test "$ac_cv_exeext" = no && ac_cv_exeext=
4444
4445else
4446 ac_file=''
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4449$as_echo "$ac_file" >&6; }
4450if test -z "$ac_file"; then :
4451 $as_echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456{ as_fn_set_status 77
4457as_fn_error "C compiler cannot create executables
4458See \`config.log' for more details." "$LINENO" 5; }; }
4459fi
4460ac_exeext=$ac_cv_exeext
4461
4462# Check that the compiler produces executables we can run. If not, either
4463# the compiler is broken, or we cross compile.
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4465$as_echo_n "checking whether the C compiler works... " >&6; }
4466# If not cross compiling, check that we can run a simple program.
4467if test "$cross_compiling" != yes; then
4468 if { ac_try='./$ac_file'
4469 { { case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472esac
4473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474$as_echo "$ac_try_echo"; } >&5
4475 (eval "$ac_try") 2>&5
4476 ac_status=$?
4477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }; }; then
4479 cross_compiling=no
4480 else
4481 if test "$cross_compiling" = maybe; then
4482 cross_compiling=yes
4483 else
4484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4486as_fn_error "cannot run C compiled programs.
4487If you meant to cross compile, use \`--host'.
4488See \`config.log' for more details." "$LINENO" 5; }
4489 fi
4490 fi
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4493$as_echo "yes" >&6; }
4494
4495rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4496ac_clean_files=$ac_clean_files_save
4497# Check that the compiler produces executables we can run. If not, either
4498# the compiler is broken, or we cross compile.
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4500$as_echo_n "checking whether we are cross compiling... " >&6; }
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4502$as_echo "$cross_compiling" >&6; }
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4505$as_echo_n "checking for suffix of executables... " >&6; }
4506if { { ac_try="$ac_link"
4507case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510esac
4511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512$as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_link") 2>&5
4514 ac_status=$?
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }; then :
4517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4519# work properly (i.e., refer to `conftest.exe'), while it won't with
4520# `rm'.
4521for ac_file in conftest.exe conftest conftest.*; do
4522 test -f "$ac_file" || continue
4523 case $ac_file in
4524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526 break;;
4527 * ) break;;
4528 esac
4529done
4530else
4531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4533as_fn_error "cannot compute suffix of executables: cannot compile and link
4534See \`config.log' for more details." "$LINENO" 5; }
4535fi
4536rm -f conftest$ac_cv_exeext
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4538$as_echo "$ac_cv_exeext" >&6; }
4539
4540rm -f conftest.$ac_ext
4541EXEEXT=$ac_cv_exeext
4542ac_exeext=$EXEEXT
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4544$as_echo_n "checking for suffix of object files... " >&6; }
4545if test "${ac_cv_objext+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547else
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h. */
4550
4551int
4552main ()
4553{
4554
4555 ;
4556 return 0;
4557}
4558_ACEOF
4559rm -f conftest.o conftest.obj
4560if { { ac_try="$ac_compile"
4561case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564esac
4565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566$as_echo "$ac_try_echo"; } >&5
4567 (eval "$ac_compile") 2>&5
4568 ac_status=$?
4569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570 test $ac_status = 0; }; then :
4571 for ac_file in conftest.o conftest.obj conftest.*; do
4572 test -f "$ac_file" || continue;
4573 case $ac_file in
4574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4575 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4576 break;;
4577 esac
4578done
4579else
4580 $as_echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4585as_fn_error "cannot compute suffix of object files: cannot compile
4586See \`config.log' for more details." "$LINENO" 5; }
4587fi
4588rm -f conftest.$ac_cv_objext conftest.$ac_ext
4589fi
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4591$as_echo "$ac_cv_objext" >&6; }
4592OBJEXT=$ac_cv_objext
4593ac_objext=$OBJEXT
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4595$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4596if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4598else
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h. */
4601
4602int
4603main ()
4604{
4605#ifndef __GNUC__
4606 choke me
4607#endif
4608
4609 ;
4610 return 0;
4611}
4612_ACEOF
4613if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_compiler_gnu=yes
4615else
4616 ac_compiler_gnu=no
4617fi
4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619ac_cv_c_compiler_gnu=$ac_compiler_gnu
4620
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4623$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4624if test $ac_compiler_gnu = yes; then
4625 GCC=yes
4626else
4627 GCC=
4628fi
4629ac_test_CFLAGS=${CFLAGS+set}
4630ac_save_CFLAGS=$CFLAGS
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4632$as_echo_n "checking whether $CC accepts -g... " >&6; }
4633if test "${ac_cv_prog_cc_g+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635else
4636 ac_save_c_werror_flag=$ac_c_werror_flag
4637 ac_c_werror_flag=yes
4638 ac_cv_prog_cc_g=no
4639 CFLAGS="-g"
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h. */
4642
4643int
4644main ()
4645{
4646
4647 ;
4648 return 0;
4649}
4650_ACEOF
4651if ac_fn_c_try_compile "$LINENO"; then :
4652 ac_cv_prog_cc_g=yes
4653else
4654 CFLAGS=""
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656/* end confdefs.h. */
4657
4658int
4659main ()
4660{
4661
4662 ;
4663 return 0;
4664}
4665_ACEOF
4666if ac_fn_c_try_compile "$LINENO"; then :
4667
4668else
4669 ac_c_werror_flag=$ac_save_c_werror_flag
4670 CFLAGS="-g"
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h. */
4673
4674int
4675main ()
4676{
4677
4678 ;
4679 return 0;
4680}
4681_ACEOF
4682if ac_fn_c_try_compile "$LINENO"; then :
4683 ac_cv_prog_cc_g=yes
4684fi
4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686fi
4687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_c_werror_flag=$ac_save_c_werror_flag
4691fi
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4693$as_echo "$ac_cv_prog_cc_g" >&6; }
4694if test "$ac_test_CFLAGS" = set; then
4695 CFLAGS=$ac_save_CFLAGS
4696elif test $ac_cv_prog_cc_g = yes; then
4697 if test "$GCC" = yes; then
4698 CFLAGS="-g -O2"
4699 else
4700 CFLAGS="-g"
4701 fi
4702else
4703 if test "$GCC" = yes; then
4704 CFLAGS="-O2"
4705 else
4706 CFLAGS=
4707 fi
4708fi
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4710$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4711if test "${ac_cv_prog_cc_c89+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4713else
4714 ac_cv_prog_cc_c89=no
4715ac_save_CC=$CC
4716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717/* end confdefs.h. */
4718#include <stdarg.h>
4719#include <stdio.h>
4720#include <sys/types.h>
4721#include <sys/stat.h>
4722/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4723struct buf { int x; };
4724FILE * (*rcsopen) (struct buf *, struct stat *, int);
4725static char *e (p, i)
4726 char **p;
4727 int i;
4728{
4729 return p[i];
4730}
4731static char *f (char * (*g) (char **, int), char **p, ...)
4732{
4733 char *s;
4734 va_list v;
4735 va_start (v,p);
4736 s = g (p, va_arg (v,int));
4737 va_end (v);
4738 return s;
4739}
4740
4741/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4742 function prototypes and stuff, but not '\xHH' hex character constants.
4743 These don't provoke an error unfortunately, instead are silently treated
4744 as 'x'. The following induces an error, until -std is added to get
4745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4746 array size at least. It's necessary to write '\x00'==0 to get something
4747 that's true only with -std. */
4748int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4749
4750/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4751 inside strings and character constants. */
4752#define FOO(x) 'x'
4753int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4754
4755int test (int i, double x);
4756struct s1 {int (*f) (int a);};
4757struct s2 {int (*f) (double a);};
4758int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4759int argc;
4760char **argv;
4761int
4762main ()
4763{
4764return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4771do
4772 CC="$ac_save_CC $ac_arg"
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_cv_prog_cc_c89=$ac_arg
4775fi
4776rm -f core conftest.err conftest.$ac_objext
4777 test "x$ac_cv_prog_cc_c89" != "xno" && break
4778done
4779rm -f conftest.$ac_ext
4780CC=$ac_save_CC
4781
4782fi
4783# AC_CACHE_VAL
4784case "x$ac_cv_prog_cc_c89" in
4785 x)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4787$as_echo "none needed" >&6; } ;;
4788 xno)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790$as_echo "unsupported" >&6; } ;;
4791 *)
4792 CC="$CC $ac_cv_prog_cc_c89"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4794$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4795esac
4796if test "x$ac_cv_prog_cc_c89" != xno; then :
4797
4798fi
4799
4800ac_ext=c
4801ac_cpp='$CPP $CPPFLAGS'
4802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806ac_ext=cpp
4807ac_cpp='$CXXCPP $CPPFLAGS'
4808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4811if test -z "$CXX"; then
4812 if test -n "$CCC"; then
4813 CXX=$CCC
4814 else
4815 if test -n "$ac_tool_prefix"; then
4816 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4817 do
4818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
4822if test "${ac_cv_prog_CXX+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4824else
4825 if test -n "$CXX"; then
4826 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4827else
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839done
4840 done
4841IFS=$as_save_IFS
4842
4843fi
4844fi
4845CXX=$ac_cv_prog_CXX
4846if test -n "$CXX"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4848$as_echo "$CXX" >&6; }
4849else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
4852fi
4853
4854
4855 test -n "$CXX" && break
4856 done
4857fi
4858if test -z "$CXX"; then
4859 ac_ct_CXX=$CXX
4860 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4861do
4862 # Extract the first word of "$ac_prog", so it can be a program name with args.
4863set dummy $ac_prog; ac_word=$2
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865$as_echo_n "checking for $ac_word... " >&6; }
4866if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868else
4869 if test -n "$ac_ct_CXX"; then
4870 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_CXX="$ac_prog"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883done
4884 done
4885IFS=$as_save_IFS
4886
4887fi
4888fi
4889ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4890if test -n "$ac_ct_CXX"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4892$as_echo "$ac_ct_CXX" >&6; }
4893else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895$as_echo "no" >&6; }
4896fi
4897
4898
4899 test -n "$ac_ct_CXX" && break
4900done
4901
4902 if test "x$ac_ct_CXX" = x; then
4903 CXX="g++"
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906yes:)
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909ac_tool_warned=yes ;;
4910esac
4911 CXX=$ac_ct_CXX
4912 fi
4913fi
4914
4915 fi
4916fi
4917# Provide some information about the compiler.
4918$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4919set X $ac_compile
4920ac_compiler=$2
4921for ac_option in --version -v -V -qversion; do
4922 { { ac_try="$ac_compiler $ac_option >&5"
4923case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926esac
4927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928$as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4930 ac_status=$?
4931 if test -s conftest.err; then
4932 sed '10a\
4933... rest of stderr output deleted ...
4934 10q' conftest.err >conftest.er1
4935 cat conftest.er1 >&5
4936 rm -f conftest.er1 conftest.err
4937 fi
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4940done
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4943$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4944if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946else
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948/* end confdefs.h. */
4949
4950int
4951main ()
4952{
4953#ifndef __GNUC__
4954 choke me
4955#endif
4956
4957 ;
4958 return 0;
4959}
4960_ACEOF
4961if ac_fn_cxx_try_compile "$LINENO"; then :
4962 ac_compiler_gnu=yes
4963else
4964 ac_compiler_gnu=no
4965fi
4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4968
4969fi
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4971$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4972if test $ac_compiler_gnu = yes; then
4973 GXX=yes
4974else
4975 GXX=
4976fi
4977ac_test_CXXFLAGS=${CXXFLAGS+set}
4978ac_save_CXXFLAGS=$CXXFLAGS
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4980$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4981if test "${ac_cv_prog_cxx_g+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983else
4984 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4985 ac_cxx_werror_flag=yes
4986 ac_cv_prog_cxx_g=no
4987 CXXFLAGS="-g"
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h. */
4990
4991int
4992main ()
4993{
4994
4995 ;
4996 return 0;
4997}
4998_ACEOF
4999if ac_fn_cxx_try_compile "$LINENO"; then :
5000 ac_cv_prog_cxx_g=yes
5001else
5002 CXXFLAGS=""
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004/* end confdefs.h. */
5005
5006int
5007main ()
5008{
5009
5010 ;
5011 return 0;
5012}
5013_ACEOF
5014if ac_fn_cxx_try_compile "$LINENO"; then :
5015
5016else
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5018 CXXFLAGS="-g"
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h. */
5021
5022int
5023main ()
5024{
5025
5026 ;
5027 return 0;
5028}
5029_ACEOF
5030if ac_fn_cxx_try_compile "$LINENO"; then :
5031 ac_cv_prog_cxx_g=yes
5032fi
5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034fi
5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036fi
5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5041$as_echo "$ac_cv_prog_cxx_g" >&6; }
5042if test "$ac_test_CXXFLAGS" = set; then
5043 CXXFLAGS=$ac_save_CXXFLAGS
5044elif test $ac_cv_prog_cxx_g = yes; then
5045 if test "$GXX" = yes; then
5046 CXXFLAGS="-g -O2"
5047 else
5048 CXXFLAGS="-g"
5049 fi
5050else
5051 if test "$GXX" = yes; then
5052 CXXFLAGS="-O2"
5053 else
5054 CXXFLAGS=
5055 fi
5056fi
5057ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062
5063
5064# We must set the default linker to the linker used by gcc for the correct
5065# operation of libtool. If LD is not defined and we are using gcc, try to
5066# set the LD default to the ld used by gcc.
5067if test -z "$LD"; then
5068 if test "$GCC" = yes; then
5069 case $build in
5070 *-*-mingw*)
5071 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5072 *)
5073 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5074 esac
5075 case $gcc_prog_ld in
5076 # Accept absolute paths.
5077 [\\/]* | [A-Za-z]:[\\/]*)
5078 LD="$gcc_prog_ld" ;;
5079 esac
5080 fi
5081fi
5082
5083# Check whether -static-libstdc++ -static-libgcc is supported.
5084have_static_libs=no
5085if test "$GCC" = yes; then
5086 saved_LDFLAGS="$LDFLAGS"
5087
5088 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5090$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5091 ac_ext=cpp
5092ac_cpp='$CXXCPP $CPPFLAGS'
5093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5096
5097
5098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099/* end confdefs.h. */
5100
5101#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5102#error -static-libstdc++ not implemented
5103#endif
5104int main() {}
5105_ACEOF
5106if ac_fn_cxx_try_link "$LINENO"; then :
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5108$as_echo "yes" >&6; }; have_static_libs=yes
5109else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
5112fi
5113rm -f core conftest.err conftest.$ac_objext \
5114 conftest$ac_exeext conftest.$ac_ext
5115 ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121
5122 LDFLAGS="$saved_LDFLAGS"
5123fi
5124
5125
5126
5127
5128if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132$as_echo_n "checking for $ac_word... " >&6; }
5133if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135else
5136 if test -n "$GNATBIND"; then
5137 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5138else
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150done
5151 done
5152IFS=$as_save_IFS
5153
5154fi
5155fi
5156GNATBIND=$ac_cv_prog_GNATBIND
5157if test -n "$GNATBIND"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5159$as_echo "$GNATBIND" >&6; }
5160else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162$as_echo "no" >&6; }
5163fi
5164
5165
5166fi
5167if test -z "$ac_cv_prog_GNATBIND"; then
5168 ac_ct_GNATBIND=$GNATBIND
5169 # Extract the first word of "gnatbind", so it can be a program name with args.
5170set dummy gnatbind; ac_word=$2
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172$as_echo_n "checking for $ac_word... " >&6; }
5173if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175else
5176 if test -n "$ac_ct_GNATBIND"; then
5177 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190done
5191 done
5192IFS=$as_save_IFS
5193
5194fi
5195fi
5196ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5197if test -n "$ac_ct_GNATBIND"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5199$as_echo "$ac_ct_GNATBIND" >&6; }
5200else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
5203fi
5204
5205 if test "x$ac_ct_GNATBIND" = x; then
5206 GNATBIND="no"
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209yes:)
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212ac_tool_warned=yes ;;
5213esac
5214 GNATBIND=$ac_ct_GNATBIND
5215 fi
5216else
5217 GNATBIND="$ac_cv_prog_GNATBIND"
5218fi
5219
5220if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5222set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224$as_echo_n "checking for $ac_word... " >&6; }
5225if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227else
5228 if test -n "$GNATMAKE"; then
5229 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243 done
5244IFS=$as_save_IFS
5245
5246fi
5247fi
5248GNATMAKE=$ac_cv_prog_GNATMAKE
5249if test -n "$GNATMAKE"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5251$as_echo "$GNATMAKE" >&6; }
5252else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254$as_echo "no" >&6; }
5255fi
5256
5257
5258fi
5259if test -z "$ac_cv_prog_GNATMAKE"; then
5260 ac_ct_GNATMAKE=$GNATMAKE
5261 # Extract the first word of "gnatmake", so it can be a program name with args.
5262set dummy gnatmake; ac_word=$2
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264$as_echo_n "checking for $ac_word... " >&6; }
5265if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267else
5268 if test -n "$ac_ct_GNATMAKE"; then
5269 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5270else
5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282done
5283 done
5284IFS=$as_save_IFS
5285
5286fi
5287fi
5288ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5289if test -n "$ac_ct_GNATMAKE"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5291$as_echo "$ac_ct_GNATMAKE" >&6; }
5292else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294$as_echo "no" >&6; }
5295fi
5296
5297 if test "x$ac_ct_GNATMAKE" = x; then
5298 GNATMAKE="no"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301yes:)
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304ac_tool_warned=yes ;;
5305esac
5306 GNATMAKE=$ac_ct_GNATMAKE
5307 fi
5308else
5309 GNATMAKE="$ac_cv_prog_GNATMAKE"
5310fi
5311
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5313$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5314if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316else
5317 cat >conftest.adb <<EOF
5318procedure conftest is begin null; end conftest;
5319EOF
5320acx_cv_cc_gcc_supports_ada=no
5321# There is a bug in old released versions of GCC which causes the
5322# driver to exit successfully when the appropriate language module
5323# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5324# Therefore we must check for the error message as well as an
5325# unsuccessful exit.
5326# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5327# given a .adb file, but produce no object file. So we must check
5328# if an object file was really produced to guard against this.
5329errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5330if test x"$errors" = x && test -f conftest.$ac_objext; then
5331 acx_cv_cc_gcc_supports_ada=yes
5332fi
5333rm -f conftest.*
5334fi
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5336$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5337
5338if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5339 have_gnat=yes
5340else
5341 have_gnat=no
5342fi
5343
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5345$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5346if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348else
5349 echo abfoo >t1
5350 echo cdfoo >t2
5351 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5352 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5353 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5354 :
5355 else
5356 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5357 fi
5358 fi
5359 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5360 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5361 :
5362 else
5363 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5364 fi
5365 fi
5366 rm t1 t2
5367
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5370$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5371do_compare="$gcc_cv_prog_cmp_skip"
5372
5373
5374
5375# Check whether --enable-bootstrap was given.
5376if test "${enable_bootstrap+set}" = set; then :
5377 enableval=$enable_bootstrap;
5378else
5379 enable_bootstrap=default
5380fi
5381
5382
5383# Issue errors and warnings for invalid/strange bootstrap combinations.
5384if test -r $srcdir/gcc/configure; then
5385 have_compiler=yes
5386else
5387 have_compiler=no
5388fi
5389
5390case "$have_compiler:$host:$target:$enable_bootstrap" in
5391 *:*:*:no) ;;
5392
5393 # Default behavior. Enable bootstrap if we have a compiler
5394 # and we are in a native configuration.
5395 yes:$build:$build:default)
5396 enable_bootstrap=yes ;;
5397
5398 *:*:*:default)
5399 enable_bootstrap=no ;;
5400
5401 # We have a compiler and we are in a native configuration, bootstrap is ok
5402 yes:$build:$build:yes)
5403 ;;
5404
5405 # Other configurations, but we have a compiler. Assume the user knows
5406 # what he's doing.
5407 yes:*:*:yes)
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5409$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5410 ;;
5411
5412 # No compiler: if they passed --enable-bootstrap explicitly, fail
5413 no:*:*:yes)
5414 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5415
5416 # Fail if wrong command line
5417 *)
5418 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5419 ;;
5420esac
5421
5422# Used for setting $lt_cv_objdir
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5424$as_echo_n "checking for objdir... " >&6; }
5425if test "${lt_cv_objdir+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427else
5428 rm -f .libs 2>/dev/null
5429mkdir .libs 2>/dev/null
5430if test -d .libs; then
5431 lt_cv_objdir=.libs
5432else
5433 # MS-DOS does not allow filenames that begin with a dot.
5434 lt_cv_objdir=_libs
5435fi
5436rmdir .libs 2>/dev/null
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5439$as_echo "$lt_cv_objdir" >&6; }
5440objdir=$lt_cv_objdir
5441
5442
5443
5444
5445
5446cat >>confdefs.h <<_ACEOF
5447#define LT_OBJDIR "$lt_cv_objdir/"
5448_ACEOF
5449
5450
5451
5452# Check for GMP, MPFR and MPC
5453gmplibs="-lmpc -lmpfr -lgmp"
5454gmpinc=
5455have_gmp=no
5456
5457# Specify a location for mpc
5458# check for this first so it ends up on the link line before mpfr.
5459
5460# Check whether --with-mpc was given.
5461if test "${with_mpc+set}" = set; then :
5462 withval=$with_mpc;
5463fi
5464
5465
5466# Check whether --with-mpc-include was given.
5467if test "${with_mpc_include+set}" = set; then :
5468 withval=$with_mpc_include;
5469fi
5470
5471
5472# Check whether --with-mpc-lib was given.
5473if test "${with_mpc_lib+set}" = set; then :
5474 withval=$with_mpc_lib;
5475fi
5476
5477
5478if test "x$with_mpc" != x; then
5479 gmplibs="-L$with_mpc/lib $gmplibs"
5480 gmpinc="-I$with_mpc/include $gmpinc"
5481fi
5482if test "x$with_mpc_include" != x; then
5483 gmpinc="-I$with_mpc_include $gmpinc"
5484fi
5485if test "x$with_mpc_lib" != x; then
5486 gmplibs="-L$with_mpc_lib $gmplibs"
5487fi
5488if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5489 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5490 gmpinc='-I$$s/mpc/src '"$gmpinc"
5491 # Do not test the mpc version. Assume that it is sufficient, since
5492 # it is in the source tree, and the library has not been built yet
5493 # but it would be included on the link line in the version check below
5494 # hence making the test fail.
5495 have_gmp=yes
5496fi
5497
5498# Specify a location for mpfr
5499# check for this first so it ends up on the link line before gmp.
5500
5501# Check whether --with-mpfr-dir was given.
5502if test "${with_mpfr_dir+set}" = set; then :
5503 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5504Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5505fi
5506
5507
5508
5509# Check whether --with-mpfr was given.
5510if test "${with_mpfr+set}" = set; then :
5511 withval=$with_mpfr;
5512fi
5513
5514
5515# Check whether --with-mpfr-include was given.
5516if test "${with_mpfr_include+set}" = set; then :
5517 withval=$with_mpfr_include;
5518fi
5519
5520
5521# Check whether --with-mpfr-lib was given.
5522if test "${with_mpfr_lib+set}" = set; then :
5523 withval=$with_mpfr_lib;
5524fi
5525
5526
5527if test "x$with_mpfr" != x; then
5528 gmplibs="-L$with_mpfr/lib $gmplibs"
5529 gmpinc="-I$with_mpfr/include $gmpinc"
5530fi
5531if test "x$with_mpfr_include" != x; then
5532 gmpinc="-I$with_mpfr_include $gmpinc"
5533fi
5534if test "x$with_mpfr_lib" != x; then
5535 gmplibs="-L$with_mpfr_lib $gmplibs"
5536fi
5537if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5538 # MPFR v3.1.0 moved the sources into a src sub-directory.
5539 if test -d ${srcdir}/mpfr/src; then
5540 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5541 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5542 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5543 else
5544 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5545 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5546 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5547 fi
5548 # Do not test the mpfr version. Assume that it is sufficient, since
5549 # it is in the source tree, and the library has not been built yet
5550 # but it would be included on the link line in the version check below
5551 # hence making the test fail.
5552 have_gmp=yes
5553fi
5554
5555# Specify a location for gmp
5556
5557# Check whether --with-gmp-dir was given.
5558if test "${with_gmp_dir+set}" = set; then :
5559 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5560Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5561fi
5562
5563
5564
5565# Check whether --with-gmp was given.
5566if test "${with_gmp+set}" = set; then :
5567 withval=$with_gmp;
5568fi
5569
5570
5571# Check whether --with-gmp-include was given.
5572if test "${with_gmp_include+set}" = set; then :
5573 withval=$with_gmp_include;
5574fi
5575
5576
5577# Check whether --with-gmp-lib was given.
5578if test "${with_gmp_lib+set}" = set; then :
5579 withval=$with_gmp_lib;
5580fi
5581
5582
5583
5584if test "x$with_gmp" != x; then
5585 gmplibs="-L$with_gmp/lib $gmplibs"
5586 gmpinc="-I$with_gmp/include $gmpinc"
5587fi
5588if test "x$with_gmp_include" != x; then
5589 gmpinc="-I$with_gmp_include $gmpinc"
5590fi
5591if test "x$with_gmp_lib" != x; then
5592 gmplibs="-L$with_gmp_lib $gmplibs"
5593fi
5594if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5595 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5596 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5597 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5598 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5599 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5600 # Do not test the gmp version. Assume that it is sufficient, since
5601 # it is in the source tree, and the library has not been built yet
5602 # but it would be included on the link line in the version check below
5603 # hence making the test fail.
5604 have_gmp=yes
5605fi
5606
5607if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5608 have_gmp=yes
5609 saved_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $gmpinc"
5611 # Check for the recommended and required versions of GMP.
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5613$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5614
5615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h. */
5617#include "gmp.h"
5618int
5619main ()
5620{
5621
5622 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5623 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5624 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5625 choke me
5626 #endif
5627
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632if ac_fn_c_try_compile "$LINENO"; then :
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635#include <gmp.h>
5636int
5637main ()
5638{
5639
5640 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5641 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5642 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5643 choke me
5644 #endif
5645
5646 ;
5647 return 0;
5648}
5649_ACEOF
5650if ac_fn_c_try_compile "$LINENO"; then :
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652$as_echo "yes" >&6; }
5653else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5655$as_echo "buggy but acceptable" >&6; }
5656fi
5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660$as_echo "no" >&6; }; have_gmp=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663
5664 # If we have GMP, check the MPFR version.
5665 if test x"$have_gmp" = xyes; then
5666 # Check for the recommended and required versions of MPFR.
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5668$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h. */
5671#include <gmp.h>
5672 #include <mpfr.h>
5673int
5674main ()
5675{
5676
5677 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5678 choke me
5679 #endif
5680
5681 ;
5682 return 0;
5683}
5684_ACEOF
5685if ac_fn_c_try_compile "$LINENO"; then :
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h. */
5688#include <gmp.h>
5689 #include <mpfr.h>
5690int
5691main ()
5692{
5693
5694 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5695 choke me
5696 #endif
5697
5698 ;
5699 return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_compile "$LINENO"; then :
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704$as_echo "yes" >&6; }
5705else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5707$as_echo "buggy but acceptable" >&6; }
5708fi
5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }; have_gmp=no
5713fi
5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716
5717 # Check for the MPC header version.
5718 if test x"$have_gmp" = xyes ; then
5719 # Check for the recommended and required versions of MPC.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5721$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h. */
5724#include <mpc.h>
5725int
5726main ()
5727{
5728
5729 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5730 choke me
5731 #endif
5732
5733 ;
5734 return 0;
5735}
5736_ACEOF
5737if ac_fn_c_try_compile "$LINENO"; then :
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h. */
5740#include <mpc.h>
5741int
5742main ()
5743{
5744
5745 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5746 choke me
5747 #endif
5748
5749 ;
5750 return 0;
5751}
5752_ACEOF
5753if ac_fn_c_try_compile "$LINENO"; then :
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755$as_echo "yes" >&6; }
5756else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5758$as_echo "buggy but acceptable" >&6; }
5759fi
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }; have_gmp=no
5764fi
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 fi
5767
5768 # Now check the MPFR library.
5769 if test x"$have_gmp" = xyes; then
5770 saved_LIBS="$LIBS"
5771 LIBS="$LIBS $gmplibs"
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5773$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775/* end confdefs.h. */
5776#include <mpc.h>
5777int
5778main ()
5779{
5780
5781 mpfr_t n;
5782 mpfr_t x;
5783 mpc_t c;
5784 int t;
5785 mpfr_init (n);
5786 mpfr_init (x);
5787 mpfr_atan2 (n, n, x, GMP_RNDN);
5788 mpfr_erfc (n, x, GMP_RNDN);
5789 mpfr_subnormalize (x, t, GMP_RNDN);
5790 mpfr_clear(n);
5791 mpfr_clear(x);
5792 mpc_init2 (c, 53);
5793 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5794 mpc_cosh (c, c, MPC_RNDNN);
5795 mpc_pow (c, c, c, MPC_RNDNN);
5796 mpc_acosh (c, c, MPC_RNDNN);
5797 mpc_clear (c);
5798
5799 ;
5800 return 0;
5801}
5802_ACEOF
5803if ac_fn_c_try_link "$LINENO"; then :
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5805$as_echo "yes" >&6; }
5806else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }; have_gmp=no
5809fi
5810rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5812 LIBS="$saved_LIBS"
5813 fi
5814
5815 CFLAGS="$saved_CFLAGS"
5816
5817# The library versions listed in the error message below should match
5818# the HARD-minimums enforced above.
5819 if test x$have_gmp != xyes; then
5820 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5821Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5822their locations. Source code for these libraries can be found at
5823their respective hosting sites as well as at
5824ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5825http://gcc.gnu.org/install/prerequisites.html for additional info. If
5826you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5827make sure that you have installed both the libraries and the header
5828files. They may be located in separate packages." "$LINENO" 5
5829 fi
5830fi
5831
5832# Flags needed for both GMP, MPFR and/or MPC.
5833
5834
5835
5836
5837
5838
5839
5840# Allow host libstdc++ to be specified for static linking with PPL.
5841
5842# Check whether --with-host-libstdcxx was given.
5843if test "${with_host_libstdcxx+set}" = set; then :
5844 withval=$with_host_libstdcxx;
5845fi
5846
5847
5848case $with_host_libstdcxx in
5849 no|yes)
5850 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5851 ;;
5852esac
5853
5854# Libraries to use for stage1 or when not bootstrapping.
5855
5856# Check whether --with-stage1-libs was given.
5857if test "${with_stage1_libs+set}" = set; then :
5858 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5859 stage1_libs=
5860 else
5861 stage1_libs=$withval
5862 fi
5863else
5864 stage1_libs=$with_host_libstdcxx
5865fi
5866
5867
5868
5869# Linker flags to use for stage1 or when not bootstrapping.
5870
5871# Check whether --with-stage1-ldflags was given.
5872if test "${with_stage1_ldflags+set}" = set; then :
5873 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5874 stage1_ldflags=
5875 else
5876 stage1_ldflags=$withval
5877 fi
5878else
5879 stage1_ldflags=
5880 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5881 # if supported. But if the user explicitly specified the libraries to use,
5882 # trust that they are doing what they want.
5883 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5884 stage1_ldflags="-static-libstdc++ -static-libgcc"
5885 fi
5886fi
5887
5888
5889
5890# Libraries to use for stage2 and later builds. This defaults to the
5891# argument passed to --with-host-libstdcxx.
5892
5893# Check whether --with-boot-libs was given.
5894if test "${with_boot_libs+set}" = set; then :
5895 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5896 poststage1_libs=
5897 else
5898 poststage1_libs=$withval
5899 fi
5900else
5901 poststage1_libs=$with_host_libstdcxx
5902fi
5903
5904
5905
5906# Linker flags to use for stage2 and later builds.
5907
5908# Check whether --with-boot-ldflags was given.
5909if test "${with_boot_ldflags+set}" = set; then :
5910 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5911 poststage1_ldflags=
5912 else
5913 poststage1_ldflags=$withval
5914 fi
5915else
5916 poststage1_ldflags=
5917 # In stages 2 and 3, default to linking libstdc++ and libgcc
5918 # statically. But if the user explicitly specified the libraries to
5919 # use, trust that they are doing what they want.
5920 if test "$poststage1_libs" = ""; then
5921 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5922 fi
5923fi
5924
5925
5926
5927# GCC GRAPHITE dependency ISL.
5928# Basic setup is inlined here, actual checks are in config/isl.m4
5929
5930
5931# Check whether --with-isl was given.
5932if test "${with_isl+set}" = set; then :
5933 withval=$with_isl;
5934fi
5935
5936
5937# Treat --without-isl as a request to disable
5938# GRAPHITE support and skip all following checks.
5939if test "x$with_isl" != "xno"; then
5940 # Check for ISL
5941
5942
5943# Check whether --with-isl-include was given.
5944if test "${with_isl_include+set}" = set; then :
5945 withval=$with_isl_include;
5946fi
5947
5948
5949# Check whether --with-isl-lib was given.
5950if test "${with_isl_lib+set}" = set; then :
5951 withval=$with_isl_lib;
5952fi
5953
5954
5955 # Check whether --enable-isl-version-check was given.
5956if test "${enable_isl_version_check+set}" = set; then :
5957 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5958else
5959 ENABLE_ISL_CHECK=yes
5960fi
5961
5962
5963 # Initialize isllibs and islinc.
5964 case $with_isl in
5965 no)
5966 isllibs=
5967 islinc=
5968 ;;
5969 "" | yes)
5970 ;;
5971 *)
5972 isllibs="-L$with_isl/lib"
5973 islinc="-I$with_isl/include"
5974 ;;
5975 esac
5976 if test "x${with_isl_include}" != x ; then
5977 islinc="-I$with_isl_include"
5978 fi
5979 if test "x${with_isl_lib}" != x; then
5980 isllibs="-L$with_isl_lib"
5981 fi
5982 if test "x${islinc}" = x && test "x${isllibs}" = x \
5983 && test -d ${srcdir}/isl; then
5984 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5985 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5986 ENABLE_ISL_CHECK=no
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5988$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5989 fi
5990
5991 isllibs="${isllibs} -lisl"
5992
5993
5994
5995 if test "${ENABLE_ISL_CHECK}" = yes ; then
5996 _isl_saved_CFLAGS=$CFLAGS
5997 _isl_saved_LDFLAGS=$LDFLAGS
5998 _isl_saved_LIBS=$LIBS
5999
6000 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6001 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6002 LIBS="${_isl_saved_LIBS} -lisl"
6003
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6005$as_echo_n "checking for compatible ISL... " >&6; }
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h. */
6008#include <isl/val.h>
6009int
6010main ()
6011{
6012;
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_link "$LINENO"; then :
6018 gcc_cv_isl=yes
6019else
6020 gcc_cv_isl=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6025$as_echo "$gcc_cv_isl" >&6; }
6026
6027 CFLAGS=$_isl_saved_CFLAGS
6028 LDFLAGS=$_isl_saved_LDFLAGS
6029 LIBS=$_isl_saved_LIBS
6030 fi
6031
6032
6033
6034
6035
6036
6037 if test "x${with_isl}" = xno; then
6038 graphite_requested=no
6039 elif test "x${with_isl}" != x \
6040 || test "x${with_isl_include}" != x \
6041 || test "x${with_isl_lib}" != x ; then
6042 graphite_requested=yes
6043 else
6044 graphite_requested=no
6045 fi
6046
6047
6048
6049 if test "${gcc_cv_isl}" = no ; then
6050 isllibs=
6051 islinc=
6052 fi
6053
6054 if test "${graphite_requested}" = yes \
6055 && test "x${isllibs}" = x \
6056 && test "x${islinc}" = x ; then
6057
6058 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6059 fi
6060
6061
6062fi
6063
6064# If the ISL check failed, disable builds of in-tree variant of ISL
6065if test "x$with_isl" = xno ||
6066 test "x$gcc_cv_isl" = xno; then
6067 noconfigdirs="$noconfigdirs isl"
6068 islinc=
6069fi
6070
6071
6072
6073
6074# Check for LTO support.
6075# Check whether --enable-lto was given.
6076if test "${enable_lto+set}" = set; then :
6077 enableval=$enable_lto; enable_lto=$enableval
6078else
6079 enable_lto=yes; default_enable_lto=yes
6080fi
6081
6082
6083
6084
6085
6086target_elf=no
6087case $target in
6088 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6089 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6090 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6091 nvptx-*-none)
6092 target_elf=no
6093 ;;
6094 *)
6095 target_elf=yes
6096 ;;
6097esac
6098
6099if test $target_elf = yes; then :
6100 # ELF platforms build the lto-plugin always.
6101 build_lto_plugin=yes
6102
6103else
6104 if test x"$default_enable_lto" = x"yes" ; then
6105 case $target in
6106 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6107 # On other non-ELF platforms, LTO has yet to be validated.
6108 *) enable_lto=no ;;
6109 esac
6110 else
6111 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6112 # It would also be nice to check the binutils support, but we don't
6113 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6114 # warn during gcc/ subconfigure; unless you're bootstrapping with
6115 # -flto it won't be needed until after installation anyway.
6116 case $target in
6117 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6118 *) if test x"$enable_lto" = x"yes"; then
6119 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6120 fi
6121 ;;
6122 esac
6123 fi
6124 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6125 # Build it unless LTO was explicitly disabled.
6126 case $target in
6127 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6128 *) ;;
6129 esac
6130
6131fi
6132
6133
6134# Check whether --enable-linker-plugin-configure-flags was given.
6135if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6136 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6137else
6138 extra_linker_plugin_configure_flags=
6139fi
6140
6141
6142# Check whether --enable-linker-plugin-flags was given.
6143if test "${enable_linker_plugin_flags+set}" = set; then :
6144 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6145else
6146 extra_linker_plugin_flags=
6147fi
6148
6149
6150
6151
6152# By default, C and C++ are the only stage 1 languages.
6153stage1_languages=,c,
6154
6155# Target libraries that we bootstrap.
6156bootstrap_target_libs=,target-libgcc,
6157
6158# Figure out what language subdirectories are present.
6159# Look if the user specified --enable-languages="..."; if not, use
6160# the environment variable $LANGUAGES if defined. $LANGUAGES might
6161# go away some day.
6162# NB: embedded tabs in this IF block -- do not untabify
6163if test -d ${srcdir}/gcc; then
6164 if test x"${enable_languages+set}" != xset; then
6165 if test x"${LANGUAGES+set}" = xset; then
6166 enable_languages="${LANGUAGES}"
6167 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6168 else
6169 enable_languages=all
6170 fi
6171 else
6172 if test x"${enable_languages}" = x ||
6173 test x"${enable_languages}" = xyes;
6174 then
6175 echo configure.in: --enable-languages needs at least one language argument 1>&2
6176 exit 1
6177 fi
6178 fi
6179 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6180
6181 # 'f95' is the old name for the 'fortran' language. We issue a warning
6182 # and make the substitution.
6183 case ,${enable_languages}, in
6184 *,f95,*)
6185 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6186 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6187 ;;
6188 esac
6189
6190 # If bootstrapping, C++ must be enabled.
6191 case ",$enable_languages,:$enable_bootstrap" in
6192 *,c++,*:*) ;;
6193 *:yes)
6194 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6195 enable_languages="${enable_languages},c++"
6196 else
6197 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6198 fi
6199 ;;
6200 esac
6201
6202 # First scan to see if an enabled language requires some other language.
6203 # We assume that a given config-lang.in will list all the language
6204 # front ends it requires, even if some are required indirectly.
6205 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6206 case ${lang_frag} in
6207 ..) ;;
6208 # The odd quoting in the next line works around
6209 # an apparent bug in bash 1.12 on linux.
6210 ${srcdir}/gcc/[*]/config-lang.in) ;;
6211 *)
6212 # From the config-lang.in, get $language, $lang_requires, and
6213 # $lang_requires_boot_languages.
6214 language=
6215 lang_requires=
6216 lang_requires_boot_languages=
6217 . ${lang_frag}
6218 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6219 case ,${enable_languages}, in
6220 *,$other,*) ;;
6221 *,all,*) ;;
6222 *,$language,*)
6223 echo " \`$other' language required by \`$language'; enabling" 1>&2
6224 enable_languages="${enable_languages},${other}"
6225 ;;
6226 esac
6227 done
6228 for other in ${lang_requires_boot_languages} ; do
6229 if test "$other" != "c"; then
6230 case ,${enable_stage1_languages}, in
6231 *,$other,*) ;;
6232 *,all,*) ;;
6233 *)
6234 case ,${enable_languages}, in
6235 *,$language,*)
6236 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6237 enable_stage1_languages="$enable_stage1_languages,${other}"
6238 ;;
6239 esac
6240 ;;
6241 esac
6242 fi
6243 done
6244 ;;
6245 esac
6246 done
6247
6248 new_enable_languages=,c,
6249
6250 # If LTO is enabled, add the LTO front end.
6251 if test "$enable_lto" = "yes" ; then
6252 case ,${enable_languages}, in
6253 *,lto,*) ;;
6254 *) enable_languages="${enable_languages},lto" ;;
6255 esac
6256 if test "${build_lto_plugin}" = "yes" ; then
6257 configdirs="$configdirs lto-plugin"
6258 fi
6259 fi
6260
6261 # If we're building an offloading compiler, add the LTO front end.
6262 if test x"$enable_as_accelerator_for" != x ; then
6263 case ,${enable_languages}, in
6264 *,lto,*) ;;
6265 *) enable_languages="${enable_languages},lto" ;;
6266 esac
6267 fi
6268
6269 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6270 potential_languages=,c,
6271
6272 enabled_target_libs=
6273 disabled_target_libs=
6274
6275 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6276 case ${lang_frag} in
6277 ..) ;;
6278 # The odd quoting in the next line works around
6279 # an apparent bug in bash 1.12 on linux.
6280 ${srcdir}/gcc/[*]/config-lang.in) ;;
6281 *)
6282 # From the config-lang.in, get $language, $target_libs,
6283 # $lang_dirs, $boot_language, and $build_by_default
6284 language=
6285 target_libs=
6286 lang_dirs=
6287 subdir_requires=
6288 boot_language=no
6289 build_by_default=yes
6290 . ${lang_frag}
6291 if test x${language} = x; then
6292 echo "${lang_frag} doesn't set \$language." 1>&2
6293 exit 1
6294 fi
6295
6296 if test "$language" = "c++"; then
6297 boot_language=yes
6298 fi
6299
6300 add_this_lang=no
6301 case ,${enable_languages}, in
6302 *,${language},*)
6303 # Language was explicitly selected; include it
6304 # unless it is C, which is enabled by default.
6305 if test "$language" != "c"; then
6306 add_this_lang=yes
6307 fi
6308 ;;
6309 *,all,*)
6310 # 'all' was selected, select it if it is a default language
6311 if test "$language" != "c"; then
6312 add_this_lang=${build_by_default}
6313 fi
6314 ;;
6315 esac
6316
6317 # Disable languages that need other directories if these aren't available.
6318 for i in $subdir_requires; do
6319 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6320 case ,${enable_languages}, in
6321 *,${language},*)
6322 # Specifically requested language; tell them.
6323 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6324 ;;
6325 *)
6326 # Silently disable.
6327 add_this_lang=unsupported
6328 ;;
6329 esac
6330 done
6331
6332 # Disable Ada if no preexisting GNAT is available.
6333 case ,${enable_languages},:${language}:${have_gnat} in
6334 *,${language},*:ada:no)
6335 # Specifically requested language; tell them.
6336 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6337 ;;
6338 *:ada:no)
6339 # Silently disable.
6340 add_this_lang=unsupported
6341 ;;
6342 esac
6343
6344 # Disable a language that is unsupported by the target.
6345 case " $unsupported_languages " in
6346 *" $language "*)
6347 add_this_lang=unsupported
6348 ;;
6349 esac
6350
6351 case $add_this_lang in
6352 unsupported)
6353 # Remove language-dependent dirs.
6354 disabled_target_libs="$disabled_target_libs $target_libs"
6355 noconfigdirs="$noconfigdirs $lang_dirs"
6356 ;;
6357 no)
6358 # Remove language-dependent dirs; still show language as supported.
6359 disabled_target_libs="$disabled_target_libs $target_libs"
6360 noconfigdirs="$noconfigdirs $lang_dirs"
6361 potential_languages="${potential_languages}${language},"
6362 ;;
6363 yes)
6364 new_enable_languages="${new_enable_languages}${language},"
6365 potential_languages="${potential_languages}${language},"
6366 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6367 enabled_target_libs="$enabled_target_libs $target_libs"
6368 case "${boot_language}:,$enable_stage1_languages," in
6369 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6370 # Add to (comma-separated) list of stage 1 languages.
6371 case ",$stage1_languages," in
6372 *,$language,* | ,yes, | ,all,) ;;
6373 *) stage1_languages="${stage1_languages}${language}," ;;
6374 esac
6375 # We need to bootstrap any supporting libraries.
6376 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6377 ;;
6378 esac
6379 ;;
6380 esac
6381 ;;
6382 esac
6383 done
6384
6385 # Add target libraries which are only needed for disabled languages
6386 # to noconfigdirs.
6387 if test -n "$disabled_target_libs"; then
6388 for dir in $disabled_target_libs; do
6389 case " $enabled_target_libs " in
6390 *" ${dir} "*) ;;
6391 *) noconfigdirs="$noconfigdirs $dir" ;;
6392 esac
6393 done
6394 fi
6395
6396 # Check whether --enable-stage1-languages was given.
6397if test "${enable_stage1_languages+set}" = set; then :
6398 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6399 ,no,|,,)
6400 # Set it to something that will have no effect in the loop below
6401 enable_stage1_languages=c ;;
6402 ,yes,)
6403 enable_stage1_languages=`echo $new_enable_languages | \
6404 sed -e "s/^,//" -e "s/,$//" ` ;;
6405 *,all,*)
6406 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6407 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6408 esac
6409
6410 # Add "good" languages from enable_stage1_languages to stage1_languages,
6411 # while "bad" languages go in missing_languages. Leave no duplicates.
6412 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6413 case $potential_languages in
6414 *,$i,*)
6415 case $stage1_languages in
6416 *,$i,*) ;;
6417 *) stage1_languages="$stage1_languages$i," ;;
6418 esac ;;
6419 *)
6420 case $missing_languages in
6421 *,$i,*) ;;
6422 *) missing_languages="$missing_languages$i," ;;
6423 esac ;;
6424 esac
6425 done
6426fi
6427
6428
6429 # Remove leading/trailing commas that were added for simplicity
6430 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6431 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6432 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6433 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6434
6435 if test "x$missing_languages" != x; then
6436 as_fn_error "
6437The following requested languages could not be built: ${missing_languages}
6438Supported languages are: ${potential_languages}" "$LINENO" 5
6439 fi
6440 if test "x$new_enable_languages" != "x$enable_languages"; then
6441 echo The following languages will be built: ${new_enable_languages}
6442 enable_languages="$new_enable_languages"
6443 fi
6444
6445
6446 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6447fi
6448
6449# Handle --disable-<component> generically.
6450for dir in $configdirs $build_configdirs $target_configdirs ; do
6451 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6452 varname=`echo $dirname | sed -e s/+/_/g`
6453 if eval test x\${enable_${varname}} "=" xno ; then
6454 noconfigdirs="$noconfigdirs $dir"
6455 fi
6456done
6457
6458# Check for Boehm's garbage collector
6459# Check whether --enable-objc-gc was given.
6460if test "${enable_objc_gc+set}" = set; then :
6461 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6462 *,objc,*:*:yes:*target-boehm-gc*)
6463 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6464 ;;
6465esac
6466fi
6467
6468
6469# Make sure we only build Boehm's garbage collector if required.
6470case ,${enable_languages},:${enable_objc_gc} in
6471 *,objc,*:yes)
6472 # Keep target-boehm-gc if requested for Objective-C.
6473 ;;
6474 *)
6475 # Otherwise remove target-boehm-gc depending on target-libjava.
6476 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6477 noconfigdirs="$noconfigdirs target-boehm-gc"
6478 fi
6479 ;;
6480esac
6481
6482# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6483case ,${enable_languages}, in
6484 *,c++,*)
6485 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6486 case "${noconfigdirs}" in
6487 *target-libstdc++-v3*)
6488 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6489 ;;
6490 *) ;;
6491 esac
6492 ;;
6493 *)
6494 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6495 ;;
6496esac
6497
6498# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6499# $build_configdirs and $target_configdirs.
6500# If we have the source for $noconfigdirs entries, add them to $notsupp.
6501
6502notsupp=""
6503for dir in . $skipdirs $noconfigdirs ; do
6504 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6505 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6507 if test -r $srcdir/$dirname/configure ; then
6508 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509 true
6510 else
6511 notsupp="$notsupp $dir"
6512 fi
6513 fi
6514 fi
6515 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6516 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6517 if test -r $srcdir/$dirname/configure ; then
6518 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519 true
6520 else
6521 notsupp="$notsupp $dir"
6522 fi
6523 fi
6524 fi
6525 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6526 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6527 if test -r $srcdir/$dirname/configure ; then
6528 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6529 true
6530 else
6531 notsupp="$notsupp $dir"
6532 fi
6533 fi
6534 fi
6535done
6536
6537# Quietly strip out all directories which aren't configurable in this tree.
6538# This relies on all configurable subdirectories being autoconfiscated, which
6539# is now the case.
6540build_configdirs_all="$build_configdirs"
6541build_configdirs=
6542for i in ${build_configdirs_all} ; do
6543 j=`echo $i | sed -e s/build-//g`
6544 if test -f ${srcdir}/$j/configure ; then
6545 build_configdirs="${build_configdirs} $i"
6546 fi
6547done
6548
6549configdirs_all="$configdirs"
6550configdirs=
6551for i in ${configdirs_all} ; do
6552 if test -f ${srcdir}/$i/configure ; then
6553 configdirs="${configdirs} $i"
6554 fi
6555done
6556
6557target_configdirs_all="$target_configdirs"
6558target_configdirs=
6559for i in ${target_configdirs_all} ; do
6560 j=`echo $i | sed -e s/target-//g`
6561 if test -f ${srcdir}/$j/configure ; then
6562 target_configdirs="${target_configdirs} $i"
6563 fi
6564done
6565
6566# Exclude target-zlib if target-libjava isn't built.
6567case ${target_configdirs} in
6568*target-libjava*)
6569 ;;
6570*)
6571 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6572 ;;
6573esac
6574
6575# libiberty-linker-plugin is special: it doesn't have its own source directory,
6576# so we have to add it after the preceding checks.
6577if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6578then
6579 case " $configdirs " in
6580 *" libiberty "*)
6581 # If we can build libiberty, we can also build libiberty-linker-plugin.
6582 configdirs="$configdirs libiberty-linker-plugin"
6583 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6584 --with-libiberty=../libiberty-linker-plugin";;
6585 *)
6586 as_fn_error "libiberty missing" "$LINENO" 5;;
6587 esac
6588fi
6589
6590# Sometimes we have special requirements for the host libiberty.
6591extra_host_libiberty_configure_flags=
6592extra_host_zlib_configure_flags=
6593case " $configdirs " in
6594 *" lto-plugin "* | *" libcc1 "*)
6595 # When these are to be built as shared libraries, the same applies to
6596 # libiberty.
6597 extra_host_libiberty_configure_flags=--enable-shared
6598 ;;
6599 *" bfd "*)
6600 # When bfd is to be built as a shared library, the same applies to
6601 # zlib.
6602 if test "$enable_shared" = "yes"; then
6603 extra_host_zlib_configure_flags=--enable-host-shared
6604 fi
6605 ;;
6606esac
6607
6608
6609
6610# Produce a warning message for the subdirs we can't configure.
6611# This isn't especially interesting in the Cygnus tree, but in the individual
6612# FSF releases, it's important to let people know when their machine isn't
6613# supported by the one or two programs in a package.
6614
6615if test -n "${notsupp}" && test -z "${norecursion}" ; then
6616 # If $appdirs is non-empty, at least one of those directories must still
6617 # be configured, or we error out. (E.g., if the gas release supports a
6618 # specified target in some subdirs but not the gas subdir, we shouldn't
6619 # pretend that all is well.)
6620 if test -n "$appdirs" ; then
6621 for dir in $appdirs ; do
6622 if test -r $dir/Makefile.in ; then
6623 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6624 appdirs=""
6625 break
6626 fi
6627 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6628 appdirs=""
6629 break
6630 fi
6631 fi
6632 done
6633 if test -n "$appdirs" ; then
6634 echo "*** This configuration is not supported by this package." 1>&2
6635 exit 1
6636 fi
6637 fi
6638 # Okay, some application will build, or we don't care to check. Still
6639 # notify of subdirs not getting built.
6640 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6641 echo " ${notsupp}" 1>&2
6642 echo " (Any other directories should still work fine.)" 1>&2
6643fi
6644
6645case "$host" in
6646 *msdosdjgpp*)
6647 enable_gdbtk=no ;;
6648esac
6649
6650# To find our prefix, in gcc_cv_tool_prefix.
6651
6652# The user is always right.
6653if test "${PATH_SEPARATOR+set}" != set; then
6654 echo "#! /bin/sh" >conf$$.sh
6655 echo "exit 0" >>conf$$.sh
6656 chmod +x conf$$.sh
6657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6658 PATH_SEPARATOR=';'
6659 else
6660 PATH_SEPARATOR=:
6661 fi
6662 rm -f conf$$.sh
6663fi
6664
6665
6666
6667if test "x$exec_prefix" = xNONE; then
6668 if test "x$prefix" = xNONE; then
6669 gcc_cv_tool_prefix=$ac_default_prefix
6670 else
6671 gcc_cv_tool_prefix=$prefix
6672 fi
6673else
6674 gcc_cv_tool_prefix=$exec_prefix
6675fi
6676
6677# If there is no compiler in the tree, use the PATH only. In any
6678# case, if there is no compiler in the tree nobody should use
6679# AS_FOR_TARGET and LD_FOR_TARGET.
6680if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6681 gcc_version=`cat $srcdir/gcc/BASE-VER`
6682 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6683 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6684 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6685 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6686 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6687 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6688else
6689 gcc_cv_tool_dirs=
6690fi
6691
6692if test x$build = x$target && test -n "$md_exec_prefix"; then
6693 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6694fi
6695
6696
6697
6698copy_dirs=
6699
6700
6701# Check whether --with-build-sysroot was given.
6702if test "${with_build_sysroot+set}" = set; then :
6703 withval=$with_build_sysroot; if test x"$withval" != x ; then
6704 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6705 fi
6706else
6707 SYSROOT_CFLAGS_FOR_TARGET=
6708fi
6709
6710
6711
6712
6713# Check whether --with-debug-prefix-map was given.
6714if test "${with_debug_prefix_map+set}" = set; then :
6715 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6716 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6717 for debug_map in $withval; do
6718 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6719 done
6720 fi
6721else
6722 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6723fi
6724
6725
6726
6727# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6728# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6729# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6730# We want to ensure that TARGET libraries (which we know are built with
6731# gcc) are built with "-O2 -g", so include those options when setting
6732# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6733if test "x$CFLAGS_FOR_TARGET" = x; then
6734 if test "x${is_cross_compiler}" = xyes; then
6735 CFLAGS_FOR_TARGET="-g -O2"
6736 else
6737 CFLAGS_FOR_TARGET=$CFLAGS
6738 case " $CFLAGS " in
6739 *" -O2 "*) ;;
6740 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6741 esac
6742 case " $CFLAGS " in
6743 *" -g "* | *" -g3 "*) ;;
6744 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6745 esac
6746 fi
6747fi
6748
6749
6750if test "x$CXXFLAGS_FOR_TARGET" = x; then
6751 if test "x${is_cross_compiler}" = xyes; then
6752 CXXFLAGS_FOR_TARGET="-g -O2"
6753 else
6754 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6755 case " $CXXFLAGS " in
6756 *" -O2 "*) ;;
6757 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6758 esac
6759 case " $CXXFLAGS " in
6760 *" -g "* | *" -g3 "*) ;;
6761 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6762 esac
6763 fi
6764fi
6765
6766
6767
6768
6769# Handle --with-headers=XXX. If the value is not "yes", the contents of
6770# the named directory are copied to $(tooldir)/sys-include.
6771if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6772 if test x${is_cross_compiler} = xno ; then
6773 echo 1>&2 '***' --with-headers is only supported when cross compiling
6774 exit 1
6775 fi
6776 if test x"${with_headers}" != xyes ; then
6777 x=${gcc_cv_tool_prefix}
6778 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6779 fi
6780fi
6781
6782# Handle --with-libs=XXX. If the value is not "yes", the contents of
6783# the name directories are copied to $(tooldir)/lib. Multiple directories
6784# are permitted.
6785if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6786 if test x${is_cross_compiler} = xno ; then
6787 echo 1>&2 '***' --with-libs is only supported when cross compiling
6788 exit 1
6789 fi
6790 if test x"${with_libs}" != xyes ; then
6791 # Copy the libraries in reverse order, so that files in the first named
6792 # library override files in subsequent libraries.
6793 x=${gcc_cv_tool_prefix}
6794 for l in ${with_libs}; do
6795 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6796 done
6797 fi
6798fi
6799
6800# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6801#
6802# This is done by determining whether or not the appropriate directory
6803# is available, and by checking whether or not specific configurations
6804# have requested that this magic not happen.
6805#
6806# The command line options always override the explicit settings in
6807# configure.in, and the settings in configure.in override this magic.
6808#
6809# If the default for a toolchain is to use GNU as and ld, and you don't
6810# want to do that, then you should use the --without-gnu-as and
6811# --without-gnu-ld options for the configure script. Similarly, if
6812# the default is to use the included zlib and you don't want to do that,
6813# you should use the --with-system-zlib option for the configure script.
6814
6815if test x${use_gnu_as} = x &&
6816 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6817 with_gnu_as=yes
6818 extra_host_args="$extra_host_args --with-gnu-as"
6819fi
6820
6821if test x${use_gnu_ld} = x &&
6822 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6823 with_gnu_ld=yes
6824 extra_host_args="$extra_host_args --with-gnu-ld"
6825fi
6826
6827if test x${use_included_zlib} = x &&
6828 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6829 :
6830else
6831 with_system_zlib=yes
6832 extra_host_args="$extra_host_args --with-system-zlib"
6833fi
6834
6835# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6836# can detect this case.
6837
6838if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6839 with_newlib=yes
6840 extra_host_args="$extra_host_args --with-newlib"
6841fi
6842
6843# Handle ${copy_dirs}
6844set fnord ${copy_dirs}
6845shift
6846while test $# != 0 ; do
6847 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6848 :
6849 else
6850 echo Copying $1 to $2
6851
6852 # Use the install script to create the directory and all required
6853 # parent directories.
6854 if test -d $2 ; then
6855 :
6856 else
6857 echo >config.temp
6858 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6859 fi
6860
6861 # Copy the directory, assuming we have tar.
6862 # FIXME: Should we use B in the second tar? Not all systems support it.
6863 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6864
6865 # It is the responsibility of the user to correctly adjust all
6866 # symlinks. If somebody can figure out how to handle them correctly
6867 # here, feel free to add the code.
6868
6869 echo $1 > $2/COPIED
6870 fi
6871 shift; shift
6872done
6873
6874# Determine a target-dependent exec_prefix that the installed
6875# gcc will search in. Keep this list sorted by triplet, with
6876# the *-*-osname triplets last.
6877md_exec_prefix=
6878case "${target}" in
6879 i[34567]86-pc-msdosdjgpp*)
6880 md_exec_prefix=/dev/env/DJDIR/bin
6881 ;;
6882 *-*-hpux* | \
6883 *-*-nto-qnx* | \
6884 *-*-solaris2*)
6885 md_exec_prefix=/usr/ccs/bin
6886 ;;
6887esac
6888
6889extra_arflags_for_target=
6890extra_nmflags_for_target=
6891extra_ranlibflags_for_target=
6892target_makefile_frag=/dev/null
6893case "${target}" in
6894 spu-*-*)
6895 target_makefile_frag="config/mt-spu"
6896 ;;
6897 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6898 target_makefile_frag="config/mt-sde"
6899 ;;
6900 mipsisa*-*-elfoabi*)
6901 target_makefile_frag="config/mt-mips-elfoabi"
6902 ;;
6903 mips*-*-*linux* | mips*-*-gnu*)
6904 target_makefile_frag="config/mt-mips-gnu"
6905 ;;
6906 nios2-*-elf*)
6907 target_makefile_frag="config/mt-nios2-elf"
6908 ;;
6909 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6910 target_makefile_frag="config/mt-gnu"
6911 ;;
6912 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6913 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6914 # commands to handle both 32-bit and 64-bit objects. These flags are
6915 # harmless if we're using GNU nm or ar.
6916 extra_arflags_for_target=" -X32_64"
6917 extra_nmflags_for_target=" -B -X32_64"
6918 ;;
6919esac
6920
6921alphaieee_frag=/dev/null
6922case $target in
6923 alpha*-*-*)
6924 # This just makes sure to use the -mieee option to build target libs.
6925 # This should probably be set individually by each library.
6926 alphaieee_frag="config/mt-alphaieee"
6927 ;;
6928esac
6929
6930# If --enable-target-optspace always use -Os instead of -O2 to build
6931# the target libraries, similarly if it is not specified, use -Os
6932# on selected platforms.
6933ospace_frag=/dev/null
6934case "${enable_target_optspace}:${target}" in
6935 yes:*)
6936 ospace_frag="config/mt-ospace"
6937 ;;
6938 :d30v-*)
6939 ospace_frag="config/mt-d30v"
6940 ;;
6941 :m32r-* | :d10v-* | :fr30-*)
6942 ospace_frag="config/mt-ospace"
6943 ;;
6944 no:* | :*)
6945 ;;
6946 *)
6947 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6948 ;;
6949esac
6950
6951# Some systems (e.g., one of the i386-aix systems the gas testers are
6952# using) don't handle "\$" correctly, so don't use it here.
6953tooldir='${exec_prefix}'/${target_noncanonical}
6954build_tooldir=${tooldir}
6955
6956# Create a .gdbinit file which runs the one in srcdir
6957# and tells GDB to look there for source files.
6958
6959if test -r ${srcdir}/.gdbinit ; then
6960 case ${srcdir} in
6961 .) ;;
6962 *) cat > ./.gdbinit <<EOF
6963# ${NO_EDIT}
6964dir ${srcdir}
6965dir .
6966source ${srcdir}/.gdbinit
6967EOF
6968 ;;
6969 esac
6970fi
6971
6972# Make sure that the compiler is able to generate an executable. If it
6973# can't, we are probably in trouble. We don't care whether we can run the
6974# executable--we might be using a cross compiler--we only care whether it
6975# can be created. At this point the main configure script has set CC.
6976we_are_ok=no
6977echo "int main () { return 0; }" > conftest.c
6978${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6979if test $? = 0 ; then
6980 if test -s conftest || test -s conftest.exe ; then
6981 we_are_ok=yes
6982 fi
6983fi
6984case $we_are_ok in
6985 no)
6986 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6987 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6988 rm -f conftest*
6989 exit 1
6990 ;;
6991esac
6992rm -f conftest*
6993
6994# Decide which environment variable is used to find dynamic libraries.
6995case "${host}" in
6996 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6997 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6998 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6999 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7000esac
7001
7002# On systems where the dynamic library environment variable is PATH,
7003# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7004# built executables to PATH.
7005if test "$RPATH_ENVVAR" = PATH; then
7006 GCC_SHLIB_SUBDIR=/shlib
7007else
7008 GCC_SHLIB_SUBDIR=
7009fi
7010
7011# Adjust the toplevel makefile according to whether bootstrap was selected.
7012case $enable_bootstrap in
7013 yes)
7014 bootstrap_suffix=bootstrap
7015 BUILD_CONFIG=bootstrap-debug
7016 ;;
7017 no)
7018 bootstrap_suffix=no-bootstrap
7019 BUILD_CONFIG=
7020 ;;
7021esac
7022
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7024$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7025
7026
7027# Check whether --with-build-config was given.
7028if test "${with_build_config+set}" = set; then :
7029 withval=$with_build_config; case $with_build_config in
7030 yes) with_build_config= ;;
7031 no) with_build_config= BUILD_CONFIG= ;;
7032 esac
7033fi
7034
7035
7036if test "x${with_build_config}" != x; then
7037 BUILD_CONFIG=$with_build_config
7038else
7039 case $BUILD_CONFIG in
7040 bootstrap-debug)
7041 if echo "int f (void) { return 0; }" > conftest.c &&
7042 ${CC} -c conftest.c &&
7043 mv conftest.o conftest.o.g0 &&
7044 ${CC} -c -g conftest.c &&
7045 mv conftest.o conftest.o.g &&
7046 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7047 :
7048 else
7049 BUILD_CONFIG=
7050 fi
7051 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7052 ;;
7053 esac
7054fi
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7056$as_echo "$BUILD_CONFIG" >&6; }
7057
7058
7059# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7061$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7062# Check whether --enable-vtable-verify was given.
7063if test "${enable_vtable_verify+set}" = set; then :
7064 enableval=$enable_vtable_verify; case "$enableval" in
7065 yes) enable_vtable_verify=yes ;;
7066 no) enable_vtable_verify=no ;;
7067 *) enable_vtable_verify=no;;
7068 esac
7069else
7070 enable_vtable_verify=no
7071fi
7072
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7074$as_echo "$enable_vtable_verify" >&6; }
7075
7076# Record target_configdirs and the configure arguments for target and
7077# build configuration in Makefile.
7078target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7079build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7080bootstrap_fixincludes=no
7081
7082# If we are building libgomp, bootstrap it.
7083if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7084 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7085fi
7086
7087# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7088# or bootstrap-ubsan, bootstrap it.
7089if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7090 case "$BUILD_CONFIG" in
7091 *bootstrap-asan* | *bootstrap-ubsan* )
7092 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7093 bootstrap_fixincludes=yes
7094 ;;
7095 esac
7096fi
7097
7098# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7099if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7100 test "$enable_vtable_verify" != no; then
7101 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7102fi
7103
7104# If we are building libmpx, bootstrap it.
7105if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7106 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7107fi
7108
7109# Determine whether gdb needs tk/tcl or not.
7110# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7111# and in that case we want gdb to be built without tk. Ugh!
7112# In fact I believe gdb is the *only* package directly dependent on tk,
7113# so we should be able to put the 'maybe's in unconditionally and
7114# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7115# 100% sure that that's safe though.
7116
7117gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7118case "$enable_gdbtk" in
7119 no)
7120 GDB_TK="" ;;
7121 yes)
7122 GDB_TK="${gdb_tk}" ;;
7123 *)
7124 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7125 # distro. Eventually someone will fix this and move Insight, nee
7126 # gdbtk to a separate directory.
7127 if test -d ${srcdir}/gdb/gdbtk ; then
7128 GDB_TK="${gdb_tk}"
7129 else
7130 GDB_TK=""
7131 fi
7132 ;;
7133esac
7134CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7135INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7136
7137# Strip out unwanted targets.
7138
7139# While at that, we remove Makefiles if we were started for recursive
7140# configuration, so that the top-level Makefile reconfigures them,
7141# like we used to do when configure itself was recursive.
7142
7143# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7144# but now we're fixing up the Makefile ourselves with the additional
7145# commands passed to AC_CONFIG_FILES. Use separate variables
7146# extrasub-{build,host,target} not because there is any reason to split
7147# the substitutions up that way, but only to remain below the limit of
7148# 99 commands in a script, for HP-UX sed.
7149# Do not nest @if/@endif pairs, because configure will not warn you at all.
7150
7151case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7152 yes:yes:*\ gold\ *:*,c++,*) ;;
7153 yes:yes:*\ gold\ *:*)
7154 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7155 ;;
7156esac
7157
7158extrasub_build=
7159for module in ${build_configdirs} ; do
7160 if test -z "${no_recursion}" \
7161 && test -f ${build_subdir}/${module}/Makefile; then
7162 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7163 rm -f ${build_subdir}/${module}/Makefile
7164 fi
7165 extrasub_build="$extrasub_build
7166/^@if build-$module\$/d
7167/^@endif build-$module\$/d
7168/^@if build-$module-$bootstrap_suffix\$/d
7169/^@endif build-$module-$bootstrap_suffix\$/d"
7170done
7171extrasub_host=
7172for module in ${configdirs} ; do
7173 if test -z "${no_recursion}"; then
7174 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7175 if test -f ${file}; then
7176 echo 1>&2 "*** removing ${file} to force reconfigure"
7177 rm -f ${file}
7178 fi
7179 done
7180 fi
7181 case ${module},${bootstrap_fixincludes} in
7182 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7183 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7184 esac
7185 extrasub_host="$extrasub_host
7186/^@if $module\$/d
7187/^@endif $module\$/d
7188/^@if $module-$host_bootstrap_suffix\$/d
7189/^@endif $module-$host_bootstrap_suffix\$/d"
7190done
7191extrasub_target=
7192for module in ${target_configdirs} ; do
7193 if test -z "${no_recursion}" \
7194 && test -f ${target_subdir}/${module}/Makefile; then
7195 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7196 rm -f ${target_subdir}/${module}/Makefile
7197 fi
7198
7199 # We only bootstrap target libraries listed in bootstrap_target_libs.
7200 case $bootstrap_target_libs in
7201 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7202 *) target_bootstrap_suffix=no-bootstrap ;;
7203 esac
7204
7205 extrasub_target="$extrasub_target
7206/^@if target-$module\$/d
7207/^@endif target-$module\$/d
7208/^@if target-$module-$target_bootstrap_suffix\$/d
7209/^@endif target-$module-$target_bootstrap_suffix\$/d"
7210done
7211
7212# Do the final fixup along with target modules.
7213extrasub_target="$extrasub_target
7214/^@if /,/^@endif /d"
7215
7216# Create the serialization dependencies. This uses a temporary file.
7217
7218# Check whether --enable-serial-configure was given.
7219if test "${enable_serial_configure+set}" = set; then :
7220 enableval=$enable_serial_configure;
7221fi
7222
7223
7224case ${enable_serial_configure} in
7225 yes)
7226 enable_serial_build_configure=yes
7227 enable_serial_host_configure=yes
7228 enable_serial_target_configure=yes
7229 ;;
7230esac
7231
7232# These force 'configure's to be done one at a time, to avoid problems
7233# with contention over a shared config.cache.
7234rm -f serdep.tmp
7235echo '# serdep.tmp' > serdep.tmp
7236olditem=
7237test "x${enable_serial_build_configure}" = xyes &&
7238for item in ${build_configdirs} ; do
7239 case ${olditem} in
7240 "") ;;
7241 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7242 esac
7243 olditem=${item}
7244done
7245olditem=
7246test "x${enable_serial_host_configure}" = xyes &&
7247for item in ${configdirs} ; do
7248 case ${olditem} in
7249 "") ;;
7250 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7251 esac
7252 olditem=${item}
7253done
7254olditem=
7255test "x${enable_serial_target_configure}" = xyes &&
7256for item in ${target_configdirs} ; do
7257 case ${olditem} in
7258 "") ;;
7259 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7260 esac
7261 olditem=${item}
7262done
7263serialization_dependencies=serdep.tmp
7264
7265
7266# Base args. Strip norecursion, cache-file, srcdir, host, build,
7267# target, nonopt, and variable assignments. These are the ones we
7268# might not want to pass down to subconfigures. The exception being
7269# --cache-file=/dev/null, which is used to turn off the use of cache
7270# files altogether, and which should be passed on to subconfigures.
7271# Also strip program-prefix, program-suffix, and program-transform-name,
7272# so that we can pass down a consistent program-transform-name.
7273baseargs=
7274tbaseargs=
7275keep_next=no
7276skip_next=no
7277eval "set -- $ac_configure_args"
7278for ac_arg
7279do
7280 if test X"$skip_next" = X"yes"; then
7281 skip_next=no
7282 continue
7283 fi
7284 if test X"$keep_next" = X"yes"; then
7285 case $ac_arg in
7286 *\'*)
7287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7288 esac
7289 baseargs="$baseargs '$ac_arg'"
7290 tbaseargs="$tbaseargs '$ac_arg'"
7291 keep_next=no
7292 continue
7293 fi
7294
7295 # Handle separated arguments. Based on the logic generated by
7296 # autoconf 2.59.
7297 case $ac_arg in
7298 *=* | --config-cache | -C | -disable-* | --disable-* \
7299 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7300 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7301 | -with-* | --with-* | -without-* | --without-* | --x)
7302 separate_arg=no
7303 ;;
7304 -*)
7305 separate_arg=yes
7306 ;;
7307 *)
7308 separate_arg=no
7309 ;;
7310 esac
7311
7312 skip_targ=no
7313 case $ac_arg in
7314
7315 --with-* | --without-*)
7316 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7317
7318 case $libopt in
7319 *[-_]include)
7320 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7321 ;;
7322 *[-_]lib)
7323 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7324 ;;
7325 *)
7326 lib=$libopt
7327 ;;
7328 esac
7329
7330
7331 case $lib in
7332 mpc | mpfr | gmp | isl)
7333 # If we're processing --with-$lib, --with-$lib-include or
7334 # --with-$lib-lib, for one of the libs above, and target is
7335 # different from host, don't pass the current argument to any
7336 # target library's configure.
7337 if test x$is_cross_compiler = xyes; then
7338 skip_targ=yes
7339 fi
7340 ;;
7341 esac
7342 ;;
7343 esac
7344
7345 case "$ac_arg" in
7346 --cache-file=/dev/null | \
7347 -cache-file=/dev/null )
7348 # Handled here to avoid the test to skip args below.
7349 baseargs="$baseargs '$ac_arg'"
7350 tbaseargs="$tbaseargs '$ac_arg'"
7351 # Assert: $separate_arg should always be no.
7352 keep_next=$separate_arg
7353 ;;
7354 --no*)
7355 continue
7356 ;;
7357 --c* | \
7358 --sr* | \
7359 --ho* | \
7360 --bu* | \
7361 --t* | \
7362 --program-* | \
7363 -cache_file* | \
7364 -srcdir* | \
7365 -host* | \
7366 -build* | \
7367 -target* | \
7368 -program-prefix* | \
7369 -program-suffix* | \
7370 -program-transform-name* )
7371 skip_next=$separate_arg
7372 continue
7373 ;;
7374 -*)
7375 # An option. Add it.
7376 case $ac_arg in
7377 *\'*)
7378 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7379 esac
7380 baseargs="$baseargs '$ac_arg'"
7381 if test X"$skip_targ" = Xno; then
7382 tbaseargs="$tbaseargs '$ac_arg'"
7383 fi
7384 keep_next=$separate_arg
7385 ;;
7386 *)
7387 # Either a variable assignment, or a nonopt (triplet). Don't
7388 # pass it down; let the Makefile handle this.
7389 continue
7390 ;;
7391 esac
7392done
7393# Remove the initial space we just introduced and, as these will be
7394# expanded by make, quote '$'.
7395baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7396
7397# Add in --program-transform-name, after --program-prefix and
7398# --program-suffix have been applied to it. Autoconf has already
7399# doubled dollar signs and backslashes in program_transform_name; we want
7400# the backslashes un-doubled, and then the entire thing wrapped in single
7401# quotes, because this will be expanded first by make and then by the shell.
7402# Also, because we want to override the logic in subdir configure scripts to
7403# choose program_transform_name, replace any s,x,x, with s,y,y,.
7404sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7405${program_transform_name}
7406EOF_SED
7407gcc_transform_name=`cat conftestsed.out`
7408rm -f conftestsed.out
7409baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7410tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7411if test "$silent" = yes; then
7412 baseargs="$baseargs --silent"
7413 tbaseargs="$tbaseargs --silent"
7414fi
7415baseargs="$baseargs --disable-option-checking"
7416tbaseargs="$tbaseargs --disable-option-checking"
7417
7418# Record and document user additions to sub configure arguments.
7419
7420
7421
7422
7423# For the build-side libraries, we just need to pretend we're native,
7424# and not use the same cache file. Multilibs are neither needed nor
7425# desired. We can't even use the same cache file for all build-side
7426# libraries, as they're compiled differently; some with C, some with
7427# C++ or with different feature-enabling options.
7428build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7429
7430# For host modules, accept cache file option, or specification as blank.
7431case "${cache_file}" in
7432"") # empty
7433 cache_file_option="" ;;
7434/* | [A-Za-z]:[\\/]* ) # absolute path
7435 cache_file_option="--cache-file=${cache_file}" ;;
7436*) # relative path
7437 cache_file_option="--cache-file=../${cache_file}" ;;
7438esac
7439
7440# Host dirs don't like to share a cache file either, horribly enough.
7441# This seems to be due to autoconf 2.5x stupidity.
7442host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7443
7444target_configargs="$target_configargs ${tbaseargs}"
7445
7446# Passing a --with-cross-host argument lets the target libraries know
7447# whether they are being built with a cross-compiler or being built
7448# native. However, it would be better to use other mechanisms to make the
7449# sorts of decisions they want to make on this basis. Please consider
7450# this option to be deprecated. FIXME.
7451if test x${is_cross_compiler} = xyes ; then
7452 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7453fi
7454
7455# Special user-friendly check for native x86_64-linux build, if
7456# multilib is not explicitly enabled.
7457case "$target:$have_compiler:$host:$target:$enable_multilib" in
7458 x86_64-*linux*:yes:$build:$build:)
7459 # Make sure we have a developement environment that handles 32-bit
7460 dev64=no
7461 echo "int main () { return 0; }" > conftest.c
7462 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7463 if test $? = 0 ; then
7464 if test -s conftest || test -s conftest.exe ; then
7465 dev64=yes
7466 fi
7467 fi
7468 rm -f conftest*
7469 if test x${dev64} != xyes ; then
7470 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7471 fi
7472 ;;
7473esac
7474
7475# Default to --enable-multilib.
7476if test x${enable_multilib} = x ; then
7477 target_configargs="--enable-multilib ${target_configargs}"
7478fi
7479
7480# Pass --with-newlib if appropriate. Note that target_configdirs has
7481# changed from the earlier setting of with_newlib.
7482if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7483 target_configargs="--with-newlib ${target_configargs}"
7484fi
7485
7486# Different target subdirs use different values of certain variables
7487# (notably CXX). Worse, multilibs use *lots* of different values.
7488# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7489# it doesn't automatically accept command-line overrides of them.
7490# This means it's not safe for target subdirs to share a cache file,
7491# which is disgusting, but there you have it. Hopefully this can be
7492# fixed in future. It's still worthwhile to use a cache file for each
7493# directory. I think.
7494
7495# Pass the appropriate --build, --host, --target and --cache-file arguments.
7496# We need to pass --target, as newer autoconf's requires consistency
7497# for target_alias and gcc doesn't manage it consistently.
7498target_configargs="--cache-file=./config.cache ${target_configargs}"
7499
7500FLAGS_FOR_TARGET=
7501case " $target_configdirs " in
7502 *" newlib "*)
7503 case " $target_configargs " in
7504 *" --with-newlib "*)
7505 case "$target" in
7506 *-cygwin*)
7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7508 ;;
7509 esac
7510
7511 # If we're not building GCC, don't discard standard headers.
7512 if test -d ${srcdir}/gcc; then
7513 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7514
7515 if test "${build}" != "${host}"; then
7516 # On Canadian crosses, CC_FOR_TARGET will have already been set
7517 # by `configure', so we won't have an opportunity to add -Bgcc/
7518 # to it. This is right: we don't want to search that directory
7519 # for binaries, but we want the header files in there, so add
7520 # them explicitly.
7521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7522
7523 # Someone might think of using the pre-installed headers on
7524 # Canadian crosses, in case the installed compiler is not fully
7525 # compatible with the compiler being built. In this case, it
7526 # would be better to flag an error than risking having
7527 # incompatible object files being constructed. We can't
7528 # guarantee that an error will be flagged, but let's hope the
7529 # compiler will do it, when presented with incompatible header
7530 # files.
7531 fi
7532 fi
7533
7534 case "${target}-${is_cross_compiler}" in
7535 i[3456789]86-*-linux*-no)
7536 # Here host == target, so we don't need to build gcc,
7537 # so we don't want to discard standard headers.
7538 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7539 ;;
7540 *)
7541 # If we're building newlib, use its generic headers last, but search
7542 # for any libc-related directories first (so make it the last -B
7543 # switch).
7544 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7545
7546 # If we're building libgloss, find the startup file, simulator library
7547 # and linker script.
7548 case " $target_configdirs " in
7549 *" libgloss "*)
7550 # Look for startup file, simulator library and maybe linker script.
7551 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7552 # Look for libnosys.a in case the target needs it.
7553 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7554 # Most targets have the linker script in the source directory.
7555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7556 ;;
7557 esac
7558 ;;
7559 esac
7560 ;;
7561 esac
7562 ;;
7563esac
7564
7565case "$target" in
7566 x86_64-*mingw* | *-w64-mingw*)
7567 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7568 # however, use a symlink named 'mingw' in ${prefix} .
7569 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7570 ;;
7571 *-mingw*)
7572 # MinGW can't be handled as Cygwin above since it does not use newlib.
7573 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'
7574 ;;
7575esac
7576
7577# Allow the user to override the flags for
7578# our build compiler if desired.
7579if test x"${build}" = x"${host}" ; then
7580 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7581 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7582 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7583fi
7584
7585# On Canadian crosses, we'll be searching the right directories for
7586# the previously-installed cross compiler, so don't bother to add
7587# flags for directories within the install tree of the compiler
7588# being built; programs in there won't even run.
7589if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7590 # Search for pre-installed headers if nothing else fits.
7591 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7592fi
7593
7594if test "x${use_gnu_ld}" = x &&
7595 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7596 # Arrange for us to find uninstalled linker scripts.
7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7598fi
7599
7600# Search for other target-specific linker scripts and such.
7601case "${target}" in
7602 mep*)
7603 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7604 ;;
7605esac
7606
7607# Makefile fragments.
7608for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7609do
7610 eval fragval=\$$frag
7611 if test $fragval != /dev/null; then
7612 eval $frag=${srcdir}/$fragval
7613 fi
7614done
7615
7616
7617
7618
7619
7620# Miscellanea: directories, flags, etc.
7621
7622
7623
7624
7625
7626
7627
7628
7629# Build module lists & subconfigure args.
7630
7631
7632
7633# Host module lists & subconfigure args.
7634
7635
7636
7637
7638# Target module lists & subconfigure args.
7639
7640
7641
7642# Build tools.
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660# Generate default definitions for YACC, M4, LEX and other programs that run
7661# on the build machine. These are used if the Makefile can't locate these
7662# programs in objdir.
7663MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7664
7665for ac_prog in 'bison -y' byacc yacc
7666do
7667 # Extract the first word of "$ac_prog", so it can be a program name with args.
7668set dummy $ac_prog; ac_word=$2
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if test "${ac_cv_prog_YACC+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673else
7674 if test -n "$YACC"; then
7675 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7676else
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_prog_YACC="$ac_prog"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7687 fi
7688done
7689 done
7690IFS=$as_save_IFS
7691
7692fi
7693fi
7694YACC=$ac_cv_prog_YACC
7695if test -n "$YACC"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7697$as_echo "$YACC" >&6; }
7698else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
7701fi
7702
7703
7704 test -n "$YACC" && break
7705done
7706test -n "$YACC" || YACC="$MISSING bison -y"
7707
7708case " $build_configdirs " in
7709 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7710esac
7711
7712for ac_prog in bison
7713do
7714 # Extract the first word of "$ac_prog", so it can be a program name with args.
7715set dummy $ac_prog; ac_word=$2
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717$as_echo_n "checking for $ac_word... " >&6; }
7718if test "${ac_cv_prog_BISON+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720else
7721 if test -n "$BISON"; then
7722 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7723else
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_prog_BISON="$ac_prog"
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735done
7736 done
7737IFS=$as_save_IFS
7738
7739fi
7740fi
7741BISON=$ac_cv_prog_BISON
7742if test -n "$BISON"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7744$as_echo "$BISON" >&6; }
7745else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747$as_echo "no" >&6; }
7748fi
7749
7750
7751 test -n "$BISON" && break
7752done
7753test -n "$BISON" || BISON="$MISSING bison"
7754
7755case " $build_configdirs " in
7756 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7757esac
7758
7759for ac_prog in gm4 gnum4 m4
7760do
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762set dummy $ac_prog; ac_word=$2
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764$as_echo_n "checking for $ac_word... " >&6; }
7765if test "${ac_cv_prog_M4+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767else
7768 if test -n "$M4"; then
7769 ac_cv_prog_M4="$M4" # Let the user override the test.
7770else
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_M4="$ac_prog"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782done
7783 done
7784IFS=$as_save_IFS
7785
7786fi
7787fi
7788M4=$ac_cv_prog_M4
7789if test -n "$M4"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7791$as_echo "$M4" >&6; }
7792else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794$as_echo "no" >&6; }
7795fi
7796
7797
7798 test -n "$M4" && break
7799done
7800test -n "$M4" || M4="$MISSING m4"
7801
7802case " $build_configdirs " in
7803 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7804esac
7805
7806for ac_prog in flex lex
7807do
7808 # Extract the first word of "$ac_prog", so it can be a program name with args.
7809set dummy $ac_prog; ac_word=$2
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811$as_echo_n "checking for $ac_word... " >&6; }
7812if test "${ac_cv_prog_LEX+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7814else
7815 if test -n "$LEX"; then
7816 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7817else
7818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819for as_dir in $PATH
7820do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825 ac_cv_prog_LEX="$ac_prog"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829done
7830 done
7831IFS=$as_save_IFS
7832
7833fi
7834fi
7835LEX=$ac_cv_prog_LEX
7836if test -n "$LEX"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7838$as_echo "$LEX" >&6; }
7839else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841$as_echo "no" >&6; }
7842fi
7843
7844
7845 test -n "$LEX" && break
7846done
7847test -n "$LEX" || LEX="$MISSING flex"
7848
7849case " $build_configdirs " in
7850 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7851 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7852esac
7853
7854for ac_prog in flex
7855do
7856 # Extract the first word of "$ac_prog", so it can be a program name with args.
7857set dummy $ac_prog; ac_word=$2
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859$as_echo_n "checking for $ac_word... " >&6; }
7860if test "${ac_cv_prog_FLEX+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862else
7863 if test -n "$FLEX"; then
7864 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7865else
7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_prog_FLEX="$ac_prog"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877done
7878 done
7879IFS=$as_save_IFS
7880
7881fi
7882fi
7883FLEX=$ac_cv_prog_FLEX
7884if test -n "$FLEX"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7886$as_echo "$FLEX" >&6; }
7887else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889$as_echo "no" >&6; }
7890fi
7891
7892
7893 test -n "$FLEX" && break
7894done
7895test -n "$FLEX" || FLEX="$MISSING flex"
7896
7897case " $build_configdirs " in
7898 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7899esac
7900
7901for ac_prog in makeinfo
7902do
7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
7904set dummy $ac_prog; ac_word=$2
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906$as_echo_n "checking for $ac_word... " >&6; }
7907if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909else
7910 if test -n "$MAKEINFO"; then
7911 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7912else
7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7920 ac_cv_prog_MAKEINFO="$ac_prog"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 break 2
7923 fi
7924done
7925 done
7926IFS=$as_save_IFS
7927
7928fi
7929fi
7930MAKEINFO=$ac_cv_prog_MAKEINFO
7931if test -n "$MAKEINFO"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7933$as_echo "$MAKEINFO" >&6; }
7934else
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936$as_echo "no" >&6; }
7937fi
7938
7939
7940 test -n "$MAKEINFO" && break
7941done
7942test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7943
7944case " $build_configdirs " in
7945 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7946 *)
7947
7948 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7949 # higher, else we use the "missing" dummy.
7950 if ${MAKEINFO} --version \
7951 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7952 :
7953 else
7954 MAKEINFO="$MISSING makeinfo"
7955 fi
7956 ;;
7957
7958esac
7959
7960# FIXME: expect and dejagnu may become build tools?
7961
7962for ac_prog in expect
7963do
7964 # Extract the first word of "$ac_prog", so it can be a program name with args.
7965set dummy $ac_prog; ac_word=$2
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967$as_echo_n "checking for $ac_word... " >&6; }
7968if test "${ac_cv_prog_EXPECT+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970else
7971 if test -n "$EXPECT"; then
7972 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7973else
7974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_prog_EXPECT="$ac_prog"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985done
7986 done
7987IFS=$as_save_IFS
7988
7989fi
7990fi
7991EXPECT=$ac_cv_prog_EXPECT
7992if test -n "$EXPECT"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7994$as_echo "$EXPECT" >&6; }
7995else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997$as_echo "no" >&6; }
7998fi
7999
8000
8001 test -n "$EXPECT" && break
8002done
8003test -n "$EXPECT" || EXPECT="expect"
8004
8005case " $configdirs " in
8006 *" expect "*)
8007 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8008 ;;
8009esac
8010
8011for ac_prog in runtest
8012do
8013 # Extract the first word of "$ac_prog", so it can be a program name with args.
8014set dummy $ac_prog; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8019else
8020 if test -n "$RUNTEST"; then
8021 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8030 ac_cv_prog_RUNTEST="$ac_prog"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034done
8035 done
8036IFS=$as_save_IFS
8037
8038fi
8039fi
8040RUNTEST=$ac_cv_prog_RUNTEST
8041if test -n "$RUNTEST"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8043$as_echo "$RUNTEST" >&6; }
8044else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049
8050 test -n "$RUNTEST" && break
8051done
8052test -n "$RUNTEST" || RUNTEST="runtest"
8053
8054case " $configdirs " in
8055 *" dejagnu "*)
8056 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8057 ;;
8058esac
8059
8060
8061# Host tools.
8062ncn_tool_prefix=
8063test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8064ncn_target_tool_prefix=
8065test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8066
8067
8068
8069if test -n "$AR"; then
8070 ac_cv_prog_AR=$AR
8071elif test -n "$ac_cv_prog_AR"; then
8072 AR=$ac_cv_prog_AR
8073fi
8074
8075if test -n "$ac_cv_prog_AR"; then
8076 for ncn_progname in ar; do
8077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8078set dummy ${ncn_progname}; ac_word=$2
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080$as_echo_n "checking for $ac_word... " >&6; }
8081if test "${ac_cv_prog_AR+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8083else
8084 if test -n "$AR"; then
8085 ac_cv_prog_AR="$AR" # Let the user override the test.
8086else
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094 ac_cv_prog_AR="${ncn_progname}"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098done
8099 done
8100IFS=$as_save_IFS
8101
8102fi
8103fi
8104AR=$ac_cv_prog_AR
8105if test -n "$AR"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8107$as_echo "$AR" >&6; }
8108else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
8111fi
8112
8113
8114 done
8115fi
8116
8117for ncn_progname in ar; do
8118 if test -n "$ncn_tool_prefix"; then
8119 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8120set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
8123if test "${ac_cv_prog_AR+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8125else
8126 if test -n "$AR"; then
8127 ac_cv_prog_AR="$AR" # Let the user override the test.
8128else
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140done
8141 done
8142IFS=$as_save_IFS
8143
8144fi
8145fi
8146AR=$ac_cv_prog_AR
8147if test -n "$AR"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8149$as_echo "$AR" >&6; }
8150else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
8153fi
8154
8155
8156 fi
8157 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8159set dummy ${ncn_progname}; ac_word=$2
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161$as_echo_n "checking for $ac_word... " >&6; }
8162if test "${ac_cv_prog_AR+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
8164else
8165 if test -n "$AR"; then
8166 ac_cv_prog_AR="$AR" # Let the user override the test.
8167else
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8175 ac_cv_prog_AR="${ncn_progname}"
8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179done
8180 done
8181IFS=$as_save_IFS
8182
8183fi
8184fi
8185AR=$ac_cv_prog_AR
8186if test -n "$AR"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8188$as_echo "$AR" >&6; }
8189else
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191$as_echo "no" >&6; }
8192fi
8193
8194
8195 fi
8196 test -n "$ac_cv_prog_AR" && break
8197done
8198
8199if test -z "$ac_cv_prog_AR" ; then
8200 set dummy ar
8201 if test $build = $host ; then
8202 AR="$2"
8203 else
8204 AR="${ncn_tool_prefix}$2"
8205 fi
8206fi
8207
8208
8209
8210if test -n "$AS"; then
8211 ac_cv_prog_AS=$AS
8212elif test -n "$ac_cv_prog_AS"; then
8213 AS=$ac_cv_prog_AS
8214fi
8215
8216if test -n "$ac_cv_prog_AS"; then
8217 for ncn_progname in as; do
8218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8219set dummy ${ncn_progname}; ac_word=$2
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221$as_echo_n "checking for $ac_word... " >&6; }
8222if test "${ac_cv_prog_AS+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8224else
8225 if test -n "$AS"; then
8226 ac_cv_prog_AS="$AS" # Let the user override the test.
8227else
8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235 ac_cv_prog_AS="${ncn_progname}"
8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239done
8240 done
8241IFS=$as_save_IFS
8242
8243fi
8244fi
8245AS=$ac_cv_prog_AS
8246if test -n "$AS"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8248$as_echo "$AS" >&6; }
8249else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251$as_echo "no" >&6; }
8252fi
8253
8254
8255 done
8256fi
8257
8258for ncn_progname in as; do
8259 if test -n "$ncn_tool_prefix"; then
8260 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8261set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263$as_echo_n "checking for $ac_word... " >&6; }
8264if test "${ac_cv_prog_AS+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266else
8267 if test -n "$AS"; then
8268 ac_cv_prog_AS="$AS" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281done
8282 done
8283IFS=$as_save_IFS
8284
8285fi
8286fi
8287AS=$ac_cv_prog_AS
8288if test -n "$AS"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8290$as_echo "$AS" >&6; }
8291else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }
8294fi
8295
8296
8297 fi
8298 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8300set dummy ${ncn_progname}; ac_word=$2
8301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302$as_echo_n "checking for $ac_word... " >&6; }
8303if test "${ac_cv_prog_AS+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305else
8306 if test -n "$AS"; then
8307 ac_cv_prog_AS="$AS" # Let the user override the test.
8308else
8309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316 ac_cv_prog_AS="${ncn_progname}"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8319 fi
8320done
8321 done
8322IFS=$as_save_IFS
8323
8324fi
8325fi
8326AS=$ac_cv_prog_AS
8327if test -n "$AS"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8329$as_echo "$AS" >&6; }
8330else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332$as_echo "no" >&6; }
8333fi
8334
8335
8336 fi
8337 test -n "$ac_cv_prog_AS" && break
8338done
8339
8340if test -z "$ac_cv_prog_AS" ; then
8341 set dummy as
8342 if test $build = $host ; then
8343 AS="$2"
8344 else
8345 AS="${ncn_tool_prefix}$2"
8346 fi
8347fi
8348
8349
8350
8351if test -n "$DLLTOOL"; then
8352 ac_cv_prog_DLLTOOL=$DLLTOOL
8353elif test -n "$ac_cv_prog_DLLTOOL"; then
8354 DLLTOOL=$ac_cv_prog_DLLTOOL
8355fi
8356
8357if test -n "$ac_cv_prog_DLLTOOL"; then
8358 for ncn_progname in dlltool; do
8359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8360set dummy ${ncn_progname}; ac_word=$2
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362$as_echo_n "checking for $ac_word... " >&6; }
8363if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8365else
8366 if test -n "$DLLTOOL"; then
8367 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8368else
8369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_prog_DLLTOOL="${ncn_progname}"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 break 2
8379 fi
8380done
8381 done
8382IFS=$as_save_IFS
8383
8384fi
8385fi
8386DLLTOOL=$ac_cv_prog_DLLTOOL
8387if test -n "$DLLTOOL"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8389$as_echo "$DLLTOOL" >&6; }
8390else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392$as_echo "no" >&6; }
8393fi
8394
8395
8396 done
8397fi
8398
8399for ncn_progname in dlltool; do
8400 if test -n "$ncn_tool_prefix"; then
8401 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8402set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404$as_echo_n "checking for $ac_word... " >&6; }
8405if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8407else
8408 if test -n "$DLLTOOL"; then
8409 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8410else
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422done
8423 done
8424IFS=$as_save_IFS
8425
8426fi
8427fi
8428DLLTOOL=$ac_cv_prog_DLLTOOL
8429if test -n "$DLLTOOL"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8431$as_echo "$DLLTOOL" >&6; }
8432else
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434$as_echo "no" >&6; }
8435fi
8436
8437
8438 fi
8439 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8441set dummy ${ncn_progname}; ac_word=$2
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443$as_echo_n "checking for $ac_word... " >&6; }
8444if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
8446else
8447 if test -n "$DLLTOOL"; then
8448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8449else
8450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8457 ac_cv_prog_DLLTOOL="${ncn_progname}"
8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8460 fi
8461done
8462 done
8463IFS=$as_save_IFS
8464
8465fi
8466fi
8467DLLTOOL=$ac_cv_prog_DLLTOOL
8468if test -n "$DLLTOOL"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8470$as_echo "$DLLTOOL" >&6; }
8471else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473$as_echo "no" >&6; }
8474fi
8475
8476
8477 fi
8478 test -n "$ac_cv_prog_DLLTOOL" && break
8479done
8480
8481if test -z "$ac_cv_prog_DLLTOOL" ; then
8482 set dummy dlltool
8483 if test $build = $host ; then
8484 DLLTOOL="$2"
8485 else
8486 DLLTOOL="${ncn_tool_prefix}$2"
8487 fi
8488fi
8489
8490
8491
8492if test -n "$LD"; then
8493 ac_cv_prog_LD=$LD
8494elif test -n "$ac_cv_prog_LD"; then
8495 LD=$ac_cv_prog_LD
8496fi
8497
8498if test -n "$ac_cv_prog_LD"; then
8499 for ncn_progname in ld; do
8500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8501set dummy ${ncn_progname}; ac_word=$2
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503$as_echo_n "checking for $ac_word... " >&6; }
8504if test "${ac_cv_prog_LD+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506else
8507 if test -n "$LD"; then
8508 ac_cv_prog_LD="$LD" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517 ac_cv_prog_LD="${ncn_progname}"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8520 fi
8521done
8522 done
8523IFS=$as_save_IFS
8524
8525fi
8526fi
8527LD=$ac_cv_prog_LD
8528if test -n "$LD"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8530$as_echo "$LD" >&6; }
8531else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533$as_echo "no" >&6; }
8534fi
8535
8536
8537 done
8538fi
8539
8540for ncn_progname in ld; do
8541 if test -n "$ncn_tool_prefix"; then
8542 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8543set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545$as_echo_n "checking for $ac_word... " >&6; }
8546if test "${ac_cv_prog_LD+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8548else
8549 if test -n "$LD"; then
8550 ac_cv_prog_LD="$LD" # Let the user override the test.
8551else
8552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553for as_dir in $PATH
8554do
8555 IFS=$as_save_IFS
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8559 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 break 2
8562 fi
8563done
8564 done
8565IFS=$as_save_IFS
8566
8567fi
8568fi
8569LD=$ac_cv_prog_LD
8570if test -n "$LD"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8572$as_echo "$LD" >&6; }
8573else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575$as_echo "no" >&6; }
8576fi
8577
8578
8579 fi
8580 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8582set dummy ${ncn_progname}; ac_word=$2
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584$as_echo_n "checking for $ac_word... " >&6; }
8585if test "${ac_cv_prog_LD+set}" = set; then :
8586 $as_echo_n "(cached) " >&6
8587else
8588 if test -n "$LD"; then
8589 ac_cv_prog_LD="$LD" # Let the user override the test.
8590else
8591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592for as_dir in $PATH
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8598 ac_cv_prog_LD="${ncn_progname}"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8601 fi
8602done
8603 done
8604IFS=$as_save_IFS
8605
8606fi
8607fi
8608LD=$ac_cv_prog_LD
8609if test -n "$LD"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8611$as_echo "$LD" >&6; }
8612else
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614$as_echo "no" >&6; }
8615fi
8616
8617
8618 fi
8619 test -n "$ac_cv_prog_LD" && break
8620done
8621
8622if test -z "$ac_cv_prog_LD" ; then
8623 set dummy ld
8624 if test $build = $host ; then
8625 LD="$2"
8626 else
8627 LD="${ncn_tool_prefix}$2"
8628 fi
8629fi
8630
8631
8632
8633if test -n "$LIPO"; then
8634 ac_cv_prog_LIPO=$LIPO
8635elif test -n "$ac_cv_prog_LIPO"; then
8636 LIPO=$ac_cv_prog_LIPO
8637fi
8638
8639if test -n "$ac_cv_prog_LIPO"; then
8640 for ncn_progname in lipo; do
8641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8642set dummy ${ncn_progname}; ac_word=$2
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644$as_echo_n "checking for $ac_word... " >&6; }
8645if test "${ac_cv_prog_LIPO+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8647else
8648 if test -n "$LIPO"; then
8649 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8650else
8651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658 ac_cv_prog_LIPO="${ncn_progname}"
8659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 break 2
8661 fi
8662done
8663 done
8664IFS=$as_save_IFS
8665
8666fi
8667fi
8668LIPO=$ac_cv_prog_LIPO
8669if test -n "$LIPO"; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8671$as_echo "$LIPO" >&6; }
8672else
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674$as_echo "no" >&6; }
8675fi
8676
8677
8678 done
8679fi
8680
8681for ncn_progname in lipo; do
8682 if test -n "$ncn_tool_prefix"; then
8683 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8684set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686$as_echo_n "checking for $ac_word... " >&6; }
8687if test "${ac_cv_prog_LIPO+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
8689else
8690 if test -n "$LIPO"; then
8691 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8692else
8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694for as_dir in $PATH
8695do
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
8698 for ac_exec_ext in '' $ac_executable_extensions; do
8699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 break 2
8703 fi
8704done
8705 done
8706IFS=$as_save_IFS
8707
8708fi
8709fi
8710LIPO=$ac_cv_prog_LIPO
8711if test -n "$LIPO"; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8713$as_echo "$LIPO" >&6; }
8714else
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716$as_echo "no" >&6; }
8717fi
8718
8719
8720 fi
8721 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8723set dummy ${ncn_progname}; ac_word=$2
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725$as_echo_n "checking for $ac_word... " >&6; }
8726if test "${ac_cv_prog_LIPO+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8728else
8729 if test -n "$LIPO"; then
8730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8731else
8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733for as_dir in $PATH
8734do
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739 ac_cv_prog_LIPO="${ncn_progname}"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8742 fi
8743done
8744 done
8745IFS=$as_save_IFS
8746
8747fi
8748fi
8749LIPO=$ac_cv_prog_LIPO
8750if test -n "$LIPO"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8752$as_echo "$LIPO" >&6; }
8753else
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755$as_echo "no" >&6; }
8756fi
8757
8758
8759 fi
8760 test -n "$ac_cv_prog_LIPO" && break
8761done
8762
8763if test -z "$ac_cv_prog_LIPO" ; then
8764 set dummy lipo
8765 if test $build = $host ; then
8766 LIPO="$2"
8767 else
8768 LIPO="${ncn_tool_prefix}$2"
8769 fi
8770fi
8771
8772
8773
8774if test -n "$NM"; then
8775 ac_cv_prog_NM=$NM
8776elif test -n "$ac_cv_prog_NM"; then
8777 NM=$ac_cv_prog_NM
8778fi
8779
8780if test -n "$ac_cv_prog_NM"; then
8781 for ncn_progname in nm; do
8782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8783set dummy ${ncn_progname}; ac_word=$2
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785$as_echo_n "checking for $ac_word... " >&6; }
8786if test "${ac_cv_prog_NM+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8788else
8789 if test -n "$NM"; then
8790 ac_cv_prog_NM="$NM" # Let the user override the test.
8791else
8792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793for as_dir in $PATH
8794do
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8799 ac_cv_prog_NM="${ncn_progname}"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8802 fi
8803done
8804 done
8805IFS=$as_save_IFS
8806
8807fi
8808fi
8809NM=$ac_cv_prog_NM
8810if test -n "$NM"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8812$as_echo "$NM" >&6; }
8813else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815$as_echo "no" >&6; }
8816fi
8817
8818
8819 done
8820fi
8821
8822for ncn_progname in nm; do
8823 if test -n "$ncn_tool_prefix"; then
8824 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8825set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827$as_echo_n "checking for $ac_word... " >&6; }
8828if test "${ac_cv_prog_NM+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8830else
8831 if test -n "$NM"; then
8832 ac_cv_prog_NM="$NM" # Let the user override the test.
8833else
8834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH
8836do
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8841 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845done
8846 done
8847IFS=$as_save_IFS
8848
8849fi
8850fi
8851NM=$ac_cv_prog_NM
8852if test -n "$NM"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8854$as_echo "$NM" >&6; }
8855else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857$as_echo "no" >&6; }
8858fi
8859
8860
8861 fi
8862 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8864set dummy ${ncn_progname}; ac_word=$2
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866$as_echo_n "checking for $ac_word... " >&6; }
8867if test "${ac_cv_prog_NM+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8869else
8870 if test -n "$NM"; then
8871 ac_cv_prog_NM="$NM" # Let the user override the test.
8872else
8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874for as_dir in $PATH
8875do
8876 IFS=$as_save_IFS
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8880 ac_cv_prog_NM="${ncn_progname}"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882 break 2
8883 fi
8884done
8885 done
8886IFS=$as_save_IFS
8887
8888fi
8889fi
8890NM=$ac_cv_prog_NM
8891if test -n "$NM"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8893$as_echo "$NM" >&6; }
8894else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896$as_echo "no" >&6; }
8897fi
8898
8899
8900 fi
8901 test -n "$ac_cv_prog_NM" && break
8902done
8903
8904if test -z "$ac_cv_prog_NM" ; then
8905 set dummy nm
8906 if test $build = $host ; then
8907 NM="$2"
8908 else
8909 NM="${ncn_tool_prefix}$2"
8910 fi
8911fi
8912
8913
8914
8915if test -n "$RANLIB"; then
8916 ac_cv_prog_RANLIB=$RANLIB
8917elif test -n "$ac_cv_prog_RANLIB"; then
8918 RANLIB=$ac_cv_prog_RANLIB
8919fi
8920
8921if test -n "$ac_cv_prog_RANLIB"; then
8922 for ncn_progname in ranlib; do
8923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8924set dummy ${ncn_progname}; ac_word=$2
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926$as_echo_n "checking for $ac_word... " >&6; }
8927if test "${ac_cv_prog_RANLIB+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8929else
8930 if test -n "$RANLIB"; then
8931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8932else
8933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934for as_dir in $PATH
8935do
8936 IFS=$as_save_IFS
8937 test -z "$as_dir" && as_dir=.
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8940 ac_cv_prog_RANLIB="${ncn_progname}"
8941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 break 2
8943 fi
8944done
8945 done
8946IFS=$as_save_IFS
8947
8948fi
8949fi
8950RANLIB=$ac_cv_prog_RANLIB
8951if test -n "$RANLIB"; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8953$as_echo "$RANLIB" >&6; }
8954else
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956$as_echo "no" >&6; }
8957fi
8958
8959
8960 done
8961fi
8962
8963for ncn_progname in ranlib; do
8964 if test -n "$ncn_tool_prefix"; then
8965 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8966set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968$as_echo_n "checking for $ac_word... " >&6; }
8969if test "${ac_cv_prog_RANLIB+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
8971else
8972 if test -n "$RANLIB"; then
8973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8974else
8975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $PATH
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8982 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8985 fi
8986done
8987 done
8988IFS=$as_save_IFS
8989
8990fi
8991fi
8992RANLIB=$ac_cv_prog_RANLIB
8993if test -n "$RANLIB"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8995$as_echo "$RANLIB" >&6; }
8996else
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998$as_echo "no" >&6; }
8999fi
9000
9001
9002 fi
9003 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9005set dummy ${ncn_progname}; ac_word=$2
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007$as_echo_n "checking for $ac_word... " >&6; }
9008if test "${ac_cv_prog_RANLIB+set}" = set; then :
9009 $as_echo_n "(cached) " >&6
9010else
9011 if test -n "$RANLIB"; then
9012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9013else
9014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015for as_dir in $PATH
9016do
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9021 ac_cv_prog_RANLIB="${ncn_progname}"
9022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 break 2
9024 fi
9025done
9026 done
9027IFS=$as_save_IFS
9028
9029fi
9030fi
9031RANLIB=$ac_cv_prog_RANLIB
9032if test -n "$RANLIB"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9034$as_echo "$RANLIB" >&6; }
9035else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
9038fi
9039
9040
9041 fi
9042 test -n "$ac_cv_prog_RANLIB" && break
9043done
9044
9045if test -z "$ac_cv_prog_RANLIB" ; then
9046 RANLIB="true"
9047fi
9048
9049
9050
9051if test -n "$STRIP"; then
9052 ac_cv_prog_STRIP=$STRIP
9053elif test -n "$ac_cv_prog_STRIP"; then
9054 STRIP=$ac_cv_prog_STRIP
9055fi
9056
9057if test -n "$ac_cv_prog_STRIP"; then
9058 for ncn_progname in strip; do
9059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9060set dummy ${ncn_progname}; ac_word=$2
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062$as_echo_n "checking for $ac_word... " >&6; }
9063if test "${ac_cv_prog_STRIP+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9065else
9066 if test -n "$STRIP"; then
9067 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9068else
9069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070for as_dir in $PATH
9071do
9072 IFS=$as_save_IFS
9073 test -z "$as_dir" && as_dir=.
9074 for ac_exec_ext in '' $ac_executable_extensions; do
9075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9076 ac_cv_prog_STRIP="${ncn_progname}"
9077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9078 break 2
9079 fi
9080done
9081 done
9082IFS=$as_save_IFS
9083
9084fi
9085fi
9086STRIP=$ac_cv_prog_STRIP
9087if test -n "$STRIP"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9089$as_echo "$STRIP" >&6; }
9090else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092$as_echo "no" >&6; }
9093fi
9094
9095
9096 done
9097fi
9098
9099for ncn_progname in strip; do
9100 if test -n "$ncn_tool_prefix"; then
9101 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9102set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104$as_echo_n "checking for $ac_word... " >&6; }
9105if test "${ac_cv_prog_STRIP+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9107else
9108 if test -n "$STRIP"; then
9109 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9110else
9111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112for as_dir in $PATH
9113do
9114 IFS=$as_save_IFS
9115 test -z "$as_dir" && as_dir=.
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9118 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120 break 2
9121 fi
9122done
9123 done
9124IFS=$as_save_IFS
9125
9126fi
9127fi
9128STRIP=$ac_cv_prog_STRIP
9129if test -n "$STRIP"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9131$as_echo "$STRIP" >&6; }
9132else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134$as_echo "no" >&6; }
9135fi
9136
9137
9138 fi
9139 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9141set dummy ${ncn_progname}; ac_word=$2
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143$as_echo_n "checking for $ac_word... " >&6; }
9144if test "${ac_cv_prog_STRIP+set}" = set; then :
9145 $as_echo_n "(cached) " >&6
9146else
9147 if test -n "$STRIP"; then
9148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9149else
9150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151for as_dir in $PATH
9152do
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9157 ac_cv_prog_STRIP="${ncn_progname}"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 break 2
9160 fi
9161done
9162 done
9163IFS=$as_save_IFS
9164
9165fi
9166fi
9167STRIP=$ac_cv_prog_STRIP
9168if test -n "$STRIP"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9170$as_echo "$STRIP" >&6; }
9171else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173$as_echo "no" >&6; }
9174fi
9175
9176
9177 fi
9178 test -n "$ac_cv_prog_STRIP" && break
9179done
9180
9181if test -z "$ac_cv_prog_STRIP" ; then
9182 STRIP="true"
9183fi
9184
9185
9186
9187if test -n "$WINDRES"; then
9188 ac_cv_prog_WINDRES=$WINDRES
9189elif test -n "$ac_cv_prog_WINDRES"; then
9190 WINDRES=$ac_cv_prog_WINDRES
9191fi
9192
9193if test -n "$ac_cv_prog_WINDRES"; then
9194 for ncn_progname in windres; do
9195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9196set dummy ${ncn_progname}; ac_word=$2
9197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198$as_echo_n "checking for $ac_word... " >&6; }
9199if test "${ac_cv_prog_WINDRES+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9201else
9202 if test -n "$WINDRES"; then
9203 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9204else
9205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206for as_dir in $PATH
9207do
9208 IFS=$as_save_IFS
9209 test -z "$as_dir" && as_dir=.
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9212 ac_cv_prog_WINDRES="${ncn_progname}"
9213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9214 break 2
9215 fi
9216done
9217 done
9218IFS=$as_save_IFS
9219
9220fi
9221fi
9222WINDRES=$ac_cv_prog_WINDRES
9223if test -n "$WINDRES"; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9225$as_echo "$WINDRES" >&6; }
9226else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228$as_echo "no" >&6; }
9229fi
9230
9231
9232 done
9233fi
9234
9235for ncn_progname in windres; do
9236 if test -n "$ncn_tool_prefix"; then
9237 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9238set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240$as_echo_n "checking for $ac_word... " >&6; }
9241if test "${ac_cv_prog_WINDRES+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9243else
9244 if test -n "$WINDRES"; then
9245 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9246else
9247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248for as_dir in $PATH
9249do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258done
9259 done
9260IFS=$as_save_IFS
9261
9262fi
9263fi
9264WINDRES=$ac_cv_prog_WINDRES
9265if test -n "$WINDRES"; then
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9267$as_echo "$WINDRES" >&6; }
9268else
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270$as_echo "no" >&6; }
9271fi
9272
9273
9274 fi
9275 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9277set dummy ${ncn_progname}; ac_word=$2
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279$as_echo_n "checking for $ac_word... " >&6; }
9280if test "${ac_cv_prog_WINDRES+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9282else
9283 if test -n "$WINDRES"; then
9284 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9285else
9286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287for as_dir in $PATH
9288do
9289 IFS=$as_save_IFS
9290 test -z "$as_dir" && as_dir=.
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9293 ac_cv_prog_WINDRES="${ncn_progname}"
9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295 break 2
9296 fi
9297done
9298 done
9299IFS=$as_save_IFS
9300
9301fi
9302fi
9303WINDRES=$ac_cv_prog_WINDRES
9304if test -n "$WINDRES"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9306$as_echo "$WINDRES" >&6; }
9307else
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309$as_echo "no" >&6; }
9310fi
9311
9312
9313 fi
9314 test -n "$ac_cv_prog_WINDRES" && break
9315done
9316
9317if test -z "$ac_cv_prog_WINDRES" ; then
9318 set dummy windres
9319 if test $build = $host ; then
9320 WINDRES="$2"
9321 else
9322 WINDRES="${ncn_tool_prefix}$2"
9323 fi
9324fi
9325
9326
9327
9328if test -n "$WINDMC"; then
9329 ac_cv_prog_WINDMC=$WINDMC
9330elif test -n "$ac_cv_prog_WINDMC"; then
9331 WINDMC=$ac_cv_prog_WINDMC
9332fi
9333
9334if test -n "$ac_cv_prog_WINDMC"; then
9335 for ncn_progname in windmc; do
9336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9337set dummy ${ncn_progname}; ac_word=$2
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339$as_echo_n "checking for $ac_word... " >&6; }
9340if test "${ac_cv_prog_WINDMC+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9342else
9343 if test -n "$WINDMC"; then
9344 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9345else
9346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347for as_dir in $PATH
9348do
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353 ac_cv_prog_WINDMC="${ncn_progname}"
9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9356 fi
9357done
9358 done
9359IFS=$as_save_IFS
9360
9361fi
9362fi
9363WINDMC=$ac_cv_prog_WINDMC
9364if test -n "$WINDMC"; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9366$as_echo "$WINDMC" >&6; }
9367else
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369$as_echo "no" >&6; }
9370fi
9371
9372
9373 done
9374fi
9375
9376for ncn_progname in windmc; do
9377 if test -n "$ncn_tool_prefix"; then
9378 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9379set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381$as_echo_n "checking for $ac_word... " >&6; }
9382if test "${ac_cv_prog_WINDMC+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9384else
9385 if test -n "$WINDMC"; then
9386 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9387else
9388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389for as_dir in $PATH
9390do
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9398 fi
9399done
9400 done
9401IFS=$as_save_IFS
9402
9403fi
9404fi
9405WINDMC=$ac_cv_prog_WINDMC
9406if test -n "$WINDMC"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9408$as_echo "$WINDMC" >&6; }
9409else
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411$as_echo "no" >&6; }
9412fi
9413
9414
9415 fi
9416 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9418set dummy ${ncn_progname}; ac_word=$2
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420$as_echo_n "checking for $ac_word... " >&6; }
9421if test "${ac_cv_prog_WINDMC+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9423else
9424 if test -n "$WINDMC"; then
9425 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9426else
9427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428for as_dir in $PATH
9429do
9430 IFS=$as_save_IFS
9431 test -z "$as_dir" && as_dir=.
9432 for ac_exec_ext in '' $ac_executable_extensions; do
9433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9434 ac_cv_prog_WINDMC="${ncn_progname}"
9435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436 break 2
9437 fi
9438done
9439 done
9440IFS=$as_save_IFS
9441
9442fi
9443fi
9444WINDMC=$ac_cv_prog_WINDMC
9445if test -n "$WINDMC"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9447$as_echo "$WINDMC" >&6; }
9448else
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450$as_echo "no" >&6; }
9451fi
9452
9453
9454 fi
9455 test -n "$ac_cv_prog_WINDMC" && break
9456done
9457
9458if test -z "$ac_cv_prog_WINDMC" ; then
9459 set dummy windmc
9460 if test $build = $host ; then
9461 WINDMC="$2"
9462 else
9463 WINDMC="${ncn_tool_prefix}$2"
9464 fi
9465fi
9466
9467
9468
9469if test -n "$OBJCOPY"; then
9470 ac_cv_prog_OBJCOPY=$OBJCOPY
9471elif test -n "$ac_cv_prog_OBJCOPY"; then
9472 OBJCOPY=$ac_cv_prog_OBJCOPY
9473fi
9474
9475if test -n "$ac_cv_prog_OBJCOPY"; then
9476 for ncn_progname in objcopy; do
9477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9478set dummy ${ncn_progname}; ac_word=$2
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480$as_echo_n "checking for $ac_word... " >&6; }
9481if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9482 $as_echo_n "(cached) " >&6
9483else
9484 if test -n "$OBJCOPY"; then
9485 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9486else
9487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488for as_dir in $PATH
9489do
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9494 ac_cv_prog_OBJCOPY="${ncn_progname}"
9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496 break 2
9497 fi
9498done
9499 done
9500IFS=$as_save_IFS
9501
9502fi
9503fi
9504OBJCOPY=$ac_cv_prog_OBJCOPY
9505if test -n "$OBJCOPY"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9507$as_echo "$OBJCOPY" >&6; }
9508else
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510$as_echo "no" >&6; }
9511fi
9512
9513
9514 done
9515fi
9516
9517for ncn_progname in objcopy; do
9518 if test -n "$ncn_tool_prefix"; then
9519 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9520set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522$as_echo_n "checking for $ac_word... " >&6; }
9523if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9525else
9526 if test -n "$OBJCOPY"; then
9527 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9528else
9529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530for as_dir in $PATH
9531do
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9539 fi
9540done
9541 done
9542IFS=$as_save_IFS
9543
9544fi
9545fi
9546OBJCOPY=$ac_cv_prog_OBJCOPY
9547if test -n "$OBJCOPY"; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9549$as_echo "$OBJCOPY" >&6; }
9550else
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552$as_echo "no" >&6; }
9553fi
9554
9555
9556 fi
9557 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9559set dummy ${ncn_progname}; ac_word=$2
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561$as_echo_n "checking for $ac_word... " >&6; }
9562if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9563 $as_echo_n "(cached) " >&6
9564else
9565 if test -n "$OBJCOPY"; then
9566 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9567else
9568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569for as_dir in $PATH
9570do
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575 ac_cv_prog_OBJCOPY="${ncn_progname}"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9578 fi
9579done
9580 done
9581IFS=$as_save_IFS
9582
9583fi
9584fi
9585OBJCOPY=$ac_cv_prog_OBJCOPY
9586if test -n "$OBJCOPY"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9588$as_echo "$OBJCOPY" >&6; }
9589else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591$as_echo "no" >&6; }
9592fi
9593
9594
9595 fi
9596 test -n "$ac_cv_prog_OBJCOPY" && break
9597done
9598
9599if test -z "$ac_cv_prog_OBJCOPY" ; then
9600 set dummy objcopy
9601 if test $build = $host ; then
9602 OBJCOPY="$2"
9603 else
9604 OBJCOPY="${ncn_tool_prefix}$2"
9605 fi
9606fi
9607
9608
9609
9610if test -n "$OBJDUMP"; then
9611 ac_cv_prog_OBJDUMP=$OBJDUMP
9612elif test -n "$ac_cv_prog_OBJDUMP"; then
9613 OBJDUMP=$ac_cv_prog_OBJDUMP
9614fi
9615
9616if test -n "$ac_cv_prog_OBJDUMP"; then
9617 for ncn_progname in objdump; do
9618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9619set dummy ${ncn_progname}; ac_word=$2
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621$as_echo_n "checking for $ac_word... " >&6; }
9622if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9624else
9625 if test -n "$OBJDUMP"; then
9626 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9627else
9628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $PATH
9630do
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9635 ac_cv_prog_OBJDUMP="${ncn_progname}"
9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9638 fi
9639done
9640 done
9641IFS=$as_save_IFS
9642
9643fi
9644fi
9645OBJDUMP=$ac_cv_prog_OBJDUMP
9646if test -n "$OBJDUMP"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9648$as_echo "$OBJDUMP" >&6; }
9649else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651$as_echo "no" >&6; }
9652fi
9653
9654
9655 done
9656fi
9657
9658for ncn_progname in objdump; do
9659 if test -n "$ncn_tool_prefix"; then
9660 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9661set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663$as_echo_n "checking for $ac_word... " >&6; }
9664if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666else
9667 if test -n "$OBJDUMP"; then
9668 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9669else
9670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671for as_dir in $PATH
9672do
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9677 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9680 fi
9681done
9682 done
9683IFS=$as_save_IFS
9684
9685fi
9686fi
9687OBJDUMP=$ac_cv_prog_OBJDUMP
9688if test -n "$OBJDUMP"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9690$as_echo "$OBJDUMP" >&6; }
9691else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693$as_echo "no" >&6; }
9694fi
9695
9696
9697 fi
9698 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9700set dummy ${ncn_progname}; ac_word=$2
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702$as_echo_n "checking for $ac_word... " >&6; }
9703if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9704 $as_echo_n "(cached) " >&6
9705else
9706 if test -n "$OBJDUMP"; then
9707 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9708else
9709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710for as_dir in $PATH
9711do
9712 IFS=$as_save_IFS
9713 test -z "$as_dir" && as_dir=.
9714 for ac_exec_ext in '' $ac_executable_extensions; do
9715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9716 ac_cv_prog_OBJDUMP="${ncn_progname}"
9717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 break 2
9719 fi
9720done
9721 done
9722IFS=$as_save_IFS
9723
9724fi
9725fi
9726OBJDUMP=$ac_cv_prog_OBJDUMP
9727if test -n "$OBJDUMP"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9729$as_echo "$OBJDUMP" >&6; }
9730else
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732$as_echo "no" >&6; }
9733fi
9734
9735
9736 fi
9737 test -n "$ac_cv_prog_OBJDUMP" && break
9738done
9739
9740if test -z "$ac_cv_prog_OBJDUMP" ; then
9741 set dummy objdump
9742 if test $build = $host ; then
9743 OBJDUMP="$2"
9744 else
9745 OBJDUMP="${ncn_tool_prefix}$2"
9746 fi
9747fi
9748
9749
9750
9751if test -n "$READELF"; then
9752 ac_cv_prog_READELF=$READELF
9753elif test -n "$ac_cv_prog_READELF"; then
9754 READELF=$ac_cv_prog_READELF
9755fi
9756
9757if test -n "$ac_cv_prog_READELF"; then
9758 for ncn_progname in readelf; do
9759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9760set dummy ${ncn_progname}; ac_word=$2
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762$as_echo_n "checking for $ac_word... " >&6; }
9763if test "${ac_cv_prog_READELF+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
9765else
9766 if test -n "$READELF"; then
9767 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9768else
9769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770for as_dir in $PATH
9771do
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9776 ac_cv_prog_READELF="${ncn_progname}"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9779 fi
9780done
9781 done
9782IFS=$as_save_IFS
9783
9784fi
9785fi
9786READELF=$ac_cv_prog_READELF
9787if test -n "$READELF"; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9789$as_echo "$READELF" >&6; }
9790else
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792$as_echo "no" >&6; }
9793fi
9794
9795
9796 done
9797fi
9798
9799for ncn_progname in readelf; do
9800 if test -n "$ncn_tool_prefix"; then
9801 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9802set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804$as_echo_n "checking for $ac_word... " >&6; }
9805if test "${ac_cv_prog_READELF+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807else
9808 if test -n "$READELF"; then
9809 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9810else
9811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in $PATH
9813do
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9821 fi
9822done
9823 done
9824IFS=$as_save_IFS
9825
9826fi
9827fi
9828READELF=$ac_cv_prog_READELF
9829if test -n "$READELF"; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9831$as_echo "$READELF" >&6; }
9832else
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834$as_echo "no" >&6; }
9835fi
9836
9837
9838 fi
9839 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9841set dummy ${ncn_progname}; ac_word=$2
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843$as_echo_n "checking for $ac_word... " >&6; }
9844if test "${ac_cv_prog_READELF+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9846else
9847 if test -n "$READELF"; then
9848 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9849else
9850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851for as_dir in $PATH
9852do
9853 IFS=$as_save_IFS
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
9856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9857 ac_cv_prog_READELF="${ncn_progname}"
9858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 break 2
9860 fi
9861done
9862 done
9863IFS=$as_save_IFS
9864
9865fi
9866fi
9867READELF=$ac_cv_prog_READELF
9868if test -n "$READELF"; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9870$as_echo "$READELF" >&6; }
9871else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873$as_echo "no" >&6; }
9874fi
9875
9876
9877 fi
9878 test -n "$ac_cv_prog_READELF" && break
9879done
9880
9881if test -z "$ac_cv_prog_READELF" ; then
9882 set dummy readelf
9883 if test $build = $host ; then
9884 READELF="$2"
9885 else
9886 READELF="${ncn_tool_prefix}$2"
9887 fi
9888fi
9889
9890
9891
9892
9893
9894
9895# Target tools.
9896
9897# Check whether --with-build-time-tools was given.
9898if test "${with_build_time_tools+set}" = set; then :
9899 withval=$with_build_time_tools; case x"$withval" in
9900 x/*) ;;
9901 *)
9902 with_build_time_tools=
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9904$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9905 ;;
9906 esac
9907else
9908 with_build_time_tools=
9909fi
9910
9911
9912
9913
9914if test -n "$CC_FOR_TARGET"; then
9915 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9916elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9917 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9918fi
9919
9920if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9921 for ncn_progname in cc gcc; do
9922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9923set dummy ${ncn_progname}; ac_word=$2
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925$as_echo_n "checking for $ac_word... " >&6; }
9926if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9928else
9929 if test -n "$CC_FOR_TARGET"; then
9930 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9931else
9932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933for as_dir in $PATH
9934do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9942 fi
9943done
9944 done
9945IFS=$as_save_IFS
9946
9947fi
9948fi
9949CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9950if test -n "$CC_FOR_TARGET"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9952$as_echo "$CC_FOR_TARGET" >&6; }
9953else
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955$as_echo "no" >&6; }
9956fi
9957
9958
9959 done
9960fi
9961
9962if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9963 for ncn_progname in cc gcc; do
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9965$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9966 if test -x $with_build_time_tools/${ncn_progname}; then
9967 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9969$as_echo "yes" >&6; }
9970 break
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973$as_echo "no" >&6; }
9974 fi
9975 done
9976fi
9977
9978if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9979 for ncn_progname in cc gcc; do
9980 if test -n "$ncn_target_tool_prefix"; then
9981 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9982set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984$as_echo_n "checking for $ac_word... " >&6; }
9985if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9987else
9988 if test -n "$CC_FOR_TARGET"; then
9989 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9990else
9991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992for as_dir in $PATH
9993do
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
9996 for ac_exec_ext in '' $ac_executable_extensions; do
9997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9998 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10000 break 2
10001 fi
10002done
10003 done
10004IFS=$as_save_IFS
10005
10006fi
10007fi
10008CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10009if test -n "$CC_FOR_TARGET"; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10011$as_echo "$CC_FOR_TARGET" >&6; }
10012else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014$as_echo "no" >&6; }
10015fi
10016
10017
10018 fi
10019 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10021set dummy ${ncn_progname}; ac_word=$2
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023$as_echo_n "checking for $ac_word... " >&6; }
10024if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
10026else
10027 if test -n "$CC_FOR_TARGET"; then
10028 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10029else
10030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031for as_dir in $PATH
10032do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10040 fi
10041done
10042 done
10043IFS=$as_save_IFS
10044
10045fi
10046fi
10047CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10048if test -n "$CC_FOR_TARGET"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10050$as_echo "$CC_FOR_TARGET" >&6; }
10051else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053$as_echo "no" >&6; }
10054fi
10055
10056
10057 fi
10058 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10059 done
10060fi
10061
10062if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10063 set dummy cc gcc
10064 if test $build = $target ; then
10065 CC_FOR_TARGET="$2"
10066 else
10067 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10068 fi
10069else
10070 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10071fi
10072
10073
10074
10075if test -n "$CXX_FOR_TARGET"; then
10076 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10077elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10078 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10079fi
10080
10081if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10082 for ncn_progname in c++ g++ cxx gxx; do
10083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10084set dummy ${ncn_progname}; ac_word=$2
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086$as_echo_n "checking for $ac_word... " >&6; }
10087if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10088 $as_echo_n "(cached) " >&6
10089else
10090 if test -n "$CXX_FOR_TARGET"; then
10091 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10092else
10093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094for as_dir in $PATH
10095do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10100 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 break 2
10103 fi
10104done
10105 done
10106IFS=$as_save_IFS
10107
10108fi
10109fi
10110CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10111if test -n "$CXX_FOR_TARGET"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10113$as_echo "$CXX_FOR_TARGET" >&6; }
10114else
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
10117fi
10118
10119
10120 done
10121fi
10122
10123if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10124 for ncn_progname in c++ g++ cxx gxx; do
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10126$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10127 if test -x $with_build_time_tools/${ncn_progname}; then
10128 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10130$as_echo "yes" >&6; }
10131 break
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134$as_echo "no" >&6; }
10135 fi
10136 done
10137fi
10138
10139if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10140 for ncn_progname in c++ g++ cxx gxx; do
10141 if test -n "$ncn_target_tool_prefix"; then
10142 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10143set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145$as_echo_n "checking for $ac_word... " >&6; }
10146if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10148else
10149 if test -n "$CXX_FOR_TARGET"; then
10150 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10151else
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163done
10164 done
10165IFS=$as_save_IFS
10166
10167fi
10168fi
10169CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10170if test -n "$CXX_FOR_TARGET"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10172$as_echo "$CXX_FOR_TARGET" >&6; }
10173else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
10176fi
10177
10178
10179 fi
10180 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10182set dummy ${ncn_progname}; ac_word=$2
10183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184$as_echo_n "checking for $ac_word... " >&6; }
10185if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
10187else
10188 if test -n "$CXX_FOR_TARGET"; then
10189 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10190else
10191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192for as_dir in $PATH
10193do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10198 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10200 break 2
10201 fi
10202done
10203 done
10204IFS=$as_save_IFS
10205
10206fi
10207fi
10208CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10209if test -n "$CXX_FOR_TARGET"; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10211$as_echo "$CXX_FOR_TARGET" >&6; }
10212else
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10214$as_echo "no" >&6; }
10215fi
10216
10217
10218 fi
10219 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10220 done
10221fi
10222
10223if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10224 set dummy c++ g++ cxx gxx
10225 if test $build = $target ; then
10226 CXX_FOR_TARGET="$2"
10227 else
10228 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10229 fi
10230else
10231 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10232fi
10233
10234
10235
10236if test -n "$GCC_FOR_TARGET"; then
10237 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10238elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10239 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10240fi
10241
10242if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10243 for ncn_progname in gcc; do
10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10245set dummy ${ncn_progname}; ac_word=$2
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247$as_echo_n "checking for $ac_word... " >&6; }
10248if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10250else
10251 if test -n "$GCC_FOR_TARGET"; then
10252 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10253else
10254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10261 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10263 break 2
10264 fi
10265done
10266 done
10267IFS=$as_save_IFS
10268
10269fi
10270fi
10271GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10272if test -n "$GCC_FOR_TARGET"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10274$as_echo "$GCC_FOR_TARGET" >&6; }
10275else
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277$as_echo "no" >&6; }
10278fi
10279
10280
10281 done
10282fi
10283
10284if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10285 for ncn_progname in gcc; do
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10287$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10288 if test -x $with_build_time_tools/${ncn_progname}; then
10289 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10291$as_echo "yes" >&6; }
10292 break
10293 else
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10295$as_echo "no" >&6; }
10296 fi
10297 done
10298fi
10299
10300if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10301 for ncn_progname in gcc; do
10302 if test -n "$ncn_target_tool_prefix"; then
10303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10304set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306$as_echo_n "checking for $ac_word... " >&6; }
10307if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
10309else
10310 if test -n "$GCC_FOR_TARGET"; then
10311 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10312else
10313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $PATH
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10323 fi
10324done
10325 done
10326IFS=$as_save_IFS
10327
10328fi
10329fi
10330GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10331if test -n "$GCC_FOR_TARGET"; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10333$as_echo "$GCC_FOR_TARGET" >&6; }
10334else
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336$as_echo "no" >&6; }
10337fi
10338
10339
10340 fi
10341 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10343set dummy ${ncn_progname}; ac_word=$2
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345$as_echo_n "checking for $ac_word... " >&6; }
10346if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10347 $as_echo_n "(cached) " >&6
10348else
10349 if test -n "$GCC_FOR_TARGET"; then
10350 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10351else
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10362 fi
10363done
10364 done
10365IFS=$as_save_IFS
10366
10367fi
10368fi
10369GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10370if test -n "$GCC_FOR_TARGET"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10372$as_echo "$GCC_FOR_TARGET" >&6; }
10373else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375$as_echo "no" >&6; }
10376fi
10377
10378
10379 fi
10380 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10381 done
10382fi
10383
10384if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10385 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10386else
10387 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10388fi
10389
10390
10391
10392if test -n "$GCJ_FOR_TARGET"; then
10393 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10394elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10395 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10396fi
10397
10398if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10399 for ncn_progname in gcj; do
10400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401set dummy ${ncn_progname}; ac_word=$2
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403$as_echo_n "checking for $ac_word... " >&6; }
10404if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406else
10407 if test -n "$GCJ_FOR_TARGET"; then
10408 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
10416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10417 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421done
10422 done
10423IFS=$as_save_IFS
10424
10425fi
10426fi
10427GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10428if test -n "$GCJ_FOR_TARGET"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10430$as_echo "$GCJ_FOR_TARGET" >&6; }
10431else
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433$as_echo "no" >&6; }
10434fi
10435
10436
10437 done
10438fi
10439
10440if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10441 for ncn_progname in gcj; do
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10443$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10444 if test -x $with_build_time_tools/${ncn_progname}; then
10445 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10447$as_echo "yes" >&6; }
10448 break
10449 else
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451$as_echo "no" >&6; }
10452 fi
10453 done
10454fi
10455
10456if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10457 for ncn_progname in gcj; do
10458 if test -n "$ncn_target_tool_prefix"; then
10459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10462$as_echo_n "checking for $ac_word... " >&6; }
10463if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10464 $as_echo_n "(cached) " >&6
10465else
10466 if test -n "$GCJ_FOR_TARGET"; then
10467 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10468else
10469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470for as_dir in $PATH
10471do
10472 IFS=$as_save_IFS
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10476 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478 break 2
10479 fi
10480done
10481 done
10482IFS=$as_save_IFS
10483
10484fi
10485fi
10486GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10487if test -n "$GCJ_FOR_TARGET"; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10489$as_echo "$GCJ_FOR_TARGET" >&6; }
10490else
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492$as_echo "no" >&6; }
10493fi
10494
10495
10496 fi
10497 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10499set dummy ${ncn_progname}; ac_word=$2
10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501$as_echo_n "checking for $ac_word... " >&6; }
10502if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10503 $as_echo_n "(cached) " >&6
10504else
10505 if test -n "$GCJ_FOR_TARGET"; then
10506 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10507else
10508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10515 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10518 fi
10519done
10520 done
10521IFS=$as_save_IFS
10522
10523fi
10524fi
10525GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10526if test -n "$GCJ_FOR_TARGET"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10528$as_echo "$GCJ_FOR_TARGET" >&6; }
10529else
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531$as_echo "no" >&6; }
10532fi
10533
10534
10535 fi
10536 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10537 done
10538fi
10539
10540if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10541 set dummy gcj
10542 if test $build = $target ; then
10543 GCJ_FOR_TARGET="$2"
10544 else
10545 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10546 fi
10547else
10548 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10549fi
10550
10551
10552
10553if test -n "$GFORTRAN_FOR_TARGET"; then
10554 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10555elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10556 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10557fi
10558
10559if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10560 for ncn_progname in gfortran; do
10561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10562set dummy ${ncn_progname}; ac_word=$2
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564$as_echo_n "checking for $ac_word... " >&6; }
10565if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
10567else
10568 if test -n "$GFORTRAN_FOR_TARGET"; then
10569 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10570else
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582done
10583 done
10584IFS=$as_save_IFS
10585
10586fi
10587fi
10588GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10589if test -n "$GFORTRAN_FOR_TARGET"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10591$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10592else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
10595fi
10596
10597
10598 done
10599fi
10600
10601if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10602 for ncn_progname in gfortran; do
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10604$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10605 if test -x $with_build_time_tools/${ncn_progname}; then
10606 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10608$as_echo "yes" >&6; }
10609 break
10610 else
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612$as_echo "no" >&6; }
10613 fi
10614 done
10615fi
10616
10617if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10618 for ncn_progname in gfortran; do
10619 if test -n "$ncn_target_tool_prefix"; then
10620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10621set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623$as_echo_n "checking for $ac_word... " >&6; }
10624if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10626else
10627 if test -n "$GFORTRAN_FOR_TARGET"; then
10628 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10629else
10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10637 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10640 fi
10641done
10642 done
10643IFS=$as_save_IFS
10644
10645fi
10646fi
10647GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10648if test -n "$GFORTRAN_FOR_TARGET"; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10650$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10651else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653$as_echo "no" >&6; }
10654fi
10655
10656
10657 fi
10658 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10660set dummy ${ncn_progname}; ac_word=$2
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662$as_echo_n "checking for $ac_word... " >&6; }
10663if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10665else
10666 if test -n "$GFORTRAN_FOR_TARGET"; then
10667 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10668else
10669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670for as_dir in $PATH
10671do
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10676 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10679 fi
10680done
10681 done
10682IFS=$as_save_IFS
10683
10684fi
10685fi
10686GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10687if test -n "$GFORTRAN_FOR_TARGET"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10689$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10690else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692$as_echo "no" >&6; }
10693fi
10694
10695
10696 fi
10697 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10698 done
10699fi
10700
10701if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10702 set dummy gfortran
10703 if test $build = $target ; then
10704 GFORTRAN_FOR_TARGET="$2"
10705 else
10706 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10707 fi
10708else
10709 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10710fi
10711
10712
10713
10714if test -n "$GOC_FOR_TARGET"; then
10715 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10716elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10717 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10718fi
10719
10720if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10721 for ncn_progname in gccgo; do
10722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10723set dummy ${ncn_progname}; ac_word=$2
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725$as_echo_n "checking for $ac_word... " >&6; }
10726if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10727 $as_echo_n "(cached) " >&6
10728else
10729 if test -n "$GOC_FOR_TARGET"; then
10730 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10731else
10732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733for as_dir in $PATH
10734do
10735 IFS=$as_save_IFS
10736 test -z "$as_dir" && as_dir=.
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10739 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741 break 2
10742 fi
10743done
10744 done
10745IFS=$as_save_IFS
10746
10747fi
10748fi
10749GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10750if test -n "$GOC_FOR_TARGET"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10752$as_echo "$GOC_FOR_TARGET" >&6; }
10753else
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755$as_echo "no" >&6; }
10756fi
10757
10758
10759 done
10760fi
10761
10762if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10763 for ncn_progname in gccgo; do
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10765$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10766 if test -x $with_build_time_tools/${ncn_progname}; then
10767 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10769$as_echo "yes" >&6; }
10770 break
10771 else
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773$as_echo "no" >&6; }
10774 fi
10775 done
10776fi
10777
10778if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10779 for ncn_progname in gccgo; do
10780 if test -n "$ncn_target_tool_prefix"; then
10781 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10782set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784$as_echo_n "checking for $ac_word... " >&6; }
10785if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10787else
10788 if test -n "$GOC_FOR_TARGET"; then
10789 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10790else
10791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792for as_dir in $PATH
10793do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10801 fi
10802done
10803 done
10804IFS=$as_save_IFS
10805
10806fi
10807fi
10808GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10809if test -n "$GOC_FOR_TARGET"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10811$as_echo "$GOC_FOR_TARGET" >&6; }
10812else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814$as_echo "no" >&6; }
10815fi
10816
10817
10818 fi
10819 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10821set dummy ${ncn_progname}; ac_word=$2
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823$as_echo_n "checking for $ac_word... " >&6; }
10824if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10826else
10827 if test -n "$GOC_FOR_TARGET"; then
10828 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10829else
10830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831for as_dir in $PATH
10832do
10833 IFS=$as_save_IFS
10834 test -z "$as_dir" && as_dir=.
10835 for ac_exec_ext in '' $ac_executable_extensions; do
10836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10837 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839 break 2
10840 fi
10841done
10842 done
10843IFS=$as_save_IFS
10844
10845fi
10846fi
10847GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10848if test -n "$GOC_FOR_TARGET"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10850$as_echo "$GOC_FOR_TARGET" >&6; }
10851else
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853$as_echo "no" >&6; }
10854fi
10855
10856
10857 fi
10858 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10859 done
10860fi
10861
10862if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10863 set dummy gccgo
10864 if test $build = $target ; then
10865 GOC_FOR_TARGET="$2"
10866 else
10867 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10868 fi
10869else
10870 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10871fi
10872
10873
10874
10875cat > conftest.c << \EOF
10876#ifdef __GNUC__
10877 gcc_yay;
10878#endif
10879EOF
10880if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10881 have_gcc_for_target=yes
10882else
10883 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10884 have_gcc_for_target=no
10885fi
10886rm conftest.c
10887
10888
10889
10890
10891if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10892 if test -n "$with_build_time_tools"; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10894$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10895 if test -x $with_build_time_tools/ar; then
10896 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10897 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10899$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10900 else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902$as_echo "no" >&6; }
10903 fi
10904 elif test $build != $host && test $have_gcc_for_target = yes; then
10905 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10906 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10907 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10908 fi
10909fi
10910if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10911 # Extract the first word of "ar", so it can be a program name with args.
10912set dummy ar; ac_word=$2
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914$as_echo_n "checking for $ac_word... " >&6; }
10915if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10916 $as_echo_n "(cached) " >&6
10917else
10918 case $AR_FOR_TARGET in
10919 [\\/]* | ?:[\\/]*)
10920 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10921 ;;
10922 *)
10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $gcc_cv_tool_dirs
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10930 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934done
10935 done
10936IFS=$as_save_IFS
10937
10938 ;;
10939esac
10940fi
10941AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10942if test -n "$AR_FOR_TARGET"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10944$as_echo "$AR_FOR_TARGET" >&6; }
10945else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947$as_echo "no" >&6; }
10948fi
10949
10950
10951fi
10952if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10953
10954
10955if test -n "$AR_FOR_TARGET"; then
10956 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10957elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10958 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10959fi
10960
10961if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10962 for ncn_progname in ar; do
10963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10964set dummy ${ncn_progname}; ac_word=$2
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966$as_echo_n "checking for $ac_word... " >&6; }
10967if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10968 $as_echo_n "(cached) " >&6
10969else
10970 if test -n "$AR_FOR_TARGET"; then
10971 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10972else
10973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984done
10985 done
10986IFS=$as_save_IFS
10987
10988fi
10989fi
10990AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10991if test -n "$AR_FOR_TARGET"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10993$as_echo "$AR_FOR_TARGET" >&6; }
10994else
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996$as_echo "no" >&6; }
10997fi
10998
10999
11000 done
11001fi
11002
11003if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11004 for ncn_progname in ar; do
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11006$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11007 if test -x $with_build_time_tools/${ncn_progname}; then
11008 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11010$as_echo "yes" >&6; }
11011 break
11012 else
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11014$as_echo "no" >&6; }
11015 fi
11016 done
11017fi
11018
11019if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11020 for ncn_progname in ar; do
11021 if test -n "$ncn_target_tool_prefix"; then
11022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11023set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025$as_echo_n "checking for $ac_word... " >&6; }
11026if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028else
11029 if test -n "$AR_FOR_TARGET"; then
11030 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11031else
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11039 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 break 2
11042 fi
11043done
11044 done
11045IFS=$as_save_IFS
11046
11047fi
11048fi
11049AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11050if test -n "$AR_FOR_TARGET"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11052$as_echo "$AR_FOR_TARGET" >&6; }
11053else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055$as_echo "no" >&6; }
11056fi
11057
11058
11059 fi
11060 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11062set dummy ${ncn_progname}; ac_word=$2
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064$as_echo_n "checking for $ac_word... " >&6; }
11065if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11067else
11068 if test -n "$AR_FOR_TARGET"; then
11069 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11070else
11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11081 fi
11082done
11083 done
11084IFS=$as_save_IFS
11085
11086fi
11087fi
11088AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11089if test -n "$AR_FOR_TARGET"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11091$as_echo "$AR_FOR_TARGET" >&6; }
11092else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094$as_echo "no" >&6; }
11095fi
11096
11097
11098 fi
11099 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11100 done
11101fi
11102
11103if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11104 set dummy ar
11105 if test $build = $target ; then
11106 AR_FOR_TARGET="$2"
11107 else
11108 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11109 fi
11110else
11111 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11112fi
11113
11114else
11115 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11116fi
11117
11118
11119
11120
11121if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11122 if test -n "$with_build_time_tools"; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11124$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11125 if test -x $with_build_time_tools/as; then
11126 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11127 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11129$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11130 else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132$as_echo "no" >&6; }
11133 fi
11134 elif test $build != $host && test $have_gcc_for_target = yes; then
11135 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11136 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11137 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11138 fi
11139fi
11140if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11141 # Extract the first word of "as", so it can be a program name with args.
11142set dummy as; ac_word=$2
11143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144$as_echo_n "checking for $ac_word... " >&6; }
11145if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11147else
11148 case $AS_FOR_TARGET in
11149 [\\/]* | ?:[\\/]*)
11150 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11151 ;;
11152 *)
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154for as_dir in $gcc_cv_tool_dirs
11155do
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 for ac_exec_ext in '' $ac_executable_extensions; do
11159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11160 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11162 break 2
11163 fi
11164done
11165 done
11166IFS=$as_save_IFS
11167
11168 ;;
11169esac
11170fi
11171AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11172if test -n "$AS_FOR_TARGET"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11174$as_echo "$AS_FOR_TARGET" >&6; }
11175else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177$as_echo "no" >&6; }
11178fi
11179
11180
11181fi
11182if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11183
11184
11185if test -n "$AS_FOR_TARGET"; then
11186 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11187elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11188 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11189fi
11190
11191if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11192 for ncn_progname in as; do
11193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11194set dummy ${ncn_progname}; ac_word=$2
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196$as_echo_n "checking for $ac_word... " >&6; }
11197if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11199else
11200 if test -n "$AS_FOR_TARGET"; then
11201 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11202else
11203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204for as_dir in $PATH
11205do
11206 IFS=$as_save_IFS
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 break 2
11213 fi
11214done
11215 done
11216IFS=$as_save_IFS
11217
11218fi
11219fi
11220AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11221if test -n "$AS_FOR_TARGET"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11223$as_echo "$AS_FOR_TARGET" >&6; }
11224else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226$as_echo "no" >&6; }
11227fi
11228
11229
11230 done
11231fi
11232
11233if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11234 for ncn_progname in as; do
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11236$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11237 if test -x $with_build_time_tools/${ncn_progname}; then
11238 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240$as_echo "yes" >&6; }
11241 break
11242 else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244$as_echo "no" >&6; }
11245 fi
11246 done
11247fi
11248
11249if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11250 for ncn_progname in as; do
11251 if test -n "$ncn_target_tool_prefix"; then
11252 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11253set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255$as_echo_n "checking for $ac_word... " >&6; }
11256if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11257 $as_echo_n "(cached) " >&6
11258else
11259 if test -n "$AS_FOR_TARGET"; then
11260 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11261else
11262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263for as_dir in $PATH
11264do
11265 IFS=$as_save_IFS
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11269 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271 break 2
11272 fi
11273done
11274 done
11275IFS=$as_save_IFS
11276
11277fi
11278fi
11279AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11280if test -n "$AS_FOR_TARGET"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11282$as_echo "$AS_FOR_TARGET" >&6; }
11283else
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
11286fi
11287
11288
11289 fi
11290 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11292set dummy ${ncn_progname}; ac_word=$2
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294$as_echo_n "checking for $ac_word... " >&6; }
11295if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11297else
11298 if test -n "$AS_FOR_TARGET"; then
11299 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11300else
11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302for as_dir in $PATH
11303do
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11308 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11311 fi
11312done
11313 done
11314IFS=$as_save_IFS
11315
11316fi
11317fi
11318AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11319if test -n "$AS_FOR_TARGET"; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11321$as_echo "$AS_FOR_TARGET" >&6; }
11322else
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324$as_echo "no" >&6; }
11325fi
11326
11327
11328 fi
11329 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11330 done
11331fi
11332
11333if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11334 set dummy as
11335 if test $build = $target ; then
11336 AS_FOR_TARGET="$2"
11337 else
11338 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11339 fi
11340else
11341 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11342fi
11343
11344else
11345 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11346fi
11347
11348
11349
11350
11351if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11352 if test -n "$with_build_time_tools"; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11354$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11355 if test -x $with_build_time_tools/dlltool; then
11356 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11357 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11359$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362$as_echo "no" >&6; }
11363 fi
11364 elif test $build != $host && test $have_gcc_for_target = yes; then
11365 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11366 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11367 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11368 fi
11369fi
11370if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11371 # Extract the first word of "dlltool", so it can be a program name with args.
11372set dummy dlltool; ac_word=$2
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374$as_echo_n "checking for $ac_word... " >&6; }
11375if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11377else
11378 case $DLLTOOL_FOR_TARGET in
11379 [\\/]* | ?:[\\/]*)
11380 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11381 ;;
11382 *)
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $gcc_cv_tool_dirs
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394done
11395 done
11396IFS=$as_save_IFS
11397
11398 ;;
11399esac
11400fi
11401DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11402if test -n "$DLLTOOL_FOR_TARGET"; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11404$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11405else
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407$as_echo "no" >&6; }
11408fi
11409
11410
11411fi
11412if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11413
11414
11415if test -n "$DLLTOOL_FOR_TARGET"; then
11416 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11417elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11418 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11419fi
11420
11421if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11422 for ncn_progname in dlltool; do
11423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11424set dummy ${ncn_progname}; ac_word=$2
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426$as_echo_n "checking for $ac_word... " >&6; }
11427if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11429else
11430 if test -n "$DLLTOOL_FOR_TARGET"; then
11431 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11432else
11433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434for as_dir in $PATH
11435do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444done
11445 done
11446IFS=$as_save_IFS
11447
11448fi
11449fi
11450DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11451if test -n "$DLLTOOL_FOR_TARGET"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11453$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11454else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
11457fi
11458
11459
11460 done
11461fi
11462
11463if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11464 for ncn_progname in dlltool; do
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11466$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11467 if test -x $with_build_time_tools/${ncn_progname}; then
11468 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470$as_echo "yes" >&6; }
11471 break
11472 else
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474$as_echo "no" >&6; }
11475 fi
11476 done
11477fi
11478
11479if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11480 for ncn_progname in dlltool; do
11481 if test -n "$ncn_target_tool_prefix"; then
11482 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11483set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485$as_echo_n "checking for $ac_word... " >&6; }
11486if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
11488else
11489 if test -n "$DLLTOOL_FOR_TARGET"; then
11490 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11491else
11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493for as_dir in $PATH
11494do
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
11497 for ac_exec_ext in '' $ac_executable_extensions; do
11498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11499 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501 break 2
11502 fi
11503done
11504 done
11505IFS=$as_save_IFS
11506
11507fi
11508fi
11509DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11510if test -n "$DLLTOOL_FOR_TARGET"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11512$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11513else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
11516fi
11517
11518
11519 fi
11520 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11522set dummy ${ncn_progname}; ac_word=$2
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524$as_echo_n "checking for $ac_word... " >&6; }
11525if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527else
11528 if test -n "$DLLTOOL_FOR_TARGET"; then
11529 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11530else
11531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532for as_dir in $PATH
11533do
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11541 fi
11542done
11543 done
11544IFS=$as_save_IFS
11545
11546fi
11547fi
11548DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11549if test -n "$DLLTOOL_FOR_TARGET"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11551$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11552else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554$as_echo "no" >&6; }
11555fi
11556
11557
11558 fi
11559 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11560 done
11561fi
11562
11563if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11564 set dummy dlltool
11565 if test $build = $target ; then
11566 DLLTOOL_FOR_TARGET="$2"
11567 else
11568 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11569 fi
11570else
11571 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11572fi
11573
11574else
11575 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11576fi
11577
11578
11579
11580
11581if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11582 if test -n "$with_build_time_tools"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11584$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11585 if test -x $with_build_time_tools/ld; then
11586 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11587 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11589$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11590 else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
11593 fi
11594 elif test $build != $host && test $have_gcc_for_target = yes; then
11595 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11596 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11597 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11598 fi
11599fi
11600if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11601 # Extract the first word of "ld", so it can be a program name with args.
11602set dummy ld; ac_word=$2
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11604$as_echo_n "checking for $ac_word... " >&6; }
11605if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11606 $as_echo_n "(cached) " >&6
11607else
11608 case $LD_FOR_TARGET in
11609 [\\/]* | ?:[\\/]*)
11610 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11611 ;;
11612 *)
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614for as_dir in $gcc_cv_tool_dirs
11615do
11616 IFS=$as_save_IFS
11617 test -z "$as_dir" && as_dir=.
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11620 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11622 break 2
11623 fi
11624done
11625 done
11626IFS=$as_save_IFS
11627
11628 ;;
11629esac
11630fi
11631LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11632if test -n "$LD_FOR_TARGET"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11634$as_echo "$LD_FOR_TARGET" >&6; }
11635else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637$as_echo "no" >&6; }
11638fi
11639
11640
11641fi
11642if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11643
11644
11645if test -n "$LD_FOR_TARGET"; then
11646 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11647elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11648 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11649fi
11650
11651if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11652 for ncn_progname in ld; do
11653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11654set dummy ${ncn_progname}; ac_word=$2
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656$as_echo_n "checking for $ac_word... " >&6; }
11657if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11659else
11660 if test -n "$LD_FOR_TARGET"; then
11661 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11662else
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11670 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674done
11675 done
11676IFS=$as_save_IFS
11677
11678fi
11679fi
11680LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11681if test -n "$LD_FOR_TARGET"; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11683$as_echo "$LD_FOR_TARGET" >&6; }
11684else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686$as_echo "no" >&6; }
11687fi
11688
11689
11690 done
11691fi
11692
11693if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11694 for ncn_progname in ld; do
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11696$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11697 if test -x $with_build_time_tools/${ncn_progname}; then
11698 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700$as_echo "yes" >&6; }
11701 break
11702 else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704$as_echo "no" >&6; }
11705 fi
11706 done
11707fi
11708
11709if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11710 for ncn_progname in ld; do
11711 if test -n "$ncn_target_tool_prefix"; then
11712 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11713set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715$as_echo_n "checking for $ac_word... " >&6; }
11716if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11717 $as_echo_n "(cached) " >&6
11718else
11719 if test -n "$LD_FOR_TARGET"; then
11720 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11721else
11722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in $PATH
11724do
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
11727 for ac_exec_ext in '' $ac_executable_extensions; do
11728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11729 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 break 2
11732 fi
11733done
11734 done
11735IFS=$as_save_IFS
11736
11737fi
11738fi
11739LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11740if test -n "$LD_FOR_TARGET"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11742$as_echo "$LD_FOR_TARGET" >&6; }
11743else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
11746fi
11747
11748
11749 fi
11750 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11752set dummy ${ncn_progname}; ac_word=$2
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754$as_echo_n "checking for $ac_word... " >&6; }
11755if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11757else
11758 if test -n "$LD_FOR_TARGET"; then
11759 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11760else
11761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762for as_dir in $PATH
11763do
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11771 fi
11772done
11773 done
11774IFS=$as_save_IFS
11775
11776fi
11777fi
11778LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11779if test -n "$LD_FOR_TARGET"; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11781$as_echo "$LD_FOR_TARGET" >&6; }
11782else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784$as_echo "no" >&6; }
11785fi
11786
11787
11788 fi
11789 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11790 done
11791fi
11792
11793if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11794 set dummy ld
11795 if test $build = $target ; then
11796 LD_FOR_TARGET="$2"
11797 else
11798 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11799 fi
11800else
11801 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11802fi
11803
11804else
11805 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11806fi
11807
11808
11809
11810
11811if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11812 if test -n "$with_build_time_tools"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11814$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11815 if test -x $with_build_time_tools/lipo; then
11816 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11817 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11819$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822$as_echo "no" >&6; }
11823 fi
11824 elif test $build != $host && test $have_gcc_for_target = yes; then
11825 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11826 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11827 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11828 fi
11829fi
11830if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11831 # Extract the first word of "lipo", so it can be a program name with args.
11832set dummy lipo; ac_word=$2
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834$as_echo_n "checking for $ac_word... " >&6; }
11835if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
11837else
11838 case $LIPO_FOR_TARGET in
11839 [\\/]* | ?:[\\/]*)
11840 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11841 ;;
11842 *)
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844for as_dir in $gcc_cv_tool_dirs
11845do
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11850 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11853 fi
11854done
11855 done
11856IFS=$as_save_IFS
11857
11858 ;;
11859esac
11860fi
11861LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11862if test -n "$LIPO_FOR_TARGET"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11864$as_echo "$LIPO_FOR_TARGET" >&6; }
11865else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867$as_echo "no" >&6; }
11868fi
11869
11870
11871fi
11872if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11873
11874
11875if test -n "$LIPO_FOR_TARGET"; then
11876 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11877elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11878 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11879fi
11880
11881if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11882 for ncn_progname in lipo; do
11883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11884set dummy ${ncn_progname}; ac_word=$2
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886$as_echo_n "checking for $ac_word... " >&6; }
11887if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11888 $as_echo_n "(cached) " >&6
11889else
11890 if test -n "$LIPO_FOR_TARGET"; then
11891 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11892else
11893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894for as_dir in $PATH
11895do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11900 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11902 break 2
11903 fi
11904done
11905 done
11906IFS=$as_save_IFS
11907
11908fi
11909fi
11910LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11911if test -n "$LIPO_FOR_TARGET"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11913$as_echo "$LIPO_FOR_TARGET" >&6; }
11914else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916$as_echo "no" >&6; }
11917fi
11918
11919
11920 done
11921fi
11922
11923if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11924 for ncn_progname in lipo; do
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11926$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11927 if test -x $with_build_time_tools/${ncn_progname}; then
11928 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930$as_echo "yes" >&6; }
11931 break
11932 else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
11935 fi
11936 done
11937fi
11938
11939if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11940 for ncn_progname in lipo; do
11941 if test -n "$ncn_target_tool_prefix"; then
11942 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11943set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945$as_echo_n "checking for $ac_word... " >&6; }
11946if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11947 $as_echo_n "(cached) " >&6
11948else
11949 if test -n "$LIPO_FOR_TARGET"; then
11950 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11951else
11952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953for as_dir in $PATH
11954do
11955 IFS=$as_save_IFS
11956 test -z "$as_dir" && as_dir=.
11957 for ac_exec_ext in '' $ac_executable_extensions; do
11958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11959 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11961 break 2
11962 fi
11963done
11964 done
11965IFS=$as_save_IFS
11966
11967fi
11968fi
11969LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11970if test -n "$LIPO_FOR_TARGET"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11972$as_echo "$LIPO_FOR_TARGET" >&6; }
11973else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975$as_echo "no" >&6; }
11976fi
11977
11978
11979 fi
11980 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11982set dummy ${ncn_progname}; ac_word=$2
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
11985if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11987else
11988 if test -n "$LIPO_FOR_TARGET"; then
11989 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11990else
11991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12001 fi
12002done
12003 done
12004IFS=$as_save_IFS
12005
12006fi
12007fi
12008LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12009if test -n "$LIPO_FOR_TARGET"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12011$as_echo "$LIPO_FOR_TARGET" >&6; }
12012else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
12015fi
12016
12017
12018 fi
12019 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12020 done
12021fi
12022
12023if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12024 set dummy lipo
12025 if test $build = $target ; then
12026 LIPO_FOR_TARGET="$2"
12027 else
12028 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12029 fi
12030else
12031 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12032fi
12033
12034else
12035 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12036fi
12037
12038
12039
12040
12041if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12042 if test -n "$with_build_time_tools"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12044$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12045 if test -x $with_build_time_tools/nm; then
12046 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12047 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12049$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052$as_echo "no" >&6; }
12053 fi
12054 elif test $build != $host && test $have_gcc_for_target = yes; then
12055 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12056 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12057 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12058 fi
12059fi
12060if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12061 # Extract the first word of "nm", so it can be a program name with args.
12062set dummy nm; ac_word=$2
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12064$as_echo_n "checking for $ac_word... " >&6; }
12065if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12067else
12068 case $NM_FOR_TARGET in
12069 [\\/]* | ?:[\\/]*)
12070 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12071 ;;
12072 *)
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074for as_dir in $gcc_cv_tool_dirs
12075do
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12080 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12082 break 2
12083 fi
12084done
12085 done
12086IFS=$as_save_IFS
12087
12088 ;;
12089esac
12090fi
12091NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12092if test -n "$NM_FOR_TARGET"; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12094$as_echo "$NM_FOR_TARGET" >&6; }
12095else
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097$as_echo "no" >&6; }
12098fi
12099
12100
12101fi
12102if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12103
12104
12105if test -n "$NM_FOR_TARGET"; then
12106 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12107elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12108 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12109fi
12110
12111if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12112 for ncn_progname in nm; do
12113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12114set dummy ${ncn_progname}; ac_word=$2
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116$as_echo_n "checking for $ac_word... " >&6; }
12117if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12119else
12120 if test -n "$NM_FOR_TARGET"; then
12121 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12122else
12123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124for as_dir in $PATH
12125do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12130 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 break 2
12133 fi
12134done
12135 done
12136IFS=$as_save_IFS
12137
12138fi
12139fi
12140NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12141if test -n "$NM_FOR_TARGET"; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12143$as_echo "$NM_FOR_TARGET" >&6; }
12144else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146$as_echo "no" >&6; }
12147fi
12148
12149
12150 done
12151fi
12152
12153if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12154 for ncn_progname in nm; do
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12156$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12157 if test -x $with_build_time_tools/${ncn_progname}; then
12158 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12160$as_echo "yes" >&6; }
12161 break
12162 else
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
12165 fi
12166 done
12167fi
12168
12169if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12170 for ncn_progname in nm; do
12171 if test -n "$ncn_target_tool_prefix"; then
12172 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12173set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175$as_echo_n "checking for $ac_word... " >&6; }
12176if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
12178else
12179 if test -n "$NM_FOR_TARGET"; then
12180 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12181else
12182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183for as_dir in $PATH
12184do
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12189 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191 break 2
12192 fi
12193done
12194 done
12195IFS=$as_save_IFS
12196
12197fi
12198fi
12199NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12200if test -n "$NM_FOR_TARGET"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12202$as_echo "$NM_FOR_TARGET" >&6; }
12203else
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
12206fi
12207
12208
12209 fi
12210 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12212set dummy ${ncn_progname}; ac_word=$2
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214$as_echo_n "checking for $ac_word... " >&6; }
12215if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12217else
12218 if test -n "$NM_FOR_TARGET"; then
12219 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12220else
12221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222for as_dir in $PATH
12223do
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12228 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 break 2
12231 fi
12232done
12233 done
12234IFS=$as_save_IFS
12235
12236fi
12237fi
12238NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12239if test -n "$NM_FOR_TARGET"; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12241$as_echo "$NM_FOR_TARGET" >&6; }
12242else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244$as_echo "no" >&6; }
12245fi
12246
12247
12248 fi
12249 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12250 done
12251fi
12252
12253if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12254 set dummy nm
12255 if test $build = $target ; then
12256 NM_FOR_TARGET="$2"
12257 else
12258 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12259 fi
12260else
12261 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12262fi
12263
12264else
12265 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12266fi
12267
12268
12269
12270
12271if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12272 if test -n "$with_build_time_tools"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12274$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12275 if test -x $with_build_time_tools/objcopy; then
12276 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12277 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12279$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282$as_echo "no" >&6; }
12283 fi
12284 elif test $build != $host && test $have_gcc_for_target = yes; then
12285 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12286 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12287 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12288 fi
12289fi
12290if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12291 # Extract the first word of "objcopy", so it can be a program name with args.
12292set dummy objcopy; ac_word=$2
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294$as_echo_n "checking for $ac_word... " >&6; }
12295if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297else
12298 case $OBJCOPY_FOR_TARGET in
12299 [\\/]* | ?:[\\/]*)
12300 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12301 ;;
12302 *)
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in $gcc_cv_tool_dirs
12305do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12310 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314done
12315 done
12316IFS=$as_save_IFS
12317
12318 ;;
12319esac
12320fi
12321OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12322if test -n "$OBJCOPY_FOR_TARGET"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12324$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12325else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
12328fi
12329
12330
12331fi
12332if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12333
12334
12335if test -n "$OBJCOPY_FOR_TARGET"; then
12336 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12337elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12338 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12339fi
12340
12341if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12342 for ncn_progname in objcopy; do
12343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12344set dummy ${ncn_progname}; ac_word=$2
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346$as_echo_n "checking for $ac_word... " >&6; }
12347if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12348 $as_echo_n "(cached) " >&6
12349else
12350 if test -n "$OBJCOPY_FOR_TARGET"; then
12351 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12352else
12353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354for as_dir in $PATH
12355do
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12360 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12363 fi
12364done
12365 done
12366IFS=$as_save_IFS
12367
12368fi
12369fi
12370OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12371if test -n "$OBJCOPY_FOR_TARGET"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12373$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12374else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
12377fi
12378
12379
12380 done
12381fi
12382
12383if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12384 for ncn_progname in objcopy; do
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12386$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12387 if test -x $with_build_time_tools/${ncn_progname}; then
12388 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390$as_echo "yes" >&6; }
12391 break
12392 else
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394$as_echo "no" >&6; }
12395 fi
12396 done
12397fi
12398
12399if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12400 for ncn_progname in objcopy; do
12401 if test -n "$ncn_target_tool_prefix"; then
12402 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12403set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405$as_echo_n "checking for $ac_word... " >&6; }
12406if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12408else
12409 if test -n "$OBJCOPY_FOR_TARGET"; then
12410 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12411else
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423done
12424 done
12425IFS=$as_save_IFS
12426
12427fi
12428fi
12429OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12430if test -n "$OBJCOPY_FOR_TARGET"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12432$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12433else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
12436fi
12437
12438
12439 fi
12440 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12442set dummy ${ncn_progname}; ac_word=$2
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444$as_echo_n "checking for $ac_word... " >&6; }
12445if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12447else
12448 if test -n "$OBJCOPY_FOR_TARGET"; then
12449 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12450else
12451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452for as_dir in $PATH
12453do
12454 IFS=$as_save_IFS
12455 test -z "$as_dir" && as_dir=.
12456 for ac_exec_ext in '' $ac_executable_extensions; do
12457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12458 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12460 break 2
12461 fi
12462done
12463 done
12464IFS=$as_save_IFS
12465
12466fi
12467fi
12468OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12469if test -n "$OBJCOPY_FOR_TARGET"; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12471$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12472else
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474$as_echo "no" >&6; }
12475fi
12476
12477
12478 fi
12479 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12480 done
12481fi
12482
12483if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12484 set dummy objcopy
12485 if test $build = $target ; then
12486 OBJCOPY_FOR_TARGET="$2"
12487 else
12488 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12489 fi
12490else
12491 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12492fi
12493
12494else
12495 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12496fi
12497
12498
12499
12500
12501if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12502 if test -n "$with_build_time_tools"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12504$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12505 if test -x $with_build_time_tools/objdump; then
12506 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12507 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12509$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513 fi
12514 elif test $build != $host && test $have_gcc_for_target = yes; then
12515 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12516 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12517 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12518 fi
12519fi
12520if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12521 # Extract the first word of "objdump", so it can be a program name with args.
12522set dummy objdump; ac_word=$2
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524$as_echo_n "checking for $ac_word... " >&6; }
12525if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12526 $as_echo_n "(cached) " >&6
12527else
12528 case $OBJDUMP_FOR_TARGET in
12529 [\\/]* | ?:[\\/]*)
12530 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12531 ;;
12532 *)
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534for as_dir in $gcc_cv_tool_dirs
12535do
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12540 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 break 2
12543 fi
12544done
12545 done
12546IFS=$as_save_IFS
12547
12548 ;;
12549esac
12550fi
12551OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12552if test -n "$OBJDUMP_FOR_TARGET"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12554$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12555else
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557$as_echo "no" >&6; }
12558fi
12559
12560
12561fi
12562if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12563
12564
12565if test -n "$OBJDUMP_FOR_TARGET"; then
12566 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12567elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12568 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12569fi
12570
12571if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12572 for ncn_progname in objdump; do
12573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12574set dummy ${ncn_progname}; ac_word=$2
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576$as_echo_n "checking for $ac_word... " >&6; }
12577if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12579else
12580 if test -n "$OBJDUMP_FOR_TARGET"; then
12581 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12582else
12583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584for as_dir in $PATH
12585do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12590 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 break 2
12593 fi
12594done
12595 done
12596IFS=$as_save_IFS
12597
12598fi
12599fi
12600OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12601if test -n "$OBJDUMP_FOR_TARGET"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12603$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12604else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606$as_echo "no" >&6; }
12607fi
12608
12609
12610 done
12611fi
12612
12613if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12614 for ncn_progname in objdump; do
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12616$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12617 if test -x $with_build_time_tools/${ncn_progname}; then
12618 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620$as_echo "yes" >&6; }
12621 break
12622 else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624$as_echo "no" >&6; }
12625 fi
12626 done
12627fi
12628
12629if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12630 for ncn_progname in objdump; do
12631 if test -n "$ncn_target_tool_prefix"; then
12632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12633set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635$as_echo_n "checking for $ac_word... " >&6; }
12636if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12637 $as_echo_n "(cached) " >&6
12638else
12639 if test -n "$OBJDUMP_FOR_TARGET"; then
12640 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12641else
12642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643for as_dir in $PATH
12644do
12645 IFS=$as_save_IFS
12646 test -z "$as_dir" && as_dir=.
12647 for ac_exec_ext in '' $ac_executable_extensions; do
12648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12649 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12651 break 2
12652 fi
12653done
12654 done
12655IFS=$as_save_IFS
12656
12657fi
12658fi
12659OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12660if test -n "$OBJDUMP_FOR_TARGET"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12662$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12663else
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665$as_echo "no" >&6; }
12666fi
12667
12668
12669 fi
12670 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12672set dummy ${ncn_progname}; ac_word=$2
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674$as_echo_n "checking for $ac_word... " >&6; }
12675if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12676 $as_echo_n "(cached) " >&6
12677else
12678 if test -n "$OBJDUMP_FOR_TARGET"; then
12679 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12680else
12681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682for as_dir in $PATH
12683do
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12688 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 break 2
12691 fi
12692done
12693 done
12694IFS=$as_save_IFS
12695
12696fi
12697fi
12698OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12699if test -n "$OBJDUMP_FOR_TARGET"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12701$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12702else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
12705fi
12706
12707
12708 fi
12709 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12710 done
12711fi
12712
12713if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12714 set dummy objdump
12715 if test $build = $target ; then
12716 OBJDUMP_FOR_TARGET="$2"
12717 else
12718 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12719 fi
12720else
12721 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12722fi
12723
12724else
12725 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12726fi
12727
12728
12729
12730
12731if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12732 if test -n "$with_build_time_tools"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12734$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12735 if test -x $with_build_time_tools/ranlib; then
12736 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12737 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12739$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742$as_echo "no" >&6; }
12743 fi
12744 elif test $build != $host && test $have_gcc_for_target = yes; then
12745 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12746 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12747 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12748 fi
12749fi
12750if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12751 # Extract the first word of "ranlib", so it can be a program name with args.
12752set dummy ranlib; ac_word=$2
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754$as_echo_n "checking for $ac_word... " >&6; }
12755if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
12757else
12758 case $RANLIB_FOR_TARGET in
12759 [\\/]* | ?:[\\/]*)
12760 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12761 ;;
12762 *)
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764for as_dir in $gcc_cv_tool_dirs
12765do
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12770 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12773 fi
12774done
12775 done
12776IFS=$as_save_IFS
12777
12778 ;;
12779esac
12780fi
12781RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12782if test -n "$RANLIB_FOR_TARGET"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12784$as_echo "$RANLIB_FOR_TARGET" >&6; }
12785else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787$as_echo "no" >&6; }
12788fi
12789
12790
12791fi
12792if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12793
12794
12795if test -n "$RANLIB_FOR_TARGET"; then
12796 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12797elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12798 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12799fi
12800
12801if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12802 for ncn_progname in ranlib; do
12803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12804set dummy ${ncn_progname}; ac_word=$2
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806$as_echo_n "checking for $ac_word... " >&6; }
12807if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
12809else
12810 if test -n "$RANLIB_FOR_TARGET"; then
12811 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12812else
12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824done
12825 done
12826IFS=$as_save_IFS
12827
12828fi
12829fi
12830RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12831if test -n "$RANLIB_FOR_TARGET"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12833$as_echo "$RANLIB_FOR_TARGET" >&6; }
12834else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
12837fi
12838
12839
12840 done
12841fi
12842
12843if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12844 for ncn_progname in ranlib; do
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12846$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12847 if test -x $with_build_time_tools/${ncn_progname}; then
12848 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12850$as_echo "yes" >&6; }
12851 break
12852 else
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854$as_echo "no" >&6; }
12855 fi
12856 done
12857fi
12858
12859if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12860 for ncn_progname in ranlib; do
12861 if test -n "$ncn_target_tool_prefix"; then
12862 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12863set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865$as_echo_n "checking for $ac_word... " >&6; }
12866if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12868else
12869 if test -n "$RANLIB_FOR_TARGET"; then
12870 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12871else
12872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873for as_dir in $PATH
12874do
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
12877 for ac_exec_ext in '' $ac_executable_extensions; do
12878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12879 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12881 break 2
12882 fi
12883done
12884 done
12885IFS=$as_save_IFS
12886
12887fi
12888fi
12889RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12890if test -n "$RANLIB_FOR_TARGET"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12892$as_echo "$RANLIB_FOR_TARGET" >&6; }
12893else
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895$as_echo "no" >&6; }
12896fi
12897
12898
12899 fi
12900 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12902set dummy ${ncn_progname}; ac_word=$2
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904$as_echo_n "checking for $ac_word... " >&6; }
12905if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
12907else
12908 if test -n "$RANLIB_FOR_TARGET"; then
12909 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12910else
12911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912for as_dir in $PATH
12913do
12914 IFS=$as_save_IFS
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12918 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12920 break 2
12921 fi
12922done
12923 done
12924IFS=$as_save_IFS
12925
12926fi
12927fi
12928RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12929if test -n "$RANLIB_FOR_TARGET"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12931$as_echo "$RANLIB_FOR_TARGET" >&6; }
12932else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934$as_echo "no" >&6; }
12935fi
12936
12937
12938 fi
12939 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12940 done
12941fi
12942
12943if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12944 set dummy ranlib
12945 if test $build = $target ; then
12946 RANLIB_FOR_TARGET="$2"
12947 else
12948 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12949 fi
12950else
12951 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12952fi
12953
12954else
12955 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12956fi
12957
12958
12959
12960
12961if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12962 if test -n "$with_build_time_tools"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12964$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12965 if test -x $with_build_time_tools/readelf; then
12966 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12967 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12969$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972$as_echo "no" >&6; }
12973 fi
12974 elif test $build != $host && test $have_gcc_for_target = yes; then
12975 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12976 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12977 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12978 fi
12979fi
12980if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12981 # Extract the first word of "readelf", so it can be a program name with args.
12982set dummy readelf; ac_word=$2
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12984$as_echo_n "checking for $ac_word... " >&6; }
12985if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12986 $as_echo_n "(cached) " >&6
12987else
12988 case $READELF_FOR_TARGET in
12989 [\\/]* | ?:[\\/]*)
12990 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12991 ;;
12992 *)
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994for as_dir in $gcc_cv_tool_dirs
12995do
12996 IFS=$as_save_IFS
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13000 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002 break 2
13003 fi
13004done
13005 done
13006IFS=$as_save_IFS
13007
13008 ;;
13009esac
13010fi
13011READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13012if test -n "$READELF_FOR_TARGET"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13014$as_echo "$READELF_FOR_TARGET" >&6; }
13015else
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017$as_echo "no" >&6; }
13018fi
13019
13020
13021fi
13022if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13023
13024
13025if test -n "$READELF_FOR_TARGET"; then
13026 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13027elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13028 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13029fi
13030
13031if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13032 for ncn_progname in readelf; do
13033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13034set dummy ${ncn_progname}; ac_word=$2
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036$as_echo_n "checking for $ac_word... " >&6; }
13037if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039else
13040 if test -n "$READELF_FOR_TARGET"; then
13041 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13042else
13043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054done
13055 done
13056IFS=$as_save_IFS
13057
13058fi
13059fi
13060READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13061if test -n "$READELF_FOR_TARGET"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13063$as_echo "$READELF_FOR_TARGET" >&6; }
13064else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066$as_echo "no" >&6; }
13067fi
13068
13069
13070 done
13071fi
13072
13073if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13074 for ncn_progname in readelf; do
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13076$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13077 if test -x $with_build_time_tools/${ncn_progname}; then
13078 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080$as_echo "yes" >&6; }
13081 break
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084$as_echo "no" >&6; }
13085 fi
13086 done
13087fi
13088
13089if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13090 for ncn_progname in readelf; do
13091 if test -n "$ncn_target_tool_prefix"; then
13092 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13093set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095$as_echo_n "checking for $ac_word... " >&6; }
13096if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13097 $as_echo_n "(cached) " >&6
13098else
13099 if test -n "$READELF_FOR_TARGET"; then
13100 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13101else
13102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103for as_dir in $PATH
13104do
13105 IFS=$as_save_IFS
13106 test -z "$as_dir" && as_dir=.
13107 for ac_exec_ext in '' $ac_executable_extensions; do
13108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13109 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111 break 2
13112 fi
13113done
13114 done
13115IFS=$as_save_IFS
13116
13117fi
13118fi
13119READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13120if test -n "$READELF_FOR_TARGET"; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13122$as_echo "$READELF_FOR_TARGET" >&6; }
13123else
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125$as_echo "no" >&6; }
13126fi
13127
13128
13129 fi
13130 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13132set dummy ${ncn_progname}; ac_word=$2
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134$as_echo_n "checking for $ac_word... " >&6; }
13135if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13137else
13138 if test -n "$READELF_FOR_TARGET"; then
13139 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13140else
13141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142for as_dir in $PATH
13143do
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13148 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13151 fi
13152done
13153 done
13154IFS=$as_save_IFS
13155
13156fi
13157fi
13158READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13159if test -n "$READELF_FOR_TARGET"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13161$as_echo "$READELF_FOR_TARGET" >&6; }
13162else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164$as_echo "no" >&6; }
13165fi
13166
13167
13168 fi
13169 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13170 done
13171fi
13172
13173if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13174 set dummy readelf
13175 if test $build = $target ; then
13176 READELF_FOR_TARGET="$2"
13177 else
13178 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13179 fi
13180else
13181 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13182fi
13183
13184else
13185 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13186fi
13187
13188
13189
13190
13191if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13192 if test -n "$with_build_time_tools"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13194$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13195 if test -x $with_build_time_tools/strip; then
13196 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13197 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13199$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202$as_echo "no" >&6; }
13203 fi
13204 elif test $build != $host && test $have_gcc_for_target = yes; then
13205 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13206 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13207 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13208 fi
13209fi
13210if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13211 # Extract the first word of "strip", so it can be a program name with args.
13212set dummy strip; ac_word=$2
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214$as_echo_n "checking for $ac_word... " >&6; }
13215if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13217else
13218 case $STRIP_FOR_TARGET in
13219 [\\/]* | ?:[\\/]*)
13220 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13221 ;;
13222 *)
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224for as_dir in $gcc_cv_tool_dirs
13225do
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13230 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 break 2
13233 fi
13234done
13235 done
13236IFS=$as_save_IFS
13237
13238 ;;
13239esac
13240fi
13241STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13242if test -n "$STRIP_FOR_TARGET"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13244$as_echo "$STRIP_FOR_TARGET" >&6; }
13245else
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247$as_echo "no" >&6; }
13248fi
13249
13250
13251fi
13252if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13253
13254
13255if test -n "$STRIP_FOR_TARGET"; then
13256 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13257elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13258 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13259fi
13260
13261if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13262 for ncn_progname in strip; do
13263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13264set dummy ${ncn_progname}; ac_word=$2
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266$as_echo_n "checking for $ac_word... " >&6; }
13267if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13268 $as_echo_n "(cached) " >&6
13269else
13270 if test -n "$STRIP_FOR_TARGET"; then
13271 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13272else
13273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13280 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284done
13285 done
13286IFS=$as_save_IFS
13287
13288fi
13289fi
13290STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13291if test -n "$STRIP_FOR_TARGET"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13293$as_echo "$STRIP_FOR_TARGET" >&6; }
13294else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
13297fi
13298
13299
13300 done
13301fi
13302
13303if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13304 for ncn_progname in strip; do
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13306$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13307 if test -x $with_build_time_tools/${ncn_progname}; then
13308 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310$as_echo "yes" >&6; }
13311 break
13312 else
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314$as_echo "no" >&6; }
13315 fi
13316 done
13317fi
13318
13319if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13320 for ncn_progname in strip; do
13321 if test -n "$ncn_target_tool_prefix"; then
13322 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13323set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13325$as_echo_n "checking for $ac_word... " >&6; }
13326if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13328else
13329 if test -n "$STRIP_FOR_TARGET"; then
13330 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13331else
13332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333for as_dir in $PATH
13334do
13335 IFS=$as_save_IFS
13336 test -z "$as_dir" && as_dir=.
13337 for ac_exec_ext in '' $ac_executable_extensions; do
13338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13339 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341 break 2
13342 fi
13343done
13344 done
13345IFS=$as_save_IFS
13346
13347fi
13348fi
13349STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13350if test -n "$STRIP_FOR_TARGET"; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13352$as_echo "$STRIP_FOR_TARGET" >&6; }
13353else
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355$as_echo "no" >&6; }
13356fi
13357
13358
13359 fi
13360 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13362set dummy ${ncn_progname}; ac_word=$2
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364$as_echo_n "checking for $ac_word... " >&6; }
13365if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13366 $as_echo_n "(cached) " >&6
13367else
13368 if test -n "$STRIP_FOR_TARGET"; then
13369 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13370else
13371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372for as_dir in $PATH
13373do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382done
13383 done
13384IFS=$as_save_IFS
13385
13386fi
13387fi
13388STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13389if test -n "$STRIP_FOR_TARGET"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13391$as_echo "$STRIP_FOR_TARGET" >&6; }
13392else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394$as_echo "no" >&6; }
13395fi
13396
13397
13398 fi
13399 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13400 done
13401fi
13402
13403if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13404 set dummy strip
13405 if test $build = $target ; then
13406 STRIP_FOR_TARGET="$2"
13407 else
13408 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13409 fi
13410else
13411 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13412fi
13413
13414else
13415 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13416fi
13417
13418
13419
13420
13421if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13422 if test -n "$with_build_time_tools"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13424$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13425 if test -x $with_build_time_tools/windres; then
13426 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13427 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13429$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13430 else
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432$as_echo "no" >&6; }
13433 fi
13434 elif test $build != $host && test $have_gcc_for_target = yes; then
13435 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13436 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13437 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13438 fi
13439fi
13440if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13441 # Extract the first word of "windres", so it can be a program name with args.
13442set dummy windres; ac_word=$2
13443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13444$as_echo_n "checking for $ac_word... " >&6; }
13445if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13446 $as_echo_n "(cached) " >&6
13447else
13448 case $WINDRES_FOR_TARGET in
13449 [\\/]* | ?:[\\/]*)
13450 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13451 ;;
13452 *)
13453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454for as_dir in $gcc_cv_tool_dirs
13455do
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
13458 for ac_exec_ext in '' $ac_executable_extensions; do
13459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13460 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13462 break 2
13463 fi
13464done
13465 done
13466IFS=$as_save_IFS
13467
13468 ;;
13469esac
13470fi
13471WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13472if test -n "$WINDRES_FOR_TARGET"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13474$as_echo "$WINDRES_FOR_TARGET" >&6; }
13475else
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477$as_echo "no" >&6; }
13478fi
13479
13480
13481fi
13482if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13483
13484
13485if test -n "$WINDRES_FOR_TARGET"; then
13486 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13487elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13488 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13489fi
13490
13491if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13492 for ncn_progname in windres; do
13493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13494set dummy ${ncn_progname}; ac_word=$2
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496$as_echo_n "checking for $ac_word... " >&6; }
13497if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13498 $as_echo_n "(cached) " >&6
13499else
13500 if test -n "$WINDRES_FOR_TARGET"; then
13501 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13502else
13503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504for as_dir in $PATH
13505do
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13510 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 break 2
13513 fi
13514done
13515 done
13516IFS=$as_save_IFS
13517
13518fi
13519fi
13520WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13521if test -n "$WINDRES_FOR_TARGET"; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13523$as_echo "$WINDRES_FOR_TARGET" >&6; }
13524else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
13527fi
13528
13529
13530 done
13531fi
13532
13533if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13534 for ncn_progname in windres; do
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13536$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13537 if test -x $with_build_time_tools/${ncn_progname}; then
13538 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13540$as_echo "yes" >&6; }
13541 break
13542 else
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544$as_echo "no" >&6; }
13545 fi
13546 done
13547fi
13548
13549if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13550 for ncn_progname in windres; do
13551 if test -n "$ncn_target_tool_prefix"; then
13552 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13553set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555$as_echo_n "checking for $ac_word... " >&6; }
13556if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13557 $as_echo_n "(cached) " >&6
13558else
13559 if test -n "$WINDRES_FOR_TARGET"; then
13560 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13561else
13562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563for as_dir in $PATH
13564do
13565 IFS=$as_save_IFS
13566 test -z "$as_dir" && as_dir=.
13567 for ac_exec_ext in '' $ac_executable_extensions; do
13568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13569 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13571 break 2
13572 fi
13573done
13574 done
13575IFS=$as_save_IFS
13576
13577fi
13578fi
13579WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13580if test -n "$WINDRES_FOR_TARGET"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13582$as_echo "$WINDRES_FOR_TARGET" >&6; }
13583else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
13586fi
13587
13588
13589 fi
13590 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13592set dummy ${ncn_progname}; ac_word=$2
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594$as_echo_n "checking for $ac_word... " >&6; }
13595if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13597else
13598 if test -n "$WINDRES_FOR_TARGET"; then
13599 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13600else
13601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602for as_dir in $PATH
13603do
13604 IFS=$as_save_IFS
13605 test -z "$as_dir" && as_dir=.
13606 for ac_exec_ext in '' $ac_executable_extensions; do
13607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13608 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13610 break 2
13611 fi
13612done
13613 done
13614IFS=$as_save_IFS
13615
13616fi
13617fi
13618WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13619if test -n "$WINDRES_FOR_TARGET"; then
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13621$as_echo "$WINDRES_FOR_TARGET" >&6; }
13622else
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624$as_echo "no" >&6; }
13625fi
13626
13627
13628 fi
13629 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13630 done
13631fi
13632
13633if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13634 set dummy windres
13635 if test $build = $target ; then
13636 WINDRES_FOR_TARGET="$2"
13637 else
13638 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13639 fi
13640else
13641 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13642fi
13643
13644else
13645 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13646fi
13647
13648
13649
13650
13651if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13652 if test -n "$with_build_time_tools"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13654$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13655 if test -x $with_build_time_tools/windmc; then
13656 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13657 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13659$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13660 else
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662$as_echo "no" >&6; }
13663 fi
13664 elif test $build != $host && test $have_gcc_for_target = yes; then
13665 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13666 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13667 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13668 fi
13669fi
13670if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13671 # Extract the first word of "windmc", so it can be a program name with args.
13672set dummy windmc; ac_word=$2
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674$as_echo_n "checking for $ac_word... " >&6; }
13675if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13677else
13678 case $WINDMC_FOR_TARGET in
13679 [\\/]* | ?:[\\/]*)
13680 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13681 ;;
13682 *)
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684for as_dir in $gcc_cv_tool_dirs
13685do
13686 IFS=$as_save_IFS
13687 test -z "$as_dir" && as_dir=.
13688 for ac_exec_ext in '' $ac_executable_extensions; do
13689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13690 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13692 break 2
13693 fi
13694done
13695 done
13696IFS=$as_save_IFS
13697
13698 ;;
13699esac
13700fi
13701WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13702if test -n "$WINDMC_FOR_TARGET"; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13704$as_echo "$WINDMC_FOR_TARGET" >&6; }
13705else
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707$as_echo "no" >&6; }
13708fi
13709
13710
13711fi
13712if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13713
13714
13715if test -n "$WINDMC_FOR_TARGET"; then
13716 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13717elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13718 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13719fi
13720
13721if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13722 for ncn_progname in windmc; do
13723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13724set dummy ${ncn_progname}; ac_word=$2
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13726$as_echo_n "checking for $ac_word... " >&6; }
13727if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13728 $as_echo_n "(cached) " >&6
13729else
13730 if test -n "$WINDMC_FOR_TARGET"; then
13731 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13732else
13733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734for as_dir in $PATH
13735do
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13740 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742 break 2
13743 fi
13744done
13745 done
13746IFS=$as_save_IFS
13747
13748fi
13749fi
13750WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13751if test -n "$WINDMC_FOR_TARGET"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13753$as_echo "$WINDMC_FOR_TARGET" >&6; }
13754else
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756$as_echo "no" >&6; }
13757fi
13758
13759
13760 done
13761fi
13762
13763if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13764 for ncn_progname in windmc; do
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13766$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13767 if test -x $with_build_time_tools/${ncn_progname}; then
13768 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13770$as_echo "yes" >&6; }
13771 break
13772 else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
13775 fi
13776 done
13777fi
13778
13779if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13780 for ncn_progname in windmc; do
13781 if test -n "$ncn_target_tool_prefix"; then
13782 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13783set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13785$as_echo_n "checking for $ac_word... " >&6; }
13786if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13787 $as_echo_n "(cached) " >&6
13788else
13789 if test -n "$WINDMC_FOR_TARGET"; then
13790 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13791else
13792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793for as_dir in $PATH
13794do
13795 IFS=$as_save_IFS
13796 test -z "$as_dir" && as_dir=.
13797 for ac_exec_ext in '' $ac_executable_extensions; do
13798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13799 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13801 break 2
13802 fi
13803done
13804 done
13805IFS=$as_save_IFS
13806
13807fi
13808fi
13809WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13810if test -n "$WINDMC_FOR_TARGET"; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13812$as_echo "$WINDMC_FOR_TARGET" >&6; }
13813else
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815$as_echo "no" >&6; }
13816fi
13817
13818
13819 fi
13820 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13822set dummy ${ncn_progname}; ac_word=$2
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13824$as_echo_n "checking for $ac_word... " >&6; }
13825if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827else
13828 if test -n "$WINDMC_FOR_TARGET"; then
13829 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13830else
13831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832for as_dir in $PATH
13833do
13834 IFS=$as_save_IFS
13835 test -z "$as_dir" && as_dir=.
13836 for ac_exec_ext in '' $ac_executable_extensions; do
13837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13838 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 break 2
13841 fi
13842done
13843 done
13844IFS=$as_save_IFS
13845
13846fi
13847fi
13848WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13849if test -n "$WINDMC_FOR_TARGET"; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13851$as_echo "$WINDMC_FOR_TARGET" >&6; }
13852else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854$as_echo "no" >&6; }
13855fi
13856
13857
13858 fi
13859 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13860 done
13861fi
13862
13863if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13864 set dummy windmc
13865 if test $build = $target ; then
13866 WINDMC_FOR_TARGET="$2"
13867 else
13868 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13869 fi
13870else
13871 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13872fi
13873
13874else
13875 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13876fi
13877
13878
13879RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13880
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13882$as_echo_n "checking where to find the target ar... " >&6; }
13883if test "x${build}" != "x${host}" ; then
13884 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13885 # We already found the complete path
13886 ac_dir=`dirname $AR_FOR_TARGET`
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13888$as_echo "pre-installed in $ac_dir" >&6; }
13889 else
13890 # Canadian cross, just use what we found
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13892$as_echo "pre-installed" >&6; }
13893 fi
13894else
13895 ok=yes
13896 case " ${configdirs} " in
13897 *" binutils "*) ;;
13898 *) ok=no ;;
13899 esac
13900
13901 if test $ok = yes; then
13902 # An in-tree tool is available and we can use it
13903 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13905$as_echo "just compiled" >&6; }
13906 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13907 # We already found the complete path
13908 ac_dir=`dirname $AR_FOR_TARGET`
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13910$as_echo "pre-installed in $ac_dir" >&6; }
13911 elif test "x$target" = "x$host"; then
13912 # We can use an host tool
13913 AR_FOR_TARGET='$(AR)'
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13915$as_echo "host tool" >&6; }
13916 else
13917 # We need a cross tool
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13919$as_echo "pre-installed" >&6; }
13920 fi
13921fi
13922
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13924$as_echo_n "checking where to find the target as... " >&6; }
13925if test "x${build}" != "x${host}" ; then
13926 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13927 # We already found the complete path
13928 ac_dir=`dirname $AS_FOR_TARGET`
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13930$as_echo "pre-installed in $ac_dir" >&6; }
13931 else
13932 # Canadian cross, just use what we found
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13934$as_echo "pre-installed" >&6; }
13935 fi
13936else
13937 ok=yes
13938 case " ${configdirs} " in
13939 *" gas "*) ;;
13940 *) ok=no ;;
13941 esac
13942
13943 if test $ok = yes; then
13944 # An in-tree tool is available and we can use it
13945 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13947$as_echo "just compiled" >&6; }
13948 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13949 # We already found the complete path
13950 ac_dir=`dirname $AS_FOR_TARGET`
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13952$as_echo "pre-installed in $ac_dir" >&6; }
13953 elif test "x$target" = "x$host"; then
13954 # We can use an host tool
13955 AS_FOR_TARGET='$(AS)'
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13957$as_echo "host tool" >&6; }
13958 else
13959 # We need a cross tool
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961$as_echo "pre-installed" >&6; }
13962 fi
13963fi
13964
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13966$as_echo_n "checking where to find the target cc... " >&6; }
13967if test "x${build}" != "x${host}" ; then
13968 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13969 # We already found the complete path
13970 ac_dir=`dirname $CC_FOR_TARGET`
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13972$as_echo "pre-installed in $ac_dir" >&6; }
13973 else
13974 # Canadian cross, just use what we found
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976$as_echo "pre-installed" >&6; }
13977 fi
13978else
13979 ok=yes
13980 case " ${configdirs} " in
13981 *" gcc "*) ;;
13982 *) ok=no ;;
13983 esac
13984
13985 if test $ok = yes; then
13986 # An in-tree tool is available and we can use it
13987 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13989$as_echo "just compiled" >&6; }
13990 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13991 # We already found the complete path
13992 ac_dir=`dirname $CC_FOR_TARGET`
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13994$as_echo "pre-installed in $ac_dir" >&6; }
13995 elif test "x$target" = "x$host"; then
13996 # We can use an host tool
13997 CC_FOR_TARGET='$(CC)'
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13999$as_echo "host tool" >&6; }
14000 else
14001 # We need a cross tool
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14003$as_echo "pre-installed" >&6; }
14004 fi
14005fi
14006
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14008$as_echo_n "checking where to find the target c++... " >&6; }
14009if test "x${build}" != "x${host}" ; then
14010 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14011 # We already found the complete path
14012 ac_dir=`dirname $CXX_FOR_TARGET`
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14014$as_echo "pre-installed in $ac_dir" >&6; }
14015 else
14016 # Canadian cross, just use what we found
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14018$as_echo "pre-installed" >&6; }
14019 fi
14020else
14021 ok=yes
14022 case " ${configdirs} " in
14023 *" gcc "*) ;;
14024 *) ok=no ;;
14025 esac
14026 case ,${enable_languages}, in
14027 *,c++,*) ;;
14028 *) ok=no ;;
14029 esac
14030 if test $ok = yes; then
14031 # An in-tree tool is available and we can use it
14032 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14034$as_echo "just compiled" >&6; }
14035 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
14037 ac_dir=`dirname $CXX_FOR_TARGET`
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039$as_echo "pre-installed in $ac_dir" >&6; }
14040 elif test "x$target" = "x$host"; then
14041 # We can use an host tool
14042 CXX_FOR_TARGET='$(CXX)'
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044$as_echo "host tool" >&6; }
14045 else
14046 # We need a cross tool
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048$as_echo "pre-installed" >&6; }
14049 fi
14050fi
14051
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14053$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14054if test "x${build}" != "x${host}" ; then
14055 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
14057 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059$as_echo "pre-installed in $ac_dir" >&6; }
14060 else
14061 # Canadian cross, just use what we found
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063$as_echo "pre-installed" >&6; }
14064 fi
14065else
14066 ok=yes
14067 case " ${configdirs} " in
14068 *" gcc "*) ;;
14069 *) ok=no ;;
14070 esac
14071 case ,${enable_languages}, in
14072 *,c++,*) ;;
14073 *) ok=no ;;
14074 esac
14075 if test $ok = yes; then
14076 # An in-tree tool is available and we can use it
14077 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14079$as_echo "just compiled" >&6; }
14080 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14081 # We already found the complete path
14082 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14084$as_echo "pre-installed in $ac_dir" >&6; }
14085 elif test "x$target" = "x$host"; then
14086 # We can use an host tool
14087 RAW_CXX_FOR_TARGET='$(CXX)'
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14089$as_echo "host tool" >&6; }
14090 else
14091 # We need a cross tool
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14093$as_echo "pre-installed" >&6; }
14094 fi
14095fi
14096
14097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14098$as_echo_n "checking where to find the target dlltool... " >&6; }
14099if test "x${build}" != "x${host}" ; then
14100 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14101 # We already found the complete path
14102 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14104$as_echo "pre-installed in $ac_dir" >&6; }
14105 else
14106 # Canadian cross, just use what we found
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108$as_echo "pre-installed" >&6; }
14109 fi
14110else
14111 ok=yes
14112 case " ${configdirs} " in
14113 *" binutils "*) ;;
14114 *) ok=no ;;
14115 esac
14116
14117 if test $ok = yes; then
14118 # An in-tree tool is available and we can use it
14119 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14121$as_echo "just compiled" >&6; }
14122 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14123 # We already found the complete path
14124 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14126$as_echo "pre-installed in $ac_dir" >&6; }
14127 elif test "x$target" = "x$host"; then
14128 # We can use an host tool
14129 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14131$as_echo "host tool" >&6; }
14132 else
14133 # We need a cross tool
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14135$as_echo "pre-installed" >&6; }
14136 fi
14137fi
14138
14139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14140$as_echo_n "checking where to find the target gcc... " >&6; }
14141if test "x${build}" != "x${host}" ; then
14142 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14143 # We already found the complete path
14144 ac_dir=`dirname $GCC_FOR_TARGET`
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14146$as_echo "pre-installed in $ac_dir" >&6; }
14147 else
14148 # Canadian cross, just use what we found
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150$as_echo "pre-installed" >&6; }
14151 fi
14152else
14153 ok=yes
14154 case " ${configdirs} " in
14155 *" gcc "*) ;;
14156 *) ok=no ;;
14157 esac
14158
14159 if test $ok = yes; then
14160 # An in-tree tool is available and we can use it
14161 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14163$as_echo "just compiled" >&6; }
14164 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14165 # We already found the complete path
14166 ac_dir=`dirname $GCC_FOR_TARGET`
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14168$as_echo "pre-installed in $ac_dir" >&6; }
14169 elif test "x$target" = "x$host"; then
14170 # We can use an host tool
14171 GCC_FOR_TARGET='$()'
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14173$as_echo "host tool" >&6; }
14174 else
14175 # We need a cross tool
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14177$as_echo "pre-installed" >&6; }
14178 fi
14179fi
14180
14181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14182$as_echo_n "checking where to find the target gcj... " >&6; }
14183if test "x${build}" != "x${host}" ; then
14184 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14185 # We already found the complete path
14186 ac_dir=`dirname $GCJ_FOR_TARGET`
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14188$as_echo "pre-installed in $ac_dir" >&6; }
14189 else
14190 # Canadian cross, just use what we found
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14192$as_echo "pre-installed" >&6; }
14193 fi
14194else
14195 ok=yes
14196 case " ${configdirs} " in
14197 *" gcc "*) ;;
14198 *) ok=no ;;
14199 esac
14200 case ,${enable_languages}, in
14201 *,java,*) ;;
14202 *) ok=no ;;
14203 esac
14204 if test $ok = yes; then
14205 # An in-tree tool is available and we can use it
14206 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14208$as_echo "just compiled" >&6; }
14209 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14210 # We already found the complete path
14211 ac_dir=`dirname $GCJ_FOR_TARGET`
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14213$as_echo "pre-installed in $ac_dir" >&6; }
14214 elif test "x$target" = "x$host"; then
14215 # We can use an host tool
14216 GCJ_FOR_TARGET='$(GCJ)'
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14218$as_echo "host tool" >&6; }
14219 else
14220 # We need a cross tool
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14222$as_echo "pre-installed" >&6; }
14223 fi
14224fi
14225
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14227$as_echo_n "checking where to find the target gfortran... " >&6; }
14228if test "x${build}" != "x${host}" ; then
14229 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14230 # We already found the complete path
14231 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14233$as_echo "pre-installed in $ac_dir" >&6; }
14234 else
14235 # Canadian cross, just use what we found
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14237$as_echo "pre-installed" >&6; }
14238 fi
14239else
14240 ok=yes
14241 case " ${configdirs} " in
14242 *" gcc "*) ;;
14243 *) ok=no ;;
14244 esac
14245 case ,${enable_languages}, in
14246 *,fortran,*) ;;
14247 *) ok=no ;;
14248 esac
14249 if test $ok = yes; then
14250 # An in-tree tool is available and we can use it
14251 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14253$as_echo "just compiled" >&6; }
14254 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
14259 elif test "x$target" = "x$host"; then
14260 # We can use an host tool
14261 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14263$as_echo "host tool" >&6; }
14264 else
14265 # We need a cross tool
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14267$as_echo "pre-installed" >&6; }
14268 fi
14269fi
14270
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14272$as_echo_n "checking where to find the target gccgo... " >&6; }
14273if test "x${build}" != "x${host}" ; then
14274 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14275 # We already found the complete path
14276 ac_dir=`dirname $GOC_FOR_TARGET`
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278$as_echo "pre-installed in $ac_dir" >&6; }
14279 else
14280 # Canadian cross, just use what we found
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14282$as_echo "pre-installed" >&6; }
14283 fi
14284else
14285 ok=yes
14286 case " ${configdirs} " in
14287 *" gcc "*) ;;
14288 *) ok=no ;;
14289 esac
14290 case ,${enable_languages}, in
14291 *,go,*) ;;
14292 *) ok=no ;;
14293 esac
14294 if test $ok = yes; then
14295 # An in-tree tool is available and we can use it
14296 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14298$as_echo "just compiled" >&6; }
14299 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14300 # We already found the complete path
14301 ac_dir=`dirname $GOC_FOR_TARGET`
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14303$as_echo "pre-installed in $ac_dir" >&6; }
14304 elif test "x$target" = "x$host"; then
14305 # We can use an host tool
14306 GOC_FOR_TARGET='$(GOC)'
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14308$as_echo "host tool" >&6; }
14309 else
14310 # We need a cross tool
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14312$as_echo "pre-installed" >&6; }
14313 fi
14314fi
14315
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14317$as_echo_n "checking where to find the target ld... " >&6; }
14318if test "x${build}" != "x${host}" ; then
14319 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14320 # We already found the complete path
14321 ac_dir=`dirname $LD_FOR_TARGET`
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14323$as_echo "pre-installed in $ac_dir" >&6; }
14324 else
14325 # Canadian cross, just use what we found
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14327$as_echo "pre-installed" >&6; }
14328 fi
14329else
14330 ok=yes
14331 case " ${configdirs} " in
14332 *" ld "*) ;;
14333 *) ok=no ;;
14334 esac
14335
14336 if test $ok = yes; then
14337 # An in-tree tool is available and we can use it
14338 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14340$as_echo "just compiled" >&6; }
14341 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14342 # We already found the complete path
14343 ac_dir=`dirname $LD_FOR_TARGET`
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14345$as_echo "pre-installed in $ac_dir" >&6; }
14346 elif test "x$target" = "x$host"; then
14347 # We can use an host tool
14348 LD_FOR_TARGET='$(LD)'
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14350$as_echo "host tool" >&6; }
14351 else
14352 # We need a cross tool
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14354$as_echo "pre-installed" >&6; }
14355 fi
14356fi
14357
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14359$as_echo_n "checking where to find the target lipo... " >&6; }
14360if test "x${build}" != "x${host}" ; then
14361 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14362 # We already found the complete path
14363 ac_dir=`dirname $LIPO_FOR_TARGET`
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14365$as_echo "pre-installed in $ac_dir" >&6; }
14366 else
14367 # Canadian cross, just use what we found
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14369$as_echo "pre-installed" >&6; }
14370 fi
14371else
14372 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14373 # We already found the complete path
14374 ac_dir=`dirname $LIPO_FOR_TARGET`
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14376$as_echo "pre-installed in $ac_dir" >&6; }
14377 elif test "x$target" = "x$host"; then
14378 # We can use an host tool
14379 LIPO_FOR_TARGET='$(LIPO)'
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14381$as_echo "host tool" >&6; }
14382 else
14383 # We need a cross tool
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14385$as_echo "pre-installed" >&6; }
14386 fi
14387fi
14388
14389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14390$as_echo_n "checking where to find the target nm... " >&6; }
14391if test "x${build}" != "x${host}" ; then
14392 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14393 # We already found the complete path
14394 ac_dir=`dirname $NM_FOR_TARGET`
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14396$as_echo "pre-installed in $ac_dir" >&6; }
14397 else
14398 # Canadian cross, just use what we found
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14400$as_echo "pre-installed" >&6; }
14401 fi
14402else
14403 ok=yes
14404 case " ${configdirs} " in
14405 *" binutils "*) ;;
14406 *) ok=no ;;
14407 esac
14408
14409 if test $ok = yes; then
14410 # An in-tree tool is available and we can use it
14411 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14413$as_echo "just compiled" >&6; }
14414 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14415 # We already found the complete path
14416 ac_dir=`dirname $NM_FOR_TARGET`
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14418$as_echo "pre-installed in $ac_dir" >&6; }
14419 elif test "x$target" = "x$host"; then
14420 # We can use an host tool
14421 NM_FOR_TARGET='$(NM)'
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14423$as_echo "host tool" >&6; }
14424 else
14425 # We need a cross tool
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14427$as_echo "pre-installed" >&6; }
14428 fi
14429fi
14430
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14432$as_echo_n "checking where to find the target objcopy... " >&6; }
14433if test "x${build}" != "x${host}" ; then
14434 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14435 # We already found the complete path
14436 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14438$as_echo "pre-installed in $ac_dir" >&6; }
14439 else
14440 # Canadian cross, just use what we found
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14442$as_echo "pre-installed" >&6; }
14443 fi
14444else
14445 ok=yes
14446 case " ${configdirs} " in
14447 *" binutils "*) ;;
14448 *) ok=no ;;
14449 esac
14450
14451 if test $ok = yes; then
14452 # An in-tree tool is available and we can use it
14453 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14455$as_echo "just compiled" >&6; }
14456 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14457 # We already found the complete path
14458 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14460$as_echo "pre-installed in $ac_dir" >&6; }
14461 elif test "x$target" = "x$host"; then
14462 # We can use an host tool
14463 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14465$as_echo "host tool" >&6; }
14466 else
14467 # We need a cross tool
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14469$as_echo "pre-installed" >&6; }
14470 fi
14471fi
14472
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14474$as_echo_n "checking where to find the target objdump... " >&6; }
14475if test "x${build}" != "x${host}" ; then
14476 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14477 # We already found the complete path
14478 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14480$as_echo "pre-installed in $ac_dir" >&6; }
14481 else
14482 # Canadian cross, just use what we found
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14484$as_echo "pre-installed" >&6; }
14485 fi
14486else
14487 ok=yes
14488 case " ${configdirs} " in
14489 *" binutils "*) ;;
14490 *) ok=no ;;
14491 esac
14492
14493 if test $ok = yes; then
14494 # An in-tree tool is available and we can use it
14495 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14497$as_echo "just compiled" >&6; }
14498 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14499 # We already found the complete path
14500 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14502$as_echo "pre-installed in $ac_dir" >&6; }
14503 elif test "x$target" = "x$host"; then
14504 # We can use an host tool
14505 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14507$as_echo "host tool" >&6; }
14508 else
14509 # We need a cross tool
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14511$as_echo "pre-installed" >&6; }
14512 fi
14513fi
14514
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14516$as_echo_n "checking where to find the target ranlib... " >&6; }
14517if test "x${build}" != "x${host}" ; then
14518 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14519 # We already found the complete path
14520 ac_dir=`dirname $RANLIB_FOR_TARGET`
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14522$as_echo "pre-installed in $ac_dir" >&6; }
14523 else
14524 # Canadian cross, just use what we found
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14526$as_echo "pre-installed" >&6; }
14527 fi
14528else
14529 ok=yes
14530 case " ${configdirs} " in
14531 *" binutils "*) ;;
14532 *) ok=no ;;
14533 esac
14534
14535 if test $ok = yes; then
14536 # An in-tree tool is available and we can use it
14537 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14539$as_echo "just compiled" >&6; }
14540 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14541 # We already found the complete path
14542 ac_dir=`dirname $RANLIB_FOR_TARGET`
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14544$as_echo "pre-installed in $ac_dir" >&6; }
14545 elif test "x$target" = "x$host"; then
14546 # We can use an host tool
14547 RANLIB_FOR_TARGET='$(RANLIB)'
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14549$as_echo "host tool" >&6; }
14550 else
14551 # We need a cross tool
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14553$as_echo "pre-installed" >&6; }
14554 fi
14555fi
14556
14557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14558$as_echo_n "checking where to find the target readelf... " >&6; }
14559if test "x${build}" != "x${host}" ; then
14560 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14561 # We already found the complete path
14562 ac_dir=`dirname $READELF_FOR_TARGET`
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14564$as_echo "pre-installed in $ac_dir" >&6; }
14565 else
14566 # Canadian cross, just use what we found
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14568$as_echo "pre-installed" >&6; }
14569 fi
14570else
14571 ok=yes
14572 case " ${configdirs} " in
14573 *" binutils "*) ;;
14574 *) ok=no ;;
14575 esac
14576
14577 if test $ok = yes; then
14578 # An in-tree tool is available and we can use it
14579 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14581$as_echo "just compiled" >&6; }
14582 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14583 # We already found the complete path
14584 ac_dir=`dirname $READELF_FOR_TARGET`
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14586$as_echo "pre-installed in $ac_dir" >&6; }
14587 elif test "x$target" = "x$host"; then
14588 # We can use an host tool
14589 READELF_FOR_TARGET='$(READELF)'
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14591$as_echo "host tool" >&6; }
14592 else
14593 # We need a cross tool
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14595$as_echo "pre-installed" >&6; }
14596 fi
14597fi
14598
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14600$as_echo_n "checking where to find the target strip... " >&6; }
14601if test "x${build}" != "x${host}" ; then
14602 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14603 # We already found the complete path
14604 ac_dir=`dirname $STRIP_FOR_TARGET`
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14606$as_echo "pre-installed in $ac_dir" >&6; }
14607 else
14608 # Canadian cross, just use what we found
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14610$as_echo "pre-installed" >&6; }
14611 fi
14612else
14613 ok=yes
14614 case " ${configdirs} " in
14615 *" binutils "*) ;;
14616 *) ok=no ;;
14617 esac
14618
14619 if test $ok = yes; then
14620 # An in-tree tool is available and we can use it
14621 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14623$as_echo "just compiled" >&6; }
14624 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14625 # We already found the complete path
14626 ac_dir=`dirname $STRIP_FOR_TARGET`
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14628$as_echo "pre-installed in $ac_dir" >&6; }
14629 elif test "x$target" = "x$host"; then
14630 # We can use an host tool
14631 STRIP_FOR_TARGET='$(STRIP)'
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14633$as_echo "host tool" >&6; }
14634 else
14635 # We need a cross tool
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14637$as_echo "pre-installed" >&6; }
14638 fi
14639fi
14640
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14642$as_echo_n "checking where to find the target windres... " >&6; }
14643if test "x${build}" != "x${host}" ; then
14644 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14645 # We already found the complete path
14646 ac_dir=`dirname $WINDRES_FOR_TARGET`
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14648$as_echo "pre-installed in $ac_dir" >&6; }
14649 else
14650 # Canadian cross, just use what we found
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14652$as_echo "pre-installed" >&6; }
14653 fi
14654else
14655 ok=yes
14656 case " ${configdirs} " in
14657 *" binutils "*) ;;
14658 *) ok=no ;;
14659 esac
14660
14661 if test $ok = yes; then
14662 # An in-tree tool is available and we can use it
14663 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14665$as_echo "just compiled" >&6; }
14666 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14667 # We already found the complete path
14668 ac_dir=`dirname $WINDRES_FOR_TARGET`
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14670$as_echo "pre-installed in $ac_dir" >&6; }
14671 elif test "x$target" = "x$host"; then
14672 # We can use an host tool
14673 WINDRES_FOR_TARGET='$(WINDRES)'
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14675$as_echo "host tool" >&6; }
14676 else
14677 # We need a cross tool
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14679$as_echo "pre-installed" >&6; }
14680 fi
14681fi
14682
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14684$as_echo_n "checking where to find the target windmc... " >&6; }
14685if test "x${build}" != "x${host}" ; then
14686 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14687 # We already found the complete path
14688 ac_dir=`dirname $WINDMC_FOR_TARGET`
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14690$as_echo "pre-installed in $ac_dir" >&6; }
14691 else
14692 # Canadian cross, just use what we found
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14694$as_echo "pre-installed" >&6; }
14695 fi
14696else
14697 ok=yes
14698 case " ${configdirs} " in
14699 *" binutils "*) ;;
14700 *) ok=no ;;
14701 esac
14702
14703 if test $ok = yes; then
14704 # An in-tree tool is available and we can use it
14705 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14707$as_echo "just compiled" >&6; }
14708 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14709 # We already found the complete path
14710 ac_dir=`dirname $WINDMC_FOR_TARGET`
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14712$as_echo "pre-installed in $ac_dir" >&6; }
14713 elif test "x$target" = "x$host"; then
14714 # We can use an host tool
14715 WINDMC_FOR_TARGET='$(WINDMC)'
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14717$as_echo "host tool" >&6; }
14718 else
14719 # We need a cross tool
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14721$as_echo "pre-installed" >&6; }
14722 fi
14723fi
14724
14725
14726
14727
14728
14729# Certain tools may need extra flags.
14730AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14731RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14732NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14733
14734# When building target libraries, except in a Canadian cross, we use
14735# the same toolchain as the compiler we just built.
14736COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14737COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14738COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14739if test $host = $build; then
14740 case " $configdirs " in
14741 *" gcc "*)
14742 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14743 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14744 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14745 ;;
14746 esac
14747fi
14748
14749
14750
14751
14752
14753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14754$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14755# Check whether --enable-maintainer-mode was given.
14756if test "${enable_maintainer_mode+set}" = set; then :
14757 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14758else
14759 USE_MAINTAINER_MODE=no
14760fi
14761
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14763$as_echo "$USE_MAINTAINER_MODE" >&6; }
14764
14765
14766if test "$USE_MAINTAINER_MODE" = yes; then
14767 MAINTAINER_MODE_TRUE=
14768 MAINTAINER_MODE_FALSE='#'
14769else
14770 MAINTAINER_MODE_TRUE='#'
14771 MAINTAINER_MODE_FALSE=
14772fi
14773MAINT=$MAINTAINER_MODE_TRUE
14774
14775# ---------------------
14776# GCC bootstrap support
14777# ---------------------
14778
14779# Stage specific cflags for build.
14780stage1_cflags="-g"
14781case $build in
14782 vax-*-*)
14783 case ${GCC} in
14784 yes) stage1_cflags="-g -Wa,-J" ;;
14785 *) stage1_cflags="-g -J" ;;
14786 esac ;;
14787esac
14788
14789
14790
14791# Enable --enable-checking in stage1 of the compiler.
14792# Check whether --enable-stage1-checking was given.
14793if test "${enable_stage1_checking+set}" = set; then :
14794 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14795else
14796 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14797 stage1_checking=--enable-checking=yes,types
14798else
14799 stage1_checking=--enable-checking=$enable_checking,types
14800fi
14801fi
14802
14803
14804
14805# Enable -Werror in bootstrap stage2 and later.
14806# Check whether --enable-werror was given.
14807if test "${enable_werror+set}" = set; then :
14808 enableval=$enable_werror;
14809else
14810 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14811 enable_werror=yes
14812else
14813 enable_werror=no
14814fi
14815fi
14816
14817case ${enable_werror} in
14818 yes) stage2_werror_flag="--enable-werror-always" ;;
14819 *) stage2_werror_flag="" ;;
14820esac
14821
14822
14823# Enable --enable-host-shared.
14824# Check whether --enable-host-shared was given.
14825if test "${enable_host_shared+set}" = set; then :
14826 enableval=$enable_host_shared; host_shared=$enableval
14827else
14828 host_shared=no
14829fi
14830
14831
14832
14833# PR jit/64780: Require the user to explicitly specify
14834# --enable-host-shared if the jit is enabled, hinting
14835# that they might want to do a separate configure/build of
14836# the jit, to avoid users from slowing down the rest of the
14837# compiler by enabling the jit.
14838if test ${host_shared} = "no" ; then
14839 case "${enable_languages}" in
14840 *jit*)
14841 as_fn_error "
14842Enabling language \"jit\" requires --enable-host-shared.
14843
14844--enable-host-shared typically slows the rest of the compiler down by
14845a few %, so you must explicitly enable it.
14846
14847If you want to build both the jit and the regular compiler, it is often
14848best to do this via two separate configure/builds, in separate
14849directories, to avoid imposing the performance cost of
14850--enable-host-shared on the regular compiler." "$LINENO" 5
14851 ;;
14852 *)
14853 ;;
14854 esac
14855fi
14856
14857# Specify what files to not compare during bootstrap.
14858
14859compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14860case "$target" in
14861 hppa*64*-*-hpux*) ;;
14862 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14863 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14864esac
14865
14866
14867ac_config_files="$ac_config_files Makefile"
14868
14869cat >confcache <<\_ACEOF
14870# This file is a shell script that caches the results of configure
14871# tests run on this system so they can be shared between configure
14872# scripts and configure runs, see configure's option --config-cache.
14873# It is not useful on other systems. If it contains results you don't
14874# want to keep, you may remove or edit it.
14875#
14876# config.status only pays attention to the cache file if you give it
14877# the --recheck option to rerun configure.
14878#
14879# `ac_cv_env_foo' variables (set or unset) will be overridden when
14880# loading this file, other *unset* `ac_cv_foo' will be assigned the
14881# following values.
14882
14883_ACEOF
14884
14885# The following way of writing the cache mishandles newlines in values,
14886# but we know of no workaround that is simple, portable, and efficient.
14887# So, we kill variables containing newlines.
14888# Ultrix sh set writes to stderr and can't be redirected directly,
14889# and sets the high bit in the cache file unless we assign to the vars.
14890(
14891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14892 eval ac_val=\$$ac_var
14893 case $ac_val in #(
14894 *${as_nl}*)
14895 case $ac_var in #(
14896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14897$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14898 esac
14899 case $ac_var in #(
14900 _ | IFS | as_nl) ;; #(
14901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14902 *) { eval $ac_var=; unset $ac_var;} ;;
14903 esac ;;
14904 esac
14905 done
14906
14907 (set) 2>&1 |
14908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14909 *${as_nl}ac_space=\ *)
14910 # `set' does not quote correctly, so add quotes: double-quote
14911 # substitution turns \\\\ into \\, and sed turns \\ into \.
14912 sed -n \
14913 "s/'/'\\\\''/g;
14914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14915 ;; #(
14916 *)
14917 # `set' quotes correctly as required by POSIX, so do not add quotes.
14918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14919 ;;
14920 esac |
14921 sort
14922) |
14923 sed '
14924 /^ac_cv_env_/b end
14925 t clear
14926 :clear
14927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14928 t end
14929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14930 :end' >>confcache
14931if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14932 if test -w "$cache_file"; then
14933 test "x$cache_file" != "x/dev/null" &&
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14935$as_echo "$as_me: updating cache $cache_file" >&6;}
14936 cat confcache >$cache_file
14937 else
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14939$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14940 fi
14941fi
14942rm -f confcache
14943
14944test "x$prefix" = xNONE && prefix=$ac_default_prefix
14945# Let make expand exec_prefix.
14946test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14947
14948# Transform confdefs.h into DEFS.
14949# Protect against shell expansion while executing Makefile rules.
14950# Protect against Makefile macro expansion.
14951#
14952# If the first sed substitution is executed (which looks for macros that
14953# take arguments), then branch to the quote section. Otherwise,
14954# look for a macro that doesn't take arguments.
14955ac_script='
14956:mline
14957/\\$/{
14958 N
14959 s,\\\n,,
14960 b mline
14961}
14962t clear
14963:clear
14964s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14965t quote
14966s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14967t quote
14968b any
14969:quote
14970s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14971s/\[/\\&/g
14972s/\]/\\&/g
14973s/\$/$$/g
14974H
14975:any
14976${
14977 g
14978 s/^\n//
14979 s/\n/ /g
14980 p
14981}
14982'
14983DEFS=`sed -n "$ac_script" confdefs.h`
14984
14985
14986ac_libobjs=
14987ac_ltlibobjs=
14988for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14989 # 1. Remove the extension, and $U if already installed.
14990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14991 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14993 # will be set to the directory where LIBOBJS objects are built.
14994 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14995 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14996done
14997LIBOBJS=$ac_libobjs
14998
14999LTLIBOBJS=$ac_ltlibobjs
15000
15001
15002
15003: ${CONFIG_STATUS=./config.status}
15004ac_write_fail=0
15005ac_clean_files_save=$ac_clean_files
15006ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15007{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15008$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15009as_write_fail=0
15010cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15011#! $SHELL
15012# Generated by $as_me.
15013# Run this file to recreate the current configuration.
15014# Compiler output produced by configure, useful for debugging
15015# configure, is in config.log if it exists.
15016
15017debug=false
15018ac_cs_recheck=false
15019ac_cs_silent=false
15020
15021SHELL=\${CONFIG_SHELL-$SHELL}
15022export SHELL
15023_ASEOF
15024cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15025## -------------------- ##
15026## M4sh Initialization. ##
15027## -------------------- ##
15028
15029# Be more Bourne compatible
15030DUALCASE=1; export DUALCASE # for MKS sh
15031if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15032 emulate sh
15033 NULLCMD=:
15034 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15035 # is contrary to our usage. Disable this feature.
15036 alias -g '${1+"$@"}'='"$@"'
15037 setopt NO_GLOB_SUBST
15038else
15039 case `(set -o) 2>/dev/null` in #(
15040 *posix*) :
15041 set -o posix ;; #(
15042 *) :
15043 ;;
15044esac
15045fi
15046
15047
15048as_nl='
15049'
15050export as_nl
15051# Printing a long string crashes Solaris 7 /usr/bin/printf.
15052as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15053as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15054as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15055# Prefer a ksh shell builtin over an external printf program on Solaris,
15056# but without wasting forks for bash or zsh.
15057if test -z "$BASH_VERSION$ZSH_VERSION" \
15058 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15059 as_echo='print -r --'
15060 as_echo_n='print -rn --'
15061elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15062 as_echo='printf %s\n'
15063 as_echo_n='printf %s'
15064else
15065 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15066 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15067 as_echo_n='/usr/ucb/echo -n'
15068 else
15069 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15070 as_echo_n_body='eval
15071 arg=$1;
15072 case $arg in #(
15073 *"$as_nl"*)
15074 expr "X$arg" : "X\\(.*\\)$as_nl";
15075 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15076 esac;
15077 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15078 '
15079 export as_echo_n_body
15080 as_echo_n='sh -c $as_echo_n_body as_echo'
15081 fi
15082 export as_echo_body
15083 as_echo='sh -c $as_echo_body as_echo'
15084fi
15085
15086# The user is always right.
15087if test "${PATH_SEPARATOR+set}" != set; then
15088 PATH_SEPARATOR=:
15089 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15090 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15091 PATH_SEPARATOR=';'
15092 }
15093fi
15094
15095
15096# IFS
15097# We need space, tab and new line, in precisely that order. Quoting is
15098# there to prevent editors from complaining about space-tab.
15099# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15100# splitting by setting IFS to empty value.)
15101IFS=" "" $as_nl"
15102
15103# Find who we are. Look in the path if we contain no directory separator.
15104case $0 in #((
15105 *[\\/]* ) as_myself=$0 ;;
15106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107for as_dir in $PATH
15108do
15109 IFS=$as_save_IFS
15110 test -z "$as_dir" && as_dir=.
15111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15112 done
15113IFS=$as_save_IFS
15114
15115 ;;
15116esac
15117# We did not find ourselves, most probably we were run as `sh COMMAND'
15118# in which case we are not to be found in the path.
15119if test "x$as_myself" = x; then
15120 as_myself=$0
15121fi
15122if test ! -f "$as_myself"; then
15123 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15124 exit 1
15125fi
15126
15127# Unset variables that we do not need and which cause bugs (e.g. in
15128# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15129# suppresses any "Segmentation fault" message there. '((' could
15130# trigger a bug in pdksh 5.2.14.
15131for as_var in BASH_ENV ENV MAIL MAILPATH
15132do eval test x\${$as_var+set} = xset \
15133 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15134done
15135PS1='$ '
15136PS2='> '
15137PS4='+ '
15138
15139# NLS nuisances.
15140LC_ALL=C
15141export LC_ALL
15142LANGUAGE=C
15143export LANGUAGE
15144
15145# CDPATH.
15146(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15147
15148
15149# as_fn_error ERROR [LINENO LOG_FD]
15150# ---------------------------------
15151# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15152# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15153# script with status $?, using 1 if that was 0.
15154as_fn_error ()
15155{
15156 as_status=$?; test $as_status -eq 0 && as_status=1
15157 if test "$3"; then
15158 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15159 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15160 fi
15161 $as_echo "$as_me: error: $1" >&2
15162 as_fn_exit $as_status
15163} # as_fn_error
15164
15165
15166# as_fn_set_status STATUS
15167# -----------------------
15168# Set $? to STATUS, without forking.
15169as_fn_set_status ()
15170{
15171 return $1
15172} # as_fn_set_status
15173
15174# as_fn_exit STATUS
15175# -----------------
15176# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15177as_fn_exit ()
15178{
15179 set +e
15180 as_fn_set_status $1
15181 exit $1
15182} # as_fn_exit
15183
15184# as_fn_unset VAR
15185# ---------------
15186# Portably unset VAR.
15187as_fn_unset ()
15188{
15189 { eval $1=; unset $1;}
15190}
15191as_unset=as_fn_unset
15192# as_fn_append VAR VALUE
15193# ----------------------
15194# Append the text in VALUE to the end of the definition contained in VAR. Take
15195# advantage of any shell optimizations that allow amortized linear growth over
15196# repeated appends, instead of the typical quadratic growth present in naive
15197# implementations.
15198if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15199 eval 'as_fn_append ()
15200 {
15201 eval $1+=\$2
15202 }'
15203else
15204 as_fn_append ()
15205 {
15206 eval $1=\$$1\$2
15207 }
15208fi # as_fn_append
15209
15210# as_fn_arith ARG...
15211# ------------------
15212# Perform arithmetic evaluation on the ARGs, and store the result in the
15213# global $as_val. Take advantage of shells that can avoid forks. The arguments
15214# must be portable across $(()) and expr.
15215if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15216 eval 'as_fn_arith ()
15217 {
15218 as_val=$(( $* ))
15219 }'
15220else
15221 as_fn_arith ()
15222 {
15223 as_val=`expr "$@" || test $? -eq 1`
15224 }
15225fi # as_fn_arith
15226
15227
15228if expr a : '\(a\)' >/dev/null 2>&1 &&
15229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15230 as_expr=expr
15231else
15232 as_expr=false
15233fi
15234
15235if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15236 as_basename=basename
15237else
15238 as_basename=false
15239fi
15240
15241if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15242 as_dirname=dirname
15243else
15244 as_dirname=false
15245fi
15246
15247as_me=`$as_basename -- "$0" ||
15248$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15249 X"$0" : 'X\(//\)$' \| \
15250 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15251$as_echo X/"$0" |
15252 sed '/^.*\/\([^/][^/]*\)\/*$/{
15253 s//\1/
15254 q
15255 }
15256 /^X\/\(\/\/\)$/{
15257 s//\1/
15258 q
15259 }
15260 /^X\/\(\/\).*/{
15261 s//\1/
15262 q
15263 }
15264 s/.*/./; q'`
15265
15266# Avoid depending upon Character Ranges.
15267as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15268as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15269as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15270as_cr_digits='0123456789'
15271as_cr_alnum=$as_cr_Letters$as_cr_digits
15272
15273ECHO_C= ECHO_N= ECHO_T=
15274case `echo -n x` in #(((((
15275-n*)
15276 case `echo 'xy\c'` in
15277 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15278 xy) ECHO_C='\c';;
15279 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15280 ECHO_T=' ';;
15281 esac;;
15282*)
15283 ECHO_N='-n';;
15284esac
15285
15286rm -f conf$$ conf$$.exe conf$$.file
15287if test -d conf$$.dir; then
15288 rm -f conf$$.dir/conf$$.file
15289else
15290 rm -f conf$$.dir
15291 mkdir conf$$.dir 2>/dev/null
15292fi
15293if (echo >conf$$.file) 2>/dev/null; then
15294 if ln -s conf$$.file conf$$ 2>/dev/null; then
15295 as_ln_s='ln -s'
15296 # ... but there are two gotchas:
15297 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15298 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15299 # In both cases, we have to default to `cp -p'.
15300 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15301 as_ln_s='cp -p'
15302 elif ln conf$$.file conf$$ 2>/dev/null; then
15303 as_ln_s=ln
15304 else
15305 as_ln_s='cp -p'
15306 fi
15307else
15308 as_ln_s='cp -p'
15309fi
15310rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15311rmdir conf$$.dir 2>/dev/null
15312
15313
15314# as_fn_mkdir_p
15315# -------------
15316# Create "$as_dir" as a directory, including parents if necessary.
15317as_fn_mkdir_p ()
15318{
15319
15320 case $as_dir in #(
15321 -*) as_dir=./$as_dir;;
15322 esac
15323 test -d "$as_dir" || eval $as_mkdir_p || {
15324 as_dirs=
15325 while :; do
15326 case $as_dir in #(
15327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15328 *) as_qdir=$as_dir;;
15329 esac
15330 as_dirs="'$as_qdir' $as_dirs"
15331 as_dir=`$as_dirname -- "$as_dir" ||
15332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15333 X"$as_dir" : 'X\(//\)[^/]' \| \
15334 X"$as_dir" : 'X\(//\)$' \| \
15335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15336$as_echo X"$as_dir" |
15337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15338 s//\1/
15339 q
15340 }
15341 /^X\(\/\/\)[^/].*/{
15342 s//\1/
15343 q
15344 }
15345 /^X\(\/\/\)$/{
15346 s//\1/
15347 q
15348 }
15349 /^X\(\/\).*/{
15350 s//\1/
15351 q
15352 }
15353 s/.*/./; q'`
15354 test -d "$as_dir" && break
15355 done
15356 test -z "$as_dirs" || eval "mkdir $as_dirs"
15357 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15358
15359
15360} # as_fn_mkdir_p
15361if mkdir -p . 2>/dev/null; then
15362 as_mkdir_p='mkdir -p "$as_dir"'
15363else
15364 test -d ./-p && rmdir ./-p
15365 as_mkdir_p=false
15366fi
15367
15368if test -x / >/dev/null 2>&1; then
15369 as_test_x='test -x'
15370else
15371 if ls -dL / >/dev/null 2>&1; then
15372 as_ls_L_option=L
15373 else
15374 as_ls_L_option=
15375 fi
15376 as_test_x='
15377 eval sh -c '\''
15378 if test -d "$1"; then
15379 test -d "$1/.";
15380 else
15381 case $1 in #(
15382 -*)set "./$1";;
15383 esac;
15384 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15385 ???[sx]*):;;*)false;;esac;fi
15386 '\'' sh
15387 '
15388fi
15389as_executable_p=$as_test_x
15390
15391# Sed expression to map a string onto a valid CPP name.
15392as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15393
15394# Sed expression to map a string onto a valid variable name.
15395as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15396
15397
15398exec 6>&1
15399## ----------------------------------- ##
15400## Main body of $CONFIG_STATUS script. ##
15401## ----------------------------------- ##
15402_ASEOF
15403test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15404
15405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15406# Save the log message, to keep $0 and so on meaningful, and to
15407# report actual input values of CONFIG_FILES etc. instead of their
15408# values after options handling.
15409ac_log="
15410This file was extended by $as_me, which was
15411generated by GNU Autoconf 2.64. Invocation command line was
15412
15413 CONFIG_FILES = $CONFIG_FILES
15414 CONFIG_HEADERS = $CONFIG_HEADERS
15415 CONFIG_LINKS = $CONFIG_LINKS
15416 CONFIG_COMMANDS = $CONFIG_COMMANDS
15417 $ $0 $@
15418
15419on `(hostname || uname -n) 2>/dev/null | sed 1q`
15420"
15421
15422_ACEOF
15423
15424case $ac_config_files in *"
15425"*) set x $ac_config_files; shift; ac_config_files=$*;;
15426esac
15427
15428
15429
15430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15431# Files that config.status was made for.
15432config_files="$ac_config_files"
15433
15434_ACEOF
15435
15436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15437ac_cs_usage="\
15438\`$as_me' instantiates files and other configuration actions
15439from templates according to the current configuration. Unless the files
15440and actions are specified as TAGs, all are instantiated by default.
15441
15442Usage: $0 [OPTION]... [TAG]...
15443
15444 -h, --help print this help, then exit
15445 -V, --version print version number and configuration settings, then exit
15446 -q, --quiet, --silent
15447 do not print progress messages
15448 -d, --debug don't remove temporary files
15449 --recheck update $as_me by reconfiguring in the same conditions
15450 --file=FILE[:TEMPLATE]
15451 instantiate the configuration file FILE
15452
15453Configuration files:
15454$config_files
15455
15456Report bugs to the package provider."
15457
15458_ACEOF
15459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15460ac_cs_version="\\
15461config.status
15462configured by $0, generated by GNU Autoconf 2.64,
15463 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15464
15465Copyright (C) 2009 Free Software Foundation, Inc.
15466This config.status script is free software; the Free Software Foundation
15467gives unlimited permission to copy, distribute and modify it."
15468
15469ac_pwd='$ac_pwd'
15470srcdir='$srcdir'
15471INSTALL='$INSTALL'
15472AWK='$AWK'
15473test -n "\$AWK" || AWK=awk
15474_ACEOF
15475
15476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15477# The default lists apply if the user does not specify any file.
15478ac_need_defaults=:
15479while test $# != 0
15480do
15481 case $1 in
15482 --*=*)
15483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15484 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15485 ac_shift=:
15486 ;;
15487 *)
15488 ac_option=$1
15489 ac_optarg=$2
15490 ac_shift=shift
15491 ;;
15492 esac
15493
15494 case $ac_option in
15495 # Handling of the options.
15496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15497 ac_cs_recheck=: ;;
15498 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15499 $as_echo "$ac_cs_version"; exit ;;
15500 --debug | --debu | --deb | --de | --d | -d )
15501 debug=: ;;
15502 --file | --fil | --fi | --f )
15503 $ac_shift
15504 case $ac_optarg in
15505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15506 esac
15507 as_fn_append CONFIG_FILES " '$ac_optarg'"
15508 ac_need_defaults=false;;
15509 --he | --h | --help | --hel | -h )
15510 $as_echo "$ac_cs_usage"; exit ;;
15511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15512 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15513 ac_cs_silent=: ;;
15514
15515 # This is an error.
15516 -*) as_fn_error "unrecognized option: \`$1'
15517Try \`$0 --help' for more information." ;;
15518
15519 *) as_fn_append ac_config_targets " $1"
15520 ac_need_defaults=false ;;
15521
15522 esac
15523 shift
15524done
15525
15526ac_configure_extra_args=
15527
15528if $ac_cs_silent; then
15529 exec 6>/dev/null
15530 ac_configure_extra_args="$ac_configure_extra_args --silent"
15531fi
15532
15533_ACEOF
15534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535if \$ac_cs_recheck; then
15536 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15537 shift
15538 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15539 CONFIG_SHELL='$SHELL'
15540 export CONFIG_SHELL
15541 exec "\$@"
15542fi
15543
15544_ACEOF
15545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15546exec 5>>config.log
15547{
15548 echo
15549 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15550## Running $as_me. ##
15551_ASBOX
15552 $as_echo "$ac_log"
15553} >&5
15554
15555_ACEOF
15556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15557#
15558# INIT-COMMANDS
15559#
15560extrasub_build="$extrasub_build"
15561 extrasub_host="$extrasub_host"
15562 extrasub_target="$extrasub_target"
15563
15564_ACEOF
15565
15566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15567
15568# Handling of arguments.
15569for ac_config_target in $ac_config_targets
15570do
15571 case $ac_config_target in
15572 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15573
15574 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15575 esac
15576done
15577
15578
15579# If the user did not use the arguments to specify the items to instantiate,
15580# then the envvar interface is used. Set only those that are not.
15581# We use the long form for the default assignment because of an extremely
15582# bizarre bug on SunOS 4.1.3.
15583if $ac_need_defaults; then
15584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15585fi
15586
15587# Have a temporary directory for convenience. Make it in the build tree
15588# simply because there is no reason against having it here, and in addition,
15589# creating and moving files from /tmp can sometimes cause problems.
15590# Hook for its removal unless debugging.
15591# Note that there is a small window in which the directory will not be cleaned:
15592# after its creation but before its name has been assigned to `$tmp'.
15593$debug ||
15594{
15595 tmp=
15596 trap 'exit_status=$?
15597 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15598' 0
15599 trap 'as_fn_exit 1' 1 2 13 15
15600}
15601# Create a (secure) tmp directory for tmp files.
15602
15603{
15604 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15605 test -n "$tmp" && test -d "$tmp"
15606} ||
15607{
15608 tmp=./conf$$-$RANDOM
15609 (umask 077 && mkdir "$tmp")
15610} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15611
15612# Set up the scripts for CONFIG_FILES section.
15613# No need to generate them if there are no CONFIG_FILES.
15614# This happens for instance with `./config.status config.h'.
15615if test -n "$CONFIG_FILES"; then
15616
15617if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15618 ac_cs_awk_getline=:
15619 ac_cs_awk_pipe_init=
15620 ac_cs_awk_read_file='
15621 while ((getline aline < (F[key])) > 0)
15622 print(aline)
15623 close(F[key])'
15624 ac_cs_awk_pipe_fini=
15625else
15626 ac_cs_awk_getline=false
15627 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15628 ac_cs_awk_read_file='
15629 print "|#_!!_#|"
15630 print "cat " F[key] " &&"
15631 '$ac_cs_awk_pipe_init
15632 # The final `:' finishes the AND list.
15633 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15634fi
15635ac_cr=`echo X | tr X '\015'`
15636# On cygwin, bash can eat \r inside `` if the user requested igncr.
15637# But we know of no other shell where ac_cr would be empty at this
15638# point, so we can use a bashism as a fallback.
15639if test "x$ac_cr" = x; then
15640 eval ac_cr=\$\'\\r\'
15641fi
15642ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15643if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15644 ac_cs_awk_cr='\r'
15645else
15646 ac_cs_awk_cr=$ac_cr
15647fi
15648
15649echo 'BEGIN {' >"$tmp/subs1.awk" &&
15650_ACEOF
15651
15652# Create commands to substitute file output variables.
15653{
15654 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15655 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15656 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15657 echo "_ACAWK" &&
15658 echo "_ACEOF"
15659} >conf$$files.sh &&
15660. ./conf$$files.sh ||
15661 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15662rm -f conf$$files.sh
15663
15664{
15665 echo "cat >conf$$subs.awk <<_ACEOF" &&
15666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15667 echo "_ACEOF"
15668} >conf$$subs.sh ||
15669 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15670ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15671ac_delim='%!_!# '
15672for ac_last_try in false false false false false :; do
15673 . ./conf$$subs.sh ||
15674 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15675
15676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15677 if test $ac_delim_n = $ac_delim_num; then
15678 break
15679 elif $ac_last_try; then
15680 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15681 else
15682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15683 fi
15684done
15685rm -f conf$$subs.sh
15686
15687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15688cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15689_ACEOF
15690sed -n '
15691h
15692s/^/S["/; s/!.*/"]=/
15693p
15694g
15695s/^[^!]*!//
15696:repl
15697t repl
15698s/'"$ac_delim"'$//
15699t delim
15700:nl
15701h
15702s/\(.\{148\}\).*/\1/
15703t more1
15704s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15705p
15706n
15707b repl
15708:more1
15709s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15710p
15711g
15712s/.\{148\}//
15713t nl
15714:delim
15715h
15716s/\(.\{148\}\).*/\1/
15717t more2
15718s/["\\]/\\&/g; s/^/"/; s/$/"/
15719p
15720b
15721:more2
15722s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15723p
15724g
15725s/.\{148\}//
15726t delim
15727' <conf$$subs.awk | sed '
15728/^[^""]/{
15729 N
15730 s/\n//
15731}
15732' >>$CONFIG_STATUS || ac_write_fail=1
15733rm -f conf$$subs.awk
15734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15735_ACAWK
15736cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15737 for (key in S) S_is_set[key] = 1
15738 FS = "\a"
15739 \$ac_cs_awk_pipe_init
15740}
15741{
15742 line = $ 0
15743 nfields = split(line, field, "@")
15744 substed = 0
15745 len = length(field[1])
15746 for (i = 2; i < nfields; i++) {
15747 key = field[i]
15748 keylen = length(key)
15749 if (S_is_set[key]) {
15750 value = S[key]
15751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15752 len += length(value) + length(field[++i])
15753 substed = 1
15754 } else
15755 len += 1 + keylen
15756 }
15757 if (nfields == 3 && !substed) {
15758 key = field[2]
15759 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15760 \$ac_cs_awk_read_file
15761 next
15762 }
15763 }
15764 print line
15765}
15766\$ac_cs_awk_pipe_fini
15767_ACAWK
15768_ACEOF
15769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15772else
15773 cat
15774fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15775 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15776_ACEOF
15777
15778# VPATH may cause trouble with some makes, so we remove $(srcdir),
15779# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15780# trailing colons and then remove the whole line if VPATH becomes empty
15781# (actually we leave an empty line to preserve line numbers).
15782if test "x$srcdir" = x.; then
15783 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15784s/:*\$(srcdir):*/:/
15785s/:*\${srcdir}:*/:/
15786s/:*@srcdir@:*/:/
15787s/^\([^=]*=[ ]*\):*/\1/
15788s/:*$//
15789s/^[^=]*=[ ]*$//
15790}'
15791fi
15792
15793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15794fi # test -n "$CONFIG_FILES"
15795
15796
15797eval set X " :F $CONFIG_FILES "
15798shift
15799for ac_tag
15800do
15801 case $ac_tag in
15802 :[FHLC]) ac_mode=$ac_tag; continue;;
15803 esac
15804 case $ac_mode$ac_tag in
15805 :[FHL]*:*);;
15806 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15807 :[FH]-) ac_tag=-:-;;
15808 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15809 esac
15810 ac_save_IFS=$IFS
15811 IFS=:
15812 set x $ac_tag
15813 IFS=$ac_save_IFS
15814 shift
15815 ac_file=$1
15816 shift
15817
15818 case $ac_mode in
15819 :L) ac_source=$1;;
15820 :[FH])
15821 ac_file_inputs=
15822 for ac_f
15823 do
15824 case $ac_f in
15825 -) ac_f="$tmp/stdin";;
15826 *) # Look for the file first in the build tree, then in the source tree
15827 # (if the path is not absolute). The absolute path cannot be DOS-style,
15828 # because $ac_f cannot contain `:'.
15829 test -f "$ac_f" ||
15830 case $ac_f in
15831 [\\/$]*) false;;
15832 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15833 esac ||
15834 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15835 esac
15836 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15837 as_fn_append ac_file_inputs " '$ac_f'"
15838 done
15839
15840 # Let's still pretend it is `configure' which instantiates (i.e., don't
15841 # use $as_me), people would be surprised to read:
15842 # /* config.h. Generated by config.status. */
15843 configure_input='Generated from '`
15844 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15845 `' by configure.'
15846 if test x"$ac_file" != x-; then
15847 configure_input="$ac_file. $configure_input"
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15849$as_echo "$as_me: creating $ac_file" >&6;}
15850 fi
15851 # Neutralize special characters interpreted by sed in replacement strings.
15852 case $configure_input in #(
15853 *\&* | *\|* | *\\* )
15854 ac_sed_conf_input=`$as_echo "$configure_input" |
15855 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15856 *) ac_sed_conf_input=$configure_input;;
15857 esac
15858
15859 case $ac_tag in
15860 *:-:* | *:-) cat >"$tmp/stdin" \
15861 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15862 esac
15863 ;;
15864 esac
15865
15866 ac_dir=`$as_dirname -- "$ac_file" ||
15867$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15868 X"$ac_file" : 'X\(//\)[^/]' \| \
15869 X"$ac_file" : 'X\(//\)$' \| \
15870 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15871$as_echo X"$ac_file" |
15872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15873 s//\1/
15874 q
15875 }
15876 /^X\(\/\/\)[^/].*/{
15877 s//\1/
15878 q
15879 }
15880 /^X\(\/\/\)$/{
15881 s//\1/
15882 q
15883 }
15884 /^X\(\/\).*/{
15885 s//\1/
15886 q
15887 }
15888 s/.*/./; q'`
15889 as_dir="$ac_dir"; as_fn_mkdir_p
15890 ac_builddir=.
15891
15892case "$ac_dir" in
15893.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15894*)
15895 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15896 # A ".." for each directory in $ac_dir_suffix.
15897 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15898 case $ac_top_builddir_sub in
15899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15901 esac ;;
15902esac
15903ac_abs_top_builddir=$ac_pwd
15904ac_abs_builddir=$ac_pwd$ac_dir_suffix
15905# for backward compatibility:
15906ac_top_builddir=$ac_top_build_prefix
15907
15908case $srcdir in
15909 .) # We are building in place.
15910 ac_srcdir=.
15911 ac_top_srcdir=$ac_top_builddir_sub
15912 ac_abs_top_srcdir=$ac_pwd ;;
15913 [\\/]* | ?:[\\/]* ) # Absolute name.
15914 ac_srcdir=$srcdir$ac_dir_suffix;
15915 ac_top_srcdir=$srcdir
15916 ac_abs_top_srcdir=$srcdir ;;
15917 *) # Relative name.
15918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15919 ac_top_srcdir=$ac_top_build_prefix$srcdir
15920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15921esac
15922ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15923
15924
15925 case $ac_mode in
15926 :F)
15927 #
15928 # CONFIG_FILE
15929 #
15930
15931 case $INSTALL in
15932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15933 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15934 esac
15935_ACEOF
15936
15937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15938# If the template does not know about datarootdir, expand it.
15939# FIXME: This hack should be removed a few years after 2.60.
15940ac_datarootdir_hack=; ac_datarootdir_seen=
15941ac_sed_dataroot='
15942/datarootdir/ {
15943 p
15944 q
15945}
15946/@datadir@/p
15947/@docdir@/p
15948/@infodir@/p
15949/@localedir@/p
15950/@mandir@/p'
15951case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15952*datarootdir*) ac_datarootdir_seen=yes;;
15953*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15955$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15956_ACEOF
15957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15958 ac_datarootdir_hack='
15959 s&@datadir@&$datadir&g
15960 s&@docdir@&$docdir&g
15961 s&@infodir@&$infodir&g
15962 s&@localedir@&$localedir&g
15963 s&@mandir@&$mandir&g
15964 s&\\\${datarootdir}&$datarootdir&g' ;;
15965esac
15966_ACEOF
15967
15968# Neutralize VPATH when `$srcdir' = `.'.
15969# Shell code in configure.ac might set extrasub.
15970# FIXME: do we really want to maintain this feature?
15971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972ac_sed_extra="$ac_vpsub
15973$extrasub
15974_ACEOF
15975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976:t
15977/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15978s|@configure_input@|$ac_sed_conf_input|;t t
15979s&@top_builddir@&$ac_top_builddir_sub&;t t
15980s&@top_build_prefix@&$ac_top_build_prefix&;t t
15981s&@srcdir@&$ac_srcdir&;t t
15982s&@abs_srcdir@&$ac_abs_srcdir&;t t
15983s&@top_srcdir@&$ac_top_srcdir&;t t
15984s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15985s&@builddir@&$ac_builddir&;t t
15986s&@abs_builddir@&$ac_abs_builddir&;t t
15987s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15988s&@INSTALL@&$ac_INSTALL&;t t
15989$ac_datarootdir_hack
15990"
15991eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15992if $ac_cs_awk_getline; then
15993 $AWK -f "$tmp/subs.awk"
15994else
15995 $AWK -f "$tmp/subs.awk" | $SHELL
15996fi >$tmp/out \
15997 || as_fn_error "could not create $ac_file" "$LINENO" 5
15998
15999test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16000 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16003which seems to be undefined. Please make sure it is defined." >&5
16004$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16005which seems to be undefined. Please make sure it is defined." >&2;}
16006
16007 rm -f "$tmp/stdin"
16008 case $ac_file in
16009 -) cat "$tmp/out" && rm -f "$tmp/out";;
16010 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16011 esac \
16012 || as_fn_error "could not create $ac_file" "$LINENO" 5
16013 ;;
16014
16015
16016
16017 esac
16018
16019
16020 case $ac_file$ac_mode in
16021 "Makefile":F) sed "$extrasub_build" Makefile |
16022 sed "$extrasub_host" |
16023 sed "$extrasub_target" > mf$$
16024 mv -f mf$$ Makefile ;;
16025
16026 esac
16027done # for ac_tag
16028
16029
16030as_fn_exit 0
16031_ACEOF
16032ac_clean_files=$ac_clean_files_save
16033
16034test $ac_write_fail = 0 ||
16035 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16036
16037
16038# configure is writing to config.log, and then calls config.status.
16039# config.status does its own redirection, appending to config.log.
16040# Unfortunately, on DOS this fails, as config.log is still kept open
16041# by configure, so config.status won't be able to write to it; its
16042# output is simply discarded. So we exec the FD to /dev/null,
16043# effectively closing config.log, so it can be properly (re)opened and
16044# appended to by config.status. When coming back to configure, we
16045# need to make the FD available again.
16046if test "$no_create" != yes; then
16047 ac_cs_success=:
16048 ac_config_status_args=
16049 test "$silent" = yes &&
16050 ac_config_status_args="$ac_config_status_args --quiet"
16051 exec 5>/dev/null
16052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16053 exec 5>>config.log
16054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16055 # would make configure fail if this is the last instruction.
16056 $ac_cs_success || as_fn_exit $?
16057fi
16058if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16060$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16061fi
16062
This page took 0.07523 seconds and 4 git commands to generate.