Bug 29580 - typo in warning message: .note.gnu.build-id data size is too bug
[binutils-gdb.git] / configure
blob16139e3bfa3b8ff67249677e7986469b5515c56c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if 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=';'
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OBJDUMP_FOR_TARGET
607 OBJCOPY_FOR_TARGET
608 NM_FOR_TARGET
609 LIPO_FOR_TARGET
610 LD_FOR_TARGET
611 DLLTOOL_FOR_TARGET
612 AS_FOR_TARGET
613 AR_FOR_TARGET
614 GOC_FOR_TARGET
615 GFORTRAN_FOR_TARGET
616 GCC_FOR_TARGET
617 CXX_FOR_TARGET
618 CC_FOR_TARGET
619 RANLIB_PLUGIN_OPTION
620 AR_PLUGIN_OPTION
621 PKG_CONFIG_PATH
622 READELF
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
630 LIPO
632 DLLTOOL
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GOC_FOR_BUILD
650 GFORTRAN_FOR_BUILD
651 DLLTOOL_FOR_BUILD
652 CXX_FOR_BUILD
653 CXXFLAGS_FOR_BUILD
654 CFLAGS_FOR_BUILD
655 CC_FOR_BUILD
656 AS_FOR_BUILD
657 AR_FOR_BUILD
658 target_configdirs
659 configdirs
660 build_configdirs
661 INSTALL_GDB_TK
662 GDB_TK
663 CONFIGURE_GDB_TK
664 build_tooldir
665 tooldir
666 GCC_SHLIB_SUBDIR
667 RPATH_ENVVAR
668 target_configargs
669 host_configargs
670 build_configargs
671 BUILD_CONFIG
672 LDFLAGS_FOR_TARGET
673 CXXFLAGS_FOR_TARGET
674 CFLAGS_FOR_TARGET
675 DEBUG_PREFIX_CFLAGS_FOR_TARGET
676 SYSROOT_CFLAGS_FOR_TARGET
677 get_gcc_base_ver
678 extra_host_zlib_configure_flags
679 extra_host_libiberty_configure_flags
680 stage1_languages
681 host_shared
682 extra_linker_plugin_flags
683 extra_linker_plugin_configure_flags
684 islinc
685 isllibs
686 poststage1_ldflags
687 poststage1_libs
688 stage1_ldflags
689 stage1_libs
690 extra_isl_gmp_configure_flags
691 extra_mpc_mpfr_configure_flags
692 extra_mpc_gmp_configure_flags
693 extra_mpfr_configure_flags
694 gmpinc
695 gmplibs
696 PGO_BUILD_LTO_CFLAGS
697 PGO_BUILD_USE_CFLAGS
698 PGO_BUILD_GEN_CFLAGS
699 do_compare
700 GNATMAKE
701 GNATBIND
702 ac_ct_CXX
703 CXXFLAGS
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
712 extra_liboffloadmic_configure_flags
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
719 LN_S
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 target_noncanonical
733 host_noncanonical
734 build_noncanonical
735 build_os
736 build_vendor
737 build_cpu
738 build
739 TOPLEVEL_CONFIGURE_ARGUMENTS
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files='serialization_dependencies
779 host_makefile_frag
780 target_makefile_frag
781 alphaieee_frag
782 ospace_frag'
783 ac_user_opts='
784 enable_option_checking
785 with_build_libsubdir
786 with_system_zlib
787 enable_as_accelerator_for
788 enable_offload_targets
789 enable_gold
790 enable_ld
791 enable_gprofng
792 enable_compressed_debug_sections
793 enable_year2038
794 enable_libquadmath
795 enable_libquadmath_support
796 enable_libada
797 enable_libssp
798 enable_libstdcxx
799 enable_liboffloadmic
800 enable_bootstrap
801 enable_pgo_build
802 with_mpc
803 with_mpc_include
804 with_mpc_lib
805 with_mpfr_dir
806 with_mpfr
807 with_mpfr_include
808 with_mpfr_lib
809 with_gmp_dir
810 with_gmp
811 with_gmp_include
812 with_gmp_lib
813 with_stage1_libs
814 with_static_standard_libraries
815 with_stage1_ldflags
816 with_boot_libs
817 with_boot_ldflags
818 with_isl
819 with_isl_include
820 with_isl_lib
821 enable_isl_version_check
822 enable_lto
823 enable_linker_plugin_configure_flags
824 enable_linker_plugin_flags
825 enable_host_shared
826 enable_stage1_languages
827 enable_objc_gc
828 with_target_bdw_gc
829 with_target_bdw_gc_include
830 with_target_bdw_gc_lib
831 with_gcc_major_version_only
832 with_build_sysroot
833 with_debug_prefix_map
834 with_build_config
835 enable_vtable_verify
836 enable_serial_configure
837 with_build_time_tools
838 enable_maintainer_mode
839 enable_stage1_checking
840 enable_werror
842 ac_precious_vars='build_alias
843 host_alias
844 target_alias
846 CFLAGS
847 LDFLAGS
848 LIBS
849 CPPFLAGS
851 CXXFLAGS
853 build_configargs
854 host_configargs
855 target_configargs
858 DLLTOOL
860 LIPO
862 RANLIB
863 STRIP
864 WINDRES
865 WINDMC
866 OBJCOPY
867 OBJDUMP
868 READELF
869 CC_FOR_TARGET
870 CXX_FOR_TARGET
871 GCC_FOR_TARGET
872 GFORTRAN_FOR_TARGET
873 GOC_FOR_TARGET
874 AR_FOR_TARGET
875 AS_FOR_TARGET
876 DLLTOOL_FOR_TARGET
877 LD_FOR_TARGET
878 LIPO_FOR_TARGET
879 NM_FOR_TARGET
880 OBJCOPY_FOR_TARGET
881 OBJDUMP_FOR_TARGET
882 RANLIB_FOR_TARGET
883 READELF_FOR_TARGET
884 STRIP_FOR_TARGET
885 WINDRES_FOR_TARGET
886 WINDMC_FOR_TARGET'
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
937 ac_prev=
938 ac_dashdash=
939 for ac_option
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
948 case $ac_option in
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
952 esac
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
958 ac_dashdash=yes ;;
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
977 --config-cache | -C)
978 cache_file=config.cache ;;
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1294 esac
1295 done
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error $? "missing argument to $ac_option"
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350 test "$silent" = yes && exec 6>/dev/null
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1379 /^X\(\/\/\)$/{
1380 s//\1/
1383 /^X\(\/\).*/{
1384 s//\1/
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1392 else
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 case $srcdir in
1414 *" "*)
1415 as_fn_error $? "path to source, $srcdir, contains spaces"
1417 esac
1418 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1428 # Report the --help message.
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures this package to adapt to many kinds of systems.
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1441 Defaults for the options are specified in brackets.
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking ...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1465 For better control, use the options below.
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1489 cat <<\_ACEOF
1491 Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 --target=TARGET configure for building compilers for TARGET [HOST]
1500 _ACEOF
1503 if test -n "$ac_init_help"; then
1505 cat <<\_ACEOF
1507 Optional Features:
1508 --disable-option-checking ignore unrecognized --enable/--with options
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --enable-as-accelerator-for=ARG
1512 build as offload target compiler. Specify offload
1513 host triple by ARG
1514 --enable-offload-targets=LIST
1515 enable offloading to devices from comma-separated
1516 LIST of TARGET[=DIR]. Use optional path to find
1517 offload target compiler during the build
1518 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1519 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1520 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1521 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1522 Enable compressed debug sections for gas, gold or ld
1523 by default
1524 --enable-year2038 enable support for timestamps past the year 2038
1525 --disable-libquadmath do not build libquadmath directory
1526 --disable-libquadmath-support
1527 disable libquadmath support for Fortran
1528 --enable-libada build libada directory
1529 --enable-libssp build libssp directory
1530 --disable-libstdcxx do not build libstdc++-v3 directory
1531 --enable-liboffloadmic=ARG
1532 build liboffloadmic [ARG={no,host,target}]
1533 --enable-bootstrap enable bootstrapping [yes if native build]
1534 --enable-pgo-build[=lto]
1535 enable the PGO build
1536 --disable-isl-version-check
1537 disable check for isl version
1538 --enable-lto enable link time optimization support
1539 --enable-linker-plugin-configure-flags=FLAGS
1540 additional flags for configuring linker plugins
1541 [none]
1542 --enable-linker-plugin-flags=FLAGS
1543 additional flags for configuring and building linker
1544 plugins [none]
1545 --enable-host-shared build host code as shared libraries
1546 --enable-stage1-languages[=all]
1547 choose additional languages to build during stage1.
1548 Mostly useful for compiler development
1549 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1550 Objective-C runtime
1551 --enable-vtable-verify Enable vtable verification feature
1552 --enable-serial-[{host,target,build}-]configure
1553 force sequential configuration of sub-packages for
1554 the host, target or build machine, or all
1555 sub-packages
1556 --enable-maintainer-mode
1557 enable make rules and dependencies not useful (and
1558 sometimes confusing) to the casual installer
1559 --enable-stage1-checking[=all]
1560 choose additional checking for stage1 of the
1561 compiler
1562 --enable-werror enable -Werror in bootstrap stage2 and later
1564 Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-build-libsubdir=DIR Directory where to find libraries for build system
1568 --with-system-zlib use installed libz
1569 --with-mpc=PATH specify prefix directory for installed MPC package.
1570 Equivalent to --with-mpc-include=PATH/include plus
1571 --with-mpc-lib=PATH/lib
1572 --with-mpc-include=PATH specify directory for installed MPC include files
1573 --with-mpc-lib=PATH specify directory for the installed MPC library
1574 --with-mpfr-dir=PATH this option has been REMOVED
1575 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1576 Equivalent to --with-mpfr-include=PATH/include plus
1577 --with-mpfr-lib=PATH/lib
1578 --with-mpfr-include=PATH
1579 specify directory for installed MPFR include files
1580 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1581 --with-gmp-dir=PATH this option has been REMOVED
1582 --with-gmp=PATH specify prefix directory for the installed GMP
1583 package. Equivalent to
1584 --with-gmp-include=PATH/include plus
1585 --with-gmp-lib=PATH/lib
1586 --with-gmp-include=PATH specify directory for installed GMP include files
1587 --with-gmp-lib=PATH specify directory for the installed GMP library
1588 --with-stage1-libs=LIBS libraries for stage1
1589 --with-static-standard-libraries
1590 use -static-libstdc++ and -static-libgcc
1591 (default=auto)
1592 --with-stage1-ldflags=FLAGS
1593 linker flags for stage1
1594 --with-boot-libs=LIBS libraries for stage2 and later
1595 --with-boot-ldflags=FLAGS
1596 linker flags for stage2 and later
1597 --with-isl=PATH Specify prefix directory for the installed isl
1598 package. Equivalent to
1599 --with-isl-include=PATH/include plus
1600 --with-isl-lib=PATH/lib
1601 --with-isl-include=PATH Specify directory for installed isl include files
1602 --with-isl-lib=PATH Specify the directory for the installed isl library
1603 --with-target-bdw-gc=PATHLIST
1604 specify prefix directory for installed bdw-gc
1605 package. Equivalent to
1606 --with-target-bdw-gc-include=PATH/include plus
1607 --with-target-bdw-gc-lib=PATH/lib
1608 --with-target-bdw-gc-include=PATHLIST
1609 specify directories for installed bdw-gc include
1610 files
1611 --with-target-bdw-gc-lib=PATHLIST
1612 specify directories for installed bdw-gc library
1613 --with-gcc-major-version-only
1614 use only GCC major number in filesystem paths
1615 --with-build-sysroot=SYSROOT
1616 use sysroot as the system root during the build
1617 --with-debug-prefix-map='A=B C=D ...'
1618 map A to B, C to D ... in debug information
1619 --with-build-config='NAME NAME2...'
1620 use config/NAME.mk build configuration
1621 --with-build-time-tools=PATH
1622 use given path to find target tools during the build
1624 Some influential environment variables:
1625 CC C compiler command
1626 CFLAGS C compiler flags
1627 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1628 nonstandard directory <lib dir>
1629 LIBS libraries to pass to the linker, e.g. -l<library>
1630 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631 you have headers in a nonstandard directory <include dir>
1632 CXX C++ compiler command
1633 CXXFLAGS C++ compiler flags
1634 build_configargs
1635 additional configure arguments for build directories
1636 host_configargs
1637 additional configure arguments for host directories
1638 target_configargs
1639 additional configure arguments for target directories
1640 AR AR for the host
1641 AS AS for the host
1642 DLLTOOL DLLTOOL for the host
1643 LD LD for the host
1644 LIPO LIPO for the host
1645 NM NM for the host
1646 RANLIB RANLIB for the host
1647 STRIP STRIP for the host
1648 WINDRES WINDRES for the host
1649 WINDMC WINDMC for the host
1650 OBJCOPY OBJCOPY for the host
1651 OBJDUMP OBJDUMP for the host
1652 READELF READELF for the host
1653 CC_FOR_TARGET
1654 CC for the target
1655 CXX_FOR_TARGET
1656 CXX for the target
1657 GCC_FOR_TARGET
1658 GCC for the target
1659 GFORTRAN_FOR_TARGET
1660 GFORTRAN for the target
1661 GOC_FOR_TARGET
1662 GOC for the target
1663 AR_FOR_TARGET
1664 AR for the target
1665 AS_FOR_TARGET
1666 AS for the target
1667 DLLTOOL_FOR_TARGET
1668 DLLTOOL for the target
1669 LD_FOR_TARGET
1670 LD for the target
1671 LIPO_FOR_TARGET
1672 LIPO for the target
1673 NM_FOR_TARGET
1674 NM for the target
1675 OBJCOPY_FOR_TARGET
1676 OBJCOPY for the target
1677 OBJDUMP_FOR_TARGET
1678 OBJDUMP for the target
1679 RANLIB_FOR_TARGET
1680 RANLIB for the target
1681 READELF_FOR_TARGET
1682 READELF for the target
1683 STRIP_FOR_TARGET
1684 STRIP for the target
1685 WINDRES_FOR_TARGET
1686 WINDRES for the target
1687 WINDMC_FOR_TARGET
1688 WINDMC for the target
1690 Use these variables to override the choices made by `configure' or to help
1691 it to find libraries and programs with nonstandard names/locations.
1693 Report bugs to the package provider.
1694 _ACEOF
1695 ac_status=$?
1698 if test "$ac_init_help" = "recursive"; then
1699 # If there are subdirs, report their specific --help.
1700 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1701 test -d "$ac_dir" ||
1702 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1703 continue
1704 ac_builddir=.
1706 case "$ac_dir" in
1707 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1710 # A ".." for each directory in $ac_dir_suffix.
1711 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1712 case $ac_top_builddir_sub in
1713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715 esac ;;
1716 esac
1717 ac_abs_top_builddir=$ac_pwd
1718 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1719 # for backward compatibility:
1720 ac_top_builddir=$ac_top_build_prefix
1722 case $srcdir in
1723 .) # We are building in place.
1724 ac_srcdir=.
1725 ac_top_srcdir=$ac_top_builddir_sub
1726 ac_abs_top_srcdir=$ac_pwd ;;
1727 [\\/]* | ?:[\\/]* ) # Absolute name.
1728 ac_srcdir=$srcdir$ac_dir_suffix;
1729 ac_top_srcdir=$srcdir
1730 ac_abs_top_srcdir=$srcdir ;;
1731 *) # Relative name.
1732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1733 ac_top_srcdir=$ac_top_build_prefix$srcdir
1734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1735 esac
1736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738 cd "$ac_dir" || { ac_status=$?; continue; }
1739 # Check for guested configure.
1740 if test -f "$ac_srcdir/configure.gnu"; then
1741 echo &&
1742 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1743 elif test -f "$ac_srcdir/configure"; then
1744 echo &&
1745 $SHELL "$ac_srcdir/configure" --help=recursive
1746 else
1747 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1748 fi || ac_status=$?
1749 cd "$ac_pwd" || { ac_status=$?; break; }
1750 done
1753 test -n "$ac_init_help" && exit $ac_status
1754 if $ac_init_version; then
1755 cat <<\_ACEOF
1756 configure
1757 generated by GNU Autoconf 2.69
1759 Copyright (C) 2012 Free Software Foundation, Inc.
1760 This configure script is free software; the Free Software Foundation
1761 gives unlimited permission to copy, distribute and modify it.
1762 _ACEOF
1763 exit
1766 ## ------------------------ ##
1767 ## Autoconf initialization. ##
1768 ## ------------------------ ##
1770 # ac_fn_c_try_compile LINENO
1771 # --------------------------
1772 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_c_try_compile ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext
1777 if { { ac_try="$ac_compile"
1778 case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_compile") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest.$ac_objext; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1806 } # ac_fn_c_try_compile
1808 # ac_fn_cxx_try_compile LINENO
1809 # ----------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=1
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_cxx_try_compile
1846 # ac_fn_cxx_try_link LINENO
1847 # -------------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_link ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 test -x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1890 } # ac_fn_cxx_try_link
1892 # ac_fn_c_try_link LINENO
1893 # -----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_c_try_link ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 test -x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=1
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_c_try_link
1937 cat >config.log <<_ACEOF
1938 This file contains any messages produced by compilers while
1939 running configure, to aid debugging if configure makes a mistake.
1941 It was created by $as_me, which was
1942 generated by GNU Autoconf 2.69. Invocation command line was
1944 $ $0 $@
1946 _ACEOF
1947 exec 5>>config.log
1949 cat <<_ASUNAME
1950 ## --------- ##
1951 ## Platform. ##
1952 ## --------- ##
1954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971 _ASUNAME
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 $as_echo "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1982 } >&5
1984 cat >&5 <<_ACEOF
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1991 _ACEOF
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2005 for ac_arg
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2034 as_fn_append ac_configure_args " '$ac_arg'"
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Save into config.log some information that might help in debugging.
2050 echo
2052 $as_echo "## ---------------- ##
2053 ## Cache variables. ##
2054 ## ---------------- ##"
2055 echo
2056 # The following way of writing the cache mishandles newlines in values,
2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in #(
2061 *${as_nl}*)
2062 case $ac_var in #(
2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 esac
2066 case $ac_var in #(
2067 _ | IFS | as_nl) ;; #(
2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069 *) { eval $ac_var=; unset $ac_var;} ;;
2070 esac ;;
2071 esac
2072 done
2073 (set) 2>&1 |
2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075 *${as_nl}ac_space=\ *)
2076 sed -n \
2077 "s/'\''/'\''\\\\'\'''\''/g;
2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 ;; #(
2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083 esac |
2084 sort
2086 echo
2088 $as_echo "## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##"
2091 echo
2092 for ac_var in $ac_subst_vars
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2102 if test -n "$ac_subst_files"; then
2103 $as_echo "## ------------------- ##
2104 ## File substitutions. ##
2105 ## ------------------- ##"
2106 echo
2107 for ac_var in $ac_subst_files
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2118 if test -s confdefs.h; then
2119 $as_echo "## ----------- ##
2120 ## confdefs.h. ##
2121 ## ----------- ##"
2122 echo
2123 cat confdefs.h
2124 echo
2126 test "$ac_signal" != 0 &&
2127 $as_echo "$as_me: caught signal $ac_signal"
2128 $as_echo "$as_me: exit $exit_status"
2129 } >&5
2130 rm -f core *.core core.conftest.* &&
2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132 exit $exit_status
2134 for ac_signal in 1 2 13 15; do
2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136 done
2137 ac_signal=0
2139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2140 rm -f -r conftest* confdefs.h
2142 $as_echo "/* confdefs.h */" > confdefs.h
2144 # Predefined preprocessor variables.
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 _ACEOF
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_URL "$PACKAGE_URL"
2168 _ACEOF
2171 # Let the site file select an alternate cache file if it wants to.
2172 # Prefer an explicitly selected file to automatically selected ones.
2173 ac_site_file1=NONE
2174 ac_site_file2=NONE
2175 if test -n "$CONFIG_SITE"; then
2176 # We do not want a PATH search for config.site.
2177 case $CONFIG_SITE in #((
2178 -*) ac_site_file1=./$CONFIG_SITE;;
2179 */*) ac_site_file1=$CONFIG_SITE;;
2180 *) ac_site_file1=./$CONFIG_SITE;;
2181 esac
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185 else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 test "x$ac_site_file" = xNONE && continue
2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file" \
2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 as_fn_error $? "failed to load site script $ac_site_file
2200 See \`config.log' for more details" "$LINENO" 5; }
2202 done
2204 if test -r "$cache_file"; then
2205 # Some versions of bash will fail to source /dev/null (special files
2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210 case $cache_file in
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
2213 esac
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 >$cache_file
2221 # Check that the precious variables saved in the cache have kept the same
2222 # value.
2223 ac_cache_corrupted=false
2224 for ac_var in $ac_precious_vars; do
2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226 eval ac_new_set=\$ac_env_${ac_var}_set
2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228 eval ac_new_val=\$ac_env_${ac_var}_value
2229 case $ac_old_set,$ac_new_set in
2230 set,)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,set)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,);;
2240 if test "x$ac_old_val" != "x$ac_new_val"; then
2241 # differences in whitespace do not lead to failure.
2242 ac_old_val_w=`echo x $ac_old_val`
2243 ac_new_val_w=`echo x $ac_new_val`
2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247 ac_cache_corrupted=:
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251 eval $ac_var=\$ac_old_val
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2254 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2256 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 fi;;
2258 esac
2259 # Pass precious variables to config.status.
2260 if test "$ac_new_set" = set; then
2261 case $ac_new_val in
2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 *) ac_arg=$ac_var=$ac_new_val ;;
2264 esac
2265 case " $ac_configure_args " in
2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2268 esac
2270 done
2271 if $ac_cache_corrupted; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 ## -------------------- ##
2279 ## Main body of script. ##
2280 ## -------------------- ##
2282 ac_ext=c
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295 progname=$0
2296 # if PWD already has a value, it is probably wrong.
2297 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2299 # Export original configure arguments for use by sub-configures.
2300 # Quote arguments with shell meta charatcers.
2301 TOPLEVEL_CONFIGURE_ARGUMENTS=
2302 set -- "$progname" "$@"
2303 for ac_arg
2305 case "$ac_arg" in
2306 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2307 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2308 # if the argument is of the form -foo=baz, quote the baz part only
2309 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2310 *) ;;
2311 esac
2312 # Add the quoted argument to the list.
2313 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2314 done
2315 if test "$silent" = yes; then
2316 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2318 # Remove the initial space we just introduced and, as these will be
2319 # expanded by make, quote '$'.
2320 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2323 # Find the build, host, and target systems.
2324 ac_aux_dir=
2325 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2326 if test -f "$ac_dir/install-sh"; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/install-sh -c"
2329 break
2330 elif test -f "$ac_dir/install.sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install.sh -c"
2333 break
2334 elif test -f "$ac_dir/shtool"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/shtool install -c"
2337 break
2339 done
2340 if test -z "$ac_aux_dir"; then
2341 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2344 # These three variables are undocumented and unsupported,
2345 # and are intended to be withdrawn in a future Autoconf release.
2346 # They can cause serious problems if a builder's source tree is in a directory
2347 # whose full name contains unusual characters.
2348 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2349 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2350 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2353 # Make sure we can run config.sub.
2354 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2355 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2358 $as_echo_n "checking build system type... " >&6; }
2359 if ${ac_cv_build+:} false; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 ac_build_alias=$build_alias
2363 test "x$ac_build_alias" = x &&
2364 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2365 test "x$ac_build_alias" = x &&
2366 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2368 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2372 $as_echo "$ac_cv_build" >&6; }
2373 case $ac_cv_build in
2374 *-*-*) ;;
2375 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2376 esac
2377 build=$ac_cv_build
2378 ac_save_IFS=$IFS; IFS='-'
2379 set x $ac_cv_build
2380 shift
2381 build_cpu=$1
2382 build_vendor=$2
2383 shift; shift
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2386 build_os=$*
2387 IFS=$ac_save_IFS
2388 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2391 case ${build_alias} in
2392 "") build_noncanonical=${build} ;;
2393 *) build_noncanonical=${build_alias} ;;
2394 esac
2398 case ${host_alias} in
2399 "") host_noncanonical=${build_noncanonical} ;;
2400 *) host_noncanonical=${host_alias} ;;
2401 esac
2405 case ${target_alias} in
2406 "") target_noncanonical=${host_noncanonical} ;;
2407 *) target_noncanonical=${target_alias} ;;
2408 esac
2413 test "$host_noncanonical" = "$target_noncanonical" &&
2414 test "$program_prefix$program_suffix$program_transform_name" = \
2415 NONENONEs,x,x, &&
2416 program_transform_name=s,y,y,
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2419 $as_echo_n "checking host system type... " >&6; }
2420 if ${ac_cv_host+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 if test "x$host_alias" = x; then
2424 ac_cv_host=$ac_cv_build
2425 else
2426 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2427 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2432 $as_echo "$ac_cv_host" >&6; }
2433 case $ac_cv_host in
2434 *-*-*) ;;
2435 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2436 esac
2437 host=$ac_cv_host
2438 ac_save_IFS=$IFS; IFS='-'
2439 set x $ac_cv_host
2440 shift
2441 host_cpu=$1
2442 host_vendor=$2
2443 shift; shift
2444 # Remember, the first character of IFS is used to create $*,
2445 # except with old shells:
2446 host_os=$*
2447 IFS=$ac_save_IFS
2448 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2452 $as_echo_n "checking target system type... " >&6; }
2453 if ${ac_cv_target+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 if test "x$target_alias" = x; then
2457 ac_cv_target=$ac_cv_host
2458 else
2459 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2465 $as_echo "$ac_cv_target" >&6; }
2466 case $ac_cv_target in
2467 *-*-*) ;;
2468 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2469 esac
2470 target=$ac_cv_target
2471 ac_save_IFS=$IFS; IFS='-'
2472 set x $ac_cv_target
2473 shift
2474 target_cpu=$1
2475 target_vendor=$2
2476 shift; shift
2477 # Remember, the first character of IFS is used to create $*,
2478 # except with old shells:
2479 target_os=$*
2480 IFS=$ac_save_IFS
2481 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2484 # The aliases save the names the user supplied, while $host etc.
2485 # will get canonicalized.
2486 test -n "$target_alias" &&
2487 test "$program_prefix$program_suffix$program_transform_name" = \
2488 NONENONEs,x,x, &&
2489 program_prefix=${target_alias}-
2491 test "$program_prefix" != NONE &&
2492 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2493 # Use a double $ so make ignores it.
2494 test "$program_suffix" != NONE &&
2495 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2496 # Double any \ or $.
2497 # By default was `s,x,x', remove it if useless.
2498 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2499 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2503 # Get 'install' or 'install-sh' and its variants.
2504 # Find a good install program. We prefer a C program (faster),
2505 # so one script is as good as another. But avoid the broken or
2506 # incompatible versions:
2507 # SysV /etc/install, /usr/sbin/install
2508 # SunOS /usr/etc/install
2509 # IRIX /sbin/install
2510 # AIX /bin/install
2511 # AmigaOS /C/install, which installs bootblocks on floppy discs
2512 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2513 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2514 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2515 # OS/2's system install, which has a completely different semantic
2516 # ./install, which can be erroneously created by make from ./install.sh.
2517 # Reject install programs that cannot install multiple files.
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2519 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2520 if test -z "$INSTALL"; then
2521 if ${ac_cv_path_install+:} false; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 # Account for people who put trailing slashes in PATH elements.
2530 case $as_dir/ in #((
2531 ./ | .// | /[cC]/* | \
2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2534 /usr/ucb/* ) ;;
2536 # OSF1 and SCO ODT 3.0 have their own names for install.
2537 # Don't use installbsd from OSF since it installs stuff as root
2538 # by default.
2539 for ac_prog in ginstall scoinst install; do
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2542 if test $ac_prog = install &&
2543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544 # AIX install. It has an incompatible calling convention.
2546 elif test $ac_prog = install &&
2547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # program-specific install script used by HP pwplus--don't use.
2550 else
2551 rm -rf conftest.one conftest.two conftest.dir
2552 echo one > conftest.one
2553 echo two > conftest.two
2554 mkdir conftest.dir
2555 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2556 test -s conftest.one && test -s conftest.two &&
2557 test -s conftest.dir/conftest.one &&
2558 test -s conftest.dir/conftest.two
2559 then
2560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2561 break 3
2565 done
2566 done
2568 esac
2570 done
2571 IFS=$as_save_IFS
2573 rm -rf conftest.one conftest.two conftest.dir
2576 if test "${ac_cv_path_install+set}" = set; then
2577 INSTALL=$ac_cv_path_install
2578 else
2579 # As a last resort, use the slow shell script. Don't cache a
2580 # value for INSTALL within a source directory, because that will
2581 # break other packages using the cache if that directory is
2582 # removed, or if the value is a relative name.
2583 INSTALL=$ac_install_sh
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2587 $as_echo "$INSTALL" >&6; }
2589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2590 # It thinks the first close brace ends the variable substitution.
2591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2598 $as_echo_n "checking whether ln works... " >&6; }
2599 if ${acx_cv_prog_LN+:} false; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 rm -f conftestdata_t
2603 echo >conftestdata_f
2604 if ln conftestdata_f conftestdata_t 2>/dev/null
2605 then
2606 acx_cv_prog_LN=ln
2607 else
2608 acx_cv_prog_LN=no
2610 rm -f conftestdata_f conftestdata_t
2613 if test $acx_cv_prog_LN = no; then
2614 LN="cp"
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2616 $as_echo "no, using $LN" >&6; }
2617 else
2618 LN="$acx_cv_prog_LN"
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620 $as_echo "yes" >&6; }
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2624 $as_echo_n "checking whether ln -s works... " >&6; }
2625 LN_S=$as_ln_s
2626 if test "$LN_S" = "ln -s"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628 $as_echo "yes" >&6; }
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2631 $as_echo "no, using $LN_S" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2635 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2636 if ${ac_cv_path_SED+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2640 for ac_i in 1 2 3 4 5 6 7; do
2641 ac_script="$ac_script$as_nl$ac_script"
2642 done
2643 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2644 { ac_script=; unset ac_script;}
2645 if test -z "$SED"; then
2646 ac_path_SED_found=false
2647 # Loop through the user's path and test for each of PROGNAME-LIST
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_prog in sed gsed; do
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2656 as_fn_executable_p "$ac_path_SED" || continue
2657 # Check for GNU ac_path_SED and select it if it is found.
2658 # Check for GNU $ac_path_SED
2659 case `"$ac_path_SED" --version 2>&1` in
2660 *GNU*)
2661 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2663 ac_count=0
2664 $as_echo_n 0123456789 >"conftest.in"
2665 while :
2667 cat "conftest.in" "conftest.in" >"conftest.tmp"
2668 mv "conftest.tmp" "conftest.in"
2669 cp "conftest.in" "conftest.nl"
2670 $as_echo '' >> "conftest.nl"
2671 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2673 as_fn_arith $ac_count + 1 && ac_count=$as_val
2674 if test $ac_count -gt ${ac_path_SED_max-0}; then
2675 # Best one so far, save it but keep looking for a better one
2676 ac_cv_path_SED="$ac_path_SED"
2677 ac_path_SED_max=$ac_count
2679 # 10*(2^10) chars as input seems more than enough
2680 test $ac_count -gt 10 && break
2681 done
2682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2683 esac
2685 $ac_path_SED_found && break 3
2686 done
2687 done
2688 done
2689 IFS=$as_save_IFS
2690 if test -z "$ac_cv_path_SED"; then
2691 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2693 else
2694 ac_cv_path_SED=$SED
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2699 $as_echo "$ac_cv_path_SED" >&6; }
2700 SED="$ac_cv_path_SED"
2701 rm -f conftest.sed
2703 for ac_prog in gawk mawk nawk awk
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_AWK+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$AWK"; then
2713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_AWK="$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2726 done
2727 done
2728 IFS=$as_save_IFS
2732 AWK=$ac_cv_prog_AWK
2733 if test -n "$AWK"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735 $as_echo "$AWK" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2742 test -n "$AWK" && break
2743 done
2746 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2748 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2749 # a relative path.
2750 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2751 INSTALL="${srcpwd}/install-sh -c"
2754 # Set srcdir to "." if that's what it is.
2755 # This is important for multilib support.
2756 pwd=`${PWDCMD-pwd}`
2757 if test "${pwd}" = "${srcpwd}" ; then
2758 srcdir=.
2761 topsrcdir=$srcpwd
2763 extra_host_args=
2765 ### To add a new directory to the tree, first choose whether it is a target
2766 ### or a host dependent tool. Then put it into the appropriate list
2767 ### (library or tools, host or target), doing a dependency sort.
2769 # Subdirs will be configured in the order listed in build_configdirs,
2770 # configdirs, or target_configdirs; see the serialization section below.
2772 # Dependency sorting is only needed when *configuration* must be done in
2773 # a particular order. In all cases a dependency should be specified in
2774 # the Makefile, whether or not it's implicitly specified here.
2776 # Double entries in build_configdirs, configdirs, or target_configdirs may
2777 # cause circular dependencies and break everything horribly.
2779 # these library is used by various programs built for the build
2780 # environment
2782 build_libs="build-libiberty build-libcpp"
2784 # these tools are built for the build environment
2785 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2787 # these libraries are used by various programs built for the host environment
2789 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2791 # these tools are built for the host environment
2792 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2793 # know that we are building the simulator.
2794 # binutils, gas and ld appear in that order because it makes sense to run
2795 # "make check" in that particular order.
2796 # If --enable-gold is used, "gold" may replace "ld".
2797 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2799 # these libraries are built for the target environment, and are built after
2800 # the host libraries and the host tools (which may be a cross compiler)
2801 # Note that libiberty is not a target library.
2802 target_libraries="target-libgcc \
2803 target-libbacktrace \
2804 target-libgloss \
2805 target-newlib \
2806 target-libgomp \
2807 target-liboffloadmic \
2808 target-libhsail-rt \
2809 target-libatomic \
2810 target-libitm \
2811 target-libstdc++-v3 \
2812 target-libsanitizer \
2813 target-libvtv \
2814 target-libssp \
2815 target-libquadmath \
2816 target-libgfortran \
2817 target-libffi \
2818 target-libobjc \
2819 target-libada \
2820 target-libgo"
2822 # these tools are built using the target libraries, and are intended to
2823 # run only in the target environment
2825 # note: any program that *uses* libraries that are in the "target_libraries"
2826 # list belongs in this list.
2828 target_tools="target-rda"
2830 ################################################################################
2832 ## All tools belong in one of the four categories, and are assigned above
2833 ## We assign ${configdirs} this way to remove all embedded newlines. This
2834 ## is important because configure will choke if they ever get through.
2835 ## ${configdirs} is directories we build using the host tools.
2836 ## ${target_configdirs} is directories we build using the target tools.
2837 configdirs=`echo ${host_libs} ${host_tools}`
2838 target_configdirs=`echo ${target_libraries} ${target_tools}`
2839 build_configdirs=`echo ${build_libs} ${build_tools}`
2843 ################################################################################
2845 srcname="gnu development package"
2847 # This gets set non-empty for some net releases of packages.
2848 appdirs=""
2850 # Define is_cross_compiler to save on calls to 'test'.
2851 is_cross_compiler=
2852 if test x"${host}" = x"${target}" ; then
2853 is_cross_compiler=no
2854 else
2855 is_cross_compiler=yes
2858 # Find the build and target subdir names.
2860 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2861 # have matching libraries, they should use host libraries: Makefile.tpl
2862 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2863 # However, they still use the build modules, because the corresponding
2864 # host modules (e.g. bison) are only built for the host when bootstrap
2865 # finishes. So:
2866 # - build_subdir is where we find build modules, and never changes.
2867 # - build_libsubdir is where we find build libraries, and can be overridden.
2869 # Prefix 'build-' so this never conflicts with target_subdir.
2870 build_subdir="build-${build_noncanonical}"
2872 # Check whether --with-build-libsubdir was given.
2873 if test "${with_build_libsubdir+set}" = set; then :
2874 withval=$with_build_libsubdir; build_libsubdir="$withval"
2875 else
2876 build_libsubdir="$build_subdir"
2879 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2880 if ( test $srcdir = . && test -d gcc ) \
2881 || test -d $srcdir/../host-${host_noncanonical}; then
2882 host_subdir="host-${host_noncanonical}"
2883 else
2884 host_subdir=.
2886 # No prefix.
2887 target_subdir=${target_noncanonical}
2889 # Be sure to cover against remnants of an in-tree build.
2890 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2891 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2892 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2895 # Skipdirs are removed silently.
2896 skipdirs=
2897 # Noconfigdirs are removed loudly.
2898 noconfigdirs=""
2900 use_gnu_ld=
2901 # Make sure we don't let GNU ld be added if we didn't want it.
2902 if test x$with_gnu_ld = xno ; then
2903 use_gnu_ld=no
2904 noconfigdirs="$noconfigdirs ld gold"
2907 use_gnu_as=
2908 # Make sure we don't let GNU as be added if we didn't want it.
2909 if test x$with_gnu_as = xno ; then
2910 use_gnu_as=no
2911 noconfigdirs="$noconfigdirs gas"
2914 use_included_zlib=
2916 # Check whether --with-system-zlib was given.
2917 if test "${with_system_zlib+set}" = set; then :
2918 withval=$with_system_zlib;
2921 # Make sure we don't let ZLIB be added if we didn't want it.
2922 if test x$with_system_zlib = xyes ; then
2923 use_included_zlib=no
2924 noconfigdirs="$noconfigdirs zlib"
2927 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2928 # is provided.
2929 if test x$with_system_readline = xyes ; then
2930 noconfigdirs="$noconfigdirs readline"
2933 # some tools are so dependent upon X11 that if we're not building with X,
2934 # it's not even worth trying to configure, much less build, that tool.
2936 case ${with_x} in
2937 yes | "") ;; # the default value for this tree is that X11 is available
2939 skipdirs="${skipdirs} tk itcl libgui"
2940 # We won't be able to build gdbtk without X.
2941 enable_gdbtk=no
2943 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2944 esac
2946 # Some are only suitable for cross toolchains.
2947 # Remove these if host=target.
2948 cross_only="target-libgloss target-newlib target-opcodes"
2950 case $is_cross_compiler in
2951 no) skipdirs="${skipdirs} ${cross_only}" ;;
2952 esac
2954 # If both --with-headers and --with-libs are specified, default to
2955 # --without-newlib.
2956 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2957 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2958 if test x"${with_newlib}" = x ; then
2959 with_newlib=no
2963 # Recognize --with-newlib/--without-newlib.
2964 case ${with_newlib} in
2965 no) skipdirs="${skipdirs} target-newlib" ;;
2966 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2967 esac
2969 # Check whether --enable-as-accelerator-for was given.
2970 if test "${enable_as_accelerator_for+set}" = set; then :
2971 enableval=$enable_as_accelerator_for;
2975 # Check whether --enable-offload-targets was given.
2976 if test "${enable_offload_targets+set}" = set; then :
2977 enableval=$enable_offload_targets;
2978 if test x"$enable_offload_targets" = x; then
2979 as_fn_error $? "no offload targets specified" "$LINENO" 5
2982 else
2983 enable_offload_targets=
2987 # Handle --enable-gold, --enable-ld.
2988 # --disable-gold [--enable-ld]
2989 # Build only ld. Default option.
2990 # --enable-gold [--enable-ld]
2991 # Build both gold and ld. Install gold as "ld.gold", install ld
2992 # as "ld.bfd" and "ld".
2993 # --enable-gold=default [--enable-ld]
2994 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2995 # install ld as "ld.bfd".
2996 # --enable-gold[=default] --disable-ld
2997 # Build only gold, which is then installed as both "ld.gold" and "ld".
2998 # --enable-gold --enable-ld=default
2999 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3000 # and ld.bfd).
3001 # In other words, ld is default
3002 # --enable-gold=default --enable-ld=default
3003 # Error.
3005 default_ld=
3006 # Check whether --enable-gold was given.
3007 if test "${enable_gold+set}" = set; then :
3008 enableval=$enable_gold; ENABLE_GOLD=$enableval
3009 else
3010 ENABLE_GOLD=no
3013 case "${ENABLE_GOLD}" in
3014 yes|default)
3015 # Check for ELF target.
3016 is_elf=no
3017 case "${target}" in
3018 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3019 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3020 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3021 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3022 case "${target}" in
3023 *-*-linux*aout* | *-*-linux*oldld*)
3026 is_elf=yes
3028 esac
3029 esac
3031 if test "$is_elf" = "yes"; then
3032 # Check for target supported by gold.
3033 case "${target}" in
3034 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3035 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3036 configdirs="$configdirs gold"
3037 if test x${ENABLE_GOLD} = xdefault; then
3038 default_ld=gold
3040 ENABLE_GOLD=yes
3042 esac
3048 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3050 esac
3052 # Check whether --enable-ld was given.
3053 if test "${enable_ld+set}" = set; then :
3054 enableval=$enable_ld; ENABLE_LD=$enableval
3055 else
3056 ENABLE_LD=yes
3060 case "${ENABLE_LD}" in
3061 default)
3062 if test x${default_ld} != x; then
3063 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3066 yes)
3069 if test x${ENABLE_GOLD} != xyes; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3071 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3073 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3076 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3078 esac
3080 # Check whether --enable-gprofng was given.
3081 if test "${enable_gprofng+set}" = set; then :
3082 enableval=$enable_gprofng; enable_gprofng=$enableval
3083 else
3084 enable_gprofng=yes
3087 if test "$enable_gprofng" = "yes"; then
3088 case "${target}" in
3089 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3090 configdirs="$configdirs gprofng"
3092 esac
3096 # PR gas/19109
3097 # Decide the default method for compressing debug sections.
3098 # Provide a configure time option to override our default.
3099 # Check whether --enable-compressed_debug_sections was given.
3100 if test "${enable_compressed_debug_sections+set}" = set; then :
3101 enableval=$enable_compressed_debug_sections;
3102 if test x"$enable_compressed_debug_sections" = xyes; then
3103 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3106 else
3107 enable_compressed_debug_sections=
3111 # Configure extra directories which are host specific
3113 case "${host}" in
3114 *-cygwin*)
3115 configdirs="$configdirs libtermcap" ;;
3116 esac
3118 # A target can indicate whether a language isn't supported for some reason.
3119 # Only spaces may be used in this macro; not newlines or tabs.
3120 unsupported_languages=
3122 # Remove more programs from consideration, based on the host or
3123 # target this usually means that a port of the program doesn't
3124 # exist yet.
3126 case "${host}" in
3127 i[3456789]86-*-msdosdjgpp*)
3128 noconfigdirs="$noconfigdirs tcl tk itcl"
3130 esac
3132 # Default to --disable-year2038 until we can handle differences between
3133 # projects that use gnulib (which understands year 2038) and projects that
3134 # do not (like BFD).
3135 # Check whether --enable-year2038 was given.
3136 if test "${enable_year2038+set}" = set; then :
3137 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3138 else
3139 ENABLE_YEAR2038=no
3142 enable_year2038=
3143 if test "${ENABLE_YEAR2038}" = "no" ; then
3144 enable_year2038=no
3147 # Check whether --enable-libquadmath was given.
3148 if test "${enable_libquadmath+set}" = set; then :
3149 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3150 else
3151 ENABLE_LIBQUADMATH=yes
3154 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3155 noconfigdirs="$noconfigdirs target-libquadmath"
3159 # Check whether --enable-libquadmath-support was given.
3160 if test "${enable_libquadmath_support+set}" = set; then :
3161 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3162 else
3163 ENABLE_LIBQUADMATH_SUPPORT=yes
3166 enable_libquadmath_support=
3167 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3168 enable_libquadmath_support=no
3172 # Check whether --enable-libada was given.
3173 if test "${enable_libada+set}" = set; then :
3174 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3175 else
3176 ENABLE_LIBADA=yes
3179 if test "${ENABLE_LIBADA}" != "yes" ; then
3180 noconfigdirs="$noconfigdirs gnattools"
3183 # Check whether --enable-libssp was given.
3184 if test "${enable_libssp+set}" = set; then :
3185 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3186 else
3187 ENABLE_LIBSSP=yes
3191 # Check whether --enable-libstdcxx was given.
3192 if test "${enable_libstdcxx+set}" = set; then :
3193 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3194 else
3195 ENABLE_LIBSTDCXX=default
3198 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3199 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3202 # If this is accelerator compiler and its target is intelmic we enable
3203 # target liboffloadmic by default. If this is compiler with offloading
3204 # for intelmic we enable host liboffloadmic by default. Otherwise
3205 # liboffloadmic is disabled by default.
3206 # Check whether --enable-liboffloadmic was given.
3207 if test "${enable_liboffloadmic+set}" = set; then :
3208 enableval=$enable_liboffloadmic; case "$enableval" in
3209 no | host | target)
3210 enable_liboffloadmic=$enableval ;;
3212 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3213 esac
3214 else
3215 if test x"$enable_as_accelerator_for" != x; then
3216 case "${target}" in
3217 *-intelmic-* | *-intelmicemul-*)
3218 enable_liboffloadmic=target
3219 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3222 enable_liboffloadmic=no
3224 esac
3225 else
3226 case "${enable_offload_targets}" in
3227 *-intelmic-* | *-intelmicemul-*)
3228 enable_liboffloadmic=host
3229 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3232 enable_liboffloadmic=no
3234 esac
3240 # Enable libgomp by default on hosted POSIX systems, and a few others.
3241 if test x$enable_libgomp = x ; then
3242 case "${target}" in
3243 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3245 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3247 *-*-solaris2* | *-*-hpux11*)
3249 *-*-darwin* | *-*-aix*)
3251 nvptx*-*-*)
3254 noconfigdirs="$noconfigdirs target-libgomp"
3256 esac
3259 # Disable libatomic on unsupported systems.
3260 if test -d ${srcdir}/libatomic; then
3261 if test x$enable_libatomic = x; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3263 $as_echo_n "checking for libatomic support... " >&6; }
3264 if (srcdir=${srcdir}/libatomic; \
3265 . ${srcdir}/configure.tgt; \
3266 test -n "$UNSUPPORTED")
3267 then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs="$noconfigdirs target-libatomic"
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3278 # Disable liboffloadmic on unsupported systems.
3279 if test -d ${srcdir}/liboffloadmic; then
3280 if test x$enable_liboffloadmic != xno; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3282 $as_echo_n "checking for liboffloadmic support... " >&6; }
3283 if (srcdir=${srcdir}/liboffloadmic; \
3284 . ${srcdir}/configure.tgt; \
3285 test -n "$UNSUPPORTED")
3286 then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs="$noconfigdirs target-liboffloadmic"
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3297 # Disable libitm on unsupported systems.
3298 if test -d ${srcdir}/libitm; then
3299 if test x$enable_libitm = x; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3301 $as_echo_n "checking for libitm support... " >&6; }
3302 if (srcdir=${srcdir}/libitm; \
3303 . ${srcdir}/configure.tgt; \
3304 test -n "$UNSUPPORTED")
3305 then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs="$noconfigdirs target-libitm"
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3316 # Disable libsanitizer on unsupported systems.
3317 if test -d ${srcdir}/libsanitizer; then
3318 if test x$enable_libsanitizer = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3320 $as_echo_n "checking for libsanitizer support... " >&6; }
3321 if (srcdir=${srcdir}/libsanitizer; \
3322 . ${srcdir}/configure.tgt; \
3323 test -n "$UNSUPPORTED")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 noconfigdirs="$noconfigdirs target-libsanitizer"
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3335 # Disable libvtv on unsupported systems.
3336 if test -d ${srcdir}/libvtv; then
3337 if test x$enable_libvtv = x; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3339 $as_echo_n "checking for libvtv support... " >&6; }
3340 if (srcdir=${srcdir}/libvtv; \
3341 . ${srcdir}/configure.tgt; \
3342 test "$VTV_SUPPORTED" != "yes")
3343 then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 noconfigdirs="$noconfigdirs target-libvtv"
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3355 # Disable libhsail-rt on unsupported systems.
3356 if test -d ${srcdir}/libhsail-rt; then
3357 if test x$enable_libhsail_rt = x; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3359 $as_echo_n "checking for libhsail-rt support... " >&6; }
3360 if (srcdir=${srcdir}/libhsail-rt; \
3361 . ${srcdir}/configure.tgt; \
3362 test -n "$UNSUPPORTED")
3363 then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 unsupported_languages="$unsupported_languages brig"
3367 # This implicitly disables also target-libhsail-rt as it won't
3368 # get added to the build without BRIG FE.
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3377 # Disable libquadmath for some systems.
3378 case "${target}" in
3379 avr-*-*)
3380 noconfigdirs="$noconfigdirs target-libquadmath"
3382 # libquadmath is unused on AIX and libquadmath build process use of
3383 # LD_LIBRARY_PATH can break AIX bootstrap.
3384 powerpc-*-aix* | rs6000-*-aix*)
3385 noconfigdirs="$noconfigdirs target-libquadmath"
3387 esac
3389 # Disable libssp for some systems.
3390 case "${target}" in
3391 avr-*-*)
3392 # No hosted I/O support.
3393 noconfigdirs="$noconfigdirs target-libssp"
3395 powerpc-*-aix* | rs6000-*-aix*)
3396 noconfigdirs="$noconfigdirs target-libssp"
3398 rl78-*-*)
3399 # libssp uses a misaligned load to trigger a fault, but the RL78
3400 # doesn't fault for those - instead, it gives a build-time error
3401 # for explicit misaligned loads.
3402 noconfigdirs="$noconfigdirs target-libssp"
3404 visium-*-*)
3405 # No hosted I/O support.
3406 noconfigdirs="$noconfigdirs target-libssp"
3408 esac
3410 # Disable libstdc++-v3 for some systems.
3411 # Allow user to override this if they pass --enable-libstdc++-v3
3412 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3413 case "${target}" in
3414 *-*-vxworks*)
3415 # VxWorks uses the Dinkumware C++ library.
3416 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3418 arm*-wince-pe*)
3419 # the C++ libraries don't build on top of CE's C libraries
3420 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3422 avr-*-*)
3423 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3425 ft32-*-*)
3426 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3428 esac
3431 # Disable Fortran for some systems.
3432 case "${target}" in
3433 mmix-*-*)
3434 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3435 unsupported_languages="$unsupported_languages fortran"
3437 esac
3439 # Disable libffi for some systems.
3440 case "${target}" in
3441 powerpc-*-darwin*)
3443 i[3456789]86-*-darwin*)
3445 x86_64-*-darwin[912]*)
3447 *-*-darwin*)
3448 noconfigdirs="$noconfigdirs target-libffi"
3450 *-*-netware*)
3451 noconfigdirs="$noconfigdirs target-libffi"
3453 *-*-phoenix*)
3454 noconfigdirs="$noconfigdirs target-libffi"
3456 *-*-rtems*)
3457 noconfigdirs="$noconfigdirs target-libffi"
3459 *-*-tpf*)
3460 noconfigdirs="$noconfigdirs target-libffi"
3462 *-*-uclinux*)
3463 noconfigdirs="$noconfigdirs target-libffi"
3465 *-*-vxworks*)
3466 noconfigdirs="$noconfigdirs target-libffi"
3468 aarch64*-*-freebsd*)
3469 noconfigdirs="$noconfigdirs target-libffi"
3471 alpha*-*-*vms*)
3472 noconfigdirs="$noconfigdirs target-libffi"
3474 arm*-*-freebsd*)
3475 noconfigdirs="$noconfigdirs target-libffi"
3477 arm-wince-pe)
3478 noconfigdirs="$noconfigdirs target-libffi"
3480 cris-*-* | crisv32-*-*)
3481 case "${target}" in
3482 *-*-linux*)
3484 *) # See PR46792 regarding target-libffi.
3485 noconfigdirs="$noconfigdirs target-libffi";;
3486 esac
3488 hppa*64*-*-hpux*)
3489 noconfigdirs="$noconfigdirs target-libffi"
3491 hppa*-hp-hpux11*)
3493 hppa*-*-hpux*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3496 ia64*-*-*vms*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3499 i[3456789]86-w64-mingw*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3502 i[3456789]86-*-mingw*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3505 x86_64-*-mingw*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3508 mmix-*-*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3511 powerpc-*-aix*)
3513 rs6000-*-aix*)
3515 ft32-*-*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3518 *-*-lynxos*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3521 esac
3523 # Disable the go frontend on systems where it is known to not work. Please keep
3524 # this in sync with contrib/config-list.mk.
3525 case "${target}" in
3526 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3527 unsupported_languages="$unsupported_languages go"
3529 esac
3531 # Only allow gdbserver on some systems.
3532 if test -d ${srcdir}/gdbserver; then
3533 if test x$enable_gdbserver = x; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3535 $as_echo_n "checking for gdbserver support... " >&6; }
3536 if (srcdir=${srcdir}/gdbserver; \
3537 . ${srcdir}/configure.srv; \
3538 test -n "$UNSUPPORTED")
3539 then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 noconfigdirs="$noconfigdirs gdbserver"
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3545 $as_echo "yes" >&6; }
3550 # Disable libgo for some systems where it is known to not work.
3551 # For testing, you can easily override this with --enable-libgo.
3552 if test x$enable_libgo = x; then
3553 case "${target}" in
3554 *-*-darwin*)
3555 # PR 46986
3556 noconfigdirs="$noconfigdirs target-libgo"
3558 *-*-cygwin* | *-*-mingw*)
3559 noconfigdirs="$noconfigdirs target-libgo"
3561 esac
3564 # Default libgloss CPU subdirectory.
3565 libgloss_dir="$target_cpu"
3567 case "${target}" in
3568 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3569 libgloss_dir=wince
3571 aarch64*-*-* )
3572 libgloss_dir=aarch64
3574 arm*-*-*)
3575 libgloss_dir=arm
3577 cris-*-* | crisv32-*-*)
3578 libgloss_dir=cris
3580 hppa*-*-*)
3581 libgloss_dir=pa
3583 i[3456789]86-*-*)
3584 libgloss_dir=i386
3586 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3587 libgloss_dir=m68hc11
3589 m68*-*-* | fido-*-*)
3590 libgloss_dir=m68k
3592 mips*-*-*)
3593 libgloss_dir=mips
3595 powerpc*-*-*)
3596 libgloss_dir=rs6000
3598 sparc*-*-*)
3599 libgloss_dir=sparc
3601 esac
3603 # Disable newlib and libgloss for various target OSes.
3604 case "${target}" in
3605 alpha*-dec-osf*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 i[3456789]86-*-linux*)
3609 # This section makes it possible to build newlib natively on linux.
3610 # If we are using a cross compiler then don't configure newlib.
3611 if test x${is_cross_compiler} != xno ; then
3612 noconfigdirs="$noconfigdirs target-newlib"
3614 noconfigdirs="$noconfigdirs target-libgloss"
3615 # If we are not using a cross compiler, do configure newlib.
3616 # Note however, that newlib will only be configured in this situation
3617 # if the --with-newlib option has been given, because otherwise
3618 # 'target-newlib' will appear in skipdirs.
3620 i[3456789]86-*-rdos*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 sparc-*-sunos4*)
3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 *-*-aix*)
3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 *-*-beos*)
3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 *-*-chorusos)
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 *-*-dragonfly*)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 *-*-freebsd*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 *-*-lynxos*)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 *-*-mingw*)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 *-*-netbsd*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 *-*-netware*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 *-*-tpf*)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 *-*-uclinux*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 *-*-vxworks*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 esac
3670 case "${target}" in
3671 *-*-chorusos)
3673 aarch64-*-darwin*)
3674 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3675 noconfigdirs="$noconfigdirs sim target-rda"
3677 arm-*-darwin*)
3678 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3679 noconfigdirs="$noconfigdirs sim target-rda"
3681 powerpc-*-darwin*)
3682 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3683 noconfigdirs="$noconfigdirs sim target-rda"
3685 i[3456789]86-*-darwin*)
3686 noconfigdirs="$noconfigdirs ld gprof"
3687 noconfigdirs="$noconfigdirs sim target-rda"
3689 x86_64-*-darwin[912]*)
3690 noconfigdirs="$noconfigdirs ld gas gprof"
3691 noconfigdirs="$noconfigdirs sim target-rda"
3693 *-*-darwin*)
3694 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3695 noconfigdirs="$noconfigdirs sim target-rda"
3697 *-*-dragonfly*)
3699 *-*-freebsd*)
3700 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3701 && test -f /usr/local/include/gmp.h; then
3702 with_gmp=/usr/local
3705 *-*-kaos*)
3706 # Remove unsupported stuff on all kaOS configurations.
3707 noconfigdirs="$noconfigdirs target-libgloss"
3709 *-*-netbsd*)
3711 *-*-netware*)
3713 *-*-phoenix*)
3714 noconfigdirs="$noconfigdirs target-libgloss"
3716 *-*-rtems*)
3717 noconfigdirs="$noconfigdirs target-libgloss"
3719 # The tpf target doesn't support gdb yet.
3720 *-*-tpf*)
3721 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3723 *-*-uclinux*)
3724 noconfigdirs="$noconfigdirs target-rda"
3726 *-*-vxworks*)
3728 alpha*-dec-osf*)
3729 # ld works, but does not support shared libraries.
3730 # gas doesn't generate exception information.
3731 noconfigdirs="$noconfigdirs gas ld"
3733 alpha*-*-*vms*)
3734 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3736 alpha*-*-*)
3737 # newlib is not 64 bit ready
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3741 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3743 arc*-*-*)
3744 noconfigdirs="$noconfigdirs sim"
3746 arm-*-pe*)
3747 noconfigdirs="$noconfigdirs target-libgloss"
3749 arm-*-riscix*)
3750 noconfigdirs="$noconfigdirs ld target-libgloss"
3752 avr-*-*)
3753 if test x${with_avrlibc} != xno; then
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3757 c4x-*-* | tic4x-*-*)
3758 noconfigdirs="$noconfigdirs target-libgloss"
3760 tic54x-*-*)
3761 noconfigdirs="$noconfigdirs target-libgloss gdb"
3763 d10v-*-*)
3764 noconfigdirs="$noconfigdirs target-libgloss"
3766 d30v-*-*)
3767 noconfigdirs="$noconfigdirs gdb"
3769 fr30-*-elf*)
3770 noconfigdirs="$noconfigdirs gdb"
3772 ft32-*-*)
3773 noconfigdirs="$noconfigdirs target-rda gprof"
3775 moxie-*-*)
3776 noconfigdirs="$noconfigdirs"
3778 h8300*-*-*)
3779 noconfigdirs="$noconfigdirs target-libgloss"
3781 h8500-*-*)
3782 noconfigdirs="$noconfigdirs target-libgloss"
3784 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3786 hppa*64*-*-hpux*)
3787 noconfigdirs="$noconfigdirs gdb"
3789 hppa*-*-hpux11*)
3790 noconfigdirs="$noconfigdirs gdb ld"
3792 hppa*64*-*-linux*)
3794 hppa*-*-linux*)
3796 hppa*-*-*elf* | \
3797 hppa*-*-lites* | \
3798 hppa*-*-openbsd* | \
3799 hppa*64*-*-*)
3801 hppa*-*-pro*)
3803 hppa*-*-*)
3804 noconfigdirs="$noconfigdirs ld"
3806 i960-*-*)
3807 noconfigdirs="$noconfigdirs gdb"
3809 ia64*-*-elf*)
3810 # No gdb support yet.
3811 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3813 ia64*-**-hpux*)
3814 # No ld support yet.
3815 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3817 ia64*-*-*vms*)
3818 # No ld support yet.
3819 noconfigdirs="$noconfigdirs libgui itcl ld"
3821 i[3456789]86-w64-mingw*)
3823 i[3456789]86-*-mingw*)
3824 target_configdirs="$target_configdirs target-winsup"
3826 *-*-cygwin*)
3827 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3828 noconfigdirs="$noconfigdirs target-libgloss"
3829 # always build newlib if winsup directory is present.
3830 if test -d "$srcdir/winsup/cygwin"; then
3831 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3832 elif test -d "$srcdir/newlib"; then
3833 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3836 i[3456789]86-*-pe)
3837 noconfigdirs="$noconfigdirs target-libgloss"
3839 i[3456789]86-*-sco3.2v5*)
3840 # The linker does not yet know about weak symbols in COFF,
3841 # and is not configured to handle mixed ELF and COFF.
3842 noconfigdirs="$noconfigdirs ld target-libgloss"
3844 i[3456789]86-*-sco*)
3845 noconfigdirs="$noconfigdirs gprof target-libgloss"
3847 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3850 i[3456789]86-*-sysv4*)
3851 noconfigdirs="$noconfigdirs target-libgloss"
3853 i[3456789]86-*-beos*)
3854 noconfigdirs="$noconfigdirs gdb"
3856 i[3456789]86-*-rdos*)
3857 noconfigdirs="$noconfigdirs gdb"
3859 mmix-*-*)
3860 noconfigdirs="$noconfigdirs gdb"
3862 mt-*-*)
3863 noconfigdirs="$noconfigdirs sim"
3865 nfp-*-*)
3866 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3867 noconfigdirs="$noconfigdirs $target_libraries"
3869 pdp11-*-*)
3870 noconfigdirs="$noconfigdirs gdb gprof"
3872 powerpc-*-aix*)
3873 # copied from rs6000-*-* entry
3874 noconfigdirs="$noconfigdirs gprof"
3876 powerpc*-*-winnt* | powerpc*-*-pe*)
3877 target_configdirs="$target_configdirs target-winsup"
3878 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3879 # always build newlib.
3880 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3882 # This is temporary until we can link against shared libraries
3883 powerpcle-*-solaris*)
3884 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3886 powerpc-*-beos*)
3887 noconfigdirs="$noconfigdirs gdb"
3889 rs6000-*-lynxos*)
3890 noconfigdirs="$noconfigdirs gprof"
3892 rs6000-*-aix*)
3893 noconfigdirs="$noconfigdirs gprof"
3895 rs6000-*-*)
3896 noconfigdirs="$noconfigdirs gprof"
3898 m68k-apollo-*)
3899 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3901 microblaze*)
3902 noconfigdirs="$noconfigdirs gprof"
3904 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3905 if test x$with_newlib = xyes; then
3906 noconfigdirs="$noconfigdirs gprof"
3909 mips*-*-irix5*)
3910 noconfigdirs="$noconfigdirs gprof target-libgloss"
3912 mips*-*-irix6*)
3913 noconfigdirs="$noconfigdirs gprof target-libgloss"
3915 mips*-*-bsd*)
3916 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3918 mips*-*-linux*)
3920 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3921 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3922 noconfigdirs="$noconfigdirs ld gas gprof"
3924 mips*-*-*)
3925 noconfigdirs="$noconfigdirs gprof"
3927 nvptx*-*-*)
3928 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3930 sh-*-*)
3931 case "${target}" in
3932 sh*-*-elf)
3935 noconfigdirs="$noconfigdirs target-libgloss" ;;
3936 esac
3938 sparc-*-sunos4*)
3939 if test x${is_cross_compiler} = xno ; then
3940 use_gnu_ld=no
3943 tic6x-*-*)
3944 noconfigdirs="$noconfigdirs sim"
3946 tilepro*-*-* | tilegx*-*-*)
3947 noconfigdirs="$noconfigdirs sim"
3949 v810-*-*)
3950 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3952 vax-*-*)
3953 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3955 wasm32-*-*)
3956 noconfigdirs="$noconfigdirs ld"
3958 esac
3960 # If we aren't building newlib, then don't build libgloss, since libgloss
3961 # depends upon some newlib header files.
3962 case "${noconfigdirs}" in
3963 *target-libgloss*) ;;
3964 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3965 esac
3967 # Work in distributions that contain no compiler tools, like Autoconf.
3968 host_makefile_frag=/dev/null
3969 if test -d ${srcdir}/config ; then
3970 case "${host}" in
3971 i[3456789]86-*-msdosdjgpp*)
3972 host_makefile_frag="config/mh-djgpp"
3974 *-cygwin*)
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3977 $as_echo_n "checking to see if cat works as expected... " >&6; }
3978 echo a >cygwin-cat-check
3979 if test `cat cygwin-cat-check` = a ; then
3980 rm cygwin-cat-check
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982 $as_echo "yes" >&6; }
3983 else
3984 rm cygwin-cat-check
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 as_fn_error $? "The cat command does not ignore carriage return characters.
3988 Please either mount the build directory in binary mode or run the following
3989 commands before running any configure script:
3990 set -o igncr
3991 export SHELLOPTS
3992 " "$LINENO" 5
3995 host_makefile_frag="config/mh-cygwin"
3997 *-mingw*)
3998 host_makefile_frag="config/mh-mingw"
4000 alpha*-linux*)
4001 host_makefile_frag="config/mh-alpha-linux"
4003 hppa*-hp-hpux10*)
4004 host_makefile_frag="config/mh-pa-hpux10"
4006 hppa*-hp-hpux*)
4007 host_makefile_frag="config/mh-pa"
4009 hppa*-*)
4010 host_makefile_frag="config/mh-pa"
4012 *-*-darwin*)
4013 host_makefile_frag="config/mh-darwin"
4015 powerpc-*-aix*)
4016 host_makefile_frag="config/mh-ppc-aix"
4018 rs6000-*-aix*)
4019 host_makefile_frag="config/mh-ppc-aix"
4021 esac
4024 if test "${build}" != "${host}" ; then
4025 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4026 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4027 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4028 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4029 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4030 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4031 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4032 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4033 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4034 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4035 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4036 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4037 else
4038 AR_FOR_BUILD="\$(AR)"
4039 AS_FOR_BUILD="\$(AS)"
4040 CC_FOR_BUILD="\$(CC)"
4041 CXX_FOR_BUILD="\$(CXX)"
4042 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4043 GOC_FOR_BUILD="\$(GOC)"
4044 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4045 LD_FOR_BUILD="\$(LD)"
4046 NM_FOR_BUILD="\$(NM)"
4047 RANLIB_FOR_BUILD="\$(RANLIB)"
4048 WINDRES_FOR_BUILD="\$(WINDRES)"
4049 WINDMC_FOR_BUILD="\$(WINDMC)"
4052 ac_ext=c
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 $as_echo_n "checking for $ac_word... " >&6; }
4062 if ${ac_cv_prog_CC+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4081 IFS=$as_save_IFS
4085 CC=$ac_cv_prog_CC
4086 if test -n "$CC"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4088 $as_echo "$CC" >&6; }
4089 else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4096 if test -z "$ac_cv_prog_CC"; then
4097 ac_ct_CC=$CC
4098 # Extract the first word of "gcc", so it can be a program name with args.
4099 set dummy gcc; ac_word=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 if test -n "$ac_ct_CC"; then
4106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_ac_ct_CC="gcc"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4119 done
4120 done
4121 IFS=$as_save_IFS
4125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4126 if test -n "$ac_ct_CC"; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4128 $as_echo "$ac_ct_CC" >&6; }
4129 else
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4134 if test "x$ac_ct_CC" = x; then
4135 CC=""
4136 else
4137 case $cross_compiling:$ac_tool_warned in
4138 yes:)
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4141 ac_tool_warned=yes ;;
4142 esac
4143 CC=$ac_ct_CC
4145 else
4146 CC="$ac_cv_prog_CC"
4149 if test -z "$CC"; then
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}cc; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_prog_CC+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test -n "$CC"; then
4159 ac_cv_prog_CC="$CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_CC="${ac_tool_prefix}cc"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4172 done
4173 done
4174 IFS=$as_save_IFS
4178 CC=$ac_cv_prog_CC
4179 if test -n "$CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4181 $as_echo "$CC" >&6; }
4182 else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4190 if test -z "$CC"; then
4191 # Extract the first word of "cc", so it can be a program name with args.
4192 set dummy cc; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if ${ac_cv_prog_CC+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 if test -n "$CC"; then
4199 ac_cv_prog_CC="$CC" # Let the user override the test.
4200 else
4201 ac_prog_rejected=no
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4209 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4210 ac_prog_rejected=yes
4211 continue
4213 ac_cv_prog_CC="cc"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4221 if test $ac_prog_rejected = yes; then
4222 # We found a bogon in the path, so make sure we never use it.
4223 set dummy $ac_cv_prog_CC
4224 shift
4225 if test $# != 0; then
4226 # We chose a different compiler from the bogus one.
4227 # However, it has the same basename, so the bogon will be chosen
4228 # first if we set CC to just the basename; use the full file name.
4229 shift
4230 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4235 CC=$ac_cv_prog_CC
4236 if test -n "$CC"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4238 $as_echo "$CC" >&6; }
4239 else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4246 if test -z "$CC"; then
4247 if test -n "$ac_tool_prefix"; then
4248 for ac_prog in cl.exe
4250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_CC+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if test -n "$CC"; then
4258 ac_cv_prog_CC="$CC" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 break 2
4271 done
4272 done
4273 IFS=$as_save_IFS
4277 CC=$ac_cv_prog_CC
4278 if test -n "$CC"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4280 $as_echo "$CC" >&6; }
4281 else
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4287 test -n "$CC" && break
4288 done
4290 if test -z "$CC"; then
4291 ac_ct_CC=$CC
4292 for ac_prog in cl.exe
4294 # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy $ac_prog; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if test -n "$ac_ct_CC"; then
4302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_CC="$ac_prog"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4315 done
4316 done
4317 IFS=$as_save_IFS
4321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4322 if test -n "$ac_ct_CC"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4324 $as_echo "$ac_ct_CC" >&6; }
4325 else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4331 test -n "$ac_ct_CC" && break
4332 done
4334 if test "x$ac_ct_CC" = x; then
4335 CC=""
4336 else
4337 case $cross_compiling:$ac_tool_warned in
4338 yes:)
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4341 ac_tool_warned=yes ;;
4342 esac
4343 CC=$ac_ct_CC
4350 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352 as_fn_error $? "no acceptable C compiler found in \$PATH
4353 See \`config.log' for more details" "$LINENO" 5; }
4355 # Provide some information about the compiler.
4356 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4357 set X $ac_compile
4358 ac_compiler=$2
4359 for ac_option in --version -v -V -qversion; do
4360 { { ac_try="$ac_compiler $ac_option >&5"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4366 $as_echo "$ac_try_echo"; } >&5
4367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4368 ac_status=$?
4369 if test -s conftest.err; then
4370 sed '10a\
4371 ... rest of stderr output deleted ...
4372 10q' conftest.err >conftest.er1
4373 cat conftest.er1 >&5
4375 rm -f conftest.er1 conftest.err
4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; }
4378 done
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4384 main ()
4388 return 0;
4390 _ACEOF
4391 ac_clean_files_save=$ac_clean_files
4392 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4393 # Try to create an executable without -o first, disregard a.out.
4394 # It will help us diagnose broken compilers, and finding out an intuition
4395 # of exeext.
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4397 $as_echo_n "checking whether the C compiler works... " >&6; }
4398 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4400 # The possible output files:
4401 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4403 ac_rmfiles=
4404 for ac_file in $ac_files
4406 case $ac_file in
4407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4408 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4409 esac
4410 done
4411 rm -f $ac_rmfiles
4413 if { { ac_try="$ac_link_default"
4414 case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_link_default") 2>&5
4421 ac_status=$?
4422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; }; then :
4424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4427 # so that the user can short-circuit this test for compilers unknown to
4428 # Autoconf.
4429 for ac_file in $ac_files ''
4431 test -f "$ac_file" || continue
4432 case $ac_file in
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4435 [ab].out )
4436 # We found the default executable, but exeext='' is most
4437 # certainly right.
4438 break;;
4439 *.* )
4440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4441 then :; else
4442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4444 # We set ac_cv_exeext here because the later test for it is not
4445 # safe: cross compilers may not add the suffix if given an `-o'
4446 # argument, so we may need to know it at that point already.
4447 # Even if this section looks crufty: it has the advantage of
4448 # actually working.
4449 break;;
4451 break;;
4452 esac
4453 done
4454 test "$ac_cv_exeext" = no && ac_cv_exeext=
4456 else
4457 ac_file=''
4459 if test -z "$ac_file"; then :
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4462 $as_echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467 as_fn_error 77 "C compiler cannot create executables
4468 See \`config.log' for more details" "$LINENO" 5; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4474 $as_echo_n "checking for C compiler default output file name... " >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4476 $as_echo "$ac_file" >&6; }
4477 ac_exeext=$ac_cv_exeext
4479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4480 ac_clean_files=$ac_clean_files_save
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4482 $as_echo_n "checking for suffix of executables... " >&6; }
4483 if { { ac_try="$ac_link"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4491 ac_status=$?
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; then :
4494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4495 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4496 # work properly (i.e., refer to `conftest.exe'), while it won't with
4497 # `rm'.
4498 for ac_file in conftest.exe conftest conftest.*; do
4499 test -f "$ac_file" || continue
4500 case $ac_file in
4501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4503 break;;
4504 * ) break;;
4505 esac
4506 done
4507 else
4508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4511 See \`config.log' for more details" "$LINENO" 5; }
4513 rm -f conftest conftest$ac_cv_exeext
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4515 $as_echo "$ac_cv_exeext" >&6; }
4517 rm -f conftest.$ac_ext
4518 EXEEXT=$ac_cv_exeext
4519 ac_exeext=$EXEEXT
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522 #include <stdio.h>
4524 main ()
4526 FILE *f = fopen ("conftest.out", "w");
4527 return ferror (f) || fclose (f) != 0;
4530 return 0;
4532 _ACEOF
4533 ac_clean_files="$ac_clean_files conftest.out"
4534 # Check that the compiler produces executables we can run. If not, either
4535 # the compiler is broken, or we cross compile.
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4537 $as_echo_n "checking whether we are cross compiling... " >&6; }
4538 if test "$cross_compiling" != yes; then
4539 { { ac_try="$ac_link"
4540 case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543 esac
4544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545 $as_echo "$ac_try_echo"; } >&5
4546 (eval "$ac_link") 2>&5
4547 ac_status=$?
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }
4550 if { ac_try='./conftest$ac_cv_exeext'
4551 { { case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_try") 2>&5
4558 ac_status=$?
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }; }; then
4561 cross_compiling=no
4562 else
4563 if test "$cross_compiling" = maybe; then
4564 cross_compiling=yes
4565 else
4566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4568 as_fn_error $? "cannot run C compiled programs.
4569 If you meant to cross compile, use \`--host'.
4570 See \`config.log' for more details" "$LINENO" 5; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4575 $as_echo "$cross_compiling" >&6; }
4577 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4578 ac_clean_files=$ac_clean_files_save
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4580 $as_echo_n "checking for suffix of object files... " >&6; }
4581 if ${ac_cv_objext+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 main ()
4592 return 0;
4594 _ACEOF
4595 rm -f conftest.o conftest.obj
4596 if { { ac_try="$ac_compile"
4597 case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600 esac
4601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4602 $as_echo "$ac_try_echo"; } >&5
4603 (eval "$ac_compile") 2>&5
4604 ac_status=$?
4605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4606 test $ac_status = 0; }; then :
4607 for ac_file in conftest.o conftest.obj conftest.*; do
4608 test -f "$ac_file" || continue;
4609 case $ac_file in
4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4612 break;;
4613 esac
4614 done
4615 else
4616 $as_echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621 as_fn_error $? "cannot compute suffix of object files: cannot compile
4622 See \`config.log' for more details" "$LINENO" 5; }
4624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4627 $as_echo "$ac_cv_objext" >&6; }
4628 OBJEXT=$ac_cv_objext
4629 ac_objext=$OBJEXT
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4632 if ${ac_cv_c_compiler_gnu+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4639 main ()
4641 #ifndef __GNUC__
4642 choke me
4643 #endif
4646 return 0;
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_compiler_gnu=yes
4651 else
4652 ac_compiler_gnu=no
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4660 if test $ac_compiler_gnu = yes; then
4661 GCC=yes
4662 else
4663 GCC=
4665 ac_test_CFLAGS=${CFLAGS+set}
4666 ac_save_CFLAGS=$CFLAGS
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4669 if ${ac_cv_prog_cc_g+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 ac_save_c_werror_flag=$ac_c_werror_flag
4673 ac_c_werror_flag=yes
4674 ac_cv_prog_cc_g=no
4675 CFLAGS="-g"
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4680 main ()
4684 return 0;
4686 _ACEOF
4687 if ac_fn_c_try_compile "$LINENO"; then :
4688 ac_cv_prog_cc_g=yes
4689 else
4690 CFLAGS=""
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4695 main ()
4699 return 0;
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"; then :
4704 else
4705 ac_c_werror_flag=$ac_save_c_werror_flag
4706 CFLAGS="-g"
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4711 main ()
4715 return 0;
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_cv_prog_cc_g=yes
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4729 $as_echo "$ac_cv_prog_cc_g" >&6; }
4730 if test "$ac_test_CFLAGS" = set; then
4731 CFLAGS=$ac_save_CFLAGS
4732 elif test $ac_cv_prog_cc_g = yes; then
4733 if test "$GCC" = yes; then
4734 CFLAGS="-g -O2"
4735 else
4736 CFLAGS="-g"
4738 else
4739 if test "$GCC" = yes; then
4740 CFLAGS="-O2"
4741 else
4742 CFLAGS=
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4747 if ${ac_cv_prog_cc_c89+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 ac_cv_prog_cc_c89=no
4751 ac_save_CC=$CC
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <stdarg.h>
4755 #include <stdio.h>
4756 struct stat;
4757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4758 struct buf { int x; };
4759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4760 static char *e (p, i)
4761 char **p;
4762 int i;
4764 return p[i];
4766 static char *f (char * (*g) (char **, int), char **p, ...)
4768 char *s;
4769 va_list v;
4770 va_start (v,p);
4771 s = g (p, va_arg (v,int));
4772 va_end (v);
4773 return s;
4776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4777 function prototypes and stuff, but not '\xHH' hex character constants.
4778 These don't provoke an error unfortunately, instead are silently treated
4779 as 'x'. The following induces an error, until -std is added to get
4780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4781 array size at least. It's necessary to write '\x00'==0 to get something
4782 that's true only with -std. */
4783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4786 inside strings and character constants. */
4787 #define FOO(x) 'x'
4788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4790 int test (int i, double x);
4791 struct s1 {int (*f) (int a);};
4792 struct s2 {int (*f) (double a);};
4793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4794 int argc;
4795 char **argv;
4797 main ()
4799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4801 return 0;
4803 _ACEOF
4804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4807 CC="$ac_save_CC $ac_arg"
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_prog_cc_c89=$ac_arg
4811 rm -f core conftest.err conftest.$ac_objext
4812 test "x$ac_cv_prog_cc_c89" != "xno" && break
4813 done
4814 rm -f conftest.$ac_ext
4815 CC=$ac_save_CC
4818 # AC_CACHE_VAL
4819 case "x$ac_cv_prog_cc_c89" in
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4822 $as_echo "none needed" >&6; } ;;
4823 xno)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4825 $as_echo "unsupported" >&6; } ;;
4827 CC="$CC $ac_cv_prog_cc_c89"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4829 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4830 esac
4831 if test "x$ac_cv_prog_cc_c89" != xno; then :
4835 ac_ext=c
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4842 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4843 if ${ac_cv_prog_cc_c99+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 ac_cv_prog_cc_c99=no
4847 ac_save_CC=$CC
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <stdarg.h>
4851 #include <stdbool.h>
4852 #include <stdlib.h>
4853 #include <wchar.h>
4854 #include <stdio.h>
4856 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4857 #define debug(...) fprintf (stderr, __VA_ARGS__)
4858 #define showlist(...) puts (#__VA_ARGS__)
4859 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4860 static void
4861 test_varargs_macros (void)
4863 int x = 1234;
4864 int y = 5678;
4865 debug ("Flag");
4866 debug ("X = %d\n", x);
4867 showlist (The first, second, and third items.);
4868 report (x>y, "x is %d but y is %d", x, y);
4871 // Check long long types.
4872 #define BIG64 18446744073709551615ull
4873 #define BIG32 4294967295ul
4874 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4875 #if !BIG_OK
4876 your preprocessor is broken;
4877 #endif
4878 #if BIG_OK
4879 #else
4880 your preprocessor is broken;
4881 #endif
4882 static long long int bignum = -9223372036854775807LL;
4883 static unsigned long long int ubignum = BIG64;
4885 struct incomplete_array
4887 int datasize;
4888 double data[];
4891 struct named_init {
4892 int number;
4893 const wchar_t *name;
4894 double average;
4897 typedef const char *ccp;
4899 static inline int
4900 test_restrict (ccp restrict text)
4902 // See if C++-style comments work.
4903 // Iterate through items via the restricted pointer.
4904 // Also check for declarations in for loops.
4905 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4906 continue;
4907 return 0;
4910 // Check varargs and va_copy.
4911 static void
4912 test_varargs (const char *format, ...)
4914 va_list args;
4915 va_start (args, format);
4916 va_list args_copy;
4917 va_copy (args_copy, args);
4919 const char *str;
4920 int number;
4921 float fnumber;
4923 while (*format)
4925 switch (*format++)
4927 case 's': // string
4928 str = va_arg (args_copy, const char *);
4929 break;
4930 case 'd': // int
4931 number = va_arg (args_copy, int);
4932 break;
4933 case 'f': // float
4934 fnumber = va_arg (args_copy, double);
4935 break;
4936 default:
4937 break;
4940 va_end (args_copy);
4941 va_end (args);
4945 main ()
4948 // Check bool.
4949 _Bool success = false;
4951 // Check restrict.
4952 if (test_restrict ("String literal") == 0)
4953 success = true;
4954 char *restrict newvar = "Another string";
4956 // Check varargs.
4957 test_varargs ("s, d' f .", "string", 65, 34.234);
4958 test_varargs_macros ();
4960 // Check flexible array members.
4961 struct incomplete_array *ia =
4962 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4963 ia->datasize = 10;
4964 for (int i = 0; i < ia->datasize; ++i)
4965 ia->data[i] = i * 1.234;
4967 // Check named initializers.
4968 struct named_init ni = {
4969 .number = 34,
4970 .name = L"Test wide string",
4971 .average = 543.34343,
4974 ni.number = 58;
4976 int dynamic_array[ni.number];
4977 dynamic_array[ni.number - 1] = 543;
4979 // work around unused variable warnings
4980 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4981 || dynamic_array[ni.number - 1] != 543);
4984 return 0;
4986 _ACEOF
4987 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4989 CC="$ac_save_CC $ac_arg"
4990 if ac_fn_c_try_compile "$LINENO"; then :
4991 ac_cv_prog_cc_c99=$ac_arg
4993 rm -f core conftest.err conftest.$ac_objext
4994 test "x$ac_cv_prog_cc_c99" != "xno" && break
4995 done
4996 rm -f conftest.$ac_ext
4997 CC=$ac_save_CC
5000 # AC_CACHE_VAL
5001 case "x$ac_cv_prog_cc_c99" in
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5004 $as_echo "none needed" >&6; } ;;
5005 xno)
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5007 $as_echo "unsupported" >&6; } ;;
5009 CC="$CC $ac_cv_prog_cc_c99"
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5011 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5012 esac
5013 if test "x$ac_cv_prog_cc_c99" != xno; then :
5018 ac_ext=cpp
5019 ac_cpp='$CXXCPP $CPPFLAGS'
5020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5023 if test -z "$CXX"; then
5024 if test -n "$CCC"; then
5025 CXX=$CCC
5026 else
5027 if test -n "$ac_tool_prefix"; then
5028 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_prog_CXX+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$CXX"; then
5038 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5051 done
5052 done
5053 IFS=$as_save_IFS
5057 CXX=$ac_cv_prog_CXX
5058 if test -n "$CXX"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5060 $as_echo "$CXX" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5067 test -n "$CXX" && break
5068 done
5070 if test -z "$CXX"; then
5071 ac_ct_CXX=$CXX
5072 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5074 # Extract the first word of "$ac_prog", so it can be a program name with args.
5075 set dummy $ac_prog; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$ac_ct_CXX"; then
5082 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_prog_ac_ct_CXX="$ac_prog"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5102 if test -n "$ac_ct_CXX"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5104 $as_echo "$ac_ct_CXX" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 test -n "$ac_ct_CXX" && break
5112 done
5114 if test "x$ac_ct_CXX" = x; then
5115 CXX="g++"
5116 else
5117 case $cross_compiling:$ac_tool_warned in
5118 yes:)
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121 ac_tool_warned=yes ;;
5122 esac
5123 CXX=$ac_ct_CXX
5129 # Provide some information about the compiler.
5130 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5131 set X $ac_compile
5132 ac_compiler=$2
5133 for ac_option in --version -v -V -qversion; do
5134 { { ac_try="$ac_compiler $ac_option >&5"
5135 case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138 esac
5139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5140 $as_echo "$ac_try_echo"; } >&5
5141 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5142 ac_status=$?
5143 if test -s conftest.err; then
5144 sed '10a\
5145 ... rest of stderr output deleted ...
5146 10q' conftest.err >conftest.er1
5147 cat conftest.er1 >&5
5149 rm -f conftest.er1 conftest.err
5150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; }
5152 done
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5155 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5156 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5163 main ()
5165 #ifndef __GNUC__
5166 choke me
5167 #endif
5170 return 0;
5172 _ACEOF
5173 if ac_fn_cxx_try_compile "$LINENO"; then :
5174 ac_compiler_gnu=yes
5175 else
5176 ac_compiler_gnu=no
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5183 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5184 if test $ac_compiler_gnu = yes; then
5185 GXX=yes
5186 else
5187 GXX=
5189 ac_test_CXXFLAGS=${CXXFLAGS+set}
5190 ac_save_CXXFLAGS=$CXXFLAGS
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5192 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5193 if ${ac_cv_prog_cxx_g+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5197 ac_cxx_werror_flag=yes
5198 ac_cv_prog_cxx_g=no
5199 CXXFLAGS="-g"
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5204 main ()
5208 return 0;
5210 _ACEOF
5211 if ac_fn_cxx_try_compile "$LINENO"; then :
5212 ac_cv_prog_cxx_g=yes
5213 else
5214 CXXFLAGS=""
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5219 main ()
5223 return 0;
5225 _ACEOF
5226 if ac_fn_cxx_try_compile "$LINENO"; then :
5228 else
5229 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5230 CXXFLAGS="-g"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5235 main ()
5239 return 0;
5241 _ACEOF
5242 if ac_fn_cxx_try_compile "$LINENO"; then :
5243 ac_cv_prog_cxx_g=yes
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5253 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5254 if test "$ac_test_CXXFLAGS" = set; then
5255 CXXFLAGS=$ac_save_CXXFLAGS
5256 elif test $ac_cv_prog_cxx_g = yes; then
5257 if test "$GXX" = yes; then
5258 CXXFLAGS="-g -O2"
5259 else
5260 CXXFLAGS="-g"
5262 else
5263 if test "$GXX" = yes; then
5264 CXXFLAGS="-O2"
5265 else
5266 CXXFLAGS=
5269 ac_ext=c
5270 ac_cpp='$CPP $CPPFLAGS'
5271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276 # We must set the default linker to the linker used by gcc for the correct
5277 # operation of libtool. If LD is not defined and we are using gcc, try to
5278 # set the LD default to the ld used by gcc.
5279 if test -z "$LD"; then
5280 if test "$GCC" = yes; then
5281 case $build in
5282 *-*-mingw*)
5283 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5285 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5286 esac
5287 case $gcc_prog_ld in
5288 # Accept absolute paths.
5289 [\\/]* | [A-Za-z]:[\\/]*)
5290 LD="$gcc_prog_ld" ;;
5291 esac
5295 # Check whether -static-libstdc++ -static-libgcc is supported.
5296 have_static_libs=no
5297 if test "$GCC" = yes; then
5298 saved_LDFLAGS="$LDFLAGS"
5300 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5302 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5303 ac_ext=cpp
5304 ac_cpp='$CXXCPP $CPPFLAGS'
5305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5313 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5314 #error -static-libstdc++ not implemented
5315 #endif
5316 int main() {}
5317 _ACEOF
5318 if ac_fn_cxx_try_link "$LINENO"; then :
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320 $as_echo "yes" >&6; }; have_static_libs=yes
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5325 rm -f core conftest.err conftest.$ac_objext \
5326 conftest$ac_exeext conftest.$ac_ext
5327 ac_ext=c
5328 ac_cpp='$CPP $CPPFLAGS'
5329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334 LDFLAGS="$saved_LDFLAGS"
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5342 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if ${ac_cv_prog_GNATBIND+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 if test -n "$GNATBIND"; then
5349 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5362 done
5363 done
5364 IFS=$as_save_IFS
5368 GNATBIND=$ac_cv_prog_GNATBIND
5369 if test -n "$GNATBIND"; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5371 $as_echo "$GNATBIND" >&6; }
5372 else
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5379 if test -z "$ac_cv_prog_GNATBIND"; then
5380 ac_ct_GNATBIND=$GNATBIND
5381 # Extract the first word of "gnatbind", so it can be a program name with args.
5382 set dummy gnatbind; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if test -n "$ac_ct_GNATBIND"; then
5389 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5402 done
5403 done
5404 IFS=$as_save_IFS
5408 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5409 if test -n "$ac_ct_GNATBIND"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5411 $as_echo "$ac_ct_GNATBIND" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5417 if test "x$ac_ct_GNATBIND" = x; then
5418 GNATBIND="no"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426 GNATBIND=$ac_ct_GNATBIND
5428 else
5429 GNATBIND="$ac_cv_prog_GNATBIND"
5432 if test -n "$ac_tool_prefix"; then
5433 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5434 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_GNATMAKE+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -n "$GNATMAKE"; then
5441 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5454 done
5455 done
5456 IFS=$as_save_IFS
5460 GNATMAKE=$ac_cv_prog_GNATMAKE
5461 if test -n "$GNATMAKE"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5463 $as_echo "$GNATMAKE" >&6; }
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5471 if test -z "$ac_cv_prog_GNATMAKE"; then
5472 ac_ct_GNATMAKE=$GNATMAKE
5473 # Extract the first word of "gnatmake", so it can be a program name with args.
5474 set dummy gnatmake; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$ac_ct_GNATMAKE"; then
5481 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5482 else
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5496 IFS=$as_save_IFS
5500 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5501 if test -n "$ac_ct_GNATMAKE"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5503 $as_echo "$ac_ct_GNATMAKE" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5509 if test "x$ac_ct_GNATMAKE" = x; then
5510 GNATMAKE="no"
5511 else
5512 case $cross_compiling:$ac_tool_warned in
5513 yes:)
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516 ac_tool_warned=yes ;;
5517 esac
5518 GNATMAKE=$ac_ct_GNATMAKE
5520 else
5521 GNATMAKE="$ac_cv_prog_GNATMAKE"
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5525 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5526 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 cat >conftest.adb <<EOF
5530 procedure conftest is begin null; end conftest;
5532 acx_cv_cc_gcc_supports_ada=no
5533 # There is a bug in old released versions of GCC which causes the
5534 # driver to exit successfully when the appropriate language module
5535 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5536 # Therefore we must check for the error message as well as an
5537 # unsuccessful exit.
5538 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5539 # given a .adb file, but produce no object file. So we must check
5540 # if an object file was really produced to guard against this.
5541 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5542 if test x"$errors" = x && test -f conftest.$ac_objext; then
5543 acx_cv_cc_gcc_supports_ada=yes
5545 rm -f conftest.*
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5548 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5550 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5551 have_gnat=yes
5552 else
5553 have_gnat=no
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5557 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5558 if ${gcc_cv_prog_cmp_skip+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 echo abfoo >t1
5562 echo cdfoo >t2
5563 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5564 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5565 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5567 else
5568 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5571 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5572 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5574 else
5575 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5578 rm t1 t2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5582 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5583 do_compare="$gcc_cv_prog_cmp_skip"
5587 # Check whether --enable-bootstrap was given.
5588 if test "${enable_bootstrap+set}" = set; then :
5589 enableval=$enable_bootstrap;
5590 else
5591 enable_bootstrap=default
5595 # Issue errors and warnings for invalid/strange bootstrap combinations.
5596 if test -r $srcdir/gcc/configure; then
5597 have_compiler=yes
5598 else
5599 have_compiler=no
5602 case "$have_compiler:$host:$target:$enable_bootstrap" in
5603 *:*:*:no) ;;
5605 # Default behavior. Enable bootstrap if we have a compiler
5606 # and we are in a native configuration.
5607 yes:$build:$build:default)
5608 enable_bootstrap=yes ;;
5610 *:*:*:default)
5611 enable_bootstrap=no ;;
5613 # We have a compiler and we are in a native configuration, bootstrap is ok
5614 yes:$build:$build:yes)
5617 # Other configurations, but we have a compiler. Assume the user knows
5618 # what he's doing.
5619 yes:*:*:yes)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5621 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5624 # No compiler: if they passed --enable-bootstrap explicitly, fail
5625 no:*:*:yes)
5626 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5628 # Fail if wrong command line
5630 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5632 esac
5634 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5635 # C++98 compiler can still start the bootstrap.
5636 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5637 CXX="$CXX -std=gnu++98"
5640 # Check whether --enable-pgo-build was given.
5641 if test "${enable_pgo_build+set}" = set; then :
5642 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5643 else
5644 enable_pgo_build=no
5648 # Issue errors and warnings for invalid/strange PGO build combinations.
5649 case "$have_compiler:$host:$target:$enable_pgo_build" in
5650 *:*:*:no) ;;
5652 # Allow the PGO build only if we aren't building a compiler and
5653 # we are in a native configuration.
5654 no:$build:$build:yes | no:$build:$build:lto) ;;
5656 # Disallow the PGO bootstrap if we are building a compiler.
5657 yes:*:*:yes | yes:*:*:lto)
5658 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5661 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5663 esac
5665 if test "$enable_pgo_build" != "no"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5667 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5668 old_CFLAGS="$CFLAGS"
5669 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5670 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 int foo;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5678 else
5679 PGO_BUILD_GEN_CFLAGS=
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 CFLAGS="$old_CFLAGS"
5683 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5685 $as_echo "yes" >&6; }
5686 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5693 if test "$enable_pgo_build" = "lto"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5695 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5696 old_CFLAGS="$CFLAGS"
5697 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5698 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 int foo;
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"; then :
5705 else
5706 PGO_BUILD_LTO_CFLAGS=
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 CFLAGS="$old_CFLAGS"
5710 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712 $as_echo "yes" >&6; }
5713 else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5717 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5725 # Used for setting $lt_cv_objdir
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5727 $as_echo_n "checking for objdir... " >&6; }
5728 if ${lt_cv_objdir+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 rm -f .libs 2>/dev/null
5732 mkdir .libs 2>/dev/null
5733 if test -d .libs; then
5734 lt_cv_objdir=.libs
5735 else
5736 # MS-DOS does not allow filenames that begin with a dot.
5737 lt_cv_objdir=_libs
5739 rmdir .libs 2>/dev/null
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5742 $as_echo "$lt_cv_objdir" >&6; }
5743 objdir=$lt_cv_objdir
5749 cat >>confdefs.h <<_ACEOF
5750 #define LT_OBJDIR "$lt_cv_objdir/"
5751 _ACEOF
5755 # Check for GMP, MPFR and MPC
5756 gmplibs="-lmpc -lmpfr -lgmp"
5757 gmpinc=
5758 have_gmp=no
5760 # Specify a location for mpc
5761 # check for this first so it ends up on the link line before mpfr.
5763 # Check whether --with-mpc was given.
5764 if test "${with_mpc+set}" = set; then :
5765 withval=$with_mpc;
5769 # Check whether --with-mpc-include was given.
5770 if test "${with_mpc_include+set}" = set; then :
5771 withval=$with_mpc_include;
5775 # Check whether --with-mpc-lib was given.
5776 if test "${with_mpc_lib+set}" = set; then :
5777 withval=$with_mpc_lib;
5781 if test "x$with_mpc" != x; then
5782 gmplibs="-L$with_mpc/lib $gmplibs"
5783 gmpinc="-I$with_mpc/include $gmpinc"
5785 if test "x$with_mpc_include" != x; then
5786 gmpinc="-I$with_mpc_include $gmpinc"
5788 if test "x$with_mpc_lib" != x; then
5789 gmplibs="-L$with_mpc_lib $gmplibs"
5791 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5792 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5793 gmpinc='-I$$s/mpc/src '"$gmpinc"
5794 # Do not test the mpc version. Assume that it is sufficient, since
5795 # it is in the source tree, and the library has not been built yet
5796 # but it would be included on the link line in the version check below
5797 # hence making the test fail.
5798 have_gmp=yes
5801 # Specify a location for mpfr
5802 # check for this first so it ends up on the link line before gmp.
5804 # Check whether --with-mpfr-dir was given.
5805 if test "${with_mpfr_dir+set}" = set; then :
5806 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5807 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5812 # Check whether --with-mpfr was given.
5813 if test "${with_mpfr+set}" = set; then :
5814 withval=$with_mpfr;
5818 # Check whether --with-mpfr-include was given.
5819 if test "${with_mpfr_include+set}" = set; then :
5820 withval=$with_mpfr_include;
5824 # Check whether --with-mpfr-lib was given.
5825 if test "${with_mpfr_lib+set}" = set; then :
5826 withval=$with_mpfr_lib;
5830 if test "x$with_mpfr" != x; then
5831 gmplibs="-L$with_mpfr/lib $gmplibs"
5832 gmpinc="-I$with_mpfr/include $gmpinc"
5834 if test "x$with_mpfr_include" != x; then
5835 gmpinc="-I$with_mpfr_include $gmpinc"
5837 if test "x$with_mpfr_lib" != x; then
5838 gmplibs="-L$with_mpfr_lib $gmplibs"
5840 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5841 # MPFR v3.1.0 moved the sources into a src sub-directory.
5842 if ! test -d ${srcdir}/mpfr/src; then
5843 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5845 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5846 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5847 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5848 # Do not test the mpfr version. Assume that it is sufficient, since
5849 # it is in the source tree, and the library has not been built yet
5850 # but it would be included on the link line in the version check below
5851 # hence making the test fail.
5852 have_gmp=yes
5855 # Specify a location for gmp
5857 # Check whether --with-gmp-dir was given.
5858 if test "${with_gmp_dir+set}" = set; then :
5859 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5860 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5865 # Check whether --with-gmp was given.
5866 if test "${with_gmp+set}" = set; then :
5867 withval=$with_gmp;
5871 # Check whether --with-gmp-include was given.
5872 if test "${with_gmp_include+set}" = set; then :
5873 withval=$with_gmp_include;
5877 # Check whether --with-gmp-lib was given.
5878 if test "${with_gmp_lib+set}" = set; then :
5879 withval=$with_gmp_lib;
5884 if test "x$with_gmp" != x; then
5885 gmplibs="-L$with_gmp/lib $gmplibs"
5886 gmpinc="-I$with_gmp/include $gmpinc"
5888 if test "x$with_gmp_include" != x; then
5889 gmpinc="-I$with_gmp_include $gmpinc"
5891 if test "x$with_gmp_lib" != x; then
5892 gmplibs="-L$with_gmp_lib $gmplibs"
5894 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5895 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5896 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5897 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5898 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5899 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5900 # Do not test the gmp version. Assume that it is sufficient, since
5901 # it is in the source tree, and the library has not been built yet
5902 # but it would be included on the link line in the version check below
5903 # hence making the test fail.
5904 have_gmp=yes
5907 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5908 have_gmp=yes
5909 saved_CFLAGS="$CFLAGS"
5910 CFLAGS="$CFLAGS $gmpinc"
5911 # Check for the recommended and required versions of GMP.
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5913 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 #include "gmp.h"
5918 main ()
5921 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5922 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5923 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5924 choke me
5925 #endif
5928 return 0;
5930 _ACEOF
5931 if ac_fn_c_try_compile "$LINENO"; then :
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 #include <gmp.h>
5936 main ()
5939 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5940 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5941 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5942 choke me
5943 #endif
5946 return 0;
5948 _ACEOF
5949 if ac_fn_c_try_compile "$LINENO"; then :
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5951 $as_echo "yes" >&6; }
5952 else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5954 $as_echo "buggy but acceptable" >&6; }
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }; have_gmp=no
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 # If we have GMP, check the MPFR version.
5964 if test x"$have_gmp" = xyes; then
5965 # Check for the recommended and required versions of MPFR.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5967 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <gmp.h>
5971 #include <mpfr.h>
5973 main ()
5976 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5977 choke me
5978 #endif
5981 return 0;
5983 _ACEOF
5984 if ac_fn_c_try_compile "$LINENO"; then :
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #include <gmp.h>
5988 #include <mpfr.h>
5990 main ()
5993 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5994 choke me
5995 #endif
5998 return 0;
6000 _ACEOF
6001 if ac_fn_c_try_compile "$LINENO"; then :
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6003 $as_echo "yes" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6006 $as_echo "buggy but acceptable" >&6; }
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 else
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 $as_echo "no" >&6; }; have_gmp=no
6013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 # Check for the MPC header version.
6017 if test x"$have_gmp" = xyes ; then
6018 # Check for the recommended and required versions of MPC.
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6020 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 #include <mpc.h>
6025 main ()
6028 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6029 choke me
6030 #endif
6033 return 0;
6035 _ACEOF
6036 if ac_fn_c_try_compile "$LINENO"; then :
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 #include <mpc.h>
6041 main ()
6044 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6045 choke me
6046 #endif
6049 return 0;
6051 _ACEOF
6052 if ac_fn_c_try_compile "$LINENO"; then :
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6054 $as_echo "yes" >&6; }
6055 else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6057 $as_echo "buggy but acceptable" >&6; }
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }; have_gmp=no
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 # Now check the MPFR library.
6068 if test x"$have_gmp" = xyes; then
6069 saved_LIBS="$LIBS"
6070 LIBS="$LIBS $gmplibs"
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6072 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <mpc.h>
6077 main ()
6080 mpfr_t n;
6081 mpfr_t x;
6082 mpc_t c;
6083 int t;
6084 mpfr_init (n);
6085 mpfr_init (x);
6086 mpfr_atan2 (n, n, x, GMP_RNDN);
6087 mpfr_erfc (n, x, GMP_RNDN);
6088 mpfr_subnormalize (x, t, GMP_RNDN);
6089 mpfr_clear(n);
6090 mpfr_clear(x);
6091 mpc_init2 (c, 53);
6092 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6093 mpc_cosh (c, c, MPC_RNDNN);
6094 mpc_pow (c, c, c, MPC_RNDNN);
6095 mpc_acosh (c, c, MPC_RNDNN);
6096 mpc_clear (c);
6099 return 0;
6101 _ACEOF
6102 if ac_fn_c_try_link "$LINENO"; then :
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6104 $as_echo "yes" >&6; }
6105 else
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }; have_gmp=no
6109 rm -f core conftest.err conftest.$ac_objext \
6110 conftest$ac_exeext conftest.$ac_ext
6111 LIBS="$saved_LIBS"
6114 CFLAGS="$saved_CFLAGS"
6116 # The library versions listed in the error message below should match
6117 # the HARD-minimums enforced above.
6118 if test x$have_gmp != xyes; then
6119 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6120 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6121 their locations. Source code for these libraries can be found at
6122 their respective hosting sites as well as at
6123 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6124 http://gcc.gnu.org/install/prerequisites.html for additional info. If
6125 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6126 make sure that you have installed both the libraries and the header
6127 files. They may be located in separate packages." "$LINENO" 5
6131 # Flags needed for both GMP, MPFR and/or MPC.
6139 # Libraries to use for stage1 or when not bootstrapping.
6141 # Check whether --with-stage1-libs was given.
6142 if test "${with_stage1_libs+set}" = set; then :
6143 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6144 stage1_libs=
6145 else
6146 stage1_libs=$withval
6148 else
6149 stage1_libs=
6154 # Whether or not to use -static-libstdc++ and -static-libgcc. The
6155 # default is yes if gcc is being built; no otherwise. The reason for
6156 # this default is that gdb is sometimes linked against GNU Source
6157 # Highlight, which is a shared library that uses C++ exceptions. In
6158 # this case, -static-libstdc++ will cause crashes.
6160 # Check whether --with-static-standard-libraries was given.
6161 if test "${with_static_standard_libraries+set}" = set; then :
6162 withval=$with_static_standard_libraries;
6163 else
6164 with_static_standard_libraries=auto
6167 if test "$with_static_standard_libraries" = auto; then
6168 with_static_standard_libraries=$have_compiler
6171 # Linker flags to use for stage1 or when not bootstrapping.
6173 # Check whether --with-stage1-ldflags was given.
6174 if test "${with_stage1_ldflags+set}" = set; then :
6175 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6176 stage1_ldflags=
6177 else
6178 stage1_ldflags=$withval
6180 else
6181 stage1_ldflags=
6182 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6183 # if supported. But if the user explicitly specified the libraries to use,
6184 # trust that they are doing what they want.
6185 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6186 -a "$have_static_libs" = yes; then
6187 stage1_ldflags="-static-libstdc++ -static-libgcc"
6193 # Libraries to use for stage2 and later builds.
6195 # Check whether --with-boot-libs was given.
6196 if test "${with_boot_libs+set}" = set; then :
6197 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6198 poststage1_libs=
6199 else
6200 poststage1_libs=$withval
6202 else
6203 poststage1_libs=
6208 # Linker flags to use for stage2 and later builds.
6210 # Check whether --with-boot-ldflags was given.
6211 if test "${with_boot_ldflags+set}" = set; then :
6212 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6213 poststage1_ldflags=
6214 else
6215 poststage1_ldflags=$withval
6217 else
6218 poststage1_ldflags=
6219 # In stages 2 and 3, default to linking libstdc++ and libgcc
6220 # statically. But if the user explicitly specified the libraries to
6221 # use, trust that they are doing what they want.
6222 if test "$poststage1_libs" = ""; then
6223 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6229 # GCC GRAPHITE dependency isl.
6230 # Basic setup is inlined here, actual checks are in config/isl.m4
6233 # Check whether --with-isl was given.
6234 if test "${with_isl+set}" = set; then :
6235 withval=$with_isl;
6239 # Treat --without-isl as a request to disable
6240 # GRAPHITE support and skip all following checks.
6241 if test "x$with_isl" != "xno"; then
6242 # Check for isl
6245 # Check whether --with-isl-include was given.
6246 if test "${with_isl_include+set}" = set; then :
6247 withval=$with_isl_include;
6251 # Check whether --with-isl-lib was given.
6252 if test "${with_isl_lib+set}" = set; then :
6253 withval=$with_isl_lib;
6257 # Check whether --enable-isl-version-check was given.
6258 if test "${enable_isl_version_check+set}" = set; then :
6259 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6260 else
6261 ENABLE_ISL_CHECK=yes
6265 # Initialize isllibs and islinc.
6266 case $with_isl in
6268 isllibs=
6269 islinc=
6271 "" | yes)
6274 isllibs="-L$with_isl/lib"
6275 islinc="-I$with_isl/include"
6277 esac
6278 if test "x${with_isl_include}" != x ; then
6279 islinc="-I$with_isl_include"
6281 if test "x${with_isl_lib}" != x; then
6282 isllibs="-L$with_isl_lib"
6284 if test "x${islinc}" = x && test "x${isllibs}" = x \
6285 && test -d ${srcdir}/isl; then
6286 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6287 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6288 ENABLE_ISL_CHECK=no
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6290 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6293 isllibs="${isllibs} -lisl"
6297 if test "${ENABLE_ISL_CHECK}" = yes ; then
6298 _isl_saved_CFLAGS=$CFLAGS
6299 _isl_saved_LDFLAGS=$LDFLAGS
6300 _isl_saved_LIBS=$LIBS
6302 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6303 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6304 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6307 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 #include <isl/schedule.h>
6312 main ()
6314 isl_options_set_schedule_serialize_sccs (NULL, 0);
6316 return 0;
6318 _ACEOF
6319 if ac_fn_c_try_link "$LINENO"; then :
6320 gcc_cv_isl=yes
6321 else
6322 gcc_cv_isl=no
6324 rm -f core conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6327 $as_echo "$gcc_cv_isl" >&6; }
6329 if test "${gcc_cv_isl}" = no ; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6331 $as_echo "required isl version is 0.15 or later" >&6; }
6334 CFLAGS=$_isl_saved_CFLAGS
6335 LDFLAGS=$_isl_saved_LDFLAGS
6336 LIBS=$_isl_saved_LIBS
6344 if test "x${with_isl}" = xno; then
6345 graphite_requested=no
6346 elif test "x${with_isl}" != x \
6347 || test "x${with_isl_include}" != x \
6348 || test "x${with_isl_lib}" != x ; then
6349 graphite_requested=yes
6350 else
6351 graphite_requested=no
6356 if test "${gcc_cv_isl}" = no ; then
6357 isllibs=
6358 islinc=
6361 if test "${graphite_requested}" = yes \
6362 && test "x${isllibs}" = x \
6363 && test "x${islinc}" = x ; then
6365 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6371 # If the isl check failed, disable builds of in-tree variant of isl
6372 if test "x$with_isl" = xno ||
6373 test "x$gcc_cv_isl" = xno; then
6374 noconfigdirs="$noconfigdirs isl"
6375 islinc=
6381 # Check for LTO support.
6382 # Check whether --enable-lto was given.
6383 if test "${enable_lto+set}" = set; then :
6384 enableval=$enable_lto; enable_lto=$enableval
6385 else
6386 enable_lto=yes; default_enable_lto=yes
6393 target_elf=no
6394 case $target in
6395 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6396 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6397 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6398 nvptx-*-none)
6399 target_elf=no
6402 target_elf=yes
6404 esac
6406 if test $target_elf = yes; then :
6407 # ELF platforms build the lto-plugin always.
6408 build_lto_plugin=yes
6410 else
6411 if test x"$default_enable_lto" = x"yes" ; then
6412 case $target in
6413 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6414 # On other non-ELF platforms, LTO has yet to be validated.
6415 *) enable_lto=no ;;
6416 esac
6417 else
6418 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6419 # It would also be nice to check the binutils support, but we don't
6420 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6421 # warn during gcc/ subconfigure; unless you're bootstrapping with
6422 # -flto it won't be needed until after installation anyway.
6423 case $target in
6424 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6425 *) if test x"$enable_lto" = x"yes"; then
6426 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6429 esac
6431 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6432 # Build it unless LTO was explicitly disabled.
6433 case $target in
6434 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6435 *) ;;
6436 esac
6441 # Check whether --enable-linker-plugin-configure-flags was given.
6442 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6443 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6444 else
6445 extra_linker_plugin_configure_flags=
6449 # Check whether --enable-linker-plugin-flags was given.
6450 if test "${enable_linker_plugin_flags+set}" = set; then :
6451 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6452 else
6453 extra_linker_plugin_flags=
6458 # Enable --enable-host-shared.
6459 # Checked early to determine whether jit is an 'all' language
6460 # Check whether --enable-host-shared was given.
6461 if test "${enable_host_shared+set}" = set; then :
6462 enableval=$enable_host_shared; host_shared=$enableval
6463 else
6464 host_shared=no
6469 # By default, C and C++ are the only stage 1 languages.
6470 stage1_languages=,c,
6472 # Target libraries that we bootstrap.
6473 bootstrap_target_libs=,target-libgcc,
6475 # Figure out what language subdirectories are present.
6476 # Look if the user specified --enable-languages="..."; if not, use
6477 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6478 # go away some day.
6479 # NB: embedded tabs in this IF block -- do not untabify
6480 if test -d ${srcdir}/gcc; then
6481 if test x"${enable_languages+set}" != xset; then
6482 if test x"${LANGUAGES+set}" = xset; then
6483 enable_languages="${LANGUAGES}"
6484 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6485 else
6486 enable_languages=default
6488 else
6489 if test x"${enable_languages}" = x ||
6490 test x"${enable_languages}" = xyes;
6491 then
6492 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6493 exit 1
6496 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6498 # 'f95' is the old name for the 'fortran' language. We issue a warning
6499 # and make the substitution.
6500 case ,${enable_languages}, in
6501 *,f95,*)
6502 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6503 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6505 esac
6507 # If bootstrapping, C++ must be enabled.
6508 case ",$enable_languages,:$enable_bootstrap" in
6509 *,c++,*:*) ;;
6510 *:yes)
6511 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6512 enable_languages="${enable_languages},c++"
6513 else
6514 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6517 esac
6519 # First scan to see if an enabled language requires some other language.
6520 # We assume that a given config-lang.in will list all the language
6521 # front ends it requires, even if some are required indirectly.
6522 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6523 case ${lang_frag} in
6524 ..) ;;
6525 # The odd quoting in the next line works around
6526 # an apparent bug in bash 1.12 on linux.
6527 ${srcdir}/gcc/[*]/config-lang.in) ;;
6529 # From the config-lang.in, get $language, $lang_requires, and
6530 # $lang_requires_boot_languages.
6531 language=
6532 lang_requires=
6533 lang_requires_boot_languages=
6534 # set srcdir during sourcing lang_frag to the gcc dir.
6535 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6536 # polutes this shell
6537 saved_srcdir=${srcdir}
6538 srcdir=${srcdir}/gcc . ${lang_frag}
6539 srcdir=${saved_srcdir}
6540 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6541 case ,${enable_languages}, in
6542 *,$other,*) ;;
6543 *,default,*) ;;
6544 *,all,*) ;;
6545 *,$language,*)
6546 echo " \`$other' language required by \`$language'; enabling" 1>&2
6547 enable_languages="${enable_languages},${other}"
6549 esac
6550 done
6551 for other in ${lang_requires_boot_languages} ; do
6552 if test "$other" != "c"; then
6553 case ,${enable_stage1_languages}, in
6554 *,$other,*) ;;
6555 *,default,*) ;;
6556 *,all,*) ;;
6558 case ,${enable_languages}, in
6559 *,$language,*)
6560 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6561 enable_stage1_languages="$enable_stage1_languages,${other}"
6563 esac
6565 esac
6567 done
6569 esac
6570 done
6572 new_enable_languages=,c,
6574 # If LTO is enabled, add the LTO front end.
6575 if test "$enable_lto" = "yes" ; then
6576 case ,${enable_languages}, in
6577 *,lto,*) ;;
6578 *) enable_languages="${enable_languages},lto" ;;
6579 esac
6580 if test "${build_lto_plugin}" = "yes" ; then
6581 configdirs="$configdirs lto-plugin"
6585 # If we're building an offloading compiler, add the LTO front end.
6586 if test x"$enable_as_accelerator_for" != x ; then
6587 case ,${enable_languages}, in
6588 *,lto,*) ;;
6589 *) enable_languages="${enable_languages},lto" ;;
6590 esac
6593 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6594 potential_languages=,c,
6596 enabled_target_libs=
6597 disabled_target_libs=
6599 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6600 case ${lang_frag} in
6601 ..) ;;
6602 # The odd quoting in the next line works around
6603 # an apparent bug in bash 1.12 on linux.
6604 ${srcdir}/gcc/[*]/config-lang.in) ;;
6606 # From the config-lang.in, get $language, $target_libs,
6607 # $lang_dirs, $boot_language, and $build_by_default
6608 language=
6609 target_libs=
6610 lang_dirs=
6611 subdir_requires=
6612 boot_language=no
6613 build_by_default=yes
6614 # set srcdir during sourcing. See above about save & restore
6615 saved_srcdir=${srcdir}
6616 srcdir=${srcdir}/gcc . ${lang_frag}
6617 srcdir=${saved_srcdir}
6618 if test x${language} = x; then
6619 echo "${lang_frag} doesn't set \$language." 1>&2
6620 exit 1
6623 if test "$language" = "c++"; then
6624 boot_language=yes
6627 add_this_lang=no
6628 # C is always enabled, so no need to add it again
6629 if test "$language" != "c"; then
6630 case ,${enable_languages}, in
6631 *,${language},*)
6632 # Language was explicitly selected; include it
6633 add_this_lang=yes
6635 *,all,*)
6636 # All languages are enabled
6637 add_this_lang=all
6639 *,default,*)
6640 # 'default' was selected, select it if it is a default language
6641 add_this_lang=${build_by_default}
6643 esac
6646 # Disable languages that need other directories if these aren't available.
6647 for i in $subdir_requires; do
6648 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6649 case ${add_this_lang} in
6650 yes)
6651 # Specifically requested language; tell them.
6652 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6654 all)
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6656 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6657 add_this_lang=unsupported
6660 # Silently disable.
6661 add_this_lang=unsupported
6663 esac
6664 done
6666 # Disable Ada if no preexisting GNAT is available.
6667 case ${add_this_lang}:${language}:${have_gnat} in
6668 yes:ada:no)
6669 # Specifically requested language; tell them.
6670 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6672 all:ada:no)
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6674 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6675 add_this_lang=unsupported
6677 *:ada:no)
6678 # Silently disable.
6679 add_this_lang=unsupported
6681 esac
6683 # Disable jit if -enable-host-shared not specified
6684 case ${add_this_lang}:${language}:${host_shared} in
6685 yes:jit:no)
6686 # PR jit/64780: explicitly specify --enable-host-shared
6687 as_fn_error $? "
6688 Enabling language \"jit\" requires --enable-host-shared.
6690 --enable-host-shared typically slows the rest of the compiler down by
6691 a few %, so you must explicitly enable it.
6693 If you want to build both the jit and the regular compiler, it is often
6694 best to do this via two separate configure/builds, in separate
6695 directories, to avoid imposing the performance cost of
6696 --enable-host-shared on the regular compiler." "$LINENO" 5
6698 all:jit:no)
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6700 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6701 add_this_lang=unsupported
6703 *:jit:no)
6704 # Silently disable.
6705 add_this_lang=unsupported
6707 esac
6709 # Disable a language that is unsupported by the target.
6710 case "${add_this_lang}: $unsupported_languages " in
6711 no:*) ;;
6712 unsupported:*) ;;
6713 *:*" $language "*)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6715 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6716 add_this_lang=unsupported
6718 esac
6720 case $add_this_lang in
6721 unsupported)
6722 # Remove language-dependent dirs.
6723 disabled_target_libs="$disabled_target_libs $target_libs"
6724 noconfigdirs="$noconfigdirs $lang_dirs"
6727 # Remove language-dependent dirs; still show language as supported.
6728 disabled_target_libs="$disabled_target_libs $target_libs"
6729 noconfigdirs="$noconfigdirs $lang_dirs"
6730 potential_languages="${potential_languages}${language},"
6732 all|yes)
6733 new_enable_languages="${new_enable_languages}${language},"
6734 potential_languages="${potential_languages}${language},"
6735 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6736 enabled_target_libs="$enabled_target_libs $target_libs"
6737 case "${boot_language}:,$enable_stage1_languages," in
6738 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6739 # Add to (comma-separated) list of stage 1 languages.
6740 case ",$stage1_languages," in
6741 *,$language,* | ,yes, | ,all,) ;;
6742 *) stage1_languages="${stage1_languages}${language}," ;;
6743 esac
6744 # We need to bootstrap any supporting libraries.
6745 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6747 esac
6749 esac
6751 esac
6752 done
6754 # Add target libraries which are only needed for disabled languages
6755 # to noconfigdirs.
6756 if test -n "$disabled_target_libs"; then
6757 for dir in $disabled_target_libs; do
6758 case " $enabled_target_libs " in
6759 *" ${dir} "*) ;;
6760 *) noconfigdirs="$noconfigdirs $dir" ;;
6761 esac
6762 done
6765 # Check whether --enable-stage1-languages was given.
6766 if test "${enable_stage1_languages+set}" = set; then :
6767 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6768 ,no,|,,)
6769 # Set it to something that will have no effect in the loop below
6770 enable_stage1_languages=c ;;
6771 ,yes,)
6772 enable_stage1_languages=`echo $new_enable_languages | \
6773 sed -e "s/^,//" -e "s/,$//" ` ;;
6774 *,all,*)
6775 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6776 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6777 esac
6779 # Add "good" languages from enable_stage1_languages to stage1_languages,
6780 # while "bad" languages go in missing_languages. Leave no duplicates.
6781 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6782 case $potential_languages in
6783 *,$i,*)
6784 case $stage1_languages in
6785 *,$i,*) ;;
6786 *) stage1_languages="$stage1_languages$i," ;;
6787 esac ;;
6789 case $missing_languages in
6790 *,$i,*) ;;
6791 *) missing_languages="$missing_languages$i," ;;
6792 esac ;;
6793 esac
6794 done
6798 # Remove leading/trailing commas that were added for simplicity
6799 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6800 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6801 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6802 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6804 if test "x$missing_languages" != x; then
6805 as_fn_error $? "
6806 The following requested languages could not be built: ${missing_languages}
6807 Supported languages are: ${potential_languages}" "$LINENO" 5
6809 if test "x$new_enable_languages" != "x$enable_languages"; then
6810 echo The following languages will be built: ${new_enable_languages}
6811 enable_languages="$new_enable_languages"
6815 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6818 # Handle --disable-<component> generically.
6819 for dir in $configdirs $build_configdirs $target_configdirs ; do
6820 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6821 varname=`echo $dirname | sed -e s/+/_/g`
6822 if eval test x\${enable_${varname}} "=" xno ; then
6823 noconfigdirs="$noconfigdirs $dir"
6825 done
6827 # Check for Boehm's garbage collector
6828 # Check whether --enable-objc-gc was given.
6829 if test "${enable_objc_gc+set}" = set; then :
6830 enableval=$enable_objc_gc;
6834 # Check whether --with-target-bdw-gc was given.
6835 if test "${with_target_bdw_gc+set}" = set; then :
6836 withval=$with_target_bdw_gc;
6840 # Check whether --with-target-bdw-gc-include was given.
6841 if test "${with_target_bdw_gc_include+set}" = set; then :
6842 withval=$with_target_bdw_gc_include;
6846 # Check whether --with-target-bdw-gc-lib was given.
6847 if test "${with_target_bdw_gc_lib+set}" = set; then :
6848 withval=$with_target_bdw_gc_lib;
6852 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6854 $as_echo_n "checking for bdw garbage collector... " >&6; }
6855 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6857 $as_echo "using bdw-gc in default locations" >&6; }
6858 else
6859 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6860 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6861 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6862 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6863 else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6865 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6868 esac
6870 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6871 case ,${enable_languages}, in
6872 *,c++,*)
6873 # Disable libitm, libsanitizer if we're not building libstdc++
6874 case "${noconfigdirs}" in
6875 *target-libstdc++-v3*)
6876 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6878 *) ;;
6879 esac
6882 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6884 esac
6886 # If gcc/ is not in the source tree then we'll not be building a
6887 # target compiler, assume in that case we don't want to build any
6888 # target libraries or tools.
6890 # This was added primarily for the benefit for binutils-gdb who reuse
6891 # this configure script, but don't always have target tools available.
6892 if test ! -d ${srcdir}/gcc; then
6893 skipdirs="${skipdirs} ${target_configdirs}"
6896 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6897 # $build_configdirs and $target_configdirs.
6898 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6900 notsupp=""
6901 for dir in . $skipdirs $noconfigdirs ; do
6902 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6903 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6904 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6905 if test -r $srcdir/$dirname/configure ; then
6906 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6907 true
6908 else
6909 notsupp="$notsupp $dir"
6913 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6914 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6915 if test -r $srcdir/$dirname/configure ; then
6916 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6917 true
6918 else
6919 notsupp="$notsupp $dir"
6923 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6924 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6925 if test -r $srcdir/$dirname/configure ; then
6926 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6927 true
6928 else
6929 notsupp="$notsupp $dir"
6933 done
6935 # Quietly strip out all directories which aren't configurable in this tree.
6936 # This relies on all configurable subdirectories being autoconfiscated, which
6937 # is now the case.
6938 build_configdirs_all="$build_configdirs"
6939 build_configdirs=
6940 for i in ${build_configdirs_all} ; do
6941 j=`echo $i | sed -e s/build-//g`
6942 if test -f ${srcdir}/$j/configure ; then
6943 build_configdirs="${build_configdirs} $i"
6945 done
6947 configdirs_all="$configdirs"
6948 configdirs=
6949 for i in ${configdirs_all} ; do
6950 if test -f ${srcdir}/$i/configure ; then
6951 configdirs="${configdirs} $i"
6953 done
6955 target_configdirs_all="$target_configdirs"
6956 target_configdirs=
6957 for i in ${target_configdirs_all} ; do
6958 j=`echo $i | sed -e s/target-//g`
6959 if test -f ${srcdir}/$j/configure ; then
6960 target_configdirs="${target_configdirs} $i"
6962 done
6964 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6965 # so we have to add it after the preceding checks.
6966 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6967 then
6968 case " $configdirs " in
6969 *" libiberty "*)
6970 # If we can build libiberty, we can also build libiberty-linker-plugin.
6971 configdirs="$configdirs libiberty-linker-plugin"
6972 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6973 --with-libiberty=../libiberty-linker-plugin";;
6975 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6976 esac
6979 # Sometimes we have special requirements for the host libiberty.
6980 extra_host_libiberty_configure_flags=
6981 case " $configdirs " in
6982 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
6983 # When these are to be built as shared libraries, the same applies to
6984 # libiberty.
6985 extra_host_libiberty_configure_flags=--enable-shared
6987 esac
6990 # Sometimes we have special requirements for the host zlib.
6991 extra_host_zlib_configure_flags=
6992 case " $configdirs " in
6993 *" bfd "*)
6994 # When bfd is to be built as a shared library, the same applies to
6995 # zlib.
6996 if test "$enable_shared" = "yes"; then
6997 extra_host_zlib_configure_flags=--enable-host-shared
7000 esac
7003 # Produce a warning message for the subdirs we can't configure.
7004 # This isn't especially interesting in the Cygnus tree, but in the individual
7005 # FSF releases, it's important to let people know when their machine isn't
7006 # supported by the one or two programs in a package.
7008 if test -n "${notsupp}" && test -z "${norecursion}" ; then
7009 # If $appdirs is non-empty, at least one of those directories must still
7010 # be configured, or we error out. (E.g., if the gas release supports a
7011 # specified target in some subdirs but not the gas subdir, we shouldn't
7012 # pretend that all is well.)
7013 if test -n "$appdirs" ; then
7014 for dir in $appdirs ; do
7015 if test -r $dir/Makefile.in ; then
7016 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7017 appdirs=""
7018 break
7020 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7021 appdirs=""
7022 break
7025 done
7026 if test -n "$appdirs" ; then
7027 echo "*** This configuration is not supported by this package." 1>&2
7028 exit 1
7031 # Okay, some application will build, or we don't care to check. Still
7032 # notify of subdirs not getting built.
7033 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7034 echo " ${notsupp}" 1>&2
7035 echo " (Any other directories should still work fine.)" 1>&2
7038 case "$host" in
7039 *msdosdjgpp*)
7040 enable_gdbtk=no ;;
7041 esac
7043 # To find our prefix, in gcc_cv_tool_prefix.
7045 # The user is always right.
7046 if test "${PATH_SEPARATOR+set}" != set; then
7047 echo "#! /bin/sh" >conf$$.sh
7048 echo "exit 0" >>conf$$.sh
7049 chmod +x conf$$.sh
7050 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7051 PATH_SEPARATOR=';'
7052 else
7053 PATH_SEPARATOR=:
7055 rm -f conf$$.sh
7059 get_gcc_base_ver="cat"
7061 # Check whether --with-gcc-major-version-only was given.
7062 if test "${with_gcc_major_version_only+set}" = set; then :
7063 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
7064 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
7074 if test "x$exec_prefix" = xNONE; then
7075 if test "x$prefix" = xNONE; then
7076 gcc_cv_tool_prefix=$ac_default_prefix
7077 else
7078 gcc_cv_tool_prefix=$prefix
7080 else
7081 gcc_cv_tool_prefix=$exec_prefix
7084 # If there is no compiler in the tree, use the PATH only. In any
7085 # case, if there is no compiler in the tree nobody should use
7086 # AS_FOR_TARGET and LD_FOR_TARGET.
7087 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7088 if test x$with_gcc_major_version_only = xyes ; then
7089 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7090 else
7091 gcc_version=`cat $srcdir/gcc/BASE-VER`
7093 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7094 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7095 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7096 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7097 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7098 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7099 else
7100 gcc_cv_tool_dirs=
7103 if test x$build = x$target && test -n "$md_exec_prefix"; then
7104 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7109 copy_dirs=
7112 # Check whether --with-build-sysroot was given.
7113 if test "${with_build_sysroot+set}" = set; then :
7114 withval=$with_build_sysroot; if test x"$withval" != x ; then
7115 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7117 else
7118 SYSROOT_CFLAGS_FOR_TARGET=
7124 # Check whether --with-debug-prefix-map was given.
7125 if test "${with_debug_prefix_map+set}" = set; then :
7126 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7127 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7128 for debug_map in $withval; do
7129 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7130 done
7132 else
7133 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7138 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7139 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7140 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7141 # We want to ensure that TARGET libraries (which we know are built with
7142 # gcc) are built with "-O2 -g", so include those options when setting
7143 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7144 if test "x$CFLAGS_FOR_TARGET" = x; then
7145 if test "x${is_cross_compiler}" = xyes; then
7146 CFLAGS_FOR_TARGET="-g -O2"
7147 else
7148 CFLAGS_FOR_TARGET=$CFLAGS
7149 case " $CFLAGS " in
7150 *" -O2 "*) ;;
7151 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7152 esac
7153 case " $CFLAGS " in
7154 *" -g "* | *" -g3 "*) ;;
7155 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7156 esac
7161 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7162 if test "x${is_cross_compiler}" = xyes; then
7163 CXXFLAGS_FOR_TARGET="-g -O2"
7164 else
7165 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7166 case " $CXXFLAGS " in
7167 *" -O2 "*) ;;
7168 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7169 esac
7170 case " $CXXFLAGS " in
7171 *" -g "* | *" -g3 "*) ;;
7172 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7173 esac
7180 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7181 # the named directory are copied to $(tooldir)/sys-include.
7182 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7183 if test x${is_cross_compiler} = xno ; then
7184 echo 1>&2 '***' --with-headers is only supported when cross compiling
7185 exit 1
7187 if test x"${with_headers}" != xyes ; then
7188 x=${gcc_cv_tool_prefix}
7189 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7193 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7194 # the name directories are copied to $(tooldir)/lib. Multiple directories
7195 # are permitted.
7196 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7197 if test x${is_cross_compiler} = xno ; then
7198 echo 1>&2 '***' --with-libs is only supported when cross compiling
7199 exit 1
7201 if test x"${with_libs}" != xyes ; then
7202 # Copy the libraries in reverse order, so that files in the first named
7203 # library override files in subsequent libraries.
7204 x=${gcc_cv_tool_prefix}
7205 for l in ${with_libs}; do
7206 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7207 done
7211 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7213 # This is done by determining whether or not the appropriate directory
7214 # is available, and by checking whether or not specific configurations
7215 # have requested that this magic not happen.
7217 # The command line options always override the explicit settings in
7218 # configure.ac, and the settings in configure.ac override this magic.
7220 # If the default for a toolchain is to use GNU as and ld, and you don't
7221 # want to do that, then you should use the --without-gnu-as and
7222 # --without-gnu-ld options for the configure script. Similarly, if
7223 # the default is to use the included zlib and you don't want to do that,
7224 # you should use the --with-system-zlib option for the configure script.
7226 if test x${use_gnu_as} = x &&
7227 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7228 with_gnu_as=yes
7229 extra_host_args="$extra_host_args --with-gnu-as"
7232 if test x${use_gnu_ld} = x &&
7233 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7234 with_gnu_ld=yes
7235 extra_host_args="$extra_host_args --with-gnu-ld"
7238 if test x${use_included_zlib} = x &&
7239 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7241 else
7242 with_system_zlib=yes
7243 extra_host_args="$extra_host_args --with-system-zlib"
7246 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7247 # can detect this case.
7249 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7250 with_newlib=yes
7251 extra_host_args="$extra_host_args --with-newlib"
7254 # Handle ${copy_dirs}
7255 set fnord ${copy_dirs}
7256 shift
7257 while test $# != 0 ; do
7258 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7260 else
7261 echo Copying $1 to $2
7263 # Use the install script to create the directory and all required
7264 # parent directories.
7265 if test -d $2 ; then
7267 else
7268 echo >config.temp
7269 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7272 # Copy the directory, assuming we have tar.
7273 # FIXME: Should we use B in the second tar? Not all systems support it.
7274 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7276 # It is the responsibility of the user to correctly adjust all
7277 # symlinks. If somebody can figure out how to handle them correctly
7278 # here, feel free to add the code.
7280 echo $1 > $2/COPIED
7282 shift; shift
7283 done
7285 # Determine a target-dependent exec_prefix that the installed
7286 # gcc will search in. Keep this list sorted by triplet, with
7287 # the *-*-osname triplets last.
7288 md_exec_prefix=
7289 case "${target}" in
7290 i[34567]86-pc-msdosdjgpp*)
7291 md_exec_prefix=/dev/env/DJDIR/bin
7293 *-*-hpux* | \
7294 *-*-nto-qnx* | \
7295 *-*-solaris2*)
7296 md_exec_prefix=/usr/ccs/bin
7298 esac
7300 extra_arflags_for_target=
7301 extra_nmflags_for_target=
7302 extra_ranlibflags_for_target=
7303 target_makefile_frag=/dev/null
7304 case "${target}" in
7305 spu-*-*)
7306 target_makefile_frag="config/mt-spu"
7308 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7309 target_makefile_frag="config/mt-sde"
7311 mipsisa*-*-elfoabi*)
7312 target_makefile_frag="config/mt-mips-elfoabi"
7314 mips*-*-*linux* | mips*-*-gnu*)
7315 target_makefile_frag="config/mt-mips-gnu"
7317 nios2-*-elf*)
7318 target_makefile_frag="config/mt-nios2-elf"
7320 *-*-linux-android*)
7321 target_makefile_frag="config/mt-android"
7323 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7324 target_makefile_frag="config/mt-gnu"
7326 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7327 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7328 # commands to handle both 32-bit and 64-bit objects. These flags are
7329 # harmless if we're using GNU nm or ar.
7330 extra_arflags_for_target=" -X32_64"
7331 extra_nmflags_for_target=" -B -X32_64"
7333 esac
7335 alphaieee_frag=/dev/null
7336 case $target in
7337 alpha*-*-*)
7338 # This just makes sure to use the -mieee option to build target libs.
7339 # This should probably be set individually by each library.
7340 alphaieee_frag="config/mt-alphaieee"
7342 esac
7344 # If --enable-target-optspace always use -Os instead of -O2 to build
7345 # the target libraries, similarly if it is not specified, use -Os
7346 # on selected platforms.
7347 ospace_frag=/dev/null
7348 case "${enable_target_optspace}:${target}" in
7349 yes:*)
7350 ospace_frag="config/mt-ospace"
7352 :d30v-*)
7353 ospace_frag="config/mt-d30v"
7355 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7356 ospace_frag="config/mt-ospace"
7358 no:* | :*)
7361 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7363 esac
7365 # Some systems (e.g., one of the i386-aix systems the gas testers are
7366 # using) don't handle "\$" correctly, so don't use it here.
7367 tooldir='${exec_prefix}'/${target_noncanonical}
7368 build_tooldir=${tooldir}
7370 # Create a .gdbinit file which runs the one in srcdir
7371 # and tells GDB to look there for source files.
7373 if test -r ${srcdir}/.gdbinit ; then
7374 case ${srcdir} in
7375 .) ;;
7376 *) cat > ./.gdbinit <<EOF
7377 # ${NO_EDIT}
7378 dir ${srcdir}
7379 dir .
7380 source ${srcdir}/.gdbinit
7383 esac
7386 # Make sure that the compiler is able to generate an executable. If it
7387 # can't, we are probably in trouble. We don't care whether we can run the
7388 # executable--we might be using a cross compiler--we only care whether it
7389 # can be created. At this point the main configure script has set CC.
7390 we_are_ok=no
7391 echo "int main () { return 0; }" > conftest.c
7392 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7393 if test $? = 0 ; then
7394 if test -s conftest || test -s conftest.exe ; then
7395 we_are_ok=yes
7398 case $we_are_ok in
7400 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7401 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7402 rm -f conftest*
7403 exit 1
7405 esac
7406 rm -f conftest*
7408 # Decide which environment variable is used to find dynamic libraries.
7409 case "${host}" in
7410 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7411 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7412 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7413 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7414 esac
7416 # On systems where the dynamic library environment variable is PATH,
7417 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7418 # built executables to PATH.
7419 if test "$RPATH_ENVVAR" = PATH; then
7420 GCC_SHLIB_SUBDIR=/shlib
7421 else
7422 GCC_SHLIB_SUBDIR=
7425 # Adjust the toplevel makefile according to whether bootstrap was selected.
7426 case $enable_bootstrap in
7427 yes)
7428 bootstrap_suffix=bootstrap
7429 BUILD_CONFIG=bootstrap-debug
7432 bootstrap_suffix=no-bootstrap
7433 BUILD_CONFIG=
7435 esac
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7438 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7441 # Check whether --with-build-config was given.
7442 if test "${with_build_config+set}" = set; then :
7443 withval=$with_build_config; case $with_build_config in
7444 yes) with_build_config= ;;
7445 no) with_build_config= BUILD_CONFIG= ;;
7446 esac
7450 if test "x${with_build_config}" != x; then
7451 BUILD_CONFIG=$with_build_config
7452 else
7453 case $BUILD_CONFIG in
7454 bootstrap-debug)
7455 if echo "int f (void) { return 0; }" > conftest.c &&
7456 ${CC} -c conftest.c &&
7457 mv conftest.o conftest.o.g0 &&
7458 ${CC} -c -g conftest.c &&
7459 mv conftest.o conftest.o.g &&
7460 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7462 else
7463 BUILD_CONFIG=
7465 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7467 esac
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7470 $as_echo "$BUILD_CONFIG" >&6; }
7473 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7475 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7476 # Check whether --enable-vtable-verify was given.
7477 if test "${enable_vtable_verify+set}" = set; then :
7478 enableval=$enable_vtable_verify; case "$enableval" in
7479 yes) enable_vtable_verify=yes ;;
7480 no) enable_vtable_verify=no ;;
7481 *) enable_vtable_verify=no;;
7482 esac
7483 else
7484 enable_vtable_verify=no
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7488 $as_echo "$enable_vtable_verify" >&6; }
7490 # Record target_configdirs and the configure arguments for target and
7491 # build configuration in Makefile.
7492 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7493 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7494 bootstrap_fixincludes=no
7496 # If we are building libgomp, bootstrap it.
7497 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7498 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7501 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7502 # or bootstrap-ubsan, bootstrap it.
7503 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7504 case "$BUILD_CONFIG" in
7505 *bootstrap-asan* | *bootstrap-ubsan* )
7506 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7507 bootstrap_fixincludes=yes
7509 esac
7512 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7513 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7514 test "$enable_vtable_verify" != no; then
7515 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7518 # Determine whether gdb needs tk/tcl or not.
7519 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7520 # and in that case we want gdb to be built without tk. Ugh!
7521 # In fact I believe gdb is the *only* package directly dependent on tk,
7522 # so we should be able to put the 'maybe's in unconditionally and
7523 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7524 # 100% sure that that's safe though.
7526 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7527 case "$enable_gdbtk" in
7529 GDB_TK="" ;;
7530 yes)
7531 GDB_TK="${gdb_tk}" ;;
7533 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7534 # distro. Eventually someone will fix this and move Insight, nee
7535 # gdbtk to a separate directory.
7536 if test -d ${srcdir}/gdb/gdbtk ; then
7537 GDB_TK="${gdb_tk}"
7538 else
7539 GDB_TK=""
7542 esac
7543 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7544 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7546 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7547 # else does, only include them if one of these is built. The Makefile
7548 # provides the ordering, so it's enough here to add to the list.
7549 case " ${configdirs} " in
7550 *\ gdb\ *)
7551 configdirs="${configdirs} gnulib gdbsupport"
7553 *\ gdbserver\ *)
7554 configdirs="${configdirs} gnulib gdbsupport"
7556 *\ sim\ *)
7557 configdirs="${configdirs} gnulib"
7559 esac
7561 # Strip out unwanted targets.
7563 # While at that, we remove Makefiles if we were started for recursive
7564 # configuration, so that the top-level Makefile reconfigures them,
7565 # like we used to do when configure itself was recursive.
7567 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7568 # but now we're fixing up the Makefile ourselves with the additional
7569 # commands passed to AC_CONFIG_FILES. Use separate variables
7570 # extrasub-{build,host,target} not because there is any reason to split
7571 # the substitutions up that way, but only to remain below the limit of
7572 # 99 commands in a script, for HP-UX sed.
7574 # Do not nest @if/@endif or @unless/@endunless pairs, because
7575 # configure will not warn you at all.
7577 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7578 yes:yes:*\ gold\ *:*,c++,*) ;;
7579 yes:yes:*\ gold\ *:*)
7580 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7582 esac
7584 extrasub_build=
7585 for module in ${build_configdirs} ; do
7586 if test -z "${no_recursion}" \
7587 && test -f ${build_subdir}/${module}/Makefile; then
7588 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7589 rm -f ${build_subdir}/${module}/Makefile
7591 extrasub_build="$extrasub_build
7592 /^@if build-$module\$/d
7593 /^@endif build-$module\$/d
7594 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7595 /^@if build-$module-$bootstrap_suffix\$/d
7596 /^@endif build-$module-$bootstrap_suffix\$/d
7597 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7598 done
7599 extrasub_host=
7600 for module in ${configdirs} ; do
7601 if test -z "${no_recursion}"; then
7602 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7603 if test -f ${file}; then
7604 echo 1>&2 "*** removing ${file} to force reconfigure"
7605 rm -f ${file}
7607 done
7609 case ${module},${bootstrap_fixincludes} in
7610 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7611 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7612 esac
7613 extrasub_host="$extrasub_host
7614 /^@if $module\$/d
7615 /^@endif $module\$/d
7616 /^@unless $module\$/,/^@endunless $module\$/d
7617 /^@if $module-$host_bootstrap_suffix\$/d
7618 /^@endif $module-$host_bootstrap_suffix\$/d
7619 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7620 done
7621 extrasub_target=
7622 for module in ${target_configdirs} ; do
7623 if test -z "${no_recursion}" \
7624 && test -f ${target_subdir}/${module}/Makefile; then
7625 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7626 rm -f ${target_subdir}/${module}/Makefile
7629 # We only bootstrap target libraries listed in bootstrap_target_libs.
7630 case $bootstrap_target_libs in
7631 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7632 *) target_bootstrap_suffix=no-bootstrap ;;
7633 esac
7635 extrasub_target="$extrasub_target
7636 /^@if target-$module\$/d
7637 /^@endif target-$module\$/d
7638 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7639 /^@if target-$module-$target_bootstrap_suffix\$/d
7640 /^@endif target-$module-$target_bootstrap_suffix\$/d
7641 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7642 done
7644 # Do the final fixup along with target modules.
7645 extrasub_target="$extrasub_target
7646 /^@if /,/^@endif /d
7647 /^@unless /d
7648 /^@endunless /d"
7650 if test "$enable_pgo_build" != "no"; then
7651 extrasub_build="$extrasub_build
7652 /^@if pgo-build\$/d
7653 /^@endif pgo-build\$/d"
7656 # Create the serialization dependencies. This uses a temporary file.
7658 # Check whether --enable-serial-configure was given.
7659 if test "${enable_serial_configure+set}" = set; then :
7660 enableval=$enable_serial_configure;
7664 case ${enable_serial_configure} in
7665 yes)
7666 enable_serial_build_configure=yes
7667 enable_serial_host_configure=yes
7668 enable_serial_target_configure=yes
7670 esac
7672 # These force 'configure's to be done one at a time, to avoid problems
7673 # with contention over a shared config.cache.
7674 rm -f serdep.tmp
7675 echo '# serdep.tmp' > serdep.tmp
7676 olditem=
7677 test "x${enable_serial_build_configure}" = xyes &&
7678 for item in ${build_configdirs} ; do
7679 case ${olditem} in
7680 "") ;;
7681 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7682 esac
7683 olditem=${item}
7684 done
7685 olditem=
7686 test "x${enable_serial_host_configure}" = xyes &&
7687 for item in ${configdirs} ; do
7688 case ${olditem} in
7689 "") ;;
7690 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7691 esac
7692 olditem=${item}
7693 done
7694 olditem=
7695 test "x${enable_serial_target_configure}" = xyes &&
7696 for item in ${target_configdirs} ; do
7697 case ${olditem} in
7698 "") ;;
7699 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7700 esac
7701 olditem=${item}
7702 done
7703 serialization_dependencies=serdep.tmp
7706 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7707 # target, nonopt, and variable assignments. These are the ones we
7708 # might not want to pass down to subconfigures. The exception being
7709 # --cache-file=/dev/null, which is used to turn off the use of cache
7710 # files altogether, and which should be passed on to subconfigures.
7711 # Also strip program-prefix, program-suffix, and program-transform-name,
7712 # so that we can pass down a consistent program-transform-name.
7713 baseargs=
7714 tbaseargs=
7715 keep_next=no
7716 skip_next=no
7717 eval "set -- $ac_configure_args"
7718 for ac_arg
7720 if test X"$skip_next" = X"yes"; then
7721 skip_next=no
7722 continue
7724 if test X"$keep_next" = X"yes"; then
7725 case $ac_arg in
7726 *\'*)
7727 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7728 esac
7729 baseargs="$baseargs '$ac_arg'"
7730 tbaseargs="$tbaseargs '$ac_arg'"
7731 keep_next=no
7732 continue
7735 # Handle separated arguments. Based on the logic generated by
7736 # autoconf 2.59.
7737 case $ac_arg in
7738 *=* | --config-cache | -C | -disable-* | --disable-* \
7739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7741 | -with-* | --with-* | -without-* | --without-* | --x)
7742 separate_arg=no
7745 separate_arg=yes
7748 separate_arg=no
7750 esac
7752 skip_targ=no
7753 case $ac_arg in
7755 --with-* | --without-*)
7756 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7758 case $libopt in
7759 *[-_]include)
7760 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7762 *[-_]lib)
7763 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7766 lib=$libopt
7768 esac
7771 case $lib in
7772 mpc | mpfr | gmp | isl)
7773 # If we're processing --with-$lib, --with-$lib-include or
7774 # --with-$lib-lib, for one of the libs above, and target is
7775 # different from host, don't pass the current argument to any
7776 # target library's configure.
7777 if test x$is_cross_compiler = xyes; then
7778 skip_targ=yes
7781 esac
7783 esac
7785 case "$ac_arg" in
7786 --cache-file=/dev/null | \
7787 -cache-file=/dev/null )
7788 # Handled here to avoid the test to skip args below.
7789 baseargs="$baseargs '$ac_arg'"
7790 tbaseargs="$tbaseargs '$ac_arg'"
7791 # Assert: $separate_arg should always be no.
7792 keep_next=$separate_arg
7794 --no*)
7795 continue
7797 --c* | \
7798 --sr* | \
7799 --ho* | \
7800 --bu* | \
7801 --t* | \
7802 --program-* | \
7803 -cache_file* | \
7804 -srcdir* | \
7805 -host* | \
7806 -build* | \
7807 -target* | \
7808 -program-prefix* | \
7809 -program-suffix* | \
7810 -program-transform-name* )
7811 skip_next=$separate_arg
7812 continue
7815 # An option. Add it.
7816 case $ac_arg in
7817 *\'*)
7818 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7819 esac
7820 baseargs="$baseargs '$ac_arg'"
7821 if test X"$skip_targ" = Xno; then
7822 tbaseargs="$tbaseargs '$ac_arg'"
7824 keep_next=$separate_arg
7827 # Either a variable assignment, or a nonopt (triplet). Don't
7828 # pass it down; let the Makefile handle this.
7829 continue
7831 esac
7832 done
7833 # Remove the initial space we just introduced and, as these will be
7834 # expanded by make, quote '$'.
7835 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7837 # Add in --program-transform-name, after --program-prefix and
7838 # --program-suffix have been applied to it. Autoconf has already
7839 # doubled dollar signs and backslashes in program_transform_name; we want
7840 # the backslashes un-doubled, and then the entire thing wrapped in single
7841 # quotes, because this will be expanded first by make and then by the shell.
7842 # Also, because we want to override the logic in subdir configure scripts to
7843 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7844 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7845 ${program_transform_name}
7846 EOF_SED
7847 gcc_transform_name=`cat conftestsed.out`
7848 rm -f conftestsed.out
7849 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7850 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7851 if test "$silent" = yes; then
7852 baseargs="$baseargs --silent"
7853 tbaseargs="$tbaseargs --silent"
7856 baseargs="$baseargs --disable-option-checking"
7857 tbaseargs="$tbaseargs --disable-option-checking"
7859 if test "$enable_year2038" = no; then
7860 baseargs="$baseargs --disable-year2038"
7861 tbaseargs="$tbaseargs --disable-year2038"
7864 # Record and document user additions to sub configure arguments.
7869 # For the build-side libraries, we just need to pretend we're native,
7870 # and not use the same cache file. Multilibs are neither needed nor
7871 # desired. We can't even use the same cache file for all build-side
7872 # libraries, as they're compiled differently; some with C, some with
7873 # C++ or with different feature-enabling options.
7874 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7876 # For host modules, accept cache file option, or specification as blank.
7877 case "${cache_file}" in
7878 "") # empty
7879 cache_file_option="" ;;
7880 /* | [A-Za-z]:[\\/]* ) # absolute path
7881 cache_file_option="--cache-file=${cache_file}" ;;
7882 *) # relative path
7883 cache_file_option="--cache-file=../${cache_file}" ;;
7884 esac
7886 # Host dirs don't like to share a cache file either, horribly enough.
7887 # This seems to be due to autoconf 2.5x stupidity.
7888 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7890 target_configargs="$target_configargs ${tbaseargs}"
7892 # Passing a --with-cross-host argument lets the target libraries know
7893 # whether they are being built with a cross-compiler or being built
7894 # native. However, it would be better to use other mechanisms to make the
7895 # sorts of decisions they want to make on this basis. Please consider
7896 # this option to be deprecated. FIXME.
7897 if test x${is_cross_compiler} = xyes ; then
7898 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7901 # Special user-friendly check for native x86_64-linux build, if
7902 # multilib is not explicitly enabled.
7903 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7904 x86_64-*linux*:yes:$build:$build:)
7905 # Make sure we have a development environment that handles 32-bit
7906 dev64=no
7907 echo "int main () { return 0; }" > conftest.c
7908 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7909 if test $? = 0 ; then
7910 if test -s conftest || test -s conftest.exe ; then
7911 dev64=yes
7914 rm -f conftest*
7915 if test x${dev64} != xyes ; then
7916 as_fn_error $? "I suspect your system does not have 32-bit development 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
7919 esac
7921 # Default to --enable-multilib.
7922 if test x${enable_multilib} = x ; then
7923 target_configargs="--enable-multilib ${target_configargs}"
7926 # Pass --with-newlib if appropriate. Note that target_configdirs has
7927 # changed from the earlier setting of with_newlib.
7928 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7929 target_configargs="--with-newlib ${target_configargs}"
7932 # Different target subdirs use different values of certain variables
7933 # (notably CXX). Worse, multilibs use *lots* of different values.
7934 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7935 # it doesn't automatically accept command-line overrides of them.
7936 # This means it's not safe for target subdirs to share a cache file,
7937 # which is disgusting, but there you have it. Hopefully this can be
7938 # fixed in future. It's still worthwhile to use a cache file for each
7939 # directory. I think.
7941 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7942 # We need to pass --target, as newer autoconf's requires consistency
7943 # for target_alias and gcc doesn't manage it consistently.
7944 target_configargs="--cache-file=./config.cache ${target_configargs}"
7946 FLAGS_FOR_TARGET=
7947 case " $target_configdirs " in
7948 *" newlib "*)
7949 case " $target_configargs " in
7950 *" --with-newlib "*)
7951 case "$target" in
7952 *-cygwin*)
7953 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7955 esac
7957 # If we're not building GCC, don't discard standard headers.
7958 if test -d ${srcdir}/gcc; then
7959 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7961 if test "${build}" != "${host}"; then
7962 # On Canadian crosses, CC_FOR_TARGET will have already been set
7963 # by `configure', so we won't have an opportunity to add -Bgcc/
7964 # to it. This is right: we don't want to search that directory
7965 # for binaries, but we want the header files in there, so add
7966 # them explicitly.
7967 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7969 # Someone might think of using the pre-installed headers on
7970 # Canadian crosses, in case the installed compiler is not fully
7971 # compatible with the compiler being built. In this case, it
7972 # would be better to flag an error than risking having
7973 # incompatible object files being constructed. We can't
7974 # guarantee that an error will be flagged, but let's hope the
7975 # compiler will do it, when presented with incompatible header
7976 # files.
7980 case "${target}-${is_cross_compiler}" in
7981 i[3456789]86-*-linux*-no)
7982 # Here host == target, so we don't need to build gcc,
7983 # so we don't want to discard standard headers.
7984 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7987 # If we're building newlib, use its generic headers last, but search
7988 # for any libc-related directories first (so make it the last -B
7989 # switch).
7990 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7992 # If we're building libgloss, find the startup file, simulator library
7993 # and linker script.
7994 case " $target_configdirs " in
7995 *" libgloss "*)
7996 # Look for startup file, simulator library and maybe linker script.
7997 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7998 # Look for libnosys.a in case the target needs it.
7999 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8000 # Most targets have the linker script in the source directory.
8001 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8003 esac
8005 esac
8007 esac
8009 esac
8011 case "$target" in
8012 x86_64-*mingw* | *-w64-mingw*)
8013 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8014 # however, use a symlink named 'mingw' in ${prefix} .
8015 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8017 *-mingw*)
8018 # MinGW can't be handled as Cygwin above since it does not use newlib.
8019 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'
8021 esac
8023 # Allow the user to override the flags for
8024 # our build compiler if desired.
8025 if test x"${build}" = x"${host}" ; then
8026 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8027 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8028 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8031 # On Canadian crosses, we'll be searching the right directories for
8032 # the previously-installed cross compiler, so don't bother to add
8033 # flags for directories within the install tree of the compiler
8034 # being built; programs in there won't even run.
8035 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8036 # Search for pre-installed headers if nothing else fits.
8037 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8040 if test "x${use_gnu_ld}" = x &&
8041 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8042 # Arrange for us to find uninstalled linker scripts.
8043 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8046 # Search for other target-specific linker scripts and such.
8047 case "${target}" in
8048 mep*)
8049 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8051 esac
8053 # Makefile fragments.
8054 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8056 eval fragval=\$$frag
8057 if test $fragval != /dev/null; then
8058 eval $frag=${srcdir}/$fragval
8060 done
8066 # Miscellanea: directories, flags, etc.
8075 # Build module lists & subconfigure args.
8079 # Host module lists & subconfigure args.
8084 # Target module lists & subconfigure args.
8088 # Build tools.
8105 # Generate default definitions for YACC, M4, LEX and other programs that run
8106 # on the build machine. These are used if the Makefile can't locate these
8107 # programs in objdir.
8108 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8110 for ac_prog in 'bison -y' byacc yacc
8112 # Extract the first word of "$ac_prog", so it can be a program name with args.
8113 set dummy $ac_prog; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_prog_YACC+:} false; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 if test -n "$YACC"; then
8120 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_YACC="$ac_prog"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8133 done
8134 done
8135 IFS=$as_save_IFS
8139 YACC=$ac_cv_prog_YACC
8140 if test -n "$YACC"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8142 $as_echo "$YACC" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8149 test -n "$YACC" && break
8150 done
8151 test -n "$YACC" || YACC="$MISSING bison -y"
8153 case " $build_configdirs " in
8154 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8155 esac
8157 for ac_prog in bison
8159 # Extract the first word of "$ac_prog", so it can be a program name with args.
8160 set dummy $ac_prog; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if ${ac_cv_prog_BISON+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if test -n "$BISON"; then
8167 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8176 ac_cv_prog_BISON="$ac_prog"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8180 done
8181 done
8182 IFS=$as_save_IFS
8186 BISON=$ac_cv_prog_BISON
8187 if test -n "$BISON"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8189 $as_echo "$BISON" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8196 test -n "$BISON" && break
8197 done
8198 test -n "$BISON" || BISON="$MISSING bison"
8200 case " $build_configdirs " in
8201 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8202 esac
8204 for ac_prog in gm4 gnum4 m4
8206 # Extract the first word of "$ac_prog", so it can be a program name with args.
8207 set dummy $ac_prog; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if ${ac_cv_prog_M4+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 if test -n "$M4"; then
8214 ac_cv_prog_M4="$M4" # Let the user override the test.
8215 else
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8219 IFS=$as_save_IFS
8220 test -z "$as_dir" && as_dir=.
8221 for ac_exec_ext in '' $ac_executable_extensions; do
8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223 ac_cv_prog_M4="$ac_prog"
8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 break 2
8227 done
8228 done
8229 IFS=$as_save_IFS
8233 M4=$ac_cv_prog_M4
8234 if test -n "$M4"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8236 $as_echo "$M4" >&6; }
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8243 test -n "$M4" && break
8244 done
8245 test -n "$M4" || M4="$MISSING m4"
8247 case " $build_configdirs " in
8248 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8249 esac
8251 for ac_prog in flex lex
8253 # Extract the first word of "$ac_prog", so it can be a program name with args.
8254 set dummy $ac_prog; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_LEX+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$LEX"; then
8261 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270 ac_cv_prog_LEX="$ac_prog"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8274 done
8275 done
8276 IFS=$as_save_IFS
8280 LEX=$ac_cv_prog_LEX
8281 if test -n "$LEX"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8283 $as_echo "$LEX" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8290 test -n "$LEX" && break
8291 done
8292 test -n "$LEX" || LEX="$MISSING flex"
8294 case " $build_configdirs " in
8295 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8296 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8297 esac
8299 for ac_prog in flex
8301 # Extract the first word of "$ac_prog", so it can be a program name with args.
8302 set dummy $ac_prog; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_prog_FLEX+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 if test -n "$FLEX"; then
8309 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_prog_FLEX="$ac_prog"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 break 2
8322 done
8323 done
8324 IFS=$as_save_IFS
8328 FLEX=$ac_cv_prog_FLEX
8329 if test -n "$FLEX"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8331 $as_echo "$FLEX" >&6; }
8332 else
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8338 test -n "$FLEX" && break
8339 done
8340 test -n "$FLEX" || FLEX="$MISSING flex"
8342 case " $build_configdirs " in
8343 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8344 esac
8346 for ac_prog in makeinfo
8348 # Extract the first word of "$ac_prog", so it can be a program name with args.
8349 set dummy $ac_prog; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_prog_MAKEINFO+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test -n "$MAKEINFO"; then
8356 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_MAKEINFO="$ac_prog"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8369 done
8370 done
8371 IFS=$as_save_IFS
8375 MAKEINFO=$ac_cv_prog_MAKEINFO
8376 if test -n "$MAKEINFO"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8378 $as_echo "$MAKEINFO" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8385 test -n "$MAKEINFO" && break
8386 done
8387 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8389 case " $build_configdirs " in
8390 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8393 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8394 # higher, else we use the "missing" dummy.
8395 if ${MAKEINFO} --version \
8396 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8398 else
8399 MAKEINFO="$MISSING makeinfo"
8403 esac
8405 # FIXME: expect and dejagnu may become build tools?
8407 for ac_prog in expect
8409 # Extract the first word of "$ac_prog", so it can be a program name with args.
8410 set dummy $ac_prog; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if ${ac_cv_prog_EXPECT+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$EXPECT"; then
8417 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8426 ac_cv_prog_EXPECT="$ac_prog"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8436 EXPECT=$ac_cv_prog_EXPECT
8437 if test -n "$EXPECT"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8439 $as_echo "$EXPECT" >&6; }
8440 else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8446 test -n "$EXPECT" && break
8447 done
8448 test -n "$EXPECT" || EXPECT="expect"
8450 case " $configdirs " in
8451 *" expect "*)
8452 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8454 esac
8456 for ac_prog in runtest
8458 # Extract the first word of "$ac_prog", so it can be a program name with args.
8459 set dummy $ac_prog; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if ${ac_cv_prog_RUNTEST+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 if test -n "$RUNTEST"; then
8466 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475 ac_cv_prog_RUNTEST="$ac_prog"
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 break 2
8479 done
8480 done
8481 IFS=$as_save_IFS
8485 RUNTEST=$ac_cv_prog_RUNTEST
8486 if test -n "$RUNTEST"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8488 $as_echo "$RUNTEST" >&6; }
8489 else
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8495 test -n "$RUNTEST" && break
8496 done
8497 test -n "$RUNTEST" || RUNTEST="runtest"
8499 case " $configdirs " in
8500 *" dejagnu "*)
8501 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8503 esac
8506 # Host tools.
8507 ncn_tool_prefix=
8508 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8509 ncn_target_tool_prefix=
8510 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8514 if test -n "$AR"; then
8515 ac_cv_prog_AR=$AR
8516 elif test -n "$ac_cv_prog_AR"; then
8517 AR=$ac_cv_prog_AR
8520 if test -n "$ac_cv_prog_AR"; then
8521 for ncn_progname in ar; do
8522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8523 set dummy ${ncn_progname}; ac_word=$2
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 $as_echo_n "checking for $ac_word... " >&6; }
8526 if ${ac_cv_prog_AR+:} false; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 if test -n "$AR"; then
8530 ac_cv_prog_AR="$AR" # Let the user override the test.
8531 else
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8535 IFS=$as_save_IFS
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8539 ac_cv_prog_AR="${ncn_progname}"
8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 break 2
8543 done
8544 done
8545 IFS=$as_save_IFS
8549 AR=$ac_cv_prog_AR
8550 if test -n "$AR"; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8552 $as_echo "$AR" >&6; }
8553 else
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 $as_echo "no" >&6; }
8559 done
8562 for ncn_progname in ar; do
8563 if test -n "$ncn_tool_prefix"; then
8564 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8565 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if ${ac_cv_prog_AR+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 if test -n "$AR"; then
8572 ac_cv_prog_AR="$AR" # Let the user override the test.
8573 else
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8585 done
8586 done
8587 IFS=$as_save_IFS
8591 AR=$ac_cv_prog_AR
8592 if test -n "$AR"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8594 $as_echo "$AR" >&6; }
8595 else
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8602 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8604 set dummy ${ncn_progname}; ac_word=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if ${ac_cv_prog_AR+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 if test -n "$AR"; then
8611 ac_cv_prog_AR="$AR" # Let the user override the test.
8612 else
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620 ac_cv_prog_AR="${ncn_progname}"
8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8624 done
8625 done
8626 IFS=$as_save_IFS
8630 AR=$ac_cv_prog_AR
8631 if test -n "$AR"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8633 $as_echo "$AR" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8641 test -n "$ac_cv_prog_AR" && break
8642 done
8644 if test -z "$ac_cv_prog_AR" ; then
8645 set dummy ar
8646 if test $build = $host ; then
8647 AR="$2"
8648 else
8649 AR="${ncn_tool_prefix}$2"
8655 if test -n "$AS"; then
8656 ac_cv_prog_AS=$AS
8657 elif test -n "$ac_cv_prog_AS"; then
8658 AS=$ac_cv_prog_AS
8661 if test -n "$ac_cv_prog_AS"; then
8662 for ncn_progname in as; do
8663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8664 set dummy ${ncn_progname}; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if ${ac_cv_prog_AS+:} false; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 if test -n "$AS"; then
8671 ac_cv_prog_AS="$AS" # Let the user override the test.
8672 else
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8680 ac_cv_prog_AS="${ncn_progname}"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8684 done
8685 done
8686 IFS=$as_save_IFS
8690 AS=$ac_cv_prog_AS
8691 if test -n "$AS"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8693 $as_echo "$AS" >&6; }
8694 else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8700 done
8703 for ncn_progname in as; do
8704 if test -n "$ncn_tool_prefix"; then
8705 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8706 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_prog_AS+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 if test -n "$AS"; then
8713 ac_cv_prog_AS="$AS" # Let the user override the test.
8714 else
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8722 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8726 done
8727 done
8728 IFS=$as_save_IFS
8732 AS=$ac_cv_prog_AS
8733 if test -n "$AS"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8735 $as_echo "$AS" >&6; }
8736 else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8743 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8745 set dummy ${ncn_progname}; ac_word=$2
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747 $as_echo_n "checking for $ac_word... " >&6; }
8748 if ${ac_cv_prog_AS+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 if test -n "$AS"; then
8752 ac_cv_prog_AS="$AS" # Let the user override the test.
8753 else
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761 ac_cv_prog_AS="${ncn_progname}"
8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8765 done
8766 done
8767 IFS=$as_save_IFS
8771 AS=$ac_cv_prog_AS
8772 if test -n "$AS"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8774 $as_echo "$AS" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8782 test -n "$ac_cv_prog_AS" && break
8783 done
8785 if test -z "$ac_cv_prog_AS" ; then
8786 set dummy as
8787 if test $build = $host ; then
8788 AS="$2"
8789 else
8790 AS="${ncn_tool_prefix}$2"
8796 if test -n "$DLLTOOL"; then
8797 ac_cv_prog_DLLTOOL=$DLLTOOL
8798 elif test -n "$ac_cv_prog_DLLTOOL"; then
8799 DLLTOOL=$ac_cv_prog_DLLTOOL
8802 if test -n "$ac_cv_prog_DLLTOOL"; then
8803 for ncn_progname in dlltool; do
8804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8805 set dummy ${ncn_progname}; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if ${ac_cv_prog_DLLTOOL+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 if test -n "$DLLTOOL"; then
8812 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8813 else
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821 ac_cv_prog_DLLTOOL="${ncn_progname}"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8825 done
8826 done
8827 IFS=$as_save_IFS
8831 DLLTOOL=$ac_cv_prog_DLLTOOL
8832 if test -n "$DLLTOOL"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8834 $as_echo "$DLLTOOL" >&6; }
8835 else
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8841 done
8844 for ncn_progname in dlltool; do
8845 if test -n "$ncn_tool_prefix"; then
8846 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8847 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8849 $as_echo_n "checking for $ac_word... " >&6; }
8850 if ${ac_cv_prog_DLLTOOL+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 if test -n "$DLLTOOL"; then
8854 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8855 else
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8863 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8867 done
8868 done
8869 IFS=$as_save_IFS
8873 DLLTOOL=$ac_cv_prog_DLLTOOL
8874 if test -n "$DLLTOOL"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8876 $as_echo "$DLLTOOL" >&6; }
8877 else
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879 $as_echo "no" >&6; }
8884 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886 set dummy ${ncn_progname}; ac_word=$2
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 $as_echo_n "checking for $ac_word... " >&6; }
8889 if ${ac_cv_prog_DLLTOOL+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 if test -n "$DLLTOOL"; then
8893 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8894 else
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 for as_dir in $PATH
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8902 ac_cv_prog_DLLTOOL="${ncn_progname}"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8906 done
8907 done
8908 IFS=$as_save_IFS
8912 DLLTOOL=$ac_cv_prog_DLLTOOL
8913 if test -n "$DLLTOOL"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8915 $as_echo "$DLLTOOL" >&6; }
8916 else
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8923 test -n "$ac_cv_prog_DLLTOOL" && break
8924 done
8926 if test -z "$ac_cv_prog_DLLTOOL" ; then
8927 set dummy dlltool
8928 if test $build = $host ; then
8929 DLLTOOL="$2"
8930 else
8931 DLLTOOL="${ncn_tool_prefix}$2"
8937 if test -n "$LD"; then
8938 ac_cv_prog_LD=$LD
8939 elif test -n "$ac_cv_prog_LD"; then
8940 LD=$ac_cv_prog_LD
8943 if test -n "$ac_cv_prog_LD"; then
8944 for ncn_progname in ld; do
8945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8946 set dummy ${ncn_progname}; ac_word=$2
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948 $as_echo_n "checking for $ac_word... " >&6; }
8949 if ${ac_cv_prog_LD+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 if test -n "$LD"; then
8953 ac_cv_prog_LD="$LD" # Let the user override the test.
8954 else
8955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 for as_dir in $PATH
8958 IFS=$as_save_IFS
8959 test -z "$as_dir" && as_dir=.
8960 for ac_exec_ext in '' $ac_executable_extensions; do
8961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8962 ac_cv_prog_LD="${ncn_progname}"
8963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 break 2
8966 done
8967 done
8968 IFS=$as_save_IFS
8972 LD=$ac_cv_prog_LD
8973 if test -n "$LD"; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8975 $as_echo "$LD" >&6; }
8976 else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978 $as_echo "no" >&6; }
8982 done
8985 for ncn_progname in ld; do
8986 if test -n "$ncn_tool_prefix"; then
8987 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8988 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_LD+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 if test -n "$LD"; then
8995 ac_cv_prog_LD="$LD" # Let the user override the test.
8996 else
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9008 done
9009 done
9010 IFS=$as_save_IFS
9014 LD=$ac_cv_prog_LD
9015 if test -n "$LD"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9017 $as_echo "$LD" >&6; }
9018 else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9025 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9027 set dummy ${ncn_progname}; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if ${ac_cv_prog_LD+:} false; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 if test -n "$LD"; then
9034 ac_cv_prog_LD="$LD" # Let the user override the test.
9035 else
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9043 ac_cv_prog_LD="${ncn_progname}"
9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9047 done
9048 done
9049 IFS=$as_save_IFS
9053 LD=$ac_cv_prog_LD
9054 if test -n "$LD"; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9056 $as_echo "$LD" >&6; }
9057 else
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9064 test -n "$ac_cv_prog_LD" && break
9065 done
9067 if test -z "$ac_cv_prog_LD" ; then
9068 set dummy ld
9069 if test $build = $host ; then
9070 LD="$2"
9071 else
9072 LD="${ncn_tool_prefix}$2"
9078 if test -n "$LIPO"; then
9079 ac_cv_prog_LIPO=$LIPO
9080 elif test -n "$ac_cv_prog_LIPO"; then
9081 LIPO=$ac_cv_prog_LIPO
9084 if test -n "$ac_cv_prog_LIPO"; then
9085 for ncn_progname in lipo; do
9086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9087 set dummy ${ncn_progname}; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_prog_LIPO+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 if test -n "$LIPO"; then
9094 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9095 else
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_prog_LIPO="${ncn_progname}"
9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9107 done
9108 done
9109 IFS=$as_save_IFS
9113 LIPO=$ac_cv_prog_LIPO
9114 if test -n "$LIPO"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9116 $as_echo "$LIPO" >&6; }
9117 else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9123 done
9126 for ncn_progname in lipo; do
9127 if test -n "$ncn_tool_prefix"; then
9128 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9129 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 $as_echo_n "checking for $ac_word... " >&6; }
9132 if ${ac_cv_prog_LIPO+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 if test -n "$LIPO"; then
9136 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9137 else
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9141 IFS=$as_save_IFS
9142 test -z "$as_dir" && as_dir=.
9143 for ac_exec_ext in '' $ac_executable_extensions; do
9144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9145 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 break 2
9149 done
9150 done
9151 IFS=$as_save_IFS
9155 LIPO=$ac_cv_prog_LIPO
9156 if test -n "$LIPO"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9158 $as_echo "$LIPO" >&6; }
9159 else
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9166 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9168 set dummy ${ncn_progname}; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if ${ac_cv_prog_LIPO+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 if test -n "$LIPO"; then
9175 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9176 else
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9184 ac_cv_prog_LIPO="${ncn_progname}"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9188 done
9189 done
9190 IFS=$as_save_IFS
9194 LIPO=$ac_cv_prog_LIPO
9195 if test -n "$LIPO"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9197 $as_echo "$LIPO" >&6; }
9198 else
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9205 test -n "$ac_cv_prog_LIPO" && break
9206 done
9208 if test -z "$ac_cv_prog_LIPO" ; then
9209 set dummy lipo
9210 if test $build = $host ; then
9211 LIPO="$2"
9212 else
9213 LIPO="${ncn_tool_prefix}$2"
9219 if test -n "$NM"; then
9220 ac_cv_prog_NM=$NM
9221 elif test -n "$ac_cv_prog_NM"; then
9222 NM=$ac_cv_prog_NM
9225 if test -n "$ac_cv_prog_NM"; then
9226 for ncn_progname in nm; do
9227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9228 set dummy ${ncn_progname}; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if ${ac_cv_prog_NM+:} false; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 if test -n "$NM"; then
9235 ac_cv_prog_NM="$NM" # Let the user override the test.
9236 else
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 for as_dir in $PATH
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9244 ac_cv_prog_NM="${ncn_progname}"
9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 break 2
9248 done
9249 done
9250 IFS=$as_save_IFS
9254 NM=$ac_cv_prog_NM
9255 if test -n "$NM"; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9257 $as_echo "$NM" >&6; }
9258 else
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }
9264 done
9267 for ncn_progname in nm; do
9268 if test -n "$ncn_tool_prefix"; then
9269 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9270 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272 $as_echo_n "checking for $ac_word... " >&6; }
9273 if ${ac_cv_prog_NM+:} false; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 if test -n "$NM"; then
9277 ac_cv_prog_NM="$NM" # Let the user override the test.
9278 else
9279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 for as_dir in $PATH
9282 IFS=$as_save_IFS
9283 test -z "$as_dir" && as_dir=.
9284 for ac_exec_ext in '' $ac_executable_extensions; do
9285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9286 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288 break 2
9290 done
9291 done
9292 IFS=$as_save_IFS
9296 NM=$ac_cv_prog_NM
9297 if test -n "$NM"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9299 $as_echo "$NM" >&6; }
9300 else
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302 $as_echo "no" >&6; }
9307 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9309 set dummy ${ncn_progname}; ac_word=$2
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311 $as_echo_n "checking for $ac_word... " >&6; }
9312 if ${ac_cv_prog_NM+:} false; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 if test -n "$NM"; then
9316 ac_cv_prog_NM="$NM" # Let the user override the test.
9317 else
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in $PATH
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9325 ac_cv_prog_NM="${ncn_progname}"
9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 break 2
9329 done
9330 done
9331 IFS=$as_save_IFS
9335 NM=$ac_cv_prog_NM
9336 if test -n "$NM"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9338 $as_echo "$NM" >&6; }
9339 else
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9346 test -n "$ac_cv_prog_NM" && break
9347 done
9349 if test -z "$ac_cv_prog_NM" ; then
9350 set dummy nm
9351 if test $build = $host ; then
9352 NM="$2"
9353 else
9354 NM="${ncn_tool_prefix}$2"
9360 if test -n "$RANLIB"; then
9361 ac_cv_prog_RANLIB=$RANLIB
9362 elif test -n "$ac_cv_prog_RANLIB"; then
9363 RANLIB=$ac_cv_prog_RANLIB
9366 if test -n "$ac_cv_prog_RANLIB"; then
9367 for ncn_progname in ranlib; do
9368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9369 set dummy ${ncn_progname}; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if ${ac_cv_prog_RANLIB+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 if test -n "$RANLIB"; then
9376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9377 else
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9385 ac_cv_prog_RANLIB="${ncn_progname}"
9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 break 2
9389 done
9390 done
9391 IFS=$as_save_IFS
9395 RANLIB=$ac_cv_prog_RANLIB
9396 if test -n "$RANLIB"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9398 $as_echo "$RANLIB" >&6; }
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9405 done
9408 for ncn_progname in ranlib; do
9409 if test -n "$ncn_tool_prefix"; then
9410 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9411 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 $as_echo_n "checking for $ac_word... " >&6; }
9414 if ${ac_cv_prog_RANLIB+:} false; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 if test -n "$RANLIB"; then
9418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9419 else
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9431 done
9432 done
9433 IFS=$as_save_IFS
9437 RANLIB=$ac_cv_prog_RANLIB
9438 if test -n "$RANLIB"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9440 $as_echo "$RANLIB" >&6; }
9441 else
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9448 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9450 set dummy ${ncn_progname}; ac_word=$2
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if ${ac_cv_prog_RANLIB+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 if test -n "$RANLIB"; then
9457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9458 else
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9466 ac_cv_prog_RANLIB="${ncn_progname}"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 break 2
9470 done
9471 done
9472 IFS=$as_save_IFS
9476 RANLIB=$ac_cv_prog_RANLIB
9477 if test -n "$RANLIB"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9479 $as_echo "$RANLIB" >&6; }
9480 else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9487 test -n "$ac_cv_prog_RANLIB" && break
9488 done
9490 if test -z "$ac_cv_prog_RANLIB" ; then
9491 RANLIB="true"
9496 if test -n "$STRIP"; then
9497 ac_cv_prog_STRIP=$STRIP
9498 elif test -n "$ac_cv_prog_STRIP"; then
9499 STRIP=$ac_cv_prog_STRIP
9502 if test -n "$ac_cv_prog_STRIP"; then
9503 for ncn_progname in strip; do
9504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9505 set dummy ${ncn_progname}; ac_word=$2
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507 $as_echo_n "checking for $ac_word... " >&6; }
9508 if ${ac_cv_prog_STRIP+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 if test -n "$STRIP"; then
9512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9513 else
9514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in $PATH
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
9519 for ac_exec_ext in '' $ac_executable_extensions; do
9520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9521 ac_cv_prog_STRIP="${ncn_progname}"
9522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 break 2
9525 done
9526 done
9527 IFS=$as_save_IFS
9531 STRIP=$ac_cv_prog_STRIP
9532 if test -n "$STRIP"; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9534 $as_echo "$STRIP" >&6; }
9535 else
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537 $as_echo "no" >&6; }
9541 done
9544 for ncn_progname in strip; do
9545 if test -n "$ncn_tool_prefix"; then
9546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9547 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if ${ac_cv_prog_STRIP+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 if test -n "$STRIP"; then
9554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9555 else
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9567 done
9568 done
9569 IFS=$as_save_IFS
9573 STRIP=$ac_cv_prog_STRIP
9574 if test -n "$STRIP"; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9576 $as_echo "$STRIP" >&6; }
9577 else
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579 $as_echo "no" >&6; }
9584 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9586 set dummy ${ncn_progname}; ac_word=$2
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 $as_echo_n "checking for $ac_word... " >&6; }
9589 if ${ac_cv_prog_STRIP+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 if test -n "$STRIP"; then
9593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9594 else
9595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9602 ac_cv_prog_STRIP="${ncn_progname}"
9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 break 2
9606 done
9607 done
9608 IFS=$as_save_IFS
9612 STRIP=$ac_cv_prog_STRIP
9613 if test -n "$STRIP"; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9615 $as_echo "$STRIP" >&6; }
9616 else
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618 $as_echo "no" >&6; }
9623 test -n "$ac_cv_prog_STRIP" && break
9624 done
9626 if test -z "$ac_cv_prog_STRIP" ; then
9627 STRIP="true"
9632 if test -n "$WINDRES"; then
9633 ac_cv_prog_WINDRES=$WINDRES
9634 elif test -n "$ac_cv_prog_WINDRES"; then
9635 WINDRES=$ac_cv_prog_WINDRES
9638 if test -n "$ac_cv_prog_WINDRES"; then
9639 for ncn_progname in windres; do
9640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9641 set dummy ${ncn_progname}; ac_word=$2
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if ${ac_cv_prog_WINDRES+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 if test -n "$WINDRES"; then
9648 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9649 else
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in $PATH
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
9655 for ac_exec_ext in '' $ac_executable_extensions; do
9656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9657 ac_cv_prog_WINDRES="${ncn_progname}"
9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659 break 2
9661 done
9662 done
9663 IFS=$as_save_IFS
9667 WINDRES=$ac_cv_prog_WINDRES
9668 if test -n "$WINDRES"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9670 $as_echo "$WINDRES" >&6; }
9671 else
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9677 done
9680 for ncn_progname in windres; do
9681 if test -n "$ncn_tool_prefix"; then
9682 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9683 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9685 $as_echo_n "checking for $ac_word... " >&6; }
9686 if ${ac_cv_prog_WINDRES+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 if test -n "$WINDRES"; then
9690 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9691 else
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 for as_dir in $PATH
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9699 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 break 2
9703 done
9704 done
9705 IFS=$as_save_IFS
9709 WINDRES=$ac_cv_prog_WINDRES
9710 if test -n "$WINDRES"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9712 $as_echo "$WINDRES" >&6; }
9713 else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9720 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9722 set dummy ${ncn_progname}; ac_word=$2
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724 $as_echo_n "checking for $ac_word... " >&6; }
9725 if ${ac_cv_prog_WINDRES+:} false; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 if test -n "$WINDRES"; then
9729 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9730 else
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738 ac_cv_prog_WINDRES="${ncn_progname}"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9742 done
9743 done
9744 IFS=$as_save_IFS
9748 WINDRES=$ac_cv_prog_WINDRES
9749 if test -n "$WINDRES"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9751 $as_echo "$WINDRES" >&6; }
9752 else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9759 test -n "$ac_cv_prog_WINDRES" && break
9760 done
9762 if test -z "$ac_cv_prog_WINDRES" ; then
9763 set dummy windres
9764 if test $build = $host ; then
9765 WINDRES="$2"
9766 else
9767 WINDRES="${ncn_tool_prefix}$2"
9773 if test -n "$WINDMC"; then
9774 ac_cv_prog_WINDMC=$WINDMC
9775 elif test -n "$ac_cv_prog_WINDMC"; then
9776 WINDMC=$ac_cv_prog_WINDMC
9779 if test -n "$ac_cv_prog_WINDMC"; then
9780 for ncn_progname in windmc; do
9781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9782 set dummy ${ncn_progname}; ac_word=$2
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784 $as_echo_n "checking for $ac_word... " >&6; }
9785 if ${ac_cv_prog_WINDMC+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 if test -n "$WINDMC"; then
9789 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9790 else
9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 for as_dir in $PATH
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9798 ac_cv_prog_WINDMC="${ncn_progname}"
9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800 break 2
9802 done
9803 done
9804 IFS=$as_save_IFS
9808 WINDMC=$ac_cv_prog_WINDMC
9809 if test -n "$WINDMC"; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9811 $as_echo "$WINDMC" >&6; }
9812 else
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9818 done
9821 for ncn_progname in windmc; do
9822 if test -n "$ncn_tool_prefix"; then
9823 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9824 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if ${ac_cv_prog_WINDMC+:} false; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 if test -n "$WINDMC"; then
9831 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9832 else
9833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834 for as_dir in $PATH
9836 IFS=$as_save_IFS
9837 test -z "$as_dir" && as_dir=.
9838 for ac_exec_ext in '' $ac_executable_extensions; do
9839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9840 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 break 2
9844 done
9845 done
9846 IFS=$as_save_IFS
9850 WINDMC=$ac_cv_prog_WINDMC
9851 if test -n "$WINDMC"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9853 $as_echo "$WINDMC" >&6; }
9854 else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9861 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9863 set dummy ${ncn_progname}; ac_word=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if ${ac_cv_prog_WINDMC+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 if test -n "$WINDMC"; then
9870 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9871 else
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_prog_WINDMC="${ncn_progname}"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9883 done
9884 done
9885 IFS=$as_save_IFS
9889 WINDMC=$ac_cv_prog_WINDMC
9890 if test -n "$WINDMC"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9892 $as_echo "$WINDMC" >&6; }
9893 else
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9900 test -n "$ac_cv_prog_WINDMC" && break
9901 done
9903 if test -z "$ac_cv_prog_WINDMC" ; then
9904 set dummy windmc
9905 if test $build = $host ; then
9906 WINDMC="$2"
9907 else
9908 WINDMC="${ncn_tool_prefix}$2"
9914 if test -n "$OBJCOPY"; then
9915 ac_cv_prog_OBJCOPY=$OBJCOPY
9916 elif test -n "$ac_cv_prog_OBJCOPY"; then
9917 OBJCOPY=$ac_cv_prog_OBJCOPY
9920 if test -n "$ac_cv_prog_OBJCOPY"; then
9921 for ncn_progname in objcopy; do
9922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9923 set 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; }
9926 if ${ac_cv_prog_OBJCOPY+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 if test -n "$OBJCOPY"; then
9930 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9931 else
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 for as_dir in $PATH
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9939 ac_cv_prog_OBJCOPY="${ncn_progname}"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9943 done
9944 done
9945 IFS=$as_save_IFS
9949 OBJCOPY=$ac_cv_prog_OBJCOPY
9950 if test -n "$OBJCOPY"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9952 $as_echo "$OBJCOPY" >&6; }
9953 else
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955 $as_echo "no" >&6; }
9959 done
9962 for ncn_progname in objcopy; do
9963 if test -n "$ncn_tool_prefix"; then
9964 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9965 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if ${ac_cv_prog_OBJCOPY+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 if test -n "$OBJCOPY"; then
9972 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9973 else
9974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975 for as_dir in $PATH
9977 IFS=$as_save_IFS
9978 test -z "$as_dir" && as_dir=.
9979 for ac_exec_ext in '' $ac_executable_extensions; do
9980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9981 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9983 break 2
9985 done
9986 done
9987 IFS=$as_save_IFS
9991 OBJCOPY=$ac_cv_prog_OBJCOPY
9992 if test -n "$OBJCOPY"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9994 $as_echo "$OBJCOPY" >&6; }
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10002 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10004 set dummy ${ncn_progname}; ac_word=$2
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006 $as_echo_n "checking for $ac_word... " >&6; }
10007 if ${ac_cv_prog_OBJCOPY+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 if test -n "$OBJCOPY"; then
10011 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10012 else
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020 ac_cv_prog_OBJCOPY="${ncn_progname}"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 break 2
10024 done
10025 done
10026 IFS=$as_save_IFS
10030 OBJCOPY=$ac_cv_prog_OBJCOPY
10031 if test -n "$OBJCOPY"; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10033 $as_echo "$OBJCOPY" >&6; }
10034 else
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 $as_echo "no" >&6; }
10041 test -n "$ac_cv_prog_OBJCOPY" && break
10042 done
10044 if test -z "$ac_cv_prog_OBJCOPY" ; then
10045 set dummy objcopy
10046 if test $build = $host ; then
10047 OBJCOPY="$2"
10048 else
10049 OBJCOPY="${ncn_tool_prefix}$2"
10055 if test -n "$OBJDUMP"; then
10056 ac_cv_prog_OBJDUMP=$OBJDUMP
10057 elif test -n "$ac_cv_prog_OBJDUMP"; then
10058 OBJDUMP=$ac_cv_prog_OBJDUMP
10061 if test -n "$ac_cv_prog_OBJDUMP"; then
10062 for ncn_progname in objdump; do
10063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10064 set dummy ${ncn_progname}; ac_word=$2
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10066 $as_echo_n "checking for $ac_word... " >&6; }
10067 if ${ac_cv_prog_OBJDUMP+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 if test -n "$OBJDUMP"; then
10071 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10072 else
10073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in $PATH
10076 IFS=$as_save_IFS
10077 test -z "$as_dir" && as_dir=.
10078 for ac_exec_ext in '' $ac_executable_extensions; do
10079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10080 ac_cv_prog_OBJDUMP="${ncn_progname}"
10081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 break 2
10084 done
10085 done
10086 IFS=$as_save_IFS
10090 OBJDUMP=$ac_cv_prog_OBJDUMP
10091 if test -n "$OBJDUMP"; then
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10093 $as_echo "$OBJDUMP" >&6; }
10094 else
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 $as_echo "no" >&6; }
10100 done
10103 for ncn_progname in objdump; do
10104 if test -n "$ncn_tool_prefix"; then
10105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10106 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if ${ac_cv_prog_OBJDUMP+:} false; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 if test -n "$OBJDUMP"; then
10113 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10114 else
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10122 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10126 done
10127 done
10128 IFS=$as_save_IFS
10132 OBJDUMP=$ac_cv_prog_OBJDUMP
10133 if test -n "$OBJDUMP"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10135 $as_echo "$OBJDUMP" >&6; }
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10143 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10145 set dummy ${ncn_progname}; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_prog_OBJDUMP+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 if test -n "$OBJDUMP"; then
10152 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10153 else
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_prog_OBJDUMP="${ncn_progname}"
10162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10165 done
10166 done
10167 IFS=$as_save_IFS
10171 OBJDUMP=$ac_cv_prog_OBJDUMP
10172 if test -n "$OBJDUMP"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10174 $as_echo "$OBJDUMP" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10182 test -n "$ac_cv_prog_OBJDUMP" && break
10183 done
10185 if test -z "$ac_cv_prog_OBJDUMP" ; then
10186 set dummy objdump
10187 if test $build = $host ; then
10188 OBJDUMP="$2"
10189 else
10190 OBJDUMP="${ncn_tool_prefix}$2"
10196 if test -n "$READELF"; then
10197 ac_cv_prog_READELF=$READELF
10198 elif test -n "$ac_cv_prog_READELF"; then
10199 READELF=$ac_cv_prog_READELF
10202 if test -n "$ac_cv_prog_READELF"; then
10203 for ncn_progname in readelf; do
10204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10205 set dummy ${ncn_progname}; ac_word=$2
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if ${ac_cv_prog_READELF+:} false; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 if test -n "$READELF"; then
10212 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10213 else
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10221 ac_cv_prog_READELF="${ncn_progname}"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10225 done
10226 done
10227 IFS=$as_save_IFS
10231 READELF=$ac_cv_prog_READELF
10232 if test -n "$READELF"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10234 $as_echo "$READELF" >&6; }
10235 else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10241 done
10244 for ncn_progname in readelf; do
10245 if test -n "$ncn_tool_prefix"; then
10246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10249 $as_echo_n "checking for $ac_word... " >&6; }
10250 if ${ac_cv_prog_READELF+:} false; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 if test -n "$READELF"; then
10254 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10255 else
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10267 done
10268 done
10269 IFS=$as_save_IFS
10273 READELF=$ac_cv_prog_READELF
10274 if test -n "$READELF"; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10276 $as_echo "$READELF" >&6; }
10277 else
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10284 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10286 set dummy ${ncn_progname}; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_READELF+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 if test -n "$READELF"; then
10293 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302 ac_cv_prog_READELF="${ncn_progname}"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10306 done
10307 done
10308 IFS=$as_save_IFS
10312 READELF=$ac_cv_prog_READELF
10313 if test -n "$READELF"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10315 $as_echo "$READELF" >&6; }
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10323 test -n "$ac_cv_prog_READELF" && break
10324 done
10326 if test -z "$ac_cv_prog_READELF" ; then
10327 set dummy readelf
10328 if test $build = $host ; then
10329 READELF="$2"
10330 else
10331 READELF="${ncn_tool_prefix}$2"
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10342 $as_echo_n "checking for -plugin option... " >&6; }
10344 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10345 plugin_option=
10346 for plugin in $plugin_names; do
10347 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10348 if test x$plugin_so = x$plugin; then
10349 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10351 if test x$plugin_so != x$plugin; then
10352 plugin_option="--plugin $plugin_so"
10353 break
10355 done
10356 if test -n "$ac_tool_prefix"; then
10357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10358 set dummy ${ac_tool_prefix}ar; ac_word=$2
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10360 $as_echo_n "checking for $ac_word... " >&6; }
10361 if ${ac_cv_prog_AR+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 if test -n "$AR"; then
10365 ac_cv_prog_AR="$AR" # Let the user override the test.
10366 else
10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374 ac_cv_prog_AR="${ac_tool_prefix}ar"
10375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10378 done
10379 done
10380 IFS=$as_save_IFS
10384 AR=$ac_cv_prog_AR
10385 if test -n "$AR"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10387 $as_echo "$AR" >&6; }
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10395 if test -z "$ac_cv_prog_AR"; then
10396 ac_ct_AR=$AR
10397 # Extract the first word of "ar", so it can be a program name with args.
10398 set dummy ar; ac_word=$2
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400 $as_echo_n "checking for $ac_word... " >&6; }
10401 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 if test -n "$ac_ct_AR"; then
10405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10406 else
10407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408 for as_dir in $PATH
10410 IFS=$as_save_IFS
10411 test -z "$as_dir" && as_dir=.
10412 for ac_exec_ext in '' $ac_executable_extensions; do
10413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10414 ac_cv_prog_ac_ct_AR="ar"
10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10416 break 2
10418 done
10419 done
10420 IFS=$as_save_IFS
10424 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10425 if test -n "$ac_ct_AR"; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10427 $as_echo "$ac_ct_AR" >&6; }
10428 else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; }
10433 if test "x$ac_ct_AR" = x; then
10434 AR=""
10435 else
10436 case $cross_compiling:$ac_tool_warned in
10437 yes:)
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10440 ac_tool_warned=yes ;;
10441 esac
10442 AR=$ac_ct_AR
10444 else
10445 AR="$ac_cv_prog_AR"
10448 if test "${AR}" = "" ; then
10449 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10451 touch conftest.c
10452 ${AR} $plugin_option rc conftest.a conftest.c
10453 if test "$?" != 0; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10455 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10456 plugin_option=
10458 rm -f conftest.*
10459 if test -n "$plugin_option"; then
10460 PLUGIN_OPTION="$plugin_option"
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10462 $as_echo "$plugin_option" >&6; }
10463 else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10468 AR_PLUGIN_OPTION=
10469 RANLIB_PLUGIN_OPTION=
10470 if test -n "$PLUGIN_OPTION"; then
10471 if $AR --help 2>&1 | grep -q "\--plugin"; then
10472 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10474 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10475 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10477 else
10478 if test "$enable_pgo_build" != "no"; then
10479 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10485 # Target tools.
10487 # Check whether --with-build-time-tools was given.
10488 if test "${with_build_time_tools+set}" = set; then :
10489 withval=$with_build_time_tools; case x"$withval" in
10490 x/*) ;;
10492 with_build_time_tools=
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10494 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10496 esac
10497 else
10498 with_build_time_tools=
10504 if test -n "$CC_FOR_TARGET"; then
10505 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10506 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10507 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10510 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10511 for ncn_progname in cc gcc; do
10512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10513 set dummy ${ncn_progname}; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 if test -n "$CC_FOR_TARGET"; then
10520 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10521 else
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in $PATH
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10529 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10533 done
10534 done
10535 IFS=$as_save_IFS
10539 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10540 if test -n "$CC_FOR_TARGET"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10542 $as_echo "$CC_FOR_TARGET" >&6; }
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10549 done
10552 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10553 for ncn_progname in cc gcc; do
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10555 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10556 if test -x $with_build_time_tools/${ncn_progname}; then
10557 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10559 $as_echo "yes" >&6; }
10560 break
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10565 done
10568 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10569 for ncn_progname in cc gcc; do
10570 if test -n "$ncn_target_tool_prefix"; then
10571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10572 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 if test -n "$CC_FOR_TARGET"; then
10579 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10580 else
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10592 done
10593 done
10594 IFS=$as_save_IFS
10598 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10599 if test -n "$CC_FOR_TARGET"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10601 $as_echo "$CC_FOR_TARGET" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10609 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10611 set dummy ${ncn_progname}; ac_word=$2
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613 $as_echo_n "checking for $ac_word... " >&6; }
10614 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 if test -n "$CC_FOR_TARGET"; then
10618 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10619 else
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10627 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10631 done
10632 done
10633 IFS=$as_save_IFS
10637 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10638 if test -n "$CC_FOR_TARGET"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10640 $as_echo "$CC_FOR_TARGET" >&6; }
10641 else
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643 $as_echo "no" >&6; }
10648 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10649 done
10652 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10653 set dummy cc gcc
10654 if test $build = $target ; then
10655 CC_FOR_TARGET="$2"
10656 else
10657 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10659 else
10660 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10665 if test -n "$CXX_FOR_TARGET"; then
10666 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10667 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10668 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10671 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10672 for ncn_progname in c++ g++ cxx gxx; do
10673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10674 set dummy ${ncn_progname}; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 if test -n "$CXX_FOR_TARGET"; then
10681 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10694 done
10695 done
10696 IFS=$as_save_IFS
10700 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10701 if test -n "$CXX_FOR_TARGET"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10703 $as_echo "$CXX_FOR_TARGET" >&6; }
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10710 done
10713 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10714 for ncn_progname in c++ g++ cxx gxx; do
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10716 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10717 if test -x $with_build_time_tools/${ncn_progname}; then
10718 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; }
10721 break
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10726 done
10729 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10730 for ncn_progname in c++ g++ cxx gxx; do
10731 if test -n "$ncn_target_tool_prefix"; then
10732 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10733 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735 $as_echo_n "checking for $ac_word... " >&6; }
10736 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10737 $as_echo_n "(cached) " >&6
10738 else
10739 if test -n "$CXX_FOR_TARGET"; then
10740 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10741 else
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10749 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 break 2
10753 done
10754 done
10755 IFS=$as_save_IFS
10759 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10760 if test -n "$CXX_FOR_TARGET"; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10762 $as_echo "$CXX_FOR_TARGET" >&6; }
10763 else
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10770 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10772 set dummy ${ncn_progname}; ac_word=$2
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10774 $as_echo_n "checking for $ac_word... " >&6; }
10775 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 if test -n "$CXX_FOR_TARGET"; then
10779 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10780 else
10781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782 for as_dir in $PATH
10784 IFS=$as_save_IFS
10785 test -z "$as_dir" && as_dir=.
10786 for ac_exec_ext in '' $ac_executable_extensions; do
10787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10790 break 2
10792 done
10793 done
10794 IFS=$as_save_IFS
10798 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10799 if test -n "$CXX_FOR_TARGET"; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10801 $as_echo "$CXX_FOR_TARGET" >&6; }
10802 else
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804 $as_echo "no" >&6; }
10809 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10810 done
10813 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10814 set dummy c++ g++ cxx gxx
10815 if test $build = $target ; then
10816 CXX_FOR_TARGET="$2"
10817 else
10818 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10820 else
10821 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10826 if test -n "$GCC_FOR_TARGET"; then
10827 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10828 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10829 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10832 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10833 for ncn_progname in gcc; do
10834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10835 set dummy ${ncn_progname}; ac_word=$2
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837 $as_echo_n "checking for $ac_word... " >&6; }
10838 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 if test -n "$GCC_FOR_TARGET"; then
10842 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10843 else
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10855 done
10856 done
10857 IFS=$as_save_IFS
10861 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10862 if test -n "$GCC_FOR_TARGET"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10864 $as_echo "$GCC_FOR_TARGET" >&6; }
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10871 done
10874 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10875 for ncn_progname in gcc; do
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10877 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10878 if test -x $with_build_time_tools/${ncn_progname}; then
10879 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10881 $as_echo "yes" >&6; }
10882 break
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10887 done
10890 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10891 for ncn_progname in gcc; do
10892 if test -n "$ncn_target_tool_prefix"; then
10893 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10894 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 if test -n "$GCC_FOR_TARGET"; then
10901 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10902 else
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10906 IFS=$as_save_IFS
10907 test -z "$as_dir" && as_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10910 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912 break 2
10914 done
10915 done
10916 IFS=$as_save_IFS
10920 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10921 if test -n "$GCC_FOR_TARGET"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10923 $as_echo "$GCC_FOR_TARGET" >&6; }
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10931 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10933 set dummy ${ncn_progname}; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test -n "$GCC_FOR_TARGET"; then
10940 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10941 else
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10953 done
10954 done
10955 IFS=$as_save_IFS
10959 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10960 if test -n "$GCC_FOR_TARGET"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10962 $as_echo "$GCC_FOR_TARGET" >&6; }
10963 else
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 $as_echo "no" >&6; }
10970 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10971 done
10974 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10975 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10976 else
10977 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10982 if test -n "$GFORTRAN_FOR_TARGET"; then
10983 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10984 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10985 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10988 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10989 for ncn_progname in gfortran; do
10990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10991 set dummy ${ncn_progname}; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 if test -n "$GFORTRAN_FOR_TARGET"; then
10998 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10999 else
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11007 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11011 done
11012 done
11013 IFS=$as_save_IFS
11017 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11018 if test -n "$GFORTRAN_FOR_TARGET"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11020 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11027 done
11030 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
11031 for ncn_progname in gfortran; do
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11033 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11034 if test -x $with_build_time_tools/${ncn_progname}; then
11035 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11037 $as_echo "yes" >&6; }
11038 break
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11043 done
11046 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11047 for ncn_progname in gfortran; do
11048 if test -n "$ncn_target_tool_prefix"; then
11049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11050 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052 $as_echo_n "checking for $ac_word... " >&6; }
11053 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 if test -n "$GFORTRAN_FOR_TARGET"; then
11057 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11058 else
11059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in $PATH
11062 IFS=$as_save_IFS
11063 test -z "$as_dir" && as_dir=.
11064 for ac_exec_ext in '' $ac_executable_extensions; do
11065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11066 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068 break 2
11070 done
11071 done
11072 IFS=$as_save_IFS
11076 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11077 if test -n "$GFORTRAN_FOR_TARGET"; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11079 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11080 else
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11087 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11089 set dummy ${ncn_progname}; ac_word=$2
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11091 $as_echo_n "checking for $ac_word... " >&6; }
11092 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11093 $as_echo_n "(cached) " >&6
11094 else
11095 if test -n "$GFORTRAN_FOR_TARGET"; then
11096 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11097 else
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $PATH
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11109 done
11110 done
11111 IFS=$as_save_IFS
11115 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11116 if test -n "$GFORTRAN_FOR_TARGET"; then
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11118 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11119 else
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121 $as_echo "no" >&6; }
11126 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11127 done
11130 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11131 set dummy gfortran
11132 if test $build = $target ; then
11133 GFORTRAN_FOR_TARGET="$2"
11134 else
11135 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11137 else
11138 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11143 if test -n "$GOC_FOR_TARGET"; then
11144 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11145 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11146 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11149 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11150 for ncn_progname in gccgo; do
11151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11152 set dummy ${ncn_progname}; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11158 if test -n "$GOC_FOR_TARGET"; then
11159 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11160 else
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $PATH
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11168 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170 break 2
11172 done
11173 done
11174 IFS=$as_save_IFS
11178 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11179 if test -n "$GOC_FOR_TARGET"; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11181 $as_echo "$GOC_FOR_TARGET" >&6; }
11182 else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11188 done
11191 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11192 for ncn_progname in gccgo; do
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11194 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11195 if test -x $with_build_time_tools/${ncn_progname}; then
11196 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11198 $as_echo "yes" >&6; }
11199 break
11200 else
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202 $as_echo "no" >&6; }
11204 done
11207 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11208 for ncn_progname in gccgo; do
11209 if test -n "$ncn_target_tool_prefix"; then
11210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11211 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 if test -n "$GOC_FOR_TARGET"; then
11218 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11219 else
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 break 2
11231 done
11232 done
11233 IFS=$as_save_IFS
11237 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11238 if test -n "$GOC_FOR_TARGET"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11240 $as_echo "$GOC_FOR_TARGET" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11248 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11250 set dummy ${ncn_progname}; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 if test -n "$GOC_FOR_TARGET"; then
11257 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11270 done
11271 done
11272 IFS=$as_save_IFS
11276 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11277 if test -n "$GOC_FOR_TARGET"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11279 $as_echo "$GOC_FOR_TARGET" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11287 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11288 done
11291 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11292 set dummy gccgo
11293 if test $build = $target ; then
11294 GOC_FOR_TARGET="$2"
11295 else
11296 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11298 else
11299 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11304 cat > conftest.c << \EOF
11305 #ifdef __GNUC__
11306 gcc_yay;
11307 #endif
11309 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11310 have_gcc_for_target=yes
11311 else
11312 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11313 have_gcc_for_target=no
11315 rm conftest.c
11320 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11321 if test -n "$with_build_time_tools"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11323 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11324 if test -x $with_build_time_tools/ar; then
11325 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11326 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11328 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11333 elif test $build != $host && test $have_gcc_for_target = yes; then
11334 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11335 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11336 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11339 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11340 # Extract the first word of "ar", so it can be a program name with args.
11341 set dummy ar; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 case $AR_FOR_TARGET in
11348 [\\/]* | ?:[\\/]*)
11349 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $gcc_cv_tool_dirs
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11363 done
11364 done
11365 IFS=$as_save_IFS
11368 esac
11370 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11371 if test -n "$AR_FOR_TARGET"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11373 $as_echo "$AR_FOR_TARGET" >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11381 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11384 if test -n "$AR_FOR_TARGET"; then
11385 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11386 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11387 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11390 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11391 for ncn_progname in ar; do
11392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11393 set dummy ${ncn_progname}; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 if test -n "$AR_FOR_TARGET"; then
11400 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11401 else
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11409 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 break 2
11413 done
11414 done
11415 IFS=$as_save_IFS
11419 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11420 if test -n "$AR_FOR_TARGET"; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11422 $as_echo "$AR_FOR_TARGET" >&6; }
11423 else
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425 $as_echo "no" >&6; }
11429 done
11432 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11433 for ncn_progname in ar; do
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11435 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11436 if test -x $with_build_time_tools/${ncn_progname}; then
11437 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439 $as_echo "yes" >&6; }
11440 break
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11445 done
11448 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11449 for ncn_progname in ar; do
11450 if test -n "$ncn_target_tool_prefix"; then
11451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11452 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 if test -n "$AR_FOR_TARGET"; then
11459 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11460 else
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11472 done
11473 done
11474 IFS=$as_save_IFS
11478 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11479 if test -n "$AR_FOR_TARGET"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11481 $as_echo "$AR_FOR_TARGET" >&6; }
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11489 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11491 set dummy ${ncn_progname}; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 if test -n "$AR_FOR_TARGET"; then
11498 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11499 else
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11507 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 break 2
11511 done
11512 done
11513 IFS=$as_save_IFS
11517 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11518 if test -n "$AR_FOR_TARGET"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11520 $as_echo "$AR_FOR_TARGET" >&6; }
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11528 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11529 done
11532 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11533 set dummy ar
11534 if test $build = $target ; then
11535 AR_FOR_TARGET="$2"
11536 else
11537 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11539 else
11540 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11543 else
11544 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11550 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11551 if test -n "$with_build_time_tools"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11553 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11554 if test -x $with_build_time_tools/as; then
11555 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11556 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11558 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11559 else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561 $as_echo "no" >&6; }
11563 elif test $build != $host && test $have_gcc_for_target = yes; then
11564 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11565 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11566 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11569 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11570 # Extract the first word of "as", so it can be a program name with args.
11571 set dummy as; ac_word=$2
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573 $as_echo_n "checking for $ac_word... " >&6; }
11574 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 case $AS_FOR_TARGET in
11578 [\\/]* | ?:[\\/]*)
11579 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $gcc_cv_tool_dirs
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11593 done
11594 done
11595 IFS=$as_save_IFS
11598 esac
11600 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11601 if test -n "$AS_FOR_TARGET"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11603 $as_echo "$AS_FOR_TARGET" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11611 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11614 if test -n "$AS_FOR_TARGET"; then
11615 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11616 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11617 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11620 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11621 for ncn_progname in as; do
11622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623 set dummy ${ncn_progname}; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 if test -n "$AS_FOR_TARGET"; then
11630 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11631 else
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11643 done
11644 done
11645 IFS=$as_save_IFS
11649 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11650 if test -n "$AS_FOR_TARGET"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11652 $as_echo "$AS_FOR_TARGET" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11659 done
11662 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11663 for ncn_progname in as; do
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11665 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11666 if test -x $with_build_time_tools/${ncn_progname}; then
11667 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11669 $as_echo "yes" >&6; }
11670 break
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11675 done
11678 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11679 for ncn_progname in as; do
11680 if test -n "$ncn_target_tool_prefix"; then
11681 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11682 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 if test -n "$AS_FOR_TARGET"; then
11689 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11690 else
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11698 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11702 done
11703 done
11704 IFS=$as_save_IFS
11708 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11709 if test -n "$AS_FOR_TARGET"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11711 $as_echo "$AS_FOR_TARGET" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11719 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11721 set dummy ${ncn_progname}; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test -n "$AS_FOR_TARGET"; then
11728 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11729 else
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11747 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11748 if test -n "$AS_FOR_TARGET"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11750 $as_echo "$AS_FOR_TARGET" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11758 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11759 done
11762 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11763 set dummy as
11764 if test $build = $target ; then
11765 AS_FOR_TARGET="$2"
11766 else
11767 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11769 else
11770 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11773 else
11774 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11780 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11781 if test -n "$with_build_time_tools"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11783 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11784 if test -x $with_build_time_tools/dlltool; then
11785 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11786 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11788 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791 $as_echo "no" >&6; }
11793 elif test $build != $host && test $have_gcc_for_target = yes; then
11794 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11795 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11796 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11799 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11800 # Extract the first word of "dlltool", so it can be a program name with args.
11801 set dummy dlltool; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 case $DLLTOOL_FOR_TARGET in
11808 [\\/]* | ?:[\\/]*)
11809 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $gcc_cv_tool_dirs
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11819 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11823 done
11824 done
11825 IFS=$as_save_IFS
11828 esac
11830 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11831 if test -n "$DLLTOOL_FOR_TARGET"; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11833 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11841 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11844 if test -n "$DLLTOOL_FOR_TARGET"; then
11845 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11846 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11847 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11850 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11851 for ncn_progname in dlltool; do
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853 set dummy ${ncn_progname}; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 if test -n "$DLLTOOL_FOR_TARGET"; then
11860 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11861 else
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11869 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11873 done
11874 done
11875 IFS=$as_save_IFS
11879 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11880 if test -n "$DLLTOOL_FOR_TARGET"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11882 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11889 done
11892 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11893 for ncn_progname in dlltool; do
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11895 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11896 if test -x $with_build_time_tools/${ncn_progname}; then
11897 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899 $as_echo "yes" >&6; }
11900 break
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11905 done
11908 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11909 for ncn_progname in dlltool; do
11910 if test -n "$ncn_target_tool_prefix"; then
11911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11912 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 if test -n "$DLLTOOL_FOR_TARGET"; then
11919 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11932 done
11933 done
11934 IFS=$as_save_IFS
11938 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11939 if test -n "$DLLTOOL_FOR_TARGET"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11941 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11949 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11951 set dummy ${ncn_progname}; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test -n "$DLLTOOL_FOR_TARGET"; then
11958 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11971 done
11972 done
11973 IFS=$as_save_IFS
11977 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11978 if test -n "$DLLTOOL_FOR_TARGET"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11980 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11988 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11989 done
11992 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11993 set dummy dlltool
11994 if test $build = $target ; then
11995 DLLTOOL_FOR_TARGET="$2"
11996 else
11997 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11999 else
12000 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
12003 else
12004 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
12010 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12011 if test -n "$with_build_time_tools"; then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12013 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
12014 if test -x $with_build_time_tools/ld; then
12015 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12016 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12018 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12023 elif test $build != $host && test $have_gcc_for_target = yes; then
12024 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
12025 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12026 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12029 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12030 # Extract the first word of "ld", so it can be a program name with args.
12031 set dummy ld; ac_word=$2
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033 $as_echo_n "checking for $ac_word... " >&6; }
12034 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 case $LD_FOR_TARGET in
12038 [\\/]* | ?:[\\/]*)
12039 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $gcc_cv_tool_dirs
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 break 2
12053 done
12054 done
12055 IFS=$as_save_IFS
12058 esac
12060 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12061 if test -n "$LD_FOR_TARGET"; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12063 $as_echo "$LD_FOR_TARGET" >&6; }
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12071 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12074 if test -n "$LD_FOR_TARGET"; then
12075 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12076 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12077 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12080 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12081 for ncn_progname in ld; do
12082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085 $as_echo_n "checking for $ac_word... " >&6; }
12086 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 if test -n "$LD_FOR_TARGET"; then
12090 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12091 else
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12103 done
12104 done
12105 IFS=$as_save_IFS
12109 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12110 if test -n "$LD_FOR_TARGET"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12112 $as_echo "$LD_FOR_TARGET" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12119 done
12122 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12123 for ncn_progname in ld; do
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12125 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12126 if test -x $with_build_time_tools/${ncn_progname}; then
12127 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130 break
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12135 done
12138 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12139 for ncn_progname in ld; do
12140 if test -n "$ncn_target_tool_prefix"; then
12141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12142 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 if test -n "$LD_FOR_TARGET"; then
12149 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12158 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 break 2
12162 done
12163 done
12164 IFS=$as_save_IFS
12168 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12169 if test -n "$LD_FOR_TARGET"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12171 $as_echo "$LD_FOR_TARGET" >&6; }
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12179 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12181 set dummy ${ncn_progname}; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 if test -n "$LD_FOR_TARGET"; then
12188 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12201 done
12202 done
12203 IFS=$as_save_IFS
12207 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12208 if test -n "$LD_FOR_TARGET"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12210 $as_echo "$LD_FOR_TARGET" >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12218 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12219 done
12222 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12223 set dummy ld
12224 if test $build = $target ; then
12225 LD_FOR_TARGET="$2"
12226 else
12227 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12229 else
12230 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12233 else
12234 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12240 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12241 if test -n "$with_build_time_tools"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12243 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12244 if test -x $with_build_time_tools/lipo; then
12245 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12246 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12248 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12253 elif test $build != $host && test $have_gcc_for_target = yes; then
12254 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12255 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12256 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12259 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12260 # Extract the first word of "lipo", so it can be a program name with args.
12261 set dummy lipo; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 case $LIPO_FOR_TARGET in
12268 [\\/]* | ?:[\\/]*)
12269 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $gcc_cv_tool_dirs
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12279 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12283 done
12284 done
12285 IFS=$as_save_IFS
12288 esac
12290 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12291 if test -n "$LIPO_FOR_TARGET"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12293 $as_echo "$LIPO_FOR_TARGET" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12301 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12304 if test -n "$LIPO_FOR_TARGET"; then
12305 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12306 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12307 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12310 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12311 for ncn_progname in lipo; do
12312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12313 set dummy ${ncn_progname}; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 if test -n "$LIPO_FOR_TARGET"; then
12320 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12321 else
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12329 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12333 done
12334 done
12335 IFS=$as_save_IFS
12339 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12340 if test -n "$LIPO_FOR_TARGET"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12342 $as_echo "$LIPO_FOR_TARGET" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12349 done
12352 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12353 for ncn_progname in lipo; do
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12355 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12356 if test -x $with_build_time_tools/${ncn_progname}; then
12357 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359 $as_echo "yes" >&6; }
12360 break
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12365 done
12368 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12369 for ncn_progname in lipo; do
12370 if test -n "$ncn_target_tool_prefix"; then
12371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test -n "$LIPO_FOR_TARGET"; then
12379 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12392 done
12393 done
12394 IFS=$as_save_IFS
12398 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12399 if test -n "$LIPO_FOR_TARGET"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12401 $as_echo "$LIPO_FOR_TARGET" >&6; }
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12409 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12411 set dummy ${ncn_progname}; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 if test -n "$LIPO_FOR_TARGET"; then
12418 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12419 else
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12427 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 break 2
12431 done
12432 done
12433 IFS=$as_save_IFS
12437 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12438 if test -n "$LIPO_FOR_TARGET"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12440 $as_echo "$LIPO_FOR_TARGET" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12448 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12449 done
12452 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12453 set dummy lipo
12454 if test $build = $target ; then
12455 LIPO_FOR_TARGET="$2"
12456 else
12457 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12459 else
12460 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12463 else
12464 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12470 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12471 if test -n "$with_build_time_tools"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12473 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12474 if test -x $with_build_time_tools/nm; then
12475 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12476 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12478 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12483 elif test $build != $host && test $have_gcc_for_target = yes; then
12484 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12485 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12486 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12489 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12490 # Extract the first word of "nm", so it can be a program name with args.
12491 set dummy nm; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 case $NM_FOR_TARGET in
12498 [\\/]* | ?:[\\/]*)
12499 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $gcc_cv_tool_dirs
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12509 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12513 done
12514 done
12515 IFS=$as_save_IFS
12518 esac
12520 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12521 if test -n "$NM_FOR_TARGET"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12523 $as_echo "$NM_FOR_TARGET" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12531 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12534 if test -n "$NM_FOR_TARGET"; then
12535 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12536 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12537 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12540 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12541 for ncn_progname in nm; do
12542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12543 set dummy ${ncn_progname}; ac_word=$2
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545 $as_echo_n "checking for $ac_word... " >&6; }
12546 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 if test -n "$NM_FOR_TARGET"; then
12550 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12551 else
12552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553 for as_dir in $PATH
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12559 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12561 break 2
12563 done
12564 done
12565 IFS=$as_save_IFS
12569 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12570 if test -n "$NM_FOR_TARGET"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12572 $as_echo "$NM_FOR_TARGET" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12579 done
12582 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12583 for ncn_progname in nm; do
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12585 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12586 if test -x $with_build_time_tools/${ncn_progname}; then
12587 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589 $as_echo "yes" >&6; }
12590 break
12591 else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12595 done
12598 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12599 for ncn_progname in nm; do
12600 if test -n "$ncn_target_tool_prefix"; then
12601 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12602 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 if test -n "$NM_FOR_TARGET"; then
12609 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12618 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 break 2
12622 done
12623 done
12624 IFS=$as_save_IFS
12628 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12629 if test -n "$NM_FOR_TARGET"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12631 $as_echo "$NM_FOR_TARGET" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12639 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12641 set dummy ${ncn_progname}; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 if test -n "$NM_FOR_TARGET"; then
12648 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12649 else
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12657 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 break 2
12661 done
12662 done
12663 IFS=$as_save_IFS
12667 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12668 if test -n "$NM_FOR_TARGET"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12670 $as_echo "$NM_FOR_TARGET" >&6; }
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12678 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12679 done
12682 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12683 set dummy nm
12684 if test $build = $target ; then
12685 NM_FOR_TARGET="$2"
12686 else
12687 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12689 else
12690 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12693 else
12694 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12700 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12701 if test -n "$with_build_time_tools"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12703 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12704 if test -x $with_build_time_tools/objcopy; then
12705 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12706 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12708 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12713 elif test $build != $host && test $have_gcc_for_target = yes; then
12714 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12715 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12716 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12719 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12720 # Extract the first word of "objcopy", so it can be a program name with args.
12721 set dummy objcopy; ac_word=$2
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12725 $as_echo_n "(cached) " >&6
12726 else
12727 case $OBJCOPY_FOR_TARGET in
12728 [\\/]* | ?:[\\/]*)
12729 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $gcc_cv_tool_dirs
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12739 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12743 done
12744 done
12745 IFS=$as_save_IFS
12748 esac
12750 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12751 if test -n "$OBJCOPY_FOR_TARGET"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12753 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12754 else
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12761 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12764 if test -n "$OBJCOPY_FOR_TARGET"; then
12765 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12766 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12767 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12770 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12771 for ncn_progname in objcopy; do
12772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12773 set dummy ${ncn_progname}; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 if test -n "$OBJCOPY_FOR_TARGET"; then
12780 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12781 else
12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12785 IFS=$as_save_IFS
12786 test -z "$as_dir" && as_dir=.
12787 for ac_exec_ext in '' $ac_executable_extensions; do
12788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12789 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791 break 2
12793 done
12794 done
12795 IFS=$as_save_IFS
12799 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12800 if test -n "$OBJCOPY_FOR_TARGET"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12802 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12803 else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12809 done
12812 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12813 for ncn_progname in objcopy; do
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12815 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12816 if test -x $with_build_time_tools/${ncn_progname}; then
12817 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; }
12820 break
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12825 done
12828 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12829 for ncn_progname in objcopy; do
12830 if test -n "$ncn_target_tool_prefix"; then
12831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12832 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 if test -n "$OBJCOPY_FOR_TARGET"; then
12839 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12848 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12852 done
12853 done
12854 IFS=$as_save_IFS
12858 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12859 if test -n "$OBJCOPY_FOR_TARGET"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12861 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12869 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 if test -n "$OBJCOPY_FOR_TARGET"; then
12878 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12887 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12891 done
12892 done
12893 IFS=$as_save_IFS
12897 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12898 if test -n "$OBJCOPY_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12900 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12908 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12909 done
12912 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12913 set dummy objcopy
12914 if test $build = $target ; then
12915 OBJCOPY_FOR_TARGET="$2"
12916 else
12917 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12919 else
12920 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12923 else
12924 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12930 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12931 if test -n "$with_build_time_tools"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12933 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12934 if test -x $with_build_time_tools/objdump; then
12935 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12936 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12938 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12943 elif test $build != $host && test $have_gcc_for_target = yes; then
12944 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12945 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12946 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12949 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12950 # Extract the first word of "objdump", so it can be a program name with args.
12951 set dummy objdump; ac_word=$2
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12953 $as_echo_n "checking for $ac_word... " >&6; }
12954 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 case $OBJDUMP_FOR_TARGET in
12958 [\\/]* | ?:[\\/]*)
12959 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $gcc_cv_tool_dirs
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12969 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12973 done
12974 done
12975 IFS=$as_save_IFS
12978 esac
12980 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12981 if test -n "$OBJDUMP_FOR_TARGET"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12983 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12991 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12994 if test -n "$OBJDUMP_FOR_TARGET"; then
12995 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12996 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12997 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13000 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13001 for ncn_progname in objdump; do
13002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13003 set dummy ${ncn_progname}; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 if test -n "$OBJDUMP_FOR_TARGET"; then
13010 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13019 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13023 done
13024 done
13025 IFS=$as_save_IFS
13029 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13030 if test -n "$OBJDUMP_FOR_TARGET"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13032 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13033 else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13039 done
13042 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13043 for ncn_progname in objdump; do
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13045 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13046 if test -x $with_build_time_tools/${ncn_progname}; then
13047 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049 $as_echo "yes" >&6; }
13050 break
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13055 done
13058 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13059 for ncn_progname in objdump; do
13060 if test -n "$ncn_target_tool_prefix"; then
13061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13062 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 if test -n "$OBJDUMP_FOR_TARGET"; then
13069 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13078 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13082 done
13083 done
13084 IFS=$as_save_IFS
13088 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13089 if test -n "$OBJDUMP_FOR_TARGET"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13091 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13099 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13101 set dummy ${ncn_progname}; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 if test -n "$OBJDUMP_FOR_TARGET"; then
13108 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13109 else
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13121 done
13122 done
13123 IFS=$as_save_IFS
13127 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13128 if test -n "$OBJDUMP_FOR_TARGET"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13130 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13138 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13139 done
13142 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13143 set dummy objdump
13144 if test $build = $target ; then
13145 OBJDUMP_FOR_TARGET="$2"
13146 else
13147 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13149 else
13150 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13153 else
13154 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13160 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13161 if test -n "$with_build_time_tools"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13163 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13164 if test -x $with_build_time_tools/ranlib; then
13165 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13166 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13168 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13169 else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13173 elif test $build != $host && test $have_gcc_for_target = yes; then
13174 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13175 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13176 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13179 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13180 # Extract the first word of "ranlib", so it can be a program name with args.
13181 set dummy ranlib; ac_word=$2
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13185 $as_echo_n "(cached) " >&6
13186 else
13187 case $RANLIB_FOR_TARGET in
13188 [\\/]* | ?:[\\/]*)
13189 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $gcc_cv_tool_dirs
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13199 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13203 done
13204 done
13205 IFS=$as_save_IFS
13208 esac
13210 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13211 if test -n "$RANLIB_FOR_TARGET"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13213 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13214 else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13221 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13224 if test -n "$RANLIB_FOR_TARGET"; then
13225 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13226 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13227 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13230 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13231 for ncn_progname in ranlib; do
13232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233 set dummy ${ncn_progname}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 if test -n "$RANLIB_FOR_TARGET"; then
13240 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13241 else
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13249 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13253 done
13254 done
13255 IFS=$as_save_IFS
13259 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13260 if test -n "$RANLIB_FOR_TARGET"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13262 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13269 done
13272 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13273 for ncn_progname in ranlib; do
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13275 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13276 if test -x $with_build_time_tools/${ncn_progname}; then
13277 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279 $as_echo "yes" >&6; }
13280 break
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13285 done
13288 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13289 for ncn_progname in ranlib; do
13290 if test -n "$ncn_target_tool_prefix"; then
13291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 if test -n "$RANLIB_FOR_TARGET"; then
13299 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13300 else
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13308 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 break 2
13312 done
13313 done
13314 IFS=$as_save_IFS
13318 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13319 if test -n "$RANLIB_FOR_TARGET"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13321 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13329 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13331 set dummy ${ncn_progname}; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333 $as_echo_n "checking for $ac_word... " >&6; }
13334 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13335 $as_echo_n "(cached) " >&6
13336 else
13337 if test -n "$RANLIB_FOR_TARGET"; then
13338 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13339 else
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13347 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13349 break 2
13351 done
13352 done
13353 IFS=$as_save_IFS
13357 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13358 if test -n "$RANLIB_FOR_TARGET"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13360 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13361 else
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13368 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13369 done
13372 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13373 set dummy ranlib
13374 if test $build = $target ; then
13375 RANLIB_FOR_TARGET="$2"
13376 else
13377 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13379 else
13380 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13383 else
13384 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13390 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13391 if test -n "$with_build_time_tools"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13393 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13394 if test -x $with_build_time_tools/readelf; then
13395 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13396 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13398 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13403 elif test $build != $host && test $have_gcc_for_target = yes; then
13404 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13405 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13406 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13409 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13410 # Extract the first word of "readelf", so it can be a program name with args.
13411 set dummy readelf; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 case $READELF_FOR_TARGET in
13418 [\\/]* | ?:[\\/]*)
13419 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $gcc_cv_tool_dirs
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13429 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13433 done
13434 done
13435 IFS=$as_save_IFS
13438 esac
13440 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13441 if test -n "$READELF_FOR_TARGET"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13443 $as_echo "$READELF_FOR_TARGET" >&6; }
13444 else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13451 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13454 if test -n "$READELF_FOR_TARGET"; then
13455 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13456 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13457 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13460 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13461 for ncn_progname in readelf; do
13462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13463 set dummy ${ncn_progname}; ac_word=$2
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465 $as_echo_n "checking for $ac_word... " >&6; }
13466 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 if test -n "$READELF_FOR_TARGET"; then
13470 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13471 else
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13479 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13483 done
13484 done
13485 IFS=$as_save_IFS
13489 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13490 if test -n "$READELF_FOR_TARGET"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13492 $as_echo "$READELF_FOR_TARGET" >&6; }
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13499 done
13502 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13503 for ncn_progname in readelf; do
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13505 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13506 if test -x $with_build_time_tools/${ncn_progname}; then
13507 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509 $as_echo "yes" >&6; }
13510 break
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13515 done
13518 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13519 for ncn_progname in readelf; do
13520 if test -n "$ncn_target_tool_prefix"; then
13521 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13522 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524 $as_echo_n "checking for $ac_word... " >&6; }
13525 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 if test -n "$READELF_FOR_TARGET"; then
13529 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13530 else
13531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532 for as_dir in $PATH
13534 IFS=$as_save_IFS
13535 test -z "$as_dir" && as_dir=.
13536 for ac_exec_ext in '' $ac_executable_extensions; do
13537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13538 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13540 break 2
13542 done
13543 done
13544 IFS=$as_save_IFS
13548 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13549 if test -n "$READELF_FOR_TARGET"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13551 $as_echo "$READELF_FOR_TARGET" >&6; }
13552 else
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554 $as_echo "no" >&6; }
13559 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13561 set dummy ${ncn_progname}; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13565 $as_echo_n "(cached) " >&6
13566 else
13567 if test -n "$READELF_FOR_TARGET"; then
13568 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13569 else
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13581 done
13582 done
13583 IFS=$as_save_IFS
13587 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13588 if test -n "$READELF_FOR_TARGET"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13590 $as_echo "$READELF_FOR_TARGET" >&6; }
13591 else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13598 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13599 done
13602 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13603 set dummy readelf
13604 if test $build = $target ; then
13605 READELF_FOR_TARGET="$2"
13606 else
13607 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13609 else
13610 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13613 else
13614 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13620 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13621 if test -n "$with_build_time_tools"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13623 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13624 if test -x $with_build_time_tools/strip; then
13625 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13626 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13628 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13629 else
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 $as_echo "no" >&6; }
13633 elif test $build != $host && test $have_gcc_for_target = yes; then
13634 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13635 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13636 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13639 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13640 # Extract the first word of "strip", so it can be a program name with args.
13641 set dummy strip; ac_word=$2
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13643 $as_echo_n "checking for $ac_word... " >&6; }
13644 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 case $STRIP_FOR_TARGET in
13648 [\\/]* | ?:[\\/]*)
13649 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $gcc_cv_tool_dirs
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 break 2
13663 done
13664 done
13665 IFS=$as_save_IFS
13668 esac
13670 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13671 if test -n "$STRIP_FOR_TARGET"; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13673 $as_echo "$STRIP_FOR_TARGET" >&6; }
13674 else
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676 $as_echo "no" >&6; }
13681 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13684 if test -n "$STRIP_FOR_TARGET"; then
13685 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13686 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13687 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13690 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13691 for ncn_progname in strip; do
13692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13693 set dummy ${ncn_progname}; ac_word=$2
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695 $as_echo_n "checking for $ac_word... " >&6; }
13696 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 if test -n "$STRIP_FOR_TARGET"; then
13700 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13701 else
13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703 for as_dir in $PATH
13705 IFS=$as_save_IFS
13706 test -z "$as_dir" && as_dir=.
13707 for ac_exec_ext in '' $ac_executable_extensions; do
13708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13709 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13711 break 2
13713 done
13714 done
13715 IFS=$as_save_IFS
13719 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13720 if test -n "$STRIP_FOR_TARGET"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13722 $as_echo "$STRIP_FOR_TARGET" >&6; }
13723 else
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13729 done
13732 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13733 for ncn_progname in strip; do
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13735 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13736 if test -x $with_build_time_tools/${ncn_progname}; then
13737 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13739 $as_echo "yes" >&6; }
13740 break
13741 else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743 $as_echo "no" >&6; }
13745 done
13748 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13749 for ncn_progname in strip; do
13750 if test -n "$ncn_target_tool_prefix"; then
13751 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13752 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13754 $as_echo_n "checking for $ac_word... " >&6; }
13755 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13756 $as_echo_n "(cached) " >&6
13757 else
13758 if test -n "$STRIP_FOR_TARGET"; then
13759 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13760 else
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 for as_dir in $PATH
13764 IFS=$as_save_IFS
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
13767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13768 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13770 break 2
13772 done
13773 done
13774 IFS=$as_save_IFS
13778 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13779 if test -n "$STRIP_FOR_TARGET"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13781 $as_echo "$STRIP_FOR_TARGET" >&6; }
13782 else
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784 $as_echo "no" >&6; }
13789 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13791 set dummy ${ncn_progname}; ac_word=$2
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13793 $as_echo_n "checking for $ac_word... " >&6; }
13794 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13795 $as_echo_n "(cached) " >&6
13796 else
13797 if test -n "$STRIP_FOR_TARGET"; then
13798 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13799 else
13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
13805 for ac_exec_ext in '' $ac_executable_extensions; do
13806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13807 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13809 break 2
13811 done
13812 done
13813 IFS=$as_save_IFS
13817 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13818 if test -n "$STRIP_FOR_TARGET"; then
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13820 $as_echo "$STRIP_FOR_TARGET" >&6; }
13821 else
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823 $as_echo "no" >&6; }
13828 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13829 done
13832 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13833 set dummy strip
13834 if test $build = $target ; then
13835 STRIP_FOR_TARGET="$2"
13836 else
13837 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13839 else
13840 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13843 else
13844 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13850 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13851 if test -n "$with_build_time_tools"; then
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13853 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13854 if test -x $with_build_time_tools/windres; then
13855 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13856 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13858 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13859 else
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13863 elif test $build != $host && test $have_gcc_for_target = yes; then
13864 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13865 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13866 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13869 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13870 # Extract the first word of "windres", so it can be a program name with args.
13871 set dummy windres; ac_word=$2
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13873 $as_echo_n "checking for $ac_word... " >&6; }
13874 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 case $WINDRES_FOR_TARGET in
13878 [\\/]* | ?:[\\/]*)
13879 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $gcc_cv_tool_dirs
13885 IFS=$as_save_IFS
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13889 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13891 break 2
13893 done
13894 done
13895 IFS=$as_save_IFS
13898 esac
13900 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13901 if test -n "$WINDRES_FOR_TARGET"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13903 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13904 else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13911 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13914 if test -n "$WINDRES_FOR_TARGET"; then
13915 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13916 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13917 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13920 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13921 for ncn_progname in windres; do
13922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13923 set dummy ${ncn_progname}; ac_word=$2
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925 $as_echo_n "checking for $ac_word... " >&6; }
13926 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 if test -n "$WINDRES_FOR_TARGET"; then
13930 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13931 else
13932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933 for as_dir in $PATH
13935 IFS=$as_save_IFS
13936 test -z "$as_dir" && as_dir=.
13937 for ac_exec_ext in '' $ac_executable_extensions; do
13938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13939 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13941 break 2
13943 done
13944 done
13945 IFS=$as_save_IFS
13949 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13950 if test -n "$WINDRES_FOR_TARGET"; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13952 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13953 else
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13959 done
13962 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13963 for ncn_progname in windres; do
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13965 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13966 if test -x $with_build_time_tools/${ncn_progname}; then
13967 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969 $as_echo "yes" >&6; }
13970 break
13971 else
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13975 done
13978 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13979 for ncn_progname in windres; do
13980 if test -n "$ncn_target_tool_prefix"; then
13981 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13982 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13984 $as_echo_n "checking for $ac_word... " >&6; }
13985 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 if test -n "$WINDRES_FOR_TARGET"; then
13989 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13990 else
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13998 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 break 2
14002 done
14003 done
14004 IFS=$as_save_IFS
14008 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14009 if test -n "$WINDRES_FOR_TARGET"; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14011 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14012 else
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14019 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14021 set dummy ${ncn_progname}; ac_word=$2
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14023 $as_echo_n "checking for $ac_word... " >&6; }
14024 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 if test -n "$WINDRES_FOR_TARGET"; then
14028 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14029 else
14030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031 for as_dir in $PATH
14033 IFS=$as_save_IFS
14034 test -z "$as_dir" && as_dir=.
14035 for ac_exec_ext in '' $ac_executable_extensions; do
14036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14037 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14039 break 2
14041 done
14042 done
14043 IFS=$as_save_IFS
14047 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14048 if test -n "$WINDRES_FOR_TARGET"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14050 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14051 else
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14058 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14059 done
14062 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14063 set dummy windres
14064 if test $build = $target ; then
14065 WINDRES_FOR_TARGET="$2"
14066 else
14067 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14069 else
14070 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14073 else
14074 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14080 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14081 if test -n "$with_build_time_tools"; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14083 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14084 if test -x $with_build_time_tools/windmc; then
14085 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14086 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14088 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14093 elif test $build != $host && test $have_gcc_for_target = yes; then
14094 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14095 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14096 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14099 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14100 # Extract the first word of "windmc", so it can be a program name with args.
14101 set dummy windmc; ac_word=$2
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 case $WINDMC_FOR_TARGET in
14108 [\\/]* | ?:[\\/]*)
14109 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $gcc_cv_tool_dirs
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
14118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14119 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14121 break 2
14123 done
14124 done
14125 IFS=$as_save_IFS
14128 esac
14130 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14131 if test -n "$WINDMC_FOR_TARGET"; then
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14133 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14134 else
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136 $as_echo "no" >&6; }
14141 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14144 if test -n "$WINDMC_FOR_TARGET"; then
14145 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14146 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14147 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14150 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14151 for ncn_progname in windmc; do
14152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14153 set dummy ${ncn_progname}; ac_word=$2
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14155 $as_echo_n "checking for $ac_word... " >&6; }
14156 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14157 $as_echo_n "(cached) " >&6
14158 else
14159 if test -n "$WINDMC_FOR_TARGET"; then
14160 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14161 else
14162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163 for as_dir in $PATH
14165 IFS=$as_save_IFS
14166 test -z "$as_dir" && as_dir=.
14167 for ac_exec_ext in '' $ac_executable_extensions; do
14168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14169 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14171 break 2
14173 done
14174 done
14175 IFS=$as_save_IFS
14179 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14180 if test -n "$WINDMC_FOR_TARGET"; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14182 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14183 else
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185 $as_echo "no" >&6; }
14189 done
14192 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14193 for ncn_progname in windmc; do
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14195 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14196 if test -x $with_build_time_tools/${ncn_progname}; then
14197 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14199 $as_echo "yes" >&6; }
14200 break
14201 else
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14205 done
14208 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14209 for ncn_progname in windmc; do
14210 if test -n "$ncn_target_tool_prefix"; then
14211 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14212 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14214 $as_echo_n "checking for $ac_word... " >&6; }
14215 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 if test -n "$WINDMC_FOR_TARGET"; then
14219 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14220 else
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14224 IFS=$as_save_IFS
14225 test -z "$as_dir" && as_dir=.
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14228 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14230 break 2
14232 done
14233 done
14234 IFS=$as_save_IFS
14238 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14239 if test -n "$WINDMC_FOR_TARGET"; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14241 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14242 else
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244 $as_echo "no" >&6; }
14249 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14251 set dummy ${ncn_progname}; ac_word=$2
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14253 $as_echo_n "checking for $ac_word... " >&6; }
14254 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14255 $as_echo_n "(cached) " >&6
14256 else
14257 if test -n "$WINDMC_FOR_TARGET"; then
14258 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14259 else
14260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14261 for as_dir in $PATH
14263 IFS=$as_save_IFS
14264 test -z "$as_dir" && as_dir=.
14265 for ac_exec_ext in '' $ac_executable_extensions; do
14266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14267 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14269 break 2
14271 done
14272 done
14273 IFS=$as_save_IFS
14277 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14278 if test -n "$WINDMC_FOR_TARGET"; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14280 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14281 else
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14288 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14289 done
14292 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14293 set dummy windmc
14294 if test $build = $target ; then
14295 WINDMC_FOR_TARGET="$2"
14296 else
14297 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14299 else
14300 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14303 else
14304 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14308 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14311 $as_echo_n "checking where to find the target ar... " >&6; }
14312 if test "x${build}" != "x${host}" ; then
14313 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14314 # We already found the complete path
14315 ac_dir=`dirname $AR_FOR_TARGET`
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14317 $as_echo "pre-installed in $ac_dir" >&6; }
14318 else
14319 # Canadian cross, just use what we found
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14321 $as_echo "pre-installed" >&6; }
14323 else
14324 ok=yes
14325 case " ${configdirs} " in
14326 *" binutils "*) ;;
14327 *) ok=no ;;
14328 esac
14330 if test $ok = yes; then
14331 # An in-tree tool is available and we can use it
14332 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14334 $as_echo "just compiled" >&6; }
14335 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14336 # We already found the complete path
14337 ac_dir=`dirname $AR_FOR_TARGET`
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14339 $as_echo "pre-installed in $ac_dir" >&6; }
14340 elif test "x$target" = "x$host"; then
14341 # We can use an host tool
14342 AR_FOR_TARGET='$(AR)'
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14344 $as_echo "host tool" >&6; }
14345 else
14346 # We need a cross tool
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14348 $as_echo "pre-installed" >&6; }
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14353 $as_echo_n "checking where to find the target as... " >&6; }
14354 if test "x${build}" != "x${host}" ; then
14355 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14356 # We already found the complete path
14357 ac_dir=`dirname $AS_FOR_TARGET`
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14359 $as_echo "pre-installed in $ac_dir" >&6; }
14360 else
14361 # Canadian cross, just use what we found
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14363 $as_echo "pre-installed" >&6; }
14365 else
14366 ok=yes
14367 case " ${configdirs} " in
14368 *" gas "*) ;;
14369 *) ok=no ;;
14370 esac
14372 if test $ok = yes; then
14373 # An in-tree tool is available and we can use it
14374 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14376 $as_echo "just compiled" >&6; }
14377 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14378 # We already found the complete path
14379 ac_dir=`dirname $AS_FOR_TARGET`
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14381 $as_echo "pre-installed in $ac_dir" >&6; }
14382 elif test "x$target" = "x$host"; then
14383 # We can use an host tool
14384 AS_FOR_TARGET='$(AS)'
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14386 $as_echo "host tool" >&6; }
14387 else
14388 # We need a cross tool
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14390 $as_echo "pre-installed" >&6; }
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14395 $as_echo_n "checking where to find the target cc... " >&6; }
14396 if test "x${build}" != "x${host}" ; then
14397 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14398 # We already found the complete path
14399 ac_dir=`dirname $CC_FOR_TARGET`
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14401 $as_echo "pre-installed in $ac_dir" >&6; }
14402 else
14403 # Canadian cross, just use what we found
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14405 $as_echo "pre-installed" >&6; }
14407 else
14408 ok=yes
14409 case " ${configdirs} " in
14410 *" gcc "*) ;;
14411 *) ok=no ;;
14412 esac
14414 if test $ok = yes; then
14415 # An in-tree tool is available and we can use it
14416 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14418 $as_echo "just compiled" >&6; }
14419 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14420 # We already found the complete path
14421 ac_dir=`dirname $CC_FOR_TARGET`
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14423 $as_echo "pre-installed in $ac_dir" >&6; }
14424 elif test "x$target" = "x$host"; then
14425 # We can use an host tool
14426 CC_FOR_TARGET='$(CC)'
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14428 $as_echo "host tool" >&6; }
14429 else
14430 # We need a cross tool
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14432 $as_echo "pre-installed" >&6; }
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14437 $as_echo_n "checking where to find the target c++... " >&6; }
14438 if test "x${build}" != "x${host}" ; then
14439 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14440 # We already found the complete path
14441 ac_dir=`dirname $CXX_FOR_TARGET`
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14443 $as_echo "pre-installed in $ac_dir" >&6; }
14444 else
14445 # Canadian cross, just use what we found
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14447 $as_echo "pre-installed" >&6; }
14449 else
14450 ok=yes
14451 case " ${configdirs} " in
14452 *" gcc "*) ;;
14453 *) ok=no ;;
14454 esac
14455 case ,${enable_languages}, in
14456 *,c++,*) ;;
14457 *) ok=no ;;
14458 esac
14459 if test $ok = yes; then
14460 # An in-tree tool is available and we can use it
14461 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'
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14463 $as_echo "just compiled" >&6; }
14464 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
14466 ac_dir=`dirname $CXX_FOR_TARGET`
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468 $as_echo "pre-installed in $ac_dir" >&6; }
14469 elif test "x$target" = "x$host"; then
14470 # We can use an host tool
14471 CXX_FOR_TARGET='$(CXX)'
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14473 $as_echo "host tool" >&6; }
14474 else
14475 # We need a cross tool
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14477 $as_echo "pre-installed" >&6; }
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14482 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14483 if test "x${build}" != "x${host}" ; then
14484 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14485 # We already found the complete path
14486 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14488 $as_echo "pre-installed in $ac_dir" >&6; }
14489 else
14490 # Canadian cross, just use what we found
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14492 $as_echo "pre-installed" >&6; }
14494 else
14495 ok=yes
14496 case " ${configdirs} " in
14497 *" gcc "*) ;;
14498 *) ok=no ;;
14499 esac
14500 case ,${enable_languages}, in
14501 *,c++,*) ;;
14502 *) ok=no ;;
14503 esac
14504 if test $ok = yes; then
14505 # An in-tree tool is available and we can use it
14506 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'
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14508 $as_echo "just compiled" >&6; }
14509 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14510 # We already found the complete path
14511 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513 $as_echo "pre-installed in $ac_dir" >&6; }
14514 elif test "x$target" = "x$host"; then
14515 # We can use an host tool
14516 RAW_CXX_FOR_TARGET='$(CXX)'
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14518 $as_echo "host tool" >&6; }
14519 else
14520 # We need a cross tool
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522 $as_echo "pre-installed" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14527 $as_echo_n "checking where to find the target dlltool... " >&6; }
14528 if test "x${build}" != "x${host}" ; then
14529 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14530 # We already found the complete path
14531 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533 $as_echo "pre-installed in $ac_dir" >&6; }
14534 else
14535 # Canadian cross, just use what we found
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537 $as_echo "pre-installed" >&6; }
14539 else
14540 ok=yes
14541 case " ${configdirs} " in
14542 *" binutils "*) ;;
14543 *) ok=no ;;
14544 esac
14546 if test $ok = yes; then
14547 # An in-tree tool is available and we can use it
14548 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14550 $as_echo "just compiled" >&6; }
14551 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14552 # We already found the complete path
14553 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14555 $as_echo "pre-installed in $ac_dir" >&6; }
14556 elif test "x$target" = "x$host"; then
14557 # We can use an host tool
14558 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14560 $as_echo "host tool" >&6; }
14561 else
14562 # We need a cross tool
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14564 $as_echo "pre-installed" >&6; }
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14569 $as_echo_n "checking where to find the target gcc... " >&6; }
14570 if test "x${build}" != "x${host}" ; then
14571 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14572 # We already found the complete path
14573 ac_dir=`dirname $GCC_FOR_TARGET`
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14575 $as_echo "pre-installed in $ac_dir" >&6; }
14576 else
14577 # Canadian cross, just use what we found
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579 $as_echo "pre-installed" >&6; }
14581 else
14582 ok=yes
14583 case " ${configdirs} " in
14584 *" gcc "*) ;;
14585 *) ok=no ;;
14586 esac
14588 if test $ok = yes; then
14589 # An in-tree tool is available and we can use it
14590 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14592 $as_echo "just compiled" >&6; }
14593 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14594 # We already found the complete path
14595 ac_dir=`dirname $GCC_FOR_TARGET`
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14597 $as_echo "pre-installed in $ac_dir" >&6; }
14598 elif test "x$target" = "x$host"; then
14599 # We can use an host tool
14600 GCC_FOR_TARGET='$()'
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14602 $as_echo "host tool" >&6; }
14603 else
14604 # We need a cross tool
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14606 $as_echo "pre-installed" >&6; }
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14611 $as_echo_n "checking where to find the target gfortran... " >&6; }
14612 if test "x${build}" != "x${host}" ; then
14613 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14614 # We already found the complete path
14615 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14617 $as_echo "pre-installed in $ac_dir" >&6; }
14618 else
14619 # Canadian cross, just use what we found
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621 $as_echo "pre-installed" >&6; }
14623 else
14624 ok=yes
14625 case " ${configdirs} " in
14626 *" gcc "*) ;;
14627 *) ok=no ;;
14628 esac
14629 case ,${enable_languages}, in
14630 *,fortran,*) ;;
14631 *) ok=no ;;
14632 esac
14633 if test $ok = yes; then
14634 # An in-tree tool is available and we can use it
14635 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14637 $as_echo "just compiled" >&6; }
14638 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14639 # We already found the complete path
14640 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14642 $as_echo "pre-installed in $ac_dir" >&6; }
14643 elif test "x$target" = "x$host"; then
14644 # We can use an host tool
14645 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14647 $as_echo "host tool" >&6; }
14648 else
14649 # We need a cross tool
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14651 $as_echo "pre-installed" >&6; }
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14656 $as_echo_n "checking where to find the target gccgo... " >&6; }
14657 if test "x${build}" != "x${host}" ; then
14658 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14659 # We already found the complete path
14660 ac_dir=`dirname $GOC_FOR_TARGET`
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14662 $as_echo "pre-installed in $ac_dir" >&6; }
14663 else
14664 # Canadian cross, just use what we found
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14666 $as_echo "pre-installed" >&6; }
14668 else
14669 ok=yes
14670 case " ${configdirs} " in
14671 *" gcc "*) ;;
14672 *) ok=no ;;
14673 esac
14674 case ,${enable_languages}, in
14675 *,go,*) ;;
14676 *) ok=no ;;
14677 esac
14678 if test $ok = yes; then
14679 # An in-tree tool is available and we can use it
14680 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14682 $as_echo "just compiled" >&6; }
14683 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14684 # We already found the complete path
14685 ac_dir=`dirname $GOC_FOR_TARGET`
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14687 $as_echo "pre-installed in $ac_dir" >&6; }
14688 elif test "x$target" = "x$host"; then
14689 # We can use an host tool
14690 GOC_FOR_TARGET='$(GOC)'
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14692 $as_echo "host tool" >&6; }
14693 else
14694 # We need a cross tool
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14696 $as_echo "pre-installed" >&6; }
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14701 $as_echo_n "checking where to find the target ld... " >&6; }
14702 if test "x${build}" != "x${host}" ; then
14703 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14704 # We already found the complete path
14705 ac_dir=`dirname $LD_FOR_TARGET`
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14707 $as_echo "pre-installed in $ac_dir" >&6; }
14708 else
14709 # Canadian cross, just use what we found
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14711 $as_echo "pre-installed" >&6; }
14713 else
14714 ok=yes
14715 case " ${configdirs} " in
14716 *" ld "*) ;;
14717 *) ok=no ;;
14718 esac
14720 if test $ok = yes; then
14721 # An in-tree tool is available and we can use it
14722 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14724 $as_echo "just compiled" >&6; }
14725 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14726 # We already found the complete path
14727 ac_dir=`dirname $LD_FOR_TARGET`
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14729 $as_echo "pre-installed in $ac_dir" >&6; }
14730 elif test "x$target" = "x$host"; then
14731 # We can use an host tool
14732 LD_FOR_TARGET='$(LD)'
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14734 $as_echo "host tool" >&6; }
14735 else
14736 # We need a cross tool
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14738 $as_echo "pre-installed" >&6; }
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14743 $as_echo_n "checking where to find the target lipo... " >&6; }
14744 if test "x${build}" != "x${host}" ; then
14745 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14746 # We already found the complete path
14747 ac_dir=`dirname $LIPO_FOR_TARGET`
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14749 $as_echo "pre-installed in $ac_dir" >&6; }
14750 else
14751 # Canadian cross, just use what we found
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14753 $as_echo "pre-installed" >&6; }
14755 else
14756 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14757 # We already found the complete path
14758 ac_dir=`dirname $LIPO_FOR_TARGET`
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14760 $as_echo "pre-installed in $ac_dir" >&6; }
14761 elif test "x$target" = "x$host"; then
14762 # We can use an host tool
14763 LIPO_FOR_TARGET='$(LIPO)'
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14765 $as_echo "host tool" >&6; }
14766 else
14767 # We need a cross tool
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14769 $as_echo "pre-installed" >&6; }
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14774 $as_echo_n "checking where to find the target nm... " >&6; }
14775 if test "x${build}" != "x${host}" ; then
14776 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14777 # We already found the complete path
14778 ac_dir=`dirname $NM_FOR_TARGET`
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14780 $as_echo "pre-installed in $ac_dir" >&6; }
14781 else
14782 # Canadian cross, just use what we found
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14784 $as_echo "pre-installed" >&6; }
14786 else
14787 ok=yes
14788 case " ${configdirs} " in
14789 *" binutils "*) ;;
14790 *) ok=no ;;
14791 esac
14793 if test $ok = yes; then
14794 # An in-tree tool is available and we can use it
14795 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14797 $as_echo "just compiled" >&6; }
14798 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14799 # We already found the complete path
14800 ac_dir=`dirname $NM_FOR_TARGET`
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14802 $as_echo "pre-installed in $ac_dir" >&6; }
14803 elif test "x$target" = "x$host"; then
14804 # We can use an host tool
14805 NM_FOR_TARGET='$(NM)'
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14807 $as_echo "host tool" >&6; }
14808 else
14809 # We need a cross tool
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14811 $as_echo "pre-installed" >&6; }
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14816 $as_echo_n "checking where to find the target objcopy... " >&6; }
14817 if test "x${build}" != "x${host}" ; then
14818 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14819 # We already found the complete path
14820 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14822 $as_echo "pre-installed in $ac_dir" >&6; }
14823 else
14824 # Canadian cross, just use what we found
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14826 $as_echo "pre-installed" >&6; }
14828 else
14829 ok=yes
14830 case " ${configdirs} " in
14831 *" binutils "*) ;;
14832 *) ok=no ;;
14833 esac
14835 if test $ok = yes; then
14836 # An in-tree tool is available and we can use it
14837 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14839 $as_echo "just compiled" >&6; }
14840 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14841 # We already found the complete path
14842 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14844 $as_echo "pre-installed in $ac_dir" >&6; }
14845 elif test "x$target" = "x$host"; then
14846 # We can use an host tool
14847 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14849 $as_echo "host tool" >&6; }
14850 else
14851 # We need a cross tool
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14853 $as_echo "pre-installed" >&6; }
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14858 $as_echo_n "checking where to find the target objdump... " >&6; }
14859 if test "x${build}" != "x${host}" ; then
14860 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14861 # We already found the complete path
14862 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14864 $as_echo "pre-installed in $ac_dir" >&6; }
14865 else
14866 # Canadian cross, just use what we found
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14868 $as_echo "pre-installed" >&6; }
14870 else
14871 ok=yes
14872 case " ${configdirs} " in
14873 *" binutils "*) ;;
14874 *) ok=no ;;
14875 esac
14877 if test $ok = yes; then
14878 # An in-tree tool is available and we can use it
14879 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14881 $as_echo "just compiled" >&6; }
14882 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14883 # We already found the complete path
14884 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14886 $as_echo "pre-installed in $ac_dir" >&6; }
14887 elif test "x$target" = "x$host"; then
14888 # We can use an host tool
14889 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14891 $as_echo "host tool" >&6; }
14892 else
14893 # We need a cross tool
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14895 $as_echo "pre-installed" >&6; }
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14900 $as_echo_n "checking where to find the target ranlib... " >&6; }
14901 if test "x${build}" != "x${host}" ; then
14902 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14903 # We already found the complete path
14904 ac_dir=`dirname $RANLIB_FOR_TARGET`
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14906 $as_echo "pre-installed in $ac_dir" >&6; }
14907 else
14908 # Canadian cross, just use what we found
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14910 $as_echo "pre-installed" >&6; }
14912 else
14913 ok=yes
14914 case " ${configdirs} " in
14915 *" binutils "*) ;;
14916 *) ok=no ;;
14917 esac
14919 if test $ok = yes; then
14920 # An in-tree tool is available and we can use it
14921 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14923 $as_echo "just compiled" >&6; }
14924 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14925 # We already found the complete path
14926 ac_dir=`dirname $RANLIB_FOR_TARGET`
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14928 $as_echo "pre-installed in $ac_dir" >&6; }
14929 elif test "x$target" = "x$host"; then
14930 # We can use an host tool
14931 RANLIB_FOR_TARGET='$(RANLIB)'
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14933 $as_echo "host tool" >&6; }
14934 else
14935 # We need a cross tool
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14937 $as_echo "pre-installed" >&6; }
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14942 $as_echo_n "checking where to find the target readelf... " >&6; }
14943 if test "x${build}" != "x${host}" ; then
14944 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14945 # We already found the complete path
14946 ac_dir=`dirname $READELF_FOR_TARGET`
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14948 $as_echo "pre-installed in $ac_dir" >&6; }
14949 else
14950 # Canadian cross, just use what we found
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14952 $as_echo "pre-installed" >&6; }
14954 else
14955 ok=yes
14956 case " ${configdirs} " in
14957 *" binutils "*) ;;
14958 *) ok=no ;;
14959 esac
14961 if test $ok = yes; then
14962 # An in-tree tool is available and we can use it
14963 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14965 $as_echo "just compiled" >&6; }
14966 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14967 # We already found the complete path
14968 ac_dir=`dirname $READELF_FOR_TARGET`
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14970 $as_echo "pre-installed in $ac_dir" >&6; }
14971 elif test "x$target" = "x$host"; then
14972 # We can use an host tool
14973 READELF_FOR_TARGET='$(READELF)'
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14975 $as_echo "host tool" >&6; }
14976 else
14977 # We need a cross tool
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14979 $as_echo "pre-installed" >&6; }
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14984 $as_echo_n "checking where to find the target strip... " >&6; }
14985 if test "x${build}" != "x${host}" ; then
14986 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14987 # We already found the complete path
14988 ac_dir=`dirname $STRIP_FOR_TARGET`
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14990 $as_echo "pre-installed in $ac_dir" >&6; }
14991 else
14992 # Canadian cross, just use what we found
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14994 $as_echo "pre-installed" >&6; }
14996 else
14997 ok=yes
14998 case " ${configdirs} " in
14999 *" binutils "*) ;;
15000 *) ok=no ;;
15001 esac
15003 if test $ok = yes; then
15004 # An in-tree tool is available and we can use it
15005 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15007 $as_echo "just compiled" >&6; }
15008 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15009 # We already found the complete path
15010 ac_dir=`dirname $STRIP_FOR_TARGET`
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15012 $as_echo "pre-installed in $ac_dir" >&6; }
15013 elif test "x$target" = "x$host"; then
15014 # We can use an host tool
15015 STRIP_FOR_TARGET='$(STRIP)'
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15017 $as_echo "host tool" >&6; }
15018 else
15019 # We need a cross tool
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15021 $as_echo "pre-installed" >&6; }
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15026 $as_echo_n "checking where to find the target windres... " >&6; }
15027 if test "x${build}" != "x${host}" ; then
15028 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15029 # We already found the complete path
15030 ac_dir=`dirname $WINDRES_FOR_TARGET`
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15032 $as_echo "pre-installed in $ac_dir" >&6; }
15033 else
15034 # Canadian cross, just use what we found
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15036 $as_echo "pre-installed" >&6; }
15038 else
15039 ok=yes
15040 case " ${configdirs} " in
15041 *" binutils "*) ;;
15042 *) ok=no ;;
15043 esac
15045 if test $ok = yes; then
15046 # An in-tree tool is available and we can use it
15047 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15049 $as_echo "just compiled" >&6; }
15050 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15051 # We already found the complete path
15052 ac_dir=`dirname $WINDRES_FOR_TARGET`
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15054 $as_echo "pre-installed in $ac_dir" >&6; }
15055 elif test "x$target" = "x$host"; then
15056 # We can use an host tool
15057 WINDRES_FOR_TARGET='$(WINDRES)'
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15059 $as_echo "host tool" >&6; }
15060 else
15061 # We need a cross tool
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15063 $as_echo "pre-installed" >&6; }
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15068 $as_echo_n "checking where to find the target windmc... " >&6; }
15069 if test "x${build}" != "x${host}" ; then
15070 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15071 # We already found the complete path
15072 ac_dir=`dirname $WINDMC_FOR_TARGET`
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15074 $as_echo "pre-installed in $ac_dir" >&6; }
15075 else
15076 # Canadian cross, just use what we found
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15078 $as_echo "pre-installed" >&6; }
15080 else
15081 ok=yes
15082 case " ${configdirs} " in
15083 *" binutils "*) ;;
15084 *) ok=no ;;
15085 esac
15087 if test $ok = yes; then
15088 # An in-tree tool is available and we can use it
15089 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15091 $as_echo "just compiled" >&6; }
15092 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15093 # We already found the complete path
15094 ac_dir=`dirname $WINDMC_FOR_TARGET`
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15096 $as_echo "pre-installed in $ac_dir" >&6; }
15097 elif test "x$target" = "x$host"; then
15098 # We can use an host tool
15099 WINDMC_FOR_TARGET='$(WINDMC)'
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15101 $as_echo "host tool" >&6; }
15102 else
15103 # We need a cross tool
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15105 $as_echo "pre-installed" >&6; }
15113 # Certain tools may need extra flags.
15114 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15115 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15116 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15118 # When building target libraries, except in a Canadian cross, we use
15119 # the same toolchain as the compiler we just built.
15120 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15121 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15122 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15123 if test $host = $build; then
15124 case " $configdirs " in
15125 *" gcc "*)
15126 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15127 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15128 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15130 esac
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15138 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15139 # Check whether --enable-maintainer-mode was given.
15140 if test "${enable_maintainer_mode+set}" = set; then :
15141 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15142 else
15143 USE_MAINTAINER_MODE=no
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15147 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15150 if test "$USE_MAINTAINER_MODE" = yes; then
15151 MAINTAINER_MODE_TRUE=
15152 MAINTAINER_MODE_FALSE='#'
15153 else
15154 MAINTAINER_MODE_TRUE='#'
15155 MAINTAINER_MODE_FALSE=
15157 MAINT=$MAINTAINER_MODE_TRUE
15159 # ---------------------
15160 # GCC bootstrap support
15161 # ---------------------
15163 # Stage specific cflags for build.
15164 stage1_cflags="-g"
15165 case $build in
15166 vax-*-*)
15167 case ${GCC} in
15168 yes) stage1_cflags="-g -Wa,-J" ;;
15169 *) stage1_cflags="-g -J" ;;
15170 esac ;;
15171 esac
15175 # Enable --enable-checking in stage1 of the compiler.
15176 # Check whether --enable-stage1-checking was given.
15177 if test "${enable_stage1_checking+set}" = set; then :
15178 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15179 else
15180 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15181 # For --disable-checking or implicit --enable-checking=release, avoid
15182 # setting --enable-checking=gc in the default stage1 checking for LTO
15183 # bootstraps. See PR62077.
15184 case $BUILD_CONFIG in
15185 *lto*)
15186 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15188 stage1_checking=--enable-checking=yes,types;;
15189 esac
15190 if test "x$enable_checking" = x && \
15191 test -d ${srcdir}/gcc && \
15192 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15193 stage1_checking=--enable-checking=yes,types,extra
15195 else
15196 stage1_checking=--enable-checking=$enable_checking,types
15202 # Enable -Werror in bootstrap stage2 and later.
15203 # Check whether --enable-werror was given.
15204 if test "${enable_werror+set}" = set; then :
15205 enableval=$enable_werror;
15206 case ${enable_werror} in
15207 yes) stage2_werror_flag="--enable-werror-always" ;;
15208 *) stage2_werror_flag="" ;;
15209 esac
15211 else
15213 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15214 case $BUILD_CONFIG in
15215 bootstrap-debug)
15216 stage2_werror_flag="--enable-werror-always" ;;
15218 stage2_werror_flag="--enable-werror-always" ;;
15219 esac
15227 # Specify what files to not compare during bootstrap.
15229 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15230 case "$target" in
15231 hppa*64*-*-hpux*) ;;
15232 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
15233 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15234 esac
15237 ac_config_files="$ac_config_files Makefile"
15239 cat >confcache <<\_ACEOF
15240 # This file is a shell script that caches the results of configure
15241 # tests run on this system so they can be shared between configure
15242 # scripts and configure runs, see configure's option --config-cache.
15243 # It is not useful on other systems. If it contains results you don't
15244 # want to keep, you may remove or edit it.
15246 # config.status only pays attention to the cache file if you give it
15247 # the --recheck option to rerun configure.
15249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15251 # following values.
15253 _ACEOF
15255 # The following way of writing the cache mishandles newlines in values,
15256 # but we know of no workaround that is simple, portable, and efficient.
15257 # So, we kill variables containing newlines.
15258 # Ultrix sh set writes to stderr and can't be redirected directly,
15259 # and sets the high bit in the cache file unless we assign to the vars.
15261 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15262 eval ac_val=\$$ac_var
15263 case $ac_val in #(
15264 *${as_nl}*)
15265 case $ac_var in #(
15266 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15267 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15268 esac
15269 case $ac_var in #(
15270 _ | IFS | as_nl) ;; #(
15271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15272 *) { eval $ac_var=; unset $ac_var;} ;;
15273 esac ;;
15274 esac
15275 done
15277 (set) 2>&1 |
15278 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15279 *${as_nl}ac_space=\ *)
15280 # `set' does not quote correctly, so add quotes: double-quote
15281 # substitution turns \\\\ into \\, and sed turns \\ into \.
15282 sed -n \
15283 "s/'/'\\\\''/g;
15284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15285 ;; #(
15287 # `set' quotes correctly as required by POSIX, so do not add quotes.
15288 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15290 esac |
15291 sort
15293 sed '
15294 /^ac_cv_env_/b end
15295 t clear
15296 :clear
15297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15298 t end
15299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15300 :end' >>confcache
15301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15302 if test -w "$cache_file"; then
15303 if test "x$cache_file" != "x/dev/null"; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15305 $as_echo "$as_me: updating cache $cache_file" >&6;}
15306 if test ! -f "$cache_file" || test -h "$cache_file"; then
15307 cat confcache >"$cache_file"
15308 else
15309 case $cache_file in #(
15310 */* | ?:*)
15311 mv -f confcache "$cache_file"$$ &&
15312 mv -f "$cache_file"$$ "$cache_file" ;; #(
15314 mv -f confcache "$cache_file" ;;
15315 esac
15318 else
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15320 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15323 rm -f confcache
15325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15326 # Let make expand exec_prefix.
15327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15329 # Transform confdefs.h into DEFS.
15330 # Protect against shell expansion while executing Makefile rules.
15331 # Protect against Makefile macro expansion.
15333 # If the first sed substitution is executed (which looks for macros that
15334 # take arguments), then branch to the quote section. Otherwise,
15335 # look for a macro that doesn't take arguments.
15336 ac_script='
15337 :mline
15338 /\\$/{
15340 s,\\\n,,
15341 b mline
15343 t clear
15344 :clear
15345 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15346 t quote
15347 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15348 t quote
15349 b any
15350 :quote
15351 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15352 s/\[/\\&/g
15353 s/\]/\\&/g
15354 s/\$/$$/g
15356 :any
15359 s/^\n//
15360 s/\n/ /g
15364 DEFS=`sed -n "$ac_script" confdefs.h`
15367 ac_libobjs=
15368 ac_ltlibobjs=
15370 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15371 # 1. Remove the extension, and $U if already installed.
15372 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15373 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15375 # will be set to the directory where LIBOBJS objects are built.
15376 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15377 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15378 done
15379 LIBOBJS=$ac_libobjs
15381 LTLIBOBJS=$ac_ltlibobjs
15385 : "${CONFIG_STATUS=./config.status}"
15386 ac_write_fail=0
15387 ac_clean_files_save=$ac_clean_files
15388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15390 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15391 as_write_fail=0
15392 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15393 #! $SHELL
15394 # Generated by $as_me.
15395 # Run this file to recreate the current configuration.
15396 # Compiler output produced by configure, useful for debugging
15397 # configure, is in config.log if it exists.
15399 debug=false
15400 ac_cs_recheck=false
15401 ac_cs_silent=false
15403 SHELL=\${CONFIG_SHELL-$SHELL}
15404 export SHELL
15405 _ASEOF
15406 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15407 ## -------------------- ##
15408 ## M4sh Initialization. ##
15409 ## -------------------- ##
15411 # Be more Bourne compatible
15412 DUALCASE=1; export DUALCASE # for MKS sh
15413 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15414 emulate sh
15415 NULLCMD=:
15416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15417 # is contrary to our usage. Disable this feature.
15418 alias -g '${1+"$@"}'='"$@"'
15419 setopt NO_GLOB_SUBST
15420 else
15421 case `(set -o) 2>/dev/null` in #(
15422 *posix*) :
15423 set -o posix ;; #(
15424 *) :
15426 esac
15430 as_nl='
15432 export as_nl
15433 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15434 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15435 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15437 # Prefer a ksh shell builtin over an external printf program on Solaris,
15438 # but without wasting forks for bash or zsh.
15439 if test -z "$BASH_VERSION$ZSH_VERSION" \
15440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15441 as_echo='print -r --'
15442 as_echo_n='print -rn --'
15443 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15444 as_echo='printf %s\n'
15445 as_echo_n='printf %s'
15446 else
15447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15448 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15449 as_echo_n='/usr/ucb/echo -n'
15450 else
15451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15452 as_echo_n_body='eval
15453 arg=$1;
15454 case $arg in #(
15455 *"$as_nl"*)
15456 expr "X$arg" : "X\\(.*\\)$as_nl";
15457 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15458 esac;
15459 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15461 export as_echo_n_body
15462 as_echo_n='sh -c $as_echo_n_body as_echo'
15464 export as_echo_body
15465 as_echo='sh -c $as_echo_body as_echo'
15468 # The user is always right.
15469 if test "${PATH_SEPARATOR+set}" != set; then
15470 PATH_SEPARATOR=:
15471 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15472 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15473 PATH_SEPARATOR=';'
15478 # IFS
15479 # We need space, tab and new line, in precisely that order. Quoting is
15480 # there to prevent editors from complaining about space-tab.
15481 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15482 # splitting by setting IFS to empty value.)
15483 IFS=" "" $as_nl"
15485 # Find who we are. Look in the path if we contain no directory separator.
15486 as_myself=
15487 case $0 in #((
15488 *[\\/]* ) as_myself=$0 ;;
15489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15490 for as_dir in $PATH
15492 IFS=$as_save_IFS
15493 test -z "$as_dir" && as_dir=.
15494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15495 done
15496 IFS=$as_save_IFS
15499 esac
15500 # We did not find ourselves, most probably we were run as `sh COMMAND'
15501 # in which case we are not to be found in the path.
15502 if test "x$as_myself" = x; then
15503 as_myself=$0
15505 if test ! -f "$as_myself"; then
15506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15507 exit 1
15510 # Unset variables that we do not need and which cause bugs (e.g. in
15511 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15512 # suppresses any "Segmentation fault" message there. '((' could
15513 # trigger a bug in pdksh 5.2.14.
15514 for as_var in BASH_ENV ENV MAIL MAILPATH
15515 do eval test x\${$as_var+set} = xset \
15516 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15517 done
15518 PS1='$ '
15519 PS2='> '
15520 PS4='+ '
15522 # NLS nuisances.
15523 LC_ALL=C
15524 export LC_ALL
15525 LANGUAGE=C
15526 export LANGUAGE
15528 # CDPATH.
15529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15532 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15533 # ----------------------------------------
15534 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15535 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15536 # script with STATUS, using 1 if that was 0.
15537 as_fn_error ()
15539 as_status=$1; test $as_status -eq 0 && as_status=1
15540 if test "$4"; then
15541 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15544 $as_echo "$as_me: error: $2" >&2
15545 as_fn_exit $as_status
15546 } # as_fn_error
15549 # as_fn_set_status STATUS
15550 # -----------------------
15551 # Set $? to STATUS, without forking.
15552 as_fn_set_status ()
15554 return $1
15555 } # as_fn_set_status
15557 # as_fn_exit STATUS
15558 # -----------------
15559 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15560 as_fn_exit ()
15562 set +e
15563 as_fn_set_status $1
15564 exit $1
15565 } # as_fn_exit
15567 # as_fn_unset VAR
15568 # ---------------
15569 # Portably unset VAR.
15570 as_fn_unset ()
15572 { eval $1=; unset $1;}
15574 as_unset=as_fn_unset
15575 # as_fn_append VAR VALUE
15576 # ----------------------
15577 # Append the text in VALUE to the end of the definition contained in VAR. Take
15578 # advantage of any shell optimizations that allow amortized linear growth over
15579 # repeated appends, instead of the typical quadratic growth present in naive
15580 # implementations.
15581 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15582 eval 'as_fn_append ()
15584 eval $1+=\$2
15586 else
15587 as_fn_append ()
15589 eval $1=\$$1\$2
15591 fi # as_fn_append
15593 # as_fn_arith ARG...
15594 # ------------------
15595 # Perform arithmetic evaluation on the ARGs, and store the result in the
15596 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15597 # must be portable across $(()) and expr.
15598 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15599 eval 'as_fn_arith ()
15601 as_val=$(( $* ))
15603 else
15604 as_fn_arith ()
15606 as_val=`expr "$@" || test $? -eq 1`
15608 fi # as_fn_arith
15611 if expr a : '\(a\)' >/dev/null 2>&1 &&
15612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15613 as_expr=expr
15614 else
15615 as_expr=false
15618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15619 as_basename=basename
15620 else
15621 as_basename=false
15624 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15625 as_dirname=dirname
15626 else
15627 as_dirname=false
15630 as_me=`$as_basename -- "$0" ||
15631 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15632 X"$0" : 'X\(//\)$' \| \
15633 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15634 $as_echo X/"$0" |
15635 sed '/^.*\/\([^/][^/]*\)\/*$/{
15636 s//\1/
15639 /^X\/\(\/\/\)$/{
15640 s//\1/
15643 /^X\/\(\/\).*/{
15644 s//\1/
15647 s/.*/./; q'`
15649 # Avoid depending upon Character Ranges.
15650 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15651 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15652 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15653 as_cr_digits='0123456789'
15654 as_cr_alnum=$as_cr_Letters$as_cr_digits
15656 ECHO_C= ECHO_N= ECHO_T=
15657 case `echo -n x` in #(((((
15658 -n*)
15659 case `echo 'xy\c'` in
15660 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15661 xy) ECHO_C='\c';;
15662 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15663 ECHO_T=' ';;
15664 esac;;
15666 ECHO_N='-n';;
15667 esac
15669 rm -f conf$$ conf$$.exe conf$$.file
15670 if test -d conf$$.dir; then
15671 rm -f conf$$.dir/conf$$.file
15672 else
15673 rm -f conf$$.dir
15674 mkdir conf$$.dir 2>/dev/null
15676 if (echo >conf$$.file) 2>/dev/null; then
15677 if ln -s conf$$.file conf$$ 2>/dev/null; then
15678 as_ln_s='ln -s'
15679 # ... but there are two gotchas:
15680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15682 # In both cases, we have to default to `cp -pR'.
15683 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15684 as_ln_s='cp -pR'
15685 elif ln conf$$.file conf$$ 2>/dev/null; then
15686 as_ln_s=ln
15687 else
15688 as_ln_s='cp -pR'
15690 else
15691 as_ln_s='cp -pR'
15693 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15694 rmdir conf$$.dir 2>/dev/null
15697 # as_fn_mkdir_p
15698 # -------------
15699 # Create "$as_dir" as a directory, including parents if necessary.
15700 as_fn_mkdir_p ()
15703 case $as_dir in #(
15704 -*) as_dir=./$as_dir;;
15705 esac
15706 test -d "$as_dir" || eval $as_mkdir_p || {
15707 as_dirs=
15708 while :; do
15709 case $as_dir in #(
15710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15711 *) as_qdir=$as_dir;;
15712 esac
15713 as_dirs="'$as_qdir' $as_dirs"
15714 as_dir=`$as_dirname -- "$as_dir" ||
15715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15716 X"$as_dir" : 'X\(//\)[^/]' \| \
15717 X"$as_dir" : 'X\(//\)$' \| \
15718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15719 $as_echo X"$as_dir" |
15720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15721 s//\1/
15724 /^X\(\/\/\)[^/].*/{
15725 s//\1/
15728 /^X\(\/\/\)$/{
15729 s//\1/
15732 /^X\(\/\).*/{
15733 s//\1/
15736 s/.*/./; q'`
15737 test -d "$as_dir" && break
15738 done
15739 test -z "$as_dirs" || eval "mkdir $as_dirs"
15740 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15743 } # as_fn_mkdir_p
15744 if mkdir -p . 2>/dev/null; then
15745 as_mkdir_p='mkdir -p "$as_dir"'
15746 else
15747 test -d ./-p && rmdir ./-p
15748 as_mkdir_p=false
15752 # as_fn_executable_p FILE
15753 # -----------------------
15754 # Test if FILE is an executable regular file.
15755 as_fn_executable_p ()
15757 test -f "$1" && test -x "$1"
15758 } # as_fn_executable_p
15759 as_test_x='test -x'
15760 as_executable_p=as_fn_executable_p
15762 # Sed expression to map a string onto a valid CPP name.
15763 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15765 # Sed expression to map a string onto a valid variable name.
15766 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15769 exec 6>&1
15770 ## ----------------------------------- ##
15771 ## Main body of $CONFIG_STATUS script. ##
15772 ## ----------------------------------- ##
15773 _ASEOF
15774 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15777 # Save the log message, to keep $0 and so on meaningful, and to
15778 # report actual input values of CONFIG_FILES etc. instead of their
15779 # values after options handling.
15780 ac_log="
15781 This file was extended by $as_me, which was
15782 generated by GNU Autoconf 2.69. Invocation command line was
15784 CONFIG_FILES = $CONFIG_FILES
15785 CONFIG_HEADERS = $CONFIG_HEADERS
15786 CONFIG_LINKS = $CONFIG_LINKS
15787 CONFIG_COMMANDS = $CONFIG_COMMANDS
15788 $ $0 $@
15790 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15793 _ACEOF
15795 case $ac_config_files in *"
15796 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15797 esac
15801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15802 # Files that config.status was made for.
15803 config_files="$ac_config_files"
15805 _ACEOF
15807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15808 ac_cs_usage="\
15809 \`$as_me' instantiates files and other configuration actions
15810 from templates according to the current configuration. Unless the files
15811 and actions are specified as TAGs, all are instantiated by default.
15813 Usage: $0 [OPTION]... [TAG]...
15815 -h, --help print this help, then exit
15816 -V, --version print version number and configuration settings, then exit
15817 --config print configuration, then exit
15818 -q, --quiet, --silent
15819 do not print progress messages
15820 -d, --debug don't remove temporary files
15821 --recheck update $as_me by reconfiguring in the same conditions
15822 --file=FILE[:TEMPLATE]
15823 instantiate the configuration file FILE
15825 Configuration files:
15826 $config_files
15828 Report bugs to the package provider."
15830 _ACEOF
15831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15832 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15833 ac_cs_version="\\
15834 config.status
15835 configured by $0, generated by GNU Autoconf 2.69,
15836 with options \\"\$ac_cs_config\\"
15838 Copyright (C) 2012 Free Software Foundation, Inc.
15839 This config.status script is free software; the Free Software Foundation
15840 gives unlimited permission to copy, distribute and modify it."
15842 ac_pwd='$ac_pwd'
15843 srcdir='$srcdir'
15844 INSTALL='$INSTALL'
15845 AWK='$AWK'
15846 test -n "\$AWK" || AWK=awk
15847 _ACEOF
15849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850 # The default lists apply if the user does not specify any file.
15851 ac_need_defaults=:
15852 while test $# != 0
15854 case $1 in
15855 --*=?*)
15856 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15858 ac_shift=:
15860 --*=)
15861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15862 ac_optarg=
15863 ac_shift=:
15866 ac_option=$1
15867 ac_optarg=$2
15868 ac_shift=shift
15870 esac
15872 case $ac_option in
15873 # Handling of the options.
15874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15875 ac_cs_recheck=: ;;
15876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15877 $as_echo "$ac_cs_version"; exit ;;
15878 --config | --confi | --conf | --con | --co | --c )
15879 $as_echo "$ac_cs_config"; exit ;;
15880 --debug | --debu | --deb | --de | --d | -d )
15881 debug=: ;;
15882 --file | --fil | --fi | --f )
15883 $ac_shift
15884 case $ac_optarg in
15885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15886 '') as_fn_error $? "missing file argument" ;;
15887 esac
15888 as_fn_append CONFIG_FILES " '$ac_optarg'"
15889 ac_need_defaults=false;;
15890 --he | --h | --help | --hel | -h )
15891 $as_echo "$ac_cs_usage"; exit ;;
15892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15893 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15894 ac_cs_silent=: ;;
15896 # This is an error.
15897 -*) as_fn_error $? "unrecognized option: \`$1'
15898 Try \`$0 --help' for more information." ;;
15900 *) as_fn_append ac_config_targets " $1"
15901 ac_need_defaults=false ;;
15903 esac
15904 shift
15905 done
15907 ac_configure_extra_args=
15909 if $ac_cs_silent; then
15910 exec 6>/dev/null
15911 ac_configure_extra_args="$ac_configure_extra_args --silent"
15914 _ACEOF
15915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15916 if \$ac_cs_recheck; then
15917 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15918 shift
15919 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15920 CONFIG_SHELL='$SHELL'
15921 export CONFIG_SHELL
15922 exec "\$@"
15925 _ACEOF
15926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15927 exec 5>>config.log
15929 echo
15930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15931 ## Running $as_me. ##
15932 _ASBOX
15933 $as_echo "$ac_log"
15934 } >&5
15936 _ACEOF
15937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15939 # INIT-COMMANDS
15941 extrasub_build="$extrasub_build"
15942 extrasub_host="$extrasub_host"
15943 extrasub_target="$extrasub_target"
15945 _ACEOF
15947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949 # Handling of arguments.
15950 for ac_config_target in $ac_config_targets
15952 case $ac_config_target in
15953 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15955 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15956 esac
15957 done
15960 # If the user did not use the arguments to specify the items to instantiate,
15961 # then the envvar interface is used. Set only those that are not.
15962 # We use the long form for the default assignment because of an extremely
15963 # bizarre bug on SunOS 4.1.3.
15964 if $ac_need_defaults; then
15965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15968 # Have a temporary directory for convenience. Make it in the build tree
15969 # simply because there is no reason against having it here, and in addition,
15970 # creating and moving files from /tmp can sometimes cause problems.
15971 # Hook for its removal unless debugging.
15972 # Note that there is a small window in which the directory will not be cleaned:
15973 # after its creation but before its name has been assigned to `$tmp'.
15974 $debug ||
15976 tmp= ac_tmp=
15977 trap 'exit_status=$?
15978 : "${ac_tmp:=$tmp}"
15979 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15981 trap 'as_fn_exit 1' 1 2 13 15
15983 # Create a (secure) tmp directory for tmp files.
15986 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15987 test -d "$tmp"
15988 } ||
15990 tmp=./conf$$-$RANDOM
15991 (umask 077 && mkdir "$tmp")
15992 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15993 ac_tmp=$tmp
15995 # Set up the scripts for CONFIG_FILES section.
15996 # No need to generate them if there are no CONFIG_FILES.
15997 # This happens for instance with `./config.status config.h'.
15998 if test -n "$CONFIG_FILES"; then
16000 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16001 ac_cs_awk_getline=:
16002 ac_cs_awk_pipe_init=
16003 ac_cs_awk_read_file='
16004 while ((getline aline < (F[key])) > 0)
16005 print(aline)
16006 close(F[key])'
16007 ac_cs_awk_pipe_fini=
16008 else
16009 ac_cs_awk_getline=false
16010 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16011 ac_cs_awk_read_file='
16012 print "|#_!!_#|"
16013 print "cat " F[key] " &&"
16014 '$ac_cs_awk_pipe_init
16015 # The final `:' finishes the AND list.
16016 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16018 ac_cr=`echo X | tr X '\015'`
16019 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16020 # But we know of no other shell where ac_cr would be empty at this
16021 # point, so we can use a bashism as a fallback.
16022 if test "x$ac_cr" = x; then
16023 eval ac_cr=\$\'\\r\'
16025 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16026 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16027 ac_cs_awk_cr='\\r'
16028 else
16029 ac_cs_awk_cr=$ac_cr
16032 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16033 _ACEOF
16035 # Create commands to substitute file output variables.
16037 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16038 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16039 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16040 echo "_ACAWK" &&
16041 echo "_ACEOF"
16042 } >conf$$files.sh &&
16043 . ./conf$$files.sh ||
16044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16045 rm -f conf$$files.sh
16048 echo "cat >conf$$subs.awk <<_ACEOF" &&
16049 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16050 echo "_ACEOF"
16051 } >conf$$subs.sh ||
16052 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16053 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16054 ac_delim='%!_!# '
16055 for ac_last_try in false false false false false :; do
16056 . ./conf$$subs.sh ||
16057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16060 if test $ac_delim_n = $ac_delim_num; then
16061 break
16062 elif $ac_last_try; then
16063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16064 else
16065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16067 done
16068 rm -f conf$$subs.sh
16070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16071 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16072 _ACEOF
16073 sed -n '
16075 s/^/S["/; s/!.*/"]=/
16078 s/^[^!]*!//
16079 :repl
16080 t repl
16081 s/'"$ac_delim"'$//
16082 t delim
16085 s/\(.\{148\}\)..*/\1/
16086 t more1
16087 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16090 b repl
16091 :more1
16092 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16095 s/.\{148\}//
16096 t nl
16097 :delim
16099 s/\(.\{148\}\)..*/\1/
16100 t more2
16101 s/["\\]/\\&/g; s/^/"/; s/$/"/
16104 :more2
16105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16108 s/.\{148\}//
16109 t delim
16110 ' <conf$$subs.awk | sed '
16111 /^[^""]/{
16113 s/\n//
16115 ' >>$CONFIG_STATUS || ac_write_fail=1
16116 rm -f conf$$subs.awk
16117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16118 _ACAWK
16119 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16120 for (key in S) S_is_set[key] = 1
16121 FS = "\a"
16122 \$ac_cs_awk_pipe_init
16125 line = $ 0
16126 nfields = split(line, field, "@")
16127 substed = 0
16128 len = length(field[1])
16129 for (i = 2; i < nfields; i++) {
16130 key = field[i]
16131 keylen = length(key)
16132 if (S_is_set[key]) {
16133 value = S[key]
16134 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16135 len += length(value) + length(field[++i])
16136 substed = 1
16137 } else
16138 len += 1 + keylen
16140 if (nfields == 3 && !substed) {
16141 key = field[2]
16142 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16143 \$ac_cs_awk_read_file
16144 next
16147 print line
16149 \$ac_cs_awk_pipe_fini
16150 _ACAWK
16151 _ACEOF
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16154 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16155 else
16157 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16158 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16159 _ACEOF
16161 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16162 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16163 # trailing colons and then remove the whole line if VPATH becomes empty
16164 # (actually we leave an empty line to preserve line numbers).
16165 if test "x$srcdir" = x.; then
16166 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16168 s///
16169 s/^/:/
16170 s/[ ]*$/:/
16171 s/:\$(srcdir):/:/g
16172 s/:\${srcdir}:/:/g
16173 s/:@srcdir@:/:/g
16174 s/^:*//
16175 s/:*$//
16177 s/\(=[ ]*\).*/\1/
16179 s/\n//
16180 s/^[^=]*=[ ]*$//
16184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185 fi # test -n "$CONFIG_FILES"
16188 eval set X " :F $CONFIG_FILES "
16189 shift
16190 for ac_tag
16192 case $ac_tag in
16193 :[FHLC]) ac_mode=$ac_tag; continue;;
16194 esac
16195 case $ac_mode$ac_tag in
16196 :[FHL]*:*);;
16197 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16198 :[FH]-) ac_tag=-:-;;
16199 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16200 esac
16201 ac_save_IFS=$IFS
16202 IFS=:
16203 set x $ac_tag
16204 IFS=$ac_save_IFS
16205 shift
16206 ac_file=$1
16207 shift
16209 case $ac_mode in
16210 :L) ac_source=$1;;
16211 :[FH])
16212 ac_file_inputs=
16213 for ac_f
16215 case $ac_f in
16216 -) ac_f="$ac_tmp/stdin";;
16217 *) # Look for the file first in the build tree, then in the source tree
16218 # (if the path is not absolute). The absolute path cannot be DOS-style,
16219 # because $ac_f cannot contain `:'.
16220 test -f "$ac_f" ||
16221 case $ac_f in
16222 [\\/$]*) false;;
16223 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16224 esac ||
16225 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16226 esac
16227 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16228 as_fn_append ac_file_inputs " '$ac_f'"
16229 done
16231 # Let's still pretend it is `configure' which instantiates (i.e., don't
16232 # use $as_me), people would be surprised to read:
16233 # /* config.h. Generated by config.status. */
16234 configure_input='Generated from '`
16235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16236 `' by configure.'
16237 if test x"$ac_file" != x-; then
16238 configure_input="$ac_file. $configure_input"
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16240 $as_echo "$as_me: creating $ac_file" >&6;}
16242 # Neutralize special characters interpreted by sed in replacement strings.
16243 case $configure_input in #(
16244 *\&* | *\|* | *\\* )
16245 ac_sed_conf_input=`$as_echo "$configure_input" |
16246 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16247 *) ac_sed_conf_input=$configure_input;;
16248 esac
16250 case $ac_tag in
16251 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16253 esac
16255 esac
16257 ac_dir=`$as_dirname -- "$ac_file" ||
16258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16259 X"$ac_file" : 'X\(//\)[^/]' \| \
16260 X"$ac_file" : 'X\(//\)$' \| \
16261 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16262 $as_echo X"$ac_file" |
16263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16264 s//\1/
16267 /^X\(\/\/\)[^/].*/{
16268 s//\1/
16271 /^X\(\/\/\)$/{
16272 s//\1/
16275 /^X\(\/\).*/{
16276 s//\1/
16279 s/.*/./; q'`
16280 as_dir="$ac_dir"; as_fn_mkdir_p
16281 ac_builddir=.
16283 case "$ac_dir" in
16284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16286 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16287 # A ".." for each directory in $ac_dir_suffix.
16288 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16289 case $ac_top_builddir_sub in
16290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16292 esac ;;
16293 esac
16294 ac_abs_top_builddir=$ac_pwd
16295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16296 # for backward compatibility:
16297 ac_top_builddir=$ac_top_build_prefix
16299 case $srcdir in
16300 .) # We are building in place.
16301 ac_srcdir=.
16302 ac_top_srcdir=$ac_top_builddir_sub
16303 ac_abs_top_srcdir=$ac_pwd ;;
16304 [\\/]* | ?:[\\/]* ) # Absolute name.
16305 ac_srcdir=$srcdir$ac_dir_suffix;
16306 ac_top_srcdir=$srcdir
16307 ac_abs_top_srcdir=$srcdir ;;
16308 *) # Relative name.
16309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16310 ac_top_srcdir=$ac_top_build_prefix$srcdir
16311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16312 esac
16313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16316 case $ac_mode in
16319 # CONFIG_FILE
16322 case $INSTALL in
16323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16324 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16325 esac
16326 _ACEOF
16328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16329 # If the template does not know about datarootdir, expand it.
16330 # FIXME: This hack should be removed a few years after 2.60.
16331 ac_datarootdir_hack=; ac_datarootdir_seen=
16332 ac_sed_dataroot='
16333 /datarootdir/ {
16337 /@datadir@/p
16338 /@docdir@/p
16339 /@infodir@/p
16340 /@localedir@/p
16341 /@mandir@/p'
16342 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16343 *datarootdir*) ac_datarootdir_seen=yes;;
16344 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16346 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16347 _ACEOF
16348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16349 ac_datarootdir_hack='
16350 s&@datadir@&$datadir&g
16351 s&@docdir@&$docdir&g
16352 s&@infodir@&$infodir&g
16353 s&@localedir@&$localedir&g
16354 s&@mandir@&$mandir&g
16355 s&\\\${datarootdir}&$datarootdir&g' ;;
16356 esac
16357 _ACEOF
16359 # Neutralize VPATH when `$srcdir' = `.'.
16360 # Shell code in configure.ac might set extrasub.
16361 # FIXME: do we really want to maintain this feature?
16362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16363 ac_sed_extra="$ac_vpsub
16364 $extrasub
16365 _ACEOF
16366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16369 s|@configure_input@|$ac_sed_conf_input|;t t
16370 s&@top_builddir@&$ac_top_builddir_sub&;t t
16371 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16372 s&@srcdir@&$ac_srcdir&;t t
16373 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16374 s&@top_srcdir@&$ac_top_srcdir&;t t
16375 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16376 s&@builddir@&$ac_builddir&;t t
16377 s&@abs_builddir@&$ac_abs_builddir&;t t
16378 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16379 s&@INSTALL@&$ac_INSTALL&;t t
16380 $ac_datarootdir_hack
16382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16383 if $ac_cs_awk_getline; then
16384 $AWK -f "$ac_tmp/subs.awk"
16385 else
16386 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16387 fi \
16388 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16390 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16391 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16393 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16395 which seems to be undefined. Please make sure it is defined" >&5
16396 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16397 which seems to be undefined. Please make sure it is defined" >&2;}
16399 rm -f "$ac_tmp/stdin"
16400 case $ac_file in
16401 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16402 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16403 esac \
16404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16409 esac
16412 case $ac_file$ac_mode in
16413 "Makefile":F) sed "$extrasub_build" Makefile |
16414 sed "$extrasub_host" |
16415 sed "$extrasub_target" > mf$$
16416 mv -f mf$$ Makefile ;;
16418 esac
16419 done # for ac_tag
16422 as_fn_exit 0
16423 _ACEOF
16424 ac_clean_files=$ac_clean_files_save
16426 test $ac_write_fail = 0 ||
16427 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16430 # configure is writing to config.log, and then calls config.status.
16431 # config.status does its own redirection, appending to config.log.
16432 # Unfortunately, on DOS this fails, as config.log is still kept open
16433 # by configure, so config.status won't be able to write to it; its
16434 # output is simply discarded. So we exec the FD to /dev/null,
16435 # effectively closing config.log, so it can be properly (re)opened and
16436 # appended to by config.status. When coming back to configure, we
16437 # need to make the FD available again.
16438 if test "$no_create" != yes; then
16439 ac_cs_success=:
16440 ac_config_status_args=
16441 test "$silent" = yes &&
16442 ac_config_status_args="$ac_config_status_args --quiet"
16443 exec 5>/dev/null
16444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16445 exec 5>>config.log
16446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16447 # would make configure fail if this is the last instruction.
16448 $ac_cs_success || as_fn_exit 1
16450 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16452 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}