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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || 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 :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
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 :
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
238 if test "x$CONFIG_SHELL" != x
; then :
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.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
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."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
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 :
398 as_val
=`expr "$@" || test $? -eq 1`
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.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
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
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 ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
543 test -d .
/-p && rmdir .
/-p
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
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`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="move-if-change"
586 enable_option_checking
=no
587 ac_subst_vars
='LTLIBOBJS
590 MAINTAINER_MODE_FALSE
592 COMPILER_NM_FOR_TARGET
593 COMPILER_LD_FOR_TARGET
594 COMPILER_AS_FOR_TARGET
674 build_install_headers_dir
714 extra_linker_plugin_flags
715 extra_linker_plugin_configure_flags
717 extra_isl_gmp_configure_flags
718 extra_mpc_mpfr_configure_flags
719 extra_mpc_gmp_configure_flags
720 extra_mpfr_configure_flags
742 extra_liboffloadmic_configure_flags
771 TOPLEVEL_CONFIGURE_ARGUMENTS
799 program_transform_name
810 ac_subst_files
='serialization_dependencies
816 enable_option_checking
818 enable_as_accelerator_for
819 enable_offload_targets
820 enable_offload_defaulted
823 enable_compressed_debug_sections
825 enable_libquadmath_support
839 with_static_standard_libraries
846 enable_isl_version_check
848 enable_linker_plugin_configure_flags
849 enable_linker_plugin_flags
851 enable_stage1_languages
854 enable_serial_configure
855 with_build_time_tools
856 with_gcc_major_version_only
857 enable_maintainer_mode
859 ac_precious_vars
='build_alias
911 # Initialize some variables set by options.
913 ac_init_version
=false
914 ac_unrecognized_opts
=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
925 program_transform_name
=s
,x
,x
,
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir
='${exec_prefix}/bin'
940 sbindir
='${exec_prefix}/sbin'
941 libexecdir
='${exec_prefix}/libexec'
942 datarootdir
='${prefix}/share'
943 datadir
='${datarootdir}'
944 sysconfdir
='${prefix}/etc'
945 sharedstatedir
='${prefix}/com'
946 localstatedir
='${prefix}/var'
947 includedir
='${prefix}/include'
948 oldincludedir
='/usr/include'
949 docdir
='${datarootdir}/doc/${PACKAGE}'
950 infodir
='${datarootdir}/info'
955 libdir
='${exec_prefix}/lib'
956 localedir
='${datarootdir}/locale'
957 mandir
='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\
$ac_option
971 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
982 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
984 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
987 -build |
--build |
--buil |
--bui |
--bu)
988 ac_prev
=build_alias
;;
989 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
990 build_alias
=$ac_optarg ;;
992 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
993 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
994 ac_prev
=cache_file
;;
995 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
996 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
997 cache_file
=$ac_optarg ;;
1000 cache_file
=config.cache
;;
1002 -datadir |
--datadir |
--datadi |
--datad)
1004 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1005 datadir
=$ac_optarg ;;
1007 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1008 |
--dataroo |
--dataro |
--datar)
1009 ac_prev
=datarootdir
;;
1010 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1011 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1012 datarootdir
=$ac_optarg ;;
1014 -disable-* |
--disable-*)
1015 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1018 as_fn_error $?
"invalid feature name: $ac_useropt"
1019 ac_useropt_orig
=$ac_useropt
1020 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_
$ac_useropt"
1025 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep
=', ';;
1028 eval enable_
$ac_useropt=no
;;
1030 -docdir |
--docdir |
--docdi |
--doc |
--do)
1032 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1033 docdir
=$ac_optarg ;;
1035 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1037 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1038 dvidir
=$ac_optarg ;;
1040 -enable-* |
--enable-*)
1041 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1044 as_fn_error $?
"invalid feature name: $ac_useropt"
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_
$ac_useropt"
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval enable_
$ac_useropt=\
$ac_optarg ;;
1056 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1057 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1058 |
--exec |
--exe |
--ex)
1059 ac_prev
=exec_prefix
;;
1060 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1061 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1062 |
--exec=* |
--exe=* |
--ex=*)
1063 exec_prefix
=$ac_optarg ;;
1065 -gas |
--gas |
--ga |
--g)
1066 # Obsolete; use --with-gas.
1069 -help |
--help |
--hel |
--he |
-h)
1070 ac_init_help
=long
;;
1071 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1072 ac_init_help
=recursive
;;
1073 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1074 ac_init_help
=short
;;
1076 -host |
--host |
--hos |
--ho)
1077 ac_prev
=host_alias
;;
1078 -host=* |
--host=* |
--hos=* |
--ho=*)
1079 host_alias
=$ac_optarg ;;
1081 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1083 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1085 htmldir
=$ac_optarg ;;
1087 -includedir |
--includedir |
--includedi |
--included |
--include \
1088 |
--includ |
--inclu |
--incl |
--inc)
1089 ac_prev
=includedir
;;
1090 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1091 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1092 includedir
=$ac_optarg ;;
1094 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1096 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1097 infodir
=$ac_optarg ;;
1099 -libdir |
--libdir |
--libdi |
--libd)
1101 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1102 libdir
=$ac_optarg ;;
1104 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1105 |
--libexe |
--libex |
--libe)
1106 ac_prev
=libexecdir
;;
1107 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1108 |
--libexe=* |
--libex=* |
--libe=*)
1109 libexecdir
=$ac_optarg ;;
1111 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1112 ac_prev
=localedir
;;
1113 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1114 localedir
=$ac_optarg ;;
1116 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1117 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1118 ac_prev
=localstatedir
;;
1119 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1120 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1121 localstatedir
=$ac_optarg ;;
1123 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1125 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1126 mandir
=$ac_optarg ;;
1128 -nfp |
--nfp |
--nf)
1129 # Obsolete; use --without-fp.
1132 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1133 |
--no-cr |
--no-c |
-n)
1136 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1137 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1140 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1141 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1142 |
--oldin |
--oldi |
--old |
--ol |
--o)
1143 ac_prev
=oldincludedir
;;
1144 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1145 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1146 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1147 oldincludedir
=$ac_optarg ;;
1149 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1151 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1152 prefix
=$ac_optarg ;;
1154 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1155 |
--program-pre |
--program-pr |
--program-p)
1156 ac_prev
=program_prefix
;;
1157 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1158 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1159 program_prefix
=$ac_optarg ;;
1161 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1162 |
--program-suf |
--program-su |
--program-s)
1163 ac_prev
=program_suffix
;;
1164 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1165 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1166 program_suffix
=$ac_optarg ;;
1168 -program-transform-name |
--program-transform-name \
1169 |
--program-transform-nam |
--program-transform-na \
1170 |
--program-transform-n |
--program-transform- \
1171 |
--program-transform |
--program-transfor \
1172 |
--program-transfo |
--program-transf \
1173 |
--program-trans |
--program-tran \
1174 |
--progr-tra |
--program-tr |
--program-t)
1175 ac_prev
=program_transform_name
;;
1176 -program-transform-name=* |
--program-transform-name=* \
1177 |
--program-transform-nam=* |
--program-transform-na=* \
1178 |
--program-transform-n=* |
--program-transform-=* \
1179 |
--program-transform=* |
--program-transfor=* \
1180 |
--program-transfo=* |
--program-transf=* \
1181 |
--program-trans=* |
--program-tran=* \
1182 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1183 program_transform_name
=$ac_optarg ;;
1185 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1187 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1188 pdfdir
=$ac_optarg ;;
1190 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1192 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1195 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1196 |
-silent |
--silent |
--silen |
--sile |
--sil)
1199 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1201 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1203 sbindir
=$ac_optarg ;;
1205 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1206 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1207 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1209 ac_prev
=sharedstatedir
;;
1210 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1211 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1212 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1214 sharedstatedir
=$ac_optarg ;;
1216 -site |
--site |
--sit)
1218 -site=* |
--site=* |
--sit=*)
1221 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1223 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1224 srcdir
=$ac_optarg ;;
1226 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1227 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1228 ac_prev
=sysconfdir
;;
1229 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1230 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1231 sysconfdir
=$ac_optarg ;;
1233 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1234 ac_prev
=target_alias
;;
1235 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1236 target_alias
=$ac_optarg ;;
1238 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1241 -version |
--version |
--versio |
--versi |
--vers |
-V)
1242 ac_init_version
=: ;;
1245 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1248 as_fn_error $?
"invalid package name: $ac_useropt"
1249 ac_useropt_orig
=$ac_useropt
1250 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep
=', ';;
1258 eval with_
$ac_useropt=\
$ac_optarg ;;
1260 -without-* |
--without-*)
1261 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1264 as_fn_error $?
"invalid package name: $ac_useropt"
1265 ac_useropt_orig
=$ac_useropt
1266 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1271 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep
=', ';;
1274 eval with_
$ac_useropt=no
;;
1277 # Obsolete; use --with-x.
1280 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1281 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1282 ac_prev
=x_includes
;;
1283 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1284 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1285 x_includes
=$ac_optarg ;;
1287 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1288 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1289 ac_prev
=x_libraries
;;
1290 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1291 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1292 x_libraries
=$ac_optarg ;;
1294 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1295 Try \`$0 --help' for more information"
1299 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 case $ac_envvar in #(
1302 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1303 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1305 eval $ac_envvar=\
$ac_optarg
1306 export $ac_envvar ;;
1309 # FIXME: should be removed in autoconf 3.0.
1310 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1312 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319 if test -n "$ac_prev"; then
1320 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1321 as_fn_error $?
"missing argument to $ac_option"
1324 if test -n "$ac_unrecognized_opts"; then
1325 case $enable_option_checking in
1327 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1328 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 # Check all directory arguments for consistency.
1333 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
1338 eval ac_val
=\$
$ac_var
1339 # Remove trailing slashes.
1342 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\
$ac_val;;
1345 # Be sure to have absolute directory names.
1347 [\\/$
]* | ?
:[\\/]* ) continue;;
1348 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1350 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1358 target
=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x
; then
1362 if test "x$build_alias" = x
; then
1363 cross_compiling
=maybe
1364 elif test "x$build_alias" != "x$host_alias"; then
1370 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1372 test "$silent" = yes && exec 6>/dev
/null
1375 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di
=`ls -di .` &&
1377 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1378 as_fn_error $?
"working directory cannot be determined"
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 as_fn_error $?
"pwd does not report name of working directory"
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted
=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir
=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 $as_echo X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1415 ac_srcdir_defaulted
=no
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1419 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1421 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1433 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 as_fn_error $?
"path to source, $srcdir, contains spaces"
1440 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1442 for ac_var
in $ac_precious_vars; do
1443 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1445 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1456 \`configure' configures this package to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking ...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1519 --build=BUILD configure
for building on BUILD
[guessed
]
1520 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1521 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1525 if test -n "$ac_init_help"; then
1530 --disable-option-checking ignore unrecognized
--enable/--with options
1531 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1532 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1533 --enable-as-accelerator-for=ARG
1534 build as offload target compiler. Specify offload
1536 --enable-offload-targets=LIST
1537 enable offloading to devices from comma-separated
1538 LIST of TARGET
[=DIR
]. Use optional path to
find
1539 offload target compiler during the build
1540 --enable-offload-defaulted
1541 If enabled
, configured but not installed offload compilers and
1542 libgomp plugins are silently ignored. Useful
for distribution
1543 compilers where those are
in separate optional packages.
1545 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1546 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1547 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1548 Enable compressed debug sections
for gas
, gold or ld
1550 --disable-libquadmath do not build libquadmath directory
1551 --disable-libquadmath-support
1552 disable libquadmath support
for Fortran
1553 --enable-libada build libada directory
1554 --enable-libssp build libssp directory
1555 --disable-libstdcxx do not build libstdc
++-v3 directory
1556 --enable-liboffloadmic=ARG
1557 build liboffloadmic
[ARG
={no
,host,target
}]
1558 --enable-bootstrap enable bootstrapping
[yes if native build
]
1559 --enable-pgo-build[=lto
]
1560 enable the PGO build
1561 --disable-isl-version-check
1562 disable check
for isl version
1563 --enable-lto enable link
time optimization support
1564 --enable-linker-plugin-configure-flags=FLAGS
1565 additional flags
for configuring linker plugins
1567 --enable-linker-plugin-flags=FLAGS
1568 additional flags
for configuring and building linker
1570 --enable-host-shared build
host code as shared libraries
1571 --enable-stage1-languages[=all
]
1572 choose additional languages to build during stage1.
1573 Mostly useful
for compiler development
1574 --enable-vtable-verify Enable vtable verification feature
1575 --enable-serial-[{host,target
,build
}-]configure
1576 force sequential configuration of sub-packages
for
1577 the
host, target or build machine
, or all
1579 --enable-maintainer-mode
1580 enable make rules and dependencies not useful
(and
1581 sometimes confusing
) to the casual installer
1584 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1585 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1586 --with-system-zlib use installed libz
1587 --with-mpc=PATH specify prefix directory
for installed MPC package.
1588 Equivalent to
--with-mpc-include=PATH
/include plus
1589 --with-mpc-lib=PATH
/lib
1590 --with-mpc-include=PATH specify directory
for installed MPC include files
1591 --with-mpc-lib=PATH specify directory
for the installed MPC library
1592 --with-mpfr=PATH specify prefix directory
for installed MPFR package.
1593 Equivalent to
--with-mpfr-include=PATH
/include plus
1594 --with-mpfr-lib=PATH
/lib
1595 --with-mpfr-include=PATH
1596 specify directory
for installed MPFR include files
1597 --with-mpfr-lib=PATH specify directory
for the installed MPFR library
1598 --with-stage1-libs=LIBS libraries
for stage1
1599 --with-static-standard-libraries
1600 use
-static-libstdc++ and
-static-libgcc
1602 --with-stage1-ldflags=FLAGS
1603 linker flags
for stage1
1604 --with-boot-libs=LIBS libraries
for stage2 and later
1605 --with-boot-ldflags=FLAGS
1606 linker flags
for stage2 and later
1607 --with-isl=PATH Specify prefix directory
for the installed isl
1608 package. Equivalent to
1609 --with-isl-include=PATH
/include plus
1610 --with-isl-lib=PATH
/lib
1611 --with-isl-include=PATH Specify directory
for installed isl include files
1612 --with-isl-lib=PATH Specify the directory
for the installed isl library
1613 --with-build-config='NAME NAME2...'
1614 use config
/NAME.mk build configuration
1615 --with-build-time-tools=PATH
1616 use given path to
find target tools during the build
1617 --with-gcc-major-version-only
1618 use only GCC major number
in filesystem paths
1620 Some influential environment variables
:
1621 CC C compiler
command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1624 nonstandard directory
<lib dir
>
1625 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1626 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1627 you have headers
in a nonstandard directory
<include dir
>
1628 CXX C
++ compiler
command
1629 CXXFLAGS C
++ compiler flags
1631 additional configure arguments
for build directories
1633 additional configure arguments
for host directories
1635 additional configure arguments
for target directories
1638 DLLTOOL DLLTOOL
for the
host
1639 DSYMUTIL DSYMUTIL
for the
host
1641 LIPO LIPO
for the
host
1643 RANLIB RANLIB
for the
host
1644 STRIP STRIP
for the
host
1645 WINDRES WINDRES
for the
host
1646 WINDMC WINDMC
for the
host
1647 OBJCOPY OBJCOPY
for the
host
1648 OBJDUMP OBJDUMP
for the
host
1649 OTOOL OTOOL
for the
host
1650 READELF READELF
for the
host
1658 GFORTRAN
for the target
1668 DLLTOOL
for the target
1670 DSYMUTIL
for the target
1678 OBJCOPY
for the target
1680 OBJDUMP
for the target
1682 OTOOL
for the target
1684 RANLIB
for the target
1686 READELF
for the target
1688 STRIP
for the target
1690 WINDRES
for the target
1692 WINDMC
for the target
1694 Use these variables to override the choices made by
`configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1727 .) # We are building in place.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1761 generated by GNU Autoconf 2.69
1763 Copyright (C) 2012 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1790 if test -s conftest.err
; then
1791 grep -v '^ *+' conftest.err
>conftest.er1
1792 cat conftest.er1
>&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.
$ac_objext; then :
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.
$ac_ext >&5
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status
$ac_retval
1810 } # ac_fn_c_try_compile
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 rm -f conftest.
$ac_objext
1819 if { { ac_try
="$ac_compile"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_cxx_try_link LINENO
1851 # -------------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_cxx_try_link ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext conftest$ac_exeext
1857 if { { ac_try="$ac_link"
1859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1860 *) ac_try_echo
=$ac_try;;
1862 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>conftest.err
1866 if test -s conftest.err
; then
1867 grep -v '^ *+' conftest.err
>conftest.er1
1868 cat conftest.er1
>&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest
$ac_exeext && {
1876 test "$cross_compiling" = yes ||
1877 test -x conftest
$ac_exeext
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.
$ac_ext >&5
1886 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888 # interfere with the next link command; also delete a directory that is
1889 # left behind by Apple's compiler. We do this before executing the actions.
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status
$ac_retval
1894 } # ac_fn_cxx_try_link
1896 # ac_fn_c_try_link LINENO
1897 # -----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded.
1901 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1902 rm -f conftest.
$ac_objext conftest
$ac_exeext
1903 if { { ac_try
="$ac_link"
1905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 test -x conftest$ac_exeext
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1940 } # ac_fn_c_try_link
1941 cat >config.log <<_ACEOF
1942 This file contains any messages produced by compilers while
1943 running configure, to aid debugging if configure makes a mistake.
1945 It was created by $as_me, which was
1946 generated by GNU Autoconf 2.69. Invocation command line was
1958 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1959 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1960 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1961 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1962 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1964 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1965 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1967 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1968 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1969 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1970 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1971 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1972 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1973 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 $as_echo "PATH: $as_dir"
1998 # Keep a trace of the command line.
1999 # Strip out --no-create and --no-recursion so they do not pile up.
2000 # Strip out --silent because we don't want to record it for future runs.
2001 # Also quote any args containing shell meta-characters.
2002 # Make two passes to allow for proper duplicate-argument suppression.
2006 ac_must_keep_next=false
2012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2014 | -silent | --silent | --silen | --sile | --sil)
2017 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2020 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2022 as_fn_append ac_configure_args1 " '$ac_arg'"
2023 if test $ac_must_keep_next = true; then
2024 ac_must_keep_next=false # Got value, back to normal.
2027 *=* | --config-cache | -C | -disable-* | --disable-* \
2028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2030 | -with-* | --with-* | -without-* | --without-* | --x)
2031 case "$ac_configure_args0 " in
2032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2035 -* ) ac_must_keep_next=true ;;
2038 as_fn_append ac_configure_args " '$ac_arg'"
2043 { ac_configure_args0=; unset ac_configure_args0;}
2044 { ac_configure_args1=; unset ac_configure_args1;}
2046 # When interrupted or exit'd, cleanup temporary files, and complete
2047 # config.log. We remove comments because anyway the quotes in there
2048 # would cause problems or look ugly.
2049 # WARNING: Use '\'' to represent an apostrophe within the trap.
2050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2051 trap 'exit_status=$?
2052 # Save into config.log some information that might help in debugging.
2056 $as_echo "## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##"
2060 # The following way of writing the cache mishandles newlines in values,
2062 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2063 eval ac_val=\$$ac_var
2067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2071 _ | IFS | as_nl) ;; #(
2072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073 *) { eval $ac_var=; unset $ac_var;} ;;
2078 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2079 *${as_nl}ac_space=\ *)
2081 "s/'\''/'\''\\\\'\'''\''/g;
2082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2092 $as_echo "## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##"
2096 for ac_var in $ac_subst_vars
2098 eval ac_val=\$$ac_var
2100 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102 $as_echo "$ac_var='\''$ac_val'\''"
2106 if test -n "$ac_subst_files"; then
2107 $as_echo "## ------------------- ##
2108 ## File substitutions. ##
2109 ## ------------------- ##"
2111 for ac_var in $ac_subst_files
2113 eval ac_val=\$$ac_var
2115 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117 $as_echo "$ac_var='\''$ac_val'\''"
2122 if test -s confdefs.h; then
2123 $as_echo "## ----------- ##
2130 test "$ac_signal" != 0 &&
2131 $as_echo "$as_me: caught signal $ac_signal"
2132 $as_echo "$as_me: exit $exit_status"
2134 rm -f core *.core core.conftest.* &&
2135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2138 for ac_signal in 1 2 13 15; do
2139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2146 $as_echo "/* confdefs.h */" > confdefs.h
2148 # Predefined preprocessor variables.
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_NAME "$PACKAGE_NAME"
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_STRING "$PACKAGE_STRING"
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_URL "$PACKAGE_URL"
2175 # Let the site file select an alternate cache file if it wants to.
2176 # Prefer an explicitly selected file to automatically selected ones.
2179 if test -n "$CONFIG_SITE"; then
2180 # We do not want a PATH search for config.site.
2181 case $CONFIG_SITE in #((
2182 -*) ac_site_file1=./$CONFIG_SITE;;
2183 */*) ac_site_file1=$CONFIG_SITE;;
2184 *) ac_site_file1=./$CONFIG_SITE;;
2186 elif test "x$prefix" != xNONE; then
2187 ac_site_file1=$prefix/share/config.site
2188 ac_site_file2=$prefix/etc/config.site
2190 ac_site_file1=$ac_default_prefix/share/config.site
2191 ac_site_file2=$ac_default_prefix/etc/config.site
2193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2195 test "x$ac_site_file" = xNONE && continue
2196 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199 sed 's/^/| /' "$ac_site_file" >&5
2201 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "failed to load site
script $ac_site_file
2204 See \
`config.log' for more details" "$LINENO" 5; }
2208 if test -r "$cache_file"; then
2209 # Some versions of bash will fail to source /dev/null (special files
2210 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 $as_echo "$as_me: loading cache $cache_file" >&6;}
2215 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216 *) . "./$cache_file";;
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 $as_echo "$as_me: creating cache $cache_file" >&6;}
2225 # Check that the precious variables saved in the cache have kept the same
2227 ac_cache_corrupted=false
2228 for ac_var in $ac_precious_vars; do
2229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230 eval ac_new_set=\$ac_env_${ac_var}_set
2231 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232 eval ac_new_val=\$ac_env_${ac_var}_value
2233 case $ac_old_set,$ac_new_set in
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2236 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2240 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2244 if test "x$ac_old_val" != "x$ac_new_val"; then
2245 # differences in whitespace do not lead to failure.
2246 ac_old_val_w=`echo x
$ac_old_val`
2247 ac_new_val_w=`echo x
$ac_new_val`
2248 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2251 ac_cache_corrupted=:
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2254 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255 eval $ac_var=\$ac_old_val
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2258 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2260 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2263 # Pass precious variables to config.status.
2264 if test "$ac_new_set" = set; then
2266 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2267 *) ac_arg=$ac_var=$ac_new_val ;;
2269 case " $ac_configure_args " in
2270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2271 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275 if $ac_cache_corrupted; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2282 ## -------------------- ##
2283 ## Main body of script. ##
2284 ## -------------------- ##
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300 # if PWD already has a value, it is probably wrong.
2301 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2303 # Export original configure arguments for use by sub-configures.
2304 # Quote arguments with shell meta charatcers.
2305 TOPLEVEL_CONFIGURE_ARGUMENTS=
2306 set -- "$progname" "$@"
2310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2311 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
2312 # if the argument is of the form -foo=baz, quote the baz part only
2313 ac_arg=`echo "'$ac_arg'" |
sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2316 # Add the quoted argument to the list.
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2319 if test "$silent" = yes; then
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2322 # Remove the initial space we just introduced and, as these will be
2323 # expanded by make, quote '$'.
2324 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" |
sed -e 's/^x *//' -e 's,\\$,$$,g'`
2327 # Find the build, host, and target systems.
2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2334 elif test -f "$ac_dir/install.sh"; then
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2338 elif test -f "$ac_dir/shtool"; then
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2344 if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2357 # Make sure we can run config.sub.
2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362 $as_echo_n "checking build system type... " >&6; }
2363 if ${ac_cv_build+:} false; then :
2364 $as_echo_n "(cached) " >&6
2366 ac_build_alias=$build_alias
2367 test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369 test "x$ac_build_alias" = x &&
2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376 $as_echo "$ac_cv_build" >&6; }
2377 case $ac_cv_build in
2379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2382 ac_save_IFS=$IFS; IFS='-'
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2392 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2395 case ${build_alias} in
2396 "") build_noncanonical=${build} ;;
2397 *) build_noncanonical=${build_alias} ;;
2402 case ${host_alias} in
2403 "") host_noncanonical=${build_noncanonical} ;;
2404 *) host_noncanonical=${host_alias} ;;
2409 case ${target_alias} in
2410 "") target_noncanonical=${host_noncanonical} ;;
2411 *) target_noncanonical=${target_alias} ;;
2426 # By default, C and C++ are the only stage 1 languages.
2427 stage1_languages=,c,
2429 test "$host_noncanonical" = "$target_noncanonical" &&
2430 test "$program_prefix$program_suffix$program_transform_name" = \
2432 program_transform_name=s,y,y,
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2435 $as_echo_n "checking host system type... " >&6; }
2436 if ${ac_cv_host+:} false; then :
2437 $as_echo_n "(cached) " >&6
2439 if test "x$host_alias" = x; then
2440 ac_cv_host=$ac_cv_build
2442 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2448 $as_echo "$ac_cv_host" >&6; }
2451 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2454 ac_save_IFS=$IFS; IFS='-'
2460 # Remember, the first character of IFS is used to create $*,
2461 # except with old shells:
2464 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2468 $as_echo_n "checking target system type... " >&6; }
2469 if ${ac_cv_target+:} false; then :
2470 $as_echo_n "(cached) " >&6
2472 if test "x$target_alias" = x; then
2473 ac_cv_target=$ac_cv_host
2475 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2481 $as_echo "$ac_cv_target" >&6; }
2482 case $ac_cv_target in
2484 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2486 target=$ac_cv_target
2487 ac_save_IFS=$IFS; IFS='-'
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2497 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2500 # The aliases save the names the user supplied, while $host etc.
2501 # will get canonicalized.
2502 test -n "$target_alias" &&
2503 test "$program_prefix$program_suffix$program_transform_name" = \
2505 program_prefix=${target_alias}-
2507 test "$program_prefix" != NONE &&
2508 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2509 # Use a double $ so make ignores it.
2510 test "$program_suffix" != NONE &&
2511 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2512 # Double any \ or $.
2513 # By default was `s
,x
,x
', remove it if useless.
2514 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2515 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2519 # Get 'install' or 'install-sh
' and its variants.
2520 # Find a good install program. We prefer a C program (faster),
2521 # so one script is as good as another. But avoid the broken or
2522 # incompatible versions:
2523 # SysV /etc/install, /usr/sbin/install
2524 # SunOS /usr/etc/install
2525 # IRIX /sbin/install
2527 # AmigaOS /C/install, which installs bootblocks on floppy discs
2528 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2529 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2530 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2531 # OS/2's system install, which has a completely different semantic
2532 # ./install, which can be erroneously created by make from ./install.sh.
2533 # Reject install programs that cannot install multiple files.
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2535 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2536 if test -z "$INSTALL"; then
2537 if ${ac_cv_path_install+:} false
; then :
2538 $as_echo_n "(cached) " >&6
2540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir
=.
2545 # Account for people who put trailing slashes in PATH elements.
2546 case $as_dir/ in #((
2547 .
/ | .
// |
/[cC
]/* | \
2548 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2549 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2552 # OSF1 and SCO ODT 3.0 have their own names for install.
2553 # Don't use installbsd from OSF since it installs stuff as root
2555 for ac_prog
in ginstall scoinst
install; do
2556 for ac_exec_ext
in '' $ac_executable_extensions; do
2557 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2558 if test $ac_prog = install &&
2559 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2560 # AIX install. It has an incompatible calling convention.
2562 elif test $ac_prog = install &&
2563 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2564 # program-specific install script used by HP pwplus--don't use.
2567 rm -rf conftest.one conftest.two conftest.dir
2568 echo one
> conftest.one
2569 echo two
> conftest.two
2571 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2572 test -s conftest.one
&& test -s conftest.two
&&
2573 test -s conftest.dir
/conftest.one
&&
2574 test -s conftest.dir
/conftest.two
2576 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2589 rm -rf conftest.one conftest.two conftest.dir
2592 if test "${ac_cv_path_install+set}" = set; then
2593 INSTALL
=$ac_cv_path_install
2595 # As a last resort, use the slow shell script. Don't cache a
2596 # value for INSTALL within a source directory, because that will
2597 # break other packages using the cache if that directory is
2598 # removed, or if the value is a relative name.
2599 INSTALL
=$ac_install_sh
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2603 $as_echo "$INSTALL" >&6; }
2605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2606 # It thinks the first close brace ends the variable substitution.
2607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2611 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2614 $as_echo_n "checking whether ln works... " >&6; }
2615 if ${acx_cv_prog_LN+:} false
; then :
2616 $as_echo_n "(cached) " >&6
2618 rm -f conftestdata_t
2619 echo >conftestdata_f
2620 if ln conftestdata_f conftestdata_t
2>/dev
/null
2626 rm -f conftestdata_f conftestdata_t
2629 if test $acx_cv_prog_LN = no
; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2632 $as_echo "no, using $LN" >&6; }
2634 LN
="$acx_cv_prog_LN"
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2640 $as_echo_n "checking whether ln -s works... " >&6; }
2642 if test "$LN_S" = "ln -s"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644 $as_echo "yes" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2647 $as_echo "no, using $LN_S" >&6; }
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2651 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2652 if ${ac_cv_path_SED+:} false
; then :
2653 $as_echo_n "(cached) " >&6
2655 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2656 for ac_i
in 1 2 3 4 5 6 7; do
2657 ac_script
="$ac_script$as_nl$ac_script"
2659 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2660 { ac_script
=; unset ac_script
;}
2661 if test -z "$SED"; then
2662 ac_path_SED_found
=false
2663 # Loop through the user's path and test for each of PROGNAME-LIST
2664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir
=.
2669 for ac_prog
in sed gsed
; do
2670 for ac_exec_ext
in '' $ac_executable_extensions; do
2671 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2672 as_fn_executable_p
"$ac_path_SED" ||
continue
2673 # Check for GNU ac_path_SED and select it if it is found.
2674 # Check for GNU $ac_path_SED
2675 case `"$ac_path_SED" --version 2>&1` in
2677 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2680 $as_echo_n 0123456789 >"conftest.in"
2683 cat "conftest.in" "conftest.in" >"conftest.tmp"
2684 mv "conftest.tmp" "conftest.in"
2685 cp "conftest.in" "conftest.nl"
2686 $as_echo '' >> "conftest.nl"
2687 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2688 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2689 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2690 if test $ac_count -gt ${ac_path_SED_max-0}; then
2691 # Best one so far, save it but keep looking for a better one
2692 ac_cv_path_SED
="$ac_path_SED"
2693 ac_path_SED_max
=$ac_count
2695 # 10*(2^10) chars as input seems more than enough
2696 test $ac_count -gt 10 && break
2698 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2701 $ac_path_SED_found && break 3
2706 if test -z "$ac_cv_path_SED"; then
2707 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2715 $as_echo "$ac_cv_path_SED" >&6; }
2716 SED
="$ac_cv_path_SED"
2719 for ac_prog
in gawk mawk nawk
awk
2721 # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy
$ac_prog; ac_word
=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_AWK+:} false
; then :
2726 $as_echo_n "(cached) " >&6
2728 if test -n "$AWK"; then
2729 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir
=.
2736 for ac_exec_ext
in '' $ac_executable_extensions; do
2737 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_AWK
="$ac_prog"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 if test -n "$AWK"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2751 $as_echo "$AWK" >&6; }
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2758 test -n "$AWK" && break
2762 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2764 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2766 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2767 INSTALL
="${srcpwd}/install-sh -c"
2770 # Set srcdir to "." if that's what it is.
2771 # This is important for multilib support.
2773 if test "${pwd}" = "${srcpwd}" ; then
2781 ### To add a new directory to the tree, first choose whether it is a target
2782 ### or a host dependent tool. Then put it into the appropriate list
2783 ### (library or tools, host or target), doing a dependency sort.
2785 # Subdirs will be configured in the order listed in build_configdirs,
2786 # configdirs, or target_configdirs; see the serialization section below.
2788 # Dependency sorting is only needed when *configuration* must be done in
2789 # a particular order. In all cases a dependency should be specified in
2790 # the Makefile, whether or not it's implicitly specified here.
2792 # Double entries in build_configdirs, configdirs, or target_configdirs may
2793 # cause circular dependencies and break everything horribly.
2795 # these library is used by various programs built for the build
2798 build_libs
="build-libiberty build-libcpp"
2800 # these tools are built for the build environment
2801 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2803 # these libraries are used by various programs built for the host environment
2805 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2807 # these tools are built for the host environment
2808 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2809 # know that we are building the simulator.
2810 # binutils, gas and ld appear in that order because it makes sense to run
2811 # "make check" in that particular order.
2812 # If --enable-gold is used, "gold" may replace "ld".
2813 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 c++tools"
2815 # these libraries are built for the target environment, and are built after
2816 # the host libraries and the host tools (which may be a cross compiler)
2817 # Note that libiberty is not a target library.
2820 # these tools are built using the target libraries, and are intended to
2821 # run only in the target environment
2823 # note: any program that *uses* libraries that are in the "target_libraries"
2824 # list belongs in this list.
2826 target_tools
="target-rda"
2828 ################################################################################
2830 ## All tools belong in one of the four categories, and are assigned above
2831 ## We assign ${configdirs} this way to remove all embedded newlines. This
2832 ## is important because configure will choke if they ever get through.
2833 ## ${configdirs} is directories we build using the host tools.
2834 ## ${target_configdirs} is directories we build using the target tools.
2835 configdirs
=`echo ${host_libs} ${host_tools}`
2836 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2837 build_configdirs
=`echo ${build_libs} ${build_tools}`
2841 ################################################################################
2843 srcname
="gnu development package"
2845 # This gets set non-empty for some net releases of packages.
2848 # Define is_cross_compiler to save on calls to 'test'.
2850 if test x
"${host}" = x
"${target}" ; then
2851 is_cross_compiler
=no
2853 is_cross_compiler
=yes
2856 # Find the build and target subdir names.
2859 # Skipdirs are removed silently.
2861 # Noconfigdirs are removed loudly.
2865 # Make sure we don't let GNU ld be added if we didn't want it.
2866 if test x
$with_gnu_ld = xno
; then
2868 noconfigdirs
="$noconfigdirs ld gold"
2872 # Make sure we don't let GNU as be added if we didn't want it.
2873 if test x
$with_gnu_as = xno
; then
2875 noconfigdirs
="$noconfigdirs gas"
2880 # Check whether --with-system-zlib was given.
2881 if test "${with_system_zlib+set}" = set; then :
2882 withval
=$with_system_zlib;
2885 # Make sure we don't let ZLIB be added if we didn't want it.
2886 if test x
$with_system_zlib = xyes
; then
2887 use_included_zlib
=no
2888 noconfigdirs
="$noconfigdirs zlib"
2891 # some tools are so dependent upon X11 that if we're not building with X,
2892 # it's not even worth trying to configure, much less build, that tool.
2895 yes |
"") ;; # the default value for this tree is that X11 is available
2897 skipdirs
="${skipdirs} tk itcl libgui"
2898 # We won't be able to build gdbtk without X.
2901 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2904 # Some are only suitable for cross toolchains.
2905 # Remove these if host=target.
2906 cross_only
="target-libgloss target-newlib target-opcodes"
2908 case $is_cross_compiler in
2909 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2912 # If both --with-headers and --with-libs are specified, default to
2914 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2915 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2916 if test x
"${with_newlib}" = x
; then
2921 # Recognize --with-newlib/--without-newlib.
2922 case ${with_newlib} in
2923 no
) skipdirs
="${skipdirs} target-newlib" ;;
2924 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2927 # Check whether --enable-as-accelerator-for was given.
2928 if test "${enable_as_accelerator_for+set}" = set; then :
2929 enableval
=$enable_as_accelerator_for;
2933 # Check whether --enable-offload-targets was given.
2934 if test "${enable_offload_targets+set}" = set; then :
2935 enableval
=$enable_offload_targets;
2936 if test x
"$enable_offload_targets" = x
; then
2937 as_fn_error $?
"no offload targets specified" "$LINENO" 5
2941 enable_offload_targets
=
2945 # Check whether --enable-offload-defaulted was given.
2946 if test "${enable_offload_defaulted+set}" = set; then :
2947 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
2949 enable_offload_defaulted
=
2953 # Handle --enable-gold, --enable-ld.
2954 # --disable-gold [--enable-ld]
2955 # Build only ld. Default option.
2956 # --enable-gold [--enable-ld]
2957 # Build both gold and ld. Install gold as "ld.gold", install ld
2958 # as "ld.bfd" and "ld".
2959 # --enable-gold=default [--enable-ld]
2960 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2961 # install ld as "ld.bfd".
2962 # --enable-gold[=default] --disable-ld
2963 # Build only gold, which is then installed as both "ld.gold" and "ld".
2964 # --enable-gold --enable-ld=default
2965 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2967 # In other words, ld is default
2968 # --enable-gold=default --enable-ld=default
2972 # Check whether --enable-gold was given.
2973 if test "${enable_gold+set}" = set; then :
2974 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
2979 case "${ENABLE_GOLD}" in
2981 # Check for ELF target.
2984 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
2985 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
2986 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
2987 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
2989 *-*-linux*aout
* |
*-*-linux*oldld
*)
2997 if test "$is_elf" = "yes"; then
2998 # Check for target supported by gold.
3000 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3001 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3002 configdirs
="$configdirs gold"
3003 if test x
${ENABLE_GOLD} = xdefault
; then
3014 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3018 # Check whether --enable-ld was given.
3019 if test "${enable_ld+set}" = set; then :
3020 enableval
=$enable_ld; ENABLE_LD
=$enableval
3026 case "${ENABLE_LD}" in
3028 if test x
${default_ld} != x
; then
3029 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3035 if test x
${ENABLE_GOLD} != xyes
; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3037 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3039 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3042 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3047 # Decide the default method for compressing debug sections.
3048 # Provide a configure time option to override our default.
3049 # Check whether --enable-compressed_debug_sections was given.
3050 if test "${enable_compressed_debug_sections+set}" = set; then :
3051 enableval
=$enable_compressed_debug_sections;
3052 if test x
"$enable_compressed_debug_sections" = xyes
; then
3053 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3057 enable_compressed_debug_sections
=
3061 # Configure extra directories which are host specific
3065 configdirs
="$configdirs libtermcap" ;;
3068 # A target can indicate whether a language isn't supported for some reason.
3069 # Only spaces may be used in this macro; not newlines or tabs.
3070 unsupported_languages
=
3072 # Remove more programs from consideration, based on the host or
3073 # target this usually means that a port of the program doesn't
3077 i
[3456789]86-*-msdosdjgpp*)
3078 noconfigdirs
="$noconfigdirs tcl tk itcl"
3083 # Check whether --enable-libquadmath was given.
3084 if test "${enable_libquadmath+set}" = set; then :
3085 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3087 ENABLE_LIBQUADMATH
=yes
3090 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3091 noconfigdirs
="$noconfigdirs target-libquadmath"
3095 # Check whether --enable-libquadmath-support was given.
3096 if test "${enable_libquadmath_support+set}" = set; then :
3097 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3099 ENABLE_LIBQUADMATH_SUPPORT
=yes
3102 enable_libquadmath_support
=
3103 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3104 enable_libquadmath_support
=no
3108 # Check whether --enable-libada was given.
3109 if test "${enable_libada+set}" = set; then :
3110 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3115 if test "${ENABLE_LIBADA}" != "yes" ; then
3116 noconfigdirs
="$noconfigdirs gnattools"
3119 # Check whether --enable-libssp was given.
3120 if test "${enable_libssp+set}" = set; then :
3121 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3127 # Check whether --enable-libstdcxx was given.
3128 if test "${enable_libstdcxx+set}" = set; then :
3129 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3131 ENABLE_LIBSTDCXX
=default
3134 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3135 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3138 # If this is accelerator compiler and its target is intelmic we enable
3139 # target liboffloadmic by default. If this is compiler with offloading
3140 # for intelmic we enable host liboffloadmic by default. Otherwise
3141 # liboffloadmic is disabled by default.
3142 # Check whether --enable-liboffloadmic was given.
3143 if test "${enable_liboffloadmic+set}" = set; then :
3144 enableval
=$enable_liboffloadmic; case "$enableval" in
3146 enable_liboffloadmic
=$enableval ;;
3148 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3151 if test x
"$enable_as_accelerator_for" != x
; then
3153 *-intelmic-* |
*-intelmicemul-*)
3154 enable_liboffloadmic
=target
3155 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3158 enable_liboffloadmic
=no
3162 case "${enable_offload_targets}" in
3163 *-intelmic-* |
*-intelmicemul-*)
3164 enable_liboffloadmic
=host
3165 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3168 enable_liboffloadmic
=no
3176 # Enable libgomp by default on hosted POSIX systems, and a few others.
3177 if test x
$enable_libgomp = x
; then
3179 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3181 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3183 *-*-solaris2* |
*-*-hpux11*)
3185 *-*-darwin* |
*-*-aix*)
3187 nvptx
*-*-* | amdgcn
*-*-*)
3190 noconfigdirs
="$noconfigdirs target-libgomp"
3195 # Disable libatomic on unsupported systems.
3196 if test -d ${srcdir}/libatomic
; then
3197 if test x
$enable_libatomic = x
; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3199 $as_echo_n "checking for libatomic support... " >&6; }
3200 if (srcdir
=${srcdir}/libatomic
; \
3201 .
${srcdir}/configure.tgt
; \
3202 test -n "$UNSUPPORTED")
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 noconfigdirs
="$noconfigdirs target-libatomic"
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3214 # Disable liboffloadmic on unsupported systems.
3215 if test -d ${srcdir}/liboffloadmic
; then
3216 if test x
$enable_liboffloadmic != xno
; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3218 $as_echo_n "checking for liboffloadmic support... " >&6; }
3219 if (srcdir
=${srcdir}/liboffloadmic
; \
3220 .
${srcdir}/configure.tgt
; \
3221 test -n "$UNSUPPORTED")
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3233 # Disable libitm on unsupported systems.
3234 if test -d ${srcdir}/libitm
; then
3235 if test x
$enable_libitm = x
; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3237 $as_echo_n "checking for libitm support... " >&6; }
3238 if (srcdir
=${srcdir}/libitm
; \
3239 .
${srcdir}/configure.tgt
; \
3240 test -n "$UNSUPPORTED")
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 noconfigdirs
="$noconfigdirs target-libitm"
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3252 # Disable libsanitizer on unsupported systems.
3253 if test -d ${srcdir}/libsanitizer
; then
3254 if test x
$enable_libsanitizer = x
; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3256 $as_echo_n "checking for libsanitizer support... " >&6; }
3257 if (srcdir
=${srcdir}/libsanitizer
; \
3258 .
${srcdir}/configure.tgt
; \
3259 test -n "$UNSUPPORTED")
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 noconfigdirs
="$noconfigdirs target-libsanitizer"
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266 $as_echo "yes" >&6; }
3271 # Disable libvtv on unsupported systems.
3272 if test -d ${srcdir}/libvtv
; then
3273 if test x
$enable_libvtv = x
; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3275 $as_echo_n "checking for libvtv support... " >&6; }
3276 if (srcdir
=${srcdir}/libvtv
; \
3277 .
${srcdir}/configure.tgt
; \
3278 test "$VTV_SUPPORTED" != "yes")
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 noconfigdirs
="$noconfigdirs target-libvtv"
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285 $as_echo "yes" >&6; }
3290 # Disable libquadmath for some systems.
3293 noconfigdirs
="$noconfigdirs target-libquadmath"
3295 # libquadmath is unused on AIX and libquadmath build process use of
3296 # LD_LIBRARY_PATH can break AIX bootstrap.
3297 powerpc-
*-aix* | rs6000-
*-aix*)
3298 noconfigdirs
="$noconfigdirs target-libquadmath"
3302 # Disable libssp for some systems.
3305 # No hosted I/O support.
3306 noconfigdirs
="$noconfigdirs target-libssp"
3309 noconfigdirs
="$noconfigdirs target-libssp"
3311 powerpc-
*-aix* | rs6000-
*-aix*)
3312 noconfigdirs
="$noconfigdirs target-libssp"
3315 # No hosted I/O support.
3316 noconfigdirs
="$noconfigdirs target-libssp"
3319 # libssp uses a misaligned load to trigger a fault, but the RL78
3320 # doesn't fault for those - instead, it gives a build-time error
3321 # for explicit misaligned loads.
3322 noconfigdirs
="$noconfigdirs target-libssp"
3325 # No hosted I/O support.
3326 noconfigdirs
="$noconfigdirs target-libssp"
3330 # Disable libstdc++-v3 for some systems.
3331 # Allow user to override this if they pass --enable-libstdcxx
3332 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3335 # VxWorks uses the Dinkumware C++ library.
3336 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3339 # Not ported/fails to build when using newlib.
3340 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3343 # the C++ libraries don't build on top of CE's C libraries
3344 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3347 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3350 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3353 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3358 # Disable C++ on systems where it is known to not work.
3359 # For testing, you can override this with --enable-languages=c++.
3360 case ,${enable_languages}, in
3366 unsupported_languages
="$unsupported_languages c++"
3372 # Disable Objc on systems where it is known to not work.
3373 # For testing, you can override this with --enable-languages=objc.
3374 case ,${enable_languages}, in
3380 unsupported_languages
="$unsupported_languages objc"
3386 # Disable D on systems where it is known to not work.
3387 # For testing, you can override this with --enable-languages=d.
3388 case ,${enable_languages}, in
3394 unsupported_languages
="$unsupported_languages d"
3400 # Disable libphobos on unsupported systems.
3401 # For testing, you can override this with --enable-libphobos.
3402 if test -d ${srcdir}/libphobos
; then
3403 if test x
$enable_libphobos = x
; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3405 $as_echo_n "checking for libphobos support... " >&6; }
3406 if (srcdir
=${srcdir}/libphobos
; \
3407 .
${srcdir}/configure.tgt
; \
3408 test "$LIBPHOBOS_SUPPORTED" != "yes")
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 noconfigdirs
="$noconfigdirs target-libphobos"
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415 $as_echo "yes" >&6; }
3420 # Disable Fortran for some systems.
3423 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3424 unsupported_languages
="$unsupported_languages fortran"
3427 unsupported_languages
="$unsupported_languages fortran"
3431 # Disable libffi for some systems.
3435 i
[3456789]86-*-darwin*)
3437 x86_64-
*-darwin[912]*)
3440 noconfigdirs
="$noconfigdirs target-libffi"
3443 noconfigdirs
="$noconfigdirs target-libffi"
3446 noconfigdirs
="$noconfigdirs target-libffi"
3449 noconfigdirs
="$noconfigdirs target-libffi"
3452 noconfigdirs
="$noconfigdirs target-libffi"
3455 noconfigdirs
="$noconfigdirs target-libffi"
3458 noconfigdirs
="$noconfigdirs target-libffi"
3460 aarch64
*-*-freebsd*)
3461 noconfigdirs
="$noconfigdirs target-libffi"
3464 noconfigdirs
="$noconfigdirs target-libffi"
3467 noconfigdirs
="$noconfigdirs target-libffi"
3470 noconfigdirs
="$noconfigdirs target-libffi"
3473 noconfigdirs
="$noconfigdirs target-libffi"
3476 noconfigdirs
="$noconfigdirs target-libffi"
3478 cris-
*-* | crisv32-
*-*)
3482 *) # See PR46792 regarding target-libffi.
3483 noconfigdirs
="$noconfigdirs target-libffi";;
3487 noconfigdirs
="$noconfigdirs target-libffi"
3492 noconfigdirs
="$noconfigdirs target-libffi"
3495 noconfigdirs
="$noconfigdirs target-libffi"
3497 i
[3456789]86-w64-mingw*)
3498 noconfigdirs
="$noconfigdirs target-libffi"
3500 i
[3456789]86-*-mingw*)
3501 noconfigdirs
="$noconfigdirs target-libffi"
3504 noconfigdirs
="$noconfigdirs target-libffi"
3507 noconfigdirs
="$noconfigdirs target-libffi"
3514 noconfigdirs
="$noconfigdirs target-libffi"
3517 noconfigdirs
="$noconfigdirs target-libffi"
3521 # Disable the go frontend on systems where it is known to not work. Please keep
3522 # this in sync with contrib/config-list.mk.
3524 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3525 unsupported_languages
="$unsupported_languages go"
3529 # Only allow gdbserver on some systems.
3530 if test -d ${srcdir}/gdbserver
; then
3531 if test x
$enable_gdbserver = x
; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3533 $as_echo_n "checking for gdbserver support... " >&6; }
3534 if (srcdir
=${srcdir}/gdbserver
; \
3535 .
${srcdir}/configure.srv
; \
3536 test -n "$UNSUPPORTED")
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 noconfigdirs
="$noconfigdirs gdbserver"
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3543 $as_echo "yes" >&6; }
3548 # Disable libgo for some systems where it is known to not work.
3549 # For testing, you can easily override this with --enable-libgo.
3550 if test x
$enable_libgo = x
; then
3554 noconfigdirs
="$noconfigdirs target-libgo"
3556 *-*-cygwin* |
*-*-mingw*)
3557 noconfigdirs
="$noconfigdirs target-libgo"
3560 noconfigdirs
="$noconfigdirs target-libgo"
3565 # Default libgloss CPU subdirectory.
3566 libgloss_dir
="$target_cpu"
3569 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3573 libgloss_dir
=aarch64
3578 cris-
*-* | crisv32-
*-*)
3588 libgloss_dir
=loongarch
3590 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3591 libgloss_dir
=m68hc11
3593 m68
*-*-* | fido-
*-*)
3610 # Disable newlib and libgloss for various target OSes.
3613 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3615 i
[3456789]86-*-linux*)
3616 # This section makes it possible to build newlib natively on linux.
3617 # If we are using a cross compiler then don't configure newlib.
3618 if test x
${is_cross_compiler} != xno
; then
3619 noconfigdirs
="$noconfigdirs target-newlib"
3621 noconfigdirs
="$noconfigdirs target-libgloss"
3622 # If we are not using a cross compiler, do configure newlib.
3623 # Note however, that newlib will only be configured in this situation
3624 # if the --with-newlib option has been given, because otherwise
3625 # 'target-newlib' will appear in skipdirs.
3627 i
[3456789]86-*-rdos*)
3628 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3630 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3631 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3634 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3637 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3640 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3643 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3646 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3649 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3652 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3654 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3655 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3658 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3661 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3664 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3667 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3670 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3673 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3676 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3684 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3685 noconfigdirs
="$noconfigdirs sim target-rda"
3690 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3691 noconfigdirs
="$noconfigdirs sim target-rda"
3694 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3695 noconfigdirs
="$noconfigdirs sim target-rda"
3697 i
[3456789]86-*-darwin*)
3698 noconfigdirs
="$noconfigdirs ld gprof"
3699 noconfigdirs
="$noconfigdirs sim target-rda"
3701 x86_64-
*-darwin[912]*)
3702 noconfigdirs
="$noconfigdirs ld gas gprof"
3703 noconfigdirs
="$noconfigdirs sim target-rda"
3706 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3707 noconfigdirs
="$noconfigdirs sim target-rda"
3712 if test "x$with_gmp" = x \
3713 && ! test -d ${srcdir}/gmp \
3714 && test -f /usr
/local
/include
/gmp.h
; then
3719 # Remove unsupported stuff on all kaOS configurations.
3720 noconfigdirs
="$noconfigdirs target-libgloss"
3727 noconfigdirs
="$noconfigdirs target-libgloss"
3730 noconfigdirs
="$noconfigdirs target-libgloss"
3732 # The tpf target doesn't support gdb yet.
3734 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3737 noconfigdirs
="$noconfigdirs target-rda"
3742 # ld works, but does not support shared libraries.
3743 # gas doesn't generate exception information.
3744 noconfigdirs
="$noconfigdirs gas ld"
3747 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3750 # newlib is not 64 bit ready
3751 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3754 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3756 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3757 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3760 noconfigdirs
="$noconfigdirs sim"
3763 noconfigdirs
="$noconfigdirs target-libgloss"
3766 noconfigdirs
="$noconfigdirs ld target-libgloss"
3769 if test x
${with_avrlibc} != xno
; then
3770 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3773 c4x-
*-* | tic4x-
*-*)
3774 noconfigdirs
="$noconfigdirs target-libgloss"
3777 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3780 noconfigdirs
="$noconfigdirs target-libgloss"
3783 noconfigdirs
="$noconfigdirs gdb"
3786 noconfigdirs
="$noconfigdirs gdb"
3789 noconfigdirs
="$noconfigdirs target-rda gprof"
3792 noconfigdirs
="$noconfigdirs"
3795 noconfigdirs
="$noconfigdirs target-libgloss"
3798 noconfigdirs
="$noconfigdirs target-libgloss"
3800 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3803 noconfigdirs
="$noconfigdirs gdb"
3806 noconfigdirs
="$noconfigdirs gdb ld"
3814 hppa
*-*-openbsd* | \
3820 noconfigdirs
="$noconfigdirs ld"
3823 noconfigdirs
="$noconfigdirs gdb"
3826 # No gdb support yet.
3827 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3830 # No ld support yet.
3831 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3834 # No ld support yet.
3835 noconfigdirs
="$noconfigdirs libgui itcl ld"
3837 i
[3456789]86-w64-mingw*)
3839 i
[3456789]86-*-mingw*)
3840 target_configdirs
="$target_configdirs target-winsup"
3843 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3844 noconfigdirs
="$noconfigdirs target-libgloss"
3845 # always build newlib if winsup directory is present.
3846 if test -d "$srcdir/winsup/cygwin"; then
3847 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3848 elif test -d "$srcdir/newlib"; then
3849 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3853 noconfigdirs
="$noconfigdirs target-libgloss"
3855 i
[3456789]86-*-sco3.2v5
*)
3856 # The linker does not yet know about weak symbols in COFF,
3857 # and is not configured to handle mixed ELF and COFF.
3858 noconfigdirs
="$noconfigdirs ld target-libgloss"
3860 i
[3456789]86-*-sco*)
3861 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3863 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3864 noconfigdirs
="$noconfigdirs target-libgloss"
3866 i
[3456789]86-*-sysv4*)
3867 noconfigdirs
="$noconfigdirs target-libgloss"
3869 i
[3456789]86-*-beos*)
3870 noconfigdirs
="$noconfigdirs gdb"
3872 i
[3456789]86-*-rdos*)
3873 noconfigdirs
="$noconfigdirs gdb"
3876 noconfigdirs
="$noconfigdirs gdb"
3879 noconfigdirs
="$noconfigdirs sim"
3882 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3883 noconfigdirs
="$noconfigdirs $target_libraries"
3886 noconfigdirs
="$noconfigdirs gdb gprof"
3889 # copied from rs6000-*-* entry
3890 noconfigdirs
="$noconfigdirs gprof"
3892 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3893 target_configdirs
="$target_configdirs target-winsup"
3894 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3895 # always build newlib.
3896 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3898 # This is temporary until we can link against shared libraries
3899 powerpcle-
*-solaris*)
3900 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3903 noconfigdirs
="$noconfigdirs gdb"
3906 noconfigdirs
="$noconfigdirs gprof"
3909 noconfigdirs
="$noconfigdirs gprof"
3912 noconfigdirs
="$noconfigdirs gprof"
3915 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3918 noconfigdirs
="$noconfigdirs gprof"
3920 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3921 if test x
$with_newlib = xyes
; then
3922 noconfigdirs
="$noconfigdirs gprof"
3926 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3929 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3932 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3936 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3937 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3938 noconfigdirs
="$noconfigdirs ld gas gprof"
3941 noconfigdirs
="$noconfigdirs gprof"
3944 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3951 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3955 if test x
${is_cross_compiler} = xno
; then
3960 noconfigdirs
="$noconfigdirs sim"
3962 tilepro
*-*-* | tilegx
*-*-*)
3963 noconfigdirs
="$noconfigdirs sim"
3966 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3969 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3972 noconfigdirs
="$noconfigdirs ld"
3974 loongarch
*-*-linux*)
3977 noconfigdirs
="$noconfigdirs gprof"
3981 # If we aren't building newlib, then don't build libgloss, since libgloss
3982 # depends upon some newlib header files.
3983 case "${noconfigdirs}" in
3984 *target-libgloss
*) ;;
3985 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
3988 # Work in distributions that contain no compiler tools, like Autoconf.
3989 host_makefile_frag
=/dev
/null
3990 if test -d ${srcdir}/config
; then
3992 i
[3456789]86-*-msdosdjgpp*)
3993 host_makefile_frag
="config/mh-djgpp"
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3998 $as_echo_n "checking to see if cat works as expected... " >&6; }
3999 echo a
>cygwin-cat-check
4000 if test `cat cygwin-cat-check` = a
; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4003 $as_echo "yes" >&6; }
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 as_fn_error $?
"The cat command does not ignore carriage return characters.
4009 Please either mount the build directory in binary mode or run the following
4010 commands before running any configure script:
4016 host_makefile_frag
="config/mh-cygwin"
4019 host_makefile_frag
="config/mh-mingw"
4022 host_makefile_frag
="config/mh-alpha-linux"
4025 host_makefile_frag
="config/mh-pa-hpux10"
4028 host_makefile_frag
="config/mh-pa"
4031 host_makefile_frag
="config/mh-pa"
4033 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4034 host_makefile_frag
="config/mh-darwin"
4037 host_makefile_frag
="config/mh-ppc-aix"
4040 host_makefile_frag
="config/mh-ppc-aix"
4045 if test "${build}" != "${host}" ; then
4046 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4047 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4048 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4049 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4050 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4051 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4052 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4053 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4054 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4055 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4056 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4057 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4058 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4059 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4060 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4062 AR_FOR_BUILD
="\$(AR)"
4063 AS_FOR_BUILD
="\$(AS)"
4064 CC_FOR_BUILD
="\$(CC)"
4065 CXX_FOR_BUILD
="\$(CXX)"
4066 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4067 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4068 GOC_FOR_BUILD
="\$(GOC)"
4069 GDC_FOR_BUILD
="\$(GDC)"
4070 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4071 LD_FOR_BUILD
="\$(LD)"
4072 NM_FOR_BUILD
="\$(NM)"
4073 RANLIB_FOR_BUILD
="\$(RANLIB)"
4074 WINDRES_FOR_BUILD
="\$(WINDRES)"
4075 WINDMC_FOR_BUILD
="\$(WINDMC)"
4079 ac_cpp
='$CPP $CPPFLAGS'
4080 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4083 if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4085 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false
; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC
="$CC" # Let the user override the test.
4094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir
=.
4099 for ac_exec_ext
in '' $ac_executable_extensions; do
4100 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4122 if test -z "$ac_cv_prog_CC"; then
4124 # Extract the first word of "gcc", so it can be a program name with args.
4125 set dummy gcc
; ac_word
=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4129 $as_echo_n "(cached) " >&6
4131 if test -n "$ac_ct_CC"; then
4132 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir
=.
4139 for ac_exec_ext
in '' $ac_executable_extensions; do
4140 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_ac_ct_CC
="gcc"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4152 if test -n "$ac_ct_CC"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4154 $as_echo "$ac_ct_CC" >&6; }
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4160 if test "x$ac_ct_CC" = x
; then
4163 case $cross_compiling:$ac_tool_warned in
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4167 ac_tool_warned
=yes ;;
4175 if test -z "$CC"; then
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4178 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if ${ac_cv_prog_CC+:} false
; then :
4182 $as_echo_n "(cached) " >&6
4184 if test -n "$CC"; then
4185 ac_cv_prog_CC
="$CC" # Let the user override the test.
4187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir
=.
4192 for ac_exec_ext
in '' $ac_executable_extensions; do
4193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 if test -n "$CC"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4207 $as_echo "$CC" >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4216 if test -z "$CC"; then
4217 # Extract the first word of "cc", so it can be a program name with args.
4218 set dummy cc
; ac_word
=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if ${ac_cv_prog_CC+:} false
; then :
4222 $as_echo_n "(cached) " >&6
4224 if test -n "$CC"; then
4225 ac_cv_prog_CC
="$CC" # Let the user override the test.
4228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir
=.
4233 for ac_exec_ext
in '' $ac_executable_extensions; do
4234 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4235 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4236 ac_prog_rejected
=yes
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 if test $ac_prog_rejected = yes; then
4248 # We found a bogon in the path, so make sure we never use it.
4249 set dummy
$ac_cv_prog_CC
4251 if test $# != 0; then
4252 # We chose a different compiler from the bogus one.
4253 # However, it has the same basename, so the bogon will be chosen
4254 # first if we set CC to just the basename; use the full file name.
4256 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4272 if test -z "$CC"; then
4273 if test -n "$ac_tool_prefix"; then
4274 for ac_prog
in cl.exe
4276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4277 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_prog_CC+:} false
; then :
4281 $as_echo_n "(cached) " >&6
4283 if test -n "$CC"; then
4284 ac_cv_prog_CC
="$CC" # Let the user override the test.
4286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir
=.
4291 for ac_exec_ext
in '' $ac_executable_extensions; do
4292 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4293 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 if test -n "$CC"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4306 $as_echo "$CC" >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4313 test -n "$CC" && break
4316 if test -z "$CC"; then
4318 for ac_prog
in cl.exe
4320 # Extract the first word of "$ac_prog", so it can be a program name with args.
4321 set dummy
$ac_prog; ac_word
=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4325 $as_echo_n "(cached) " >&6
4327 if test -n "$ac_ct_CC"; then
4328 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir
=.
4335 for ac_exec_ext
in '' $ac_executable_extensions; do
4336 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_ac_ct_CC
="$ac_prog"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4348 if test -n "$ac_ct_CC"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4350 $as_echo "$ac_ct_CC" >&6; }
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4357 test -n "$ac_ct_CC" && break
4360 if test "x$ac_ct_CC" = x
; then
4363 case $cross_compiling:$ac_tool_warned in
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4367 ac_tool_warned
=yes ;;
4376 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4378 as_fn_error $?
"no acceptable C compiler found in \$PATH
4379 See \`config.log' for more details" "$LINENO" 5; }
4381 # Provide some information about the compiler.
4382 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4385 for ac_option
in --version -v -V -qversion; do
4386 { { ac_try
="$ac_compiler $ac_option >&5"
4388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4395 if test -s conftest.err; then
4397 ... rest of stderr output deleted ...
4398 10q' conftest.err >conftest.er1
4399 cat conftest.er1 >&5
4401 rm -f conftest.er1 conftest.err
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4417 ac_clean_files_save=$ac_clean_files
4418 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4419 # Try to create an executable without -o first, disregard a.out.
4420 # It will help us diagnose broken compilers, and finding out an intuition
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4423 $as_echo_n "checking whether the C compiler works... " >&6; }
4424 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4426 # The possible output files:
4427 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4430 for ac_file in $ac_files
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4434 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4439 if { { ac_try="$ac_link_default"
4441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4442 *) ac_try_echo
=$ac_try;;
4444 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_link_default") 2>&5
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; then :
4450 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4451 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4452 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4453 # so that the user can short-circuit this test for compilers unknown to
4455 for ac_file
in $ac_files ''
4457 test -f "$ac_file" ||
continue
4459 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4462 # We found the default executable, but exeext='' is most
4466 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4468 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4470 # We set ac_cv_exeext here because the later test for it is not
4471 # safe: cross compilers may not add the suffix if given an `-o'
4472 # argument, so we may need to know it at that point already.
4473 # Even if this section looks crufty: it has the advantage of
4480 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4485 if test -z "$ac_file"; then :
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488 $as_echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.
$ac_ext >&5
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error
77 "C compiler cannot create executables
4494 See \`config.log' for more details" "$LINENO" 5; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4500 $as_echo_n "checking for C compiler default output file name... " >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4502 $as_echo "$ac_file" >&6; }
4503 ac_exeext
=$ac_cv_exeext
4505 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4506 ac_clean_files
=$ac_clean_files_save
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4508 $as_echo_n "checking for suffix of executables... " >&6; }
4509 if { { ac_try
="$ac_link"
4511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_link") 2>&5
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
4520 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4521 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4522 # work properly (i.e., refer to `conftest.exe'), while it won't with
4524 for ac_file
in conftest.exe conftest conftest.
*; do
4525 test -f "$ac_file" ||
continue
4527 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4528 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4537 See \`config.log' for more details" "$LINENO" 5; }
4539 rm -f conftest conftest
$ac_cv_exeext
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4541 $as_echo "$ac_cv_exeext" >&6; }
4543 rm -f conftest.
$ac_ext
4544 EXEEXT
=$ac_cv_exeext
4546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4552 FILE *f = fopen ("conftest.out", "w");
4553 return ferror (f) || fclose (f) != 0;
4559 ac_clean_files
="$ac_clean_files conftest.out"
4560 # Check that the compiler produces executables we can run. If not, either
4561 # the compiler is broken, or we cross compile.
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4563 $as_echo_n "checking whether we are cross compiling... " >&6; }
4564 if test "$cross_compiling" != yes; then
4565 { { ac_try
="$ac_link"
4567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_link") 2>&5
4574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575 test $ac_status = 0; }
4576 if { ac_try='./conftest$ac_cv_exeext'
4577 { { case "(($ac_try" in
4578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4579 *) ac_try_echo
=$ac_try;;
4581 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582 $as_echo "$ac_try_echo"; } >&5
4583 (eval "$ac_try") 2>&5
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; }; then
4589 if test "$cross_compiling" = maybe
; then
4592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594 as_fn_error $?
"cannot run C compiled programs.
4595 If you meant to cross compile, use \`--host'.
4596 See \`config.log' for more details" "$LINENO" 5; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4601 $as_echo "$cross_compiling" >&6; }
4603 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4604 ac_clean_files
=$ac_clean_files_save
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4606 $as_echo_n "checking for suffix of object files... " >&6; }
4607 if ${ac_cv_objext+:} false
; then :
4608 $as_echo_n "(cached) " >&6
4610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4621 rm -f conftest.o conftest.obj
4622 if { { ac_try
="$ac_compile"
4624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compile") 2>&5
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }; then :
4633 for ac_file in conftest.o conftest.obj conftest.*; do
4634 test -f "$ac_file" || continue;
4636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4637 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4642 $as_echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4648 See \
`config.log' for more details" "$LINENO" 5; }
4650 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4653 $as_echo "$ac_cv_objext" >&6; }
4654 OBJEXT=$ac_cv_objext
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4657 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4658 if ${ac_cv_c_compiler_gnu+:} false; then :
4659 $as_echo_n "(cached) " >&6
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4675 if ac_fn_c_try_compile "$LINENO"; then :
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4685 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4686 if test $ac_compiler_gnu = yes; then
4691 ac_test_CFLAGS=${CFLAGS+set}
4692 ac_save_CFLAGS=$CFLAGS
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4694 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4695 if ${ac_cv_prog_cc_g+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 ac_save_c_werror_flag=$ac_c_werror_flag
4699 ac_c_werror_flag=yes
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4713 if ac_fn_c_try_compile "$LINENO"; then :
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4728 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_c_werror_flag=$ac_save_c_werror_flag
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4744 if ac_fn_c_try_compile "$LINENO"; then :
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 ac_c_werror_flag=$ac_save_c_werror_flag
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4755 $as_echo "$ac_cv_prog_cc_g" >&6; }
4756 if test "$ac_test_CFLAGS" = set; then
4757 CFLAGS=$ac_save_CFLAGS
4758 elif test $ac_cv_prog_cc_g = yes; then
4759 if test "$GCC" = yes; then
4765 if test "$GCC" = yes; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4772 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4773 if ${ac_cv_prog_cc_c89+:} false; then :
4774 $as_echo_n "(cached) " >&6
4776 ac_cv_prog_cc_c89=no
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4784 struct buf { int x; };
4785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4786 static char *e (p, i)
4792 static char *f (char * (*g) (char **, int), char **p, ...)
4797 s = g (p, va_arg (v,int));
4802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4803 function prototypes and stuff, but not '\xHH' hex character constants.
4804 These don't provoke an error unfortunately, instead are silently treated
4805 as 'x'. The following induces an error, until -std is added to get
4806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4807 array size at least. It's necessary to write '\x00'==0 to get something
4808 that's true only with -std. */
4809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4812 inside strings and character constants. */
4814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4816 int test (int i, double x);
4817 struct s1 {int (*f) (int a);};
4818 struct s2 {int (*f) (double a);};
4819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4825 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4831 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4833 CC="$ac_save_CC $ac_arg"
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835 ac_cv_prog_cc_c89=$ac_arg
4837 rm -f core conftest.err conftest.$ac_objext
4838 test "x$ac_cv_prog_cc_c89" != "xno" && break
4840 rm -f conftest.$ac_ext
4845 case "x$ac_cv_prog_cc_c89" in
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4848 $as_echo "none needed" >&6; } ;;
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4851 $as_echo "unsupported" >&6; } ;;
4853 CC="$CC $ac_cv_prog_cc_c89"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4855 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4857 if test "x$ac_cv_prog_cc_c89" != xno; then :
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4868 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4869 if ${ac_cv_prog_cc_c99+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 ac_cv_prog_cc_c99=no
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4877 #include <stdbool.h>
4882 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4883 #define debug(...) fprintf (stderr, __VA_ARGS__)
4884 #define showlist(...) puts (#__VA_ARGS__)
4885 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4887 test_varargs_macros (void)
4892 debug ("X = %d\n", x);
4893 showlist (The first, second, and third items.);
4894 report (x>y, "x is %d but y is %d", x, y);
4897 // Check long long types.
4898 #define BIG64 18446744073709551615ull
4899 #define BIG32 4294967295ul
4900 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4902 your preprocessor is broken;
4906 your preprocessor is broken;
4908 static long long int bignum = -9223372036854775807LL;
4909 static unsigned long long int ubignum = BIG64;
4911 struct incomplete_array
4919 const wchar_t *name;
4923 typedef const char *ccp;
4926 test_restrict (ccp restrict text)
4928 // See if C++-style comments work.
4929 // Iterate through items via the restricted pointer.
4930 // Also check for declarations in for loops.
4931 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4936 // Check varargs and va_copy.
4938 test_varargs (const char *format, ...)
4941 va_start (args, format);
4943 va_copy (args_copy, args);
4954 str = va_arg (args_copy, const char *);
4957 number = va_arg (args_copy, int);
4960 fnumber = va_arg (args_copy, double);
4975 _Bool success = false;
4978 if (test_restrict ("String literal") == 0)
4980 char *restrict newvar = "Another string";
4983 test_varargs ("s, d' f .", "string", 65, 34.234);
4984 test_varargs_macros ();
4986 // Check flexible array members.
4987 struct incomplete_array *ia =
4988 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4990 for (int i = 0; i < ia->datasize; ++i)
4991 ia->data[i] = i * 1.234;
4993 // Check named initializers.
4994 struct named_init ni = {
4996 .name = L"Test wide string",
4997 .average = 543.34343,
5002 int dynamic_array[ni.number];
5003 dynamic_array[ni.number - 1] = 543;
5005 // work around unused variable warnings
5006 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5007 || dynamic_array[ni.number - 1] != 543);
5013 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5015 CC="$ac_save_CC $ac_arg"
5016 if ac_fn_c_try_compile "$LINENO"; then :
5017 ac_cv_prog_cc_c99=$ac_arg
5019 rm -f core conftest.err conftest.$ac_objext
5020 test "x$ac_cv_prog_cc_c99" != "xno" && break
5022 rm -f conftest.$ac_ext
5027 case "x$ac_cv_prog_cc_c99" in
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5030 $as_echo "none needed" >&6; } ;;
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5033 $as_echo "unsupported" >&6; } ;;
5035 CC="$CC $ac_cv_prog_cc_c99"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5037 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5039 if test "x$ac_cv_prog_cc_c99" != xno; then :
5045 ac_cpp='$CXXCPP $CPPFLAGS'
5046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5049 if test -z "$CXX"; then
5050 if test -n "$CCC"; then
5053 if test -n "$ac_tool_prefix"; then
5054 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_CXX+:} false; then :
5061 $as_echo_n "(cached) " >&6
5063 if test -n "$CXX"; then
5064 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 if test -n "$CXX"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5086 $as_echo "$CXX" >&6; }
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 test -n "$CXX" && break
5096 if test -z "$CXX"; then
5098 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5100 # Extract the first word of "$ac_prog", so it can be a program name with args.
5101 set dummy $ac_prog; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5105 $as_echo_n "(cached) " >&6
5107 if test -n "$ac_ct_CXX"; then
5108 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_prog_ac_ct_CXX="$ac_prog"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5128 if test -n "$ac_ct_CXX"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5130 $as_echo "$ac_ct_CXX" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 test -n "$ac_ct_CXX" && break
5140 if test "x$ac_ct_CXX" = x; then
5143 case $cross_compiling:$ac_tool_warned in
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147 ac_tool_warned=yes ;;
5155 # Provide some information about the compiler.
5156 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5159 for ac_option in --version -v -V -qversion; do
5160 { { ac_try="$ac_compiler $ac_option >&5"
5162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5163 *) ac_try_echo
=$ac_try;;
5165 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5166 $as_echo "$ac_try_echo"; } >&5
5167 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5169 if test -s conftest.err
; then
5171 ... rest of stderr output deleted ...
5172 10q' conftest.err
>conftest.er1
5173 cat conftest.er1
>&5
5175 rm -f conftest.er1 conftest.err
5176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5177 test $ac_status = 0; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5181 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5182 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5183 $as_echo_n "(cached) " >&6
5185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5199 if ac_fn_cxx_try_compile
"$LINENO"; then :
5204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5205 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5209 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5210 if test $ac_compiler_gnu = yes; then
5215 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5216 ac_save_CXXFLAGS
=$CXXFLAGS
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5218 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5219 if ${ac_cv_prog_cxx_g+:} false
; then :
5220 $as_echo_n "(cached) " >&6
5222 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5223 ac_cxx_werror_flag
=yes
5226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5237 if ac_fn_cxx_try_compile
"$LINENO"; then :
5238 ac_cv_prog_cxx_g
=yes
5241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5252 if ac_fn_cxx_try_compile
"$LINENO"; then :
5255 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5268 if ac_fn_cxx_try_compile
"$LINENO"; then :
5269 ac_cv_prog_cxx_g
=yes
5271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5276 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5279 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5280 if test "$ac_test_CXXFLAGS" = set; then
5281 CXXFLAGS
=$ac_save_CXXFLAGS
5282 elif test $ac_cv_prog_cxx_g = yes; then
5283 if test "$GXX" = yes; then
5289 if test "$GXX" = yes; then
5296 ac_cpp
='$CPP $CPPFLAGS'
5297 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5302 # We must set the default linker to the linker used by gcc for the correct
5303 # operation of libtool. If LD is not defined and we are using gcc, try to
5304 # set the LD default to the ld used by gcc.
5305 if test -z "$LD"; then
5306 if test "$GCC" = yes; then
5309 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5311 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5313 case $gcc_prog_ld in
5314 # Accept absolute paths.
5315 [\\/]* |
[A-Za-z
]:[\\/]*)
5316 LD
="$gcc_prog_ld" ;;
5321 # Check whether -static-libstdc++ -static-libgcc is supported.
5323 if test "$GCC" = yes; then
5324 saved_LDFLAGS
="$LDFLAGS"
5326 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5328 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5330 ac_cpp
='$CXXCPP $CPPFLAGS'
5331 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5339 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5340 #error -static-libstdc++ not implemented
5344 if ac_fn_cxx_try_link
"$LINENO"; then :
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346 $as_echo "yes" >&6; }; have_static_libs
=yes
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5351 rm -f core conftest.err conftest.
$ac_objext \
5352 conftest
$ac_exeext conftest.
$ac_ext
5354 ac_cpp
='$CPP $CPPFLAGS'
5355 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5360 LDFLAGS
="$saved_LDFLAGS"
5366 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5368 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_GNATBIND+:} false
; then :
5372 $as_echo_n "(cached) " >&6
5374 if test -n "$GNATBIND"; then
5375 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir
=.
5382 for ac_exec_ext
in '' $ac_executable_extensions; do
5383 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 GNATBIND
=$ac_cv_prog_GNATBIND
5395 if test -n "$GNATBIND"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5397 $as_echo "$GNATBIND" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5405 if test -z "$ac_cv_prog_GNATBIND"; then
5406 ac_ct_GNATBIND
=$GNATBIND
5407 # Extract the first word of "gnatbind", so it can be a program name with args.
5408 set dummy gnatbind
; ac_word
=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5412 $as_echo_n "(cached) " >&6
5414 if test -n "$ac_ct_GNATBIND"; then
5415 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir
=.
5422 for ac_exec_ext
in '' $ac_executable_extensions; do
5423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5435 if test -n "$ac_ct_GNATBIND"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5437 $as_echo "$ac_ct_GNATBIND" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5443 if test "x$ac_ct_GNATBIND" = x
; then
5446 case $cross_compiling:$ac_tool_warned in
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5450 ac_tool_warned
=yes ;;
5452 GNATBIND
=$ac_ct_GNATBIND
5455 GNATBIND
="$ac_cv_prog_GNATBIND"
5458 if test -n "$ac_tool_prefix"; then
5459 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5460 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5464 $as_echo_n "(cached) " >&6
5466 if test -n "$GNATMAKE"; then
5467 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir
=.
5474 for ac_exec_ext
in '' $ac_executable_extensions; do
5475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 GNATMAKE
=$ac_cv_prog_GNATMAKE
5487 if test -n "$GNATMAKE"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5489 $as_echo "$GNATMAKE" >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5497 if test -z "$ac_cv_prog_GNATMAKE"; then
5498 ac_ct_GNATMAKE
=$GNATMAKE
5499 # Extract the first word of "gnatmake", so it can be a program name with args.
5500 set dummy gnatmake
; ac_word
=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5504 $as_echo_n "(cached) " >&6
5506 if test -n "$ac_ct_GNATMAKE"; then
5507 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5513 test -z "$as_dir" && as_dir
=.
5514 for ac_exec_ext
in '' $ac_executable_extensions; do
5515 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5516 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5527 if test -n "$ac_ct_GNATMAKE"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5529 $as_echo "$ac_ct_GNATMAKE" >&6; }
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5535 if test "x$ac_ct_GNATMAKE" = x
; then
5538 case $cross_compiling:$ac_tool_warned in
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542 ac_tool_warned
=yes ;;
5544 GNATMAKE
=$ac_ct_GNATMAKE
5547 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5551 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5552 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5553 $as_echo_n "(cached) " >&6
5555 cat >conftest.adb
<<EOF
5556 procedure conftest is begin null; end conftest;
5558 acx_cv_cc_gcc_supports_ada
=no
5559 # There is a bug in old released versions of GCC which causes the
5560 # driver to exit successfully when the appropriate language module
5561 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5562 # Therefore we must check for the error message as well as an
5563 # unsuccessful exit.
5564 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5565 # given a .adb file, but produce no object file. So we must check
5566 # if an object file was really produced to guard against this.
5567 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5568 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5569 acx_cv_cc_gcc_supports_ada
=yes
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5574 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5576 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5586 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_GDC+:} false
; then :
5590 $as_echo_n "(cached) " >&6
5592 if test -n "$GDC"; then
5593 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5599 test -z "$as_dir" && as_dir
=.
5600 for ac_exec_ext
in '' $ac_executable_extensions; do
5601 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 if test -n "$GDC"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5615 $as_echo "$GDC" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5623 if test -z "$ac_cv_prog_GDC"; then
5625 # Extract the first word of "gdc", so it can be a program name with args.
5626 set dummy gdc
; ac_word
=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5630 $as_echo_n "(cached) " >&6
5632 if test -n "$ac_ct_GDC"; then
5633 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir
=.
5640 for ac_exec_ext
in '' $ac_executable_extensions; do
5641 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5642 ac_cv_prog_ac_ct_GDC
="gdc"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5653 if test -n "$ac_ct_GDC"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5655 $as_echo "$ac_ct_GDC" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5661 if test "x$ac_ct_GDC" = x
; then
5664 case $cross_compiling:$ac_tool_warned in
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668 ac_tool_warned
=yes ;;
5673 GDC
="$ac_cv_prog_GDC"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5677 $as_echo_n "checking whether the D compiler works... " >&6; }
5678 if ${acx_cv_d_compiler_works+:} false
; then :
5679 $as_echo_n "(cached) " >&6
5681 cat >conftest.d
<<EOF
5682 module conftest; int main() { return 0; }
5684 acx_cv_d_compiler_works
=no
5685 if test "x$GDC" != xno
; then
5686 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5687 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5688 acx_cv_d_compiler_works
=yes
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5694 $as_echo "$acx_cv_d_compiler_works" >&6; }
5695 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5702 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5703 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5704 $as_echo_n "(cached) " >&6
5708 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5709 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5710 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5713 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5716 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5717 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5720 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5727 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5728 do_compare
="$gcc_cv_prog_cmp_skip"
5732 # Check whether --enable-bootstrap was given.
5733 if test "${enable_bootstrap+set}" = set; then :
5734 enableval
=$enable_bootstrap;
5736 enable_bootstrap
=default
5740 # Issue errors and warnings for invalid/strange bootstrap combinations.
5741 if test -r $srcdir/gcc
/configure
; then
5747 case "$have_compiler:$host:$target:$enable_bootstrap" in
5750 # Default behavior. Enable bootstrap if we have a compiler
5751 # and we are in a native configuration.
5752 yes:$build:$build:default
)
5753 enable_bootstrap
=yes ;;
5756 enable_bootstrap
=no
;;
5758 # We have a compiler and we are in a native configuration, bootstrap is ok
5759 yes:$build:$build:yes)
5762 # Other configurations, but we have a compiler. Assume the user knows
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5766 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5769 # No compiler: if they passed --enable-bootstrap explicitly, fail
5771 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5773 # Fail if wrong command line
5775 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5779 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5780 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5781 # require C++11 (or higher).
5782 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5783 CXX
="$CXX -std=c++11"
5784 elif test "$have_compiler" = yes; then
5785 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5787 ac_cpp
='$CXXCPP $CPPFLAGS'
5788 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5794 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5795 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5796 $as_echo_n "(cached) " >&6
5798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5802 // If the compiler admits that it is not ready for C++11, why torture it?
5803 // Hopefully, this will speed up the test.
5807 #error "This is not a C++ compiler"
5809 #elif __cplusplus < 201103L
5811 #error "This is not a C++11 compiler"
5818 namespace test_static_assert
5821 template <typename T>
5824 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5829 namespace test_final_override
5838 struct Derived : public Base
5840 virtual ~Derived() override {}
5841 virtual void f() override {}
5846 namespace test_double_right_angle_brackets
5849 template < typename T >
5852 typedef check<void> single_type;
5853 typedef check<check<void>> double_type;
5854 typedef check<check<check<void>>> triple_type;
5855 typedef check<check<check<check<void>>>> quadruple_type;
5859 namespace test_decltype
5872 namespace test_type_deduction
5875 template < typename T1, typename T2 >
5878 static const bool value = false;
5881 template < typename T >
5882 struct is_same<T, T>
5884 static const bool value = true;
5887 template < typename T1, typename T2 >
5889 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5895 test(const int c, volatile int v)
5897 static_assert(is_same<int, decltype(0)>::value == true, "");
5898 static_assert(is_same<int, decltype(c)>::value == false, "");
5899 static_assert(is_same<int, decltype(v)>::value == false, "");
5902 auto sumi = ac + av + 'x';
5903 auto sumf = ac + av + 1.0;
5904 static_assert(is_same<int, decltype(ac)>::value == true, "");
5905 static_assert(is_same<int, decltype(av)>::value == true, "");
5906 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5907 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5908 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5909 return (sumf > 0.0) ? sumi : add(c, v);
5914 namespace test_noexcept
5917 int f() { return 0; }
5918 int g() noexcept { return 0; }
5920 static_assert(noexcept(f()) == false, "");
5921 static_assert(noexcept(g()) == true, "");
5925 namespace test_constexpr
5928 template < typename CharT >
5929 unsigned long constexpr
5930 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5932 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5935 template < typename CharT >
5936 unsigned long constexpr
5937 strlen_c(const CharT *const s) noexcept
5939 return strlen_c_r(s, 0UL);
5942 static_assert(strlen_c("") == 0UL, "");
5943 static_assert(strlen_c("1") == 1UL, "");
5944 static_assert(strlen_c("example") == 7UL, "");
5945 static_assert(strlen_c("another\0example") == 7UL, "");
5949 namespace test_rvalue_references
5955 static constexpr int value = N;
5958 answer<1> f(int&) { return answer<1>(); }
5959 answer<2> f(const int&) { return answer<2>(); }
5960 answer<3> f(int&&) { return answer<3>(); }
5967 static_assert(decltype(f(i))::value == 1, "");
5968 static_assert(decltype(f(c))::value == 2, "");
5969 static_assert(decltype(f(0))::value == 3, "");
5974 namespace test_uniform_initialization
5979 static const int zero {};
5980 static const int one {1};
5983 static_assert(test::zero == 0, "");
5984 static_assert(test::one == 1, "");
5988 namespace test_lambdas
5994 auto lambda1 = [](){};
5995 auto lambda2 = lambda1;
6003 auto a = [](int i, int j){ return i + j; }(1, 2);
6004 auto b = []() -> int { return '0'; }();
6005 auto c = [=](){ return a + b; }();
6006 auto d = [&](){ return c; }();
6007 auto e = [a, &b](int x) mutable {
6008 const auto identity = [](int y){ return y; };
6009 for (auto i = 0; i < a; ++i)
6011 return x + identity(a + b);
6013 return a + b + c + d + e;
6019 const auto nullary = [](){ return 0; };
6020 const auto unary = [](int x){ return x; };
6021 using nullary_t = decltype(nullary);
6022 using unary_t = decltype(unary);
6023 const auto higher1st = [](nullary_t f){ return f(); };
6024 const auto higher2nd = [unary](nullary_t f1){
6025 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6027 return higher1st(nullary) + higher2nd(nullary)(unary);
6032 namespace test_variadic_templates
6038 template <int N0, int... N1toN>
6039 struct sum<N0, N1toN...>
6041 static constexpr auto value = N0 + sum<N1toN...>::value;
6047 static constexpr auto value = 0;
6050 static_assert(sum<>::value == 0, "");
6051 static_assert(sum<1>::value == 1, "");
6052 static_assert(sum<23>::value == 23, "");
6053 static_assert(sum<1, 2>::value == 3, "");
6054 static_assert(sum<5, 5, 11>::value == 21, "");
6055 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6059 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6060 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6062 namespace test_template_alias_sfinae
6067 template<typename T>
6068 using member = typename T::member_type;
6070 template<typename T>
6073 template<typename T>
6074 void func(member<T>*) {}
6078 void test() { func<foo>(0); }
6082 } // namespace cxx11
6084 #endif // __cplusplus >= 201103L
6089 if ac_fn_cxx_try_compile
"$LINENO"; then :
6090 ax_cv_cxx_compile_cxx11
=yes
6092 ax_cv_cxx_compile_cxx11
=no
6094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6097 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6098 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6102 if test x
$ac_success = xno
; then
6103 for alternative
in ${ax_cxx_compile_alternatives}; do
6104 switch
="-std=gnu++${alternative}"
6105 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6107 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6108 if eval \
${$cachevar+:} false
; then :
6109 $as_echo_n "(cached) " >&6
6113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6117 // If the compiler admits that it is not ready for C++11, why torture it?
6118 // Hopefully, this will speed up the test.
6122 #error "This is not a C++ compiler"
6124 #elif __cplusplus < 201103L
6126 #error "This is not a C++11 compiler"
6133 namespace test_static_assert
6136 template <typename T>
6139 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6144 namespace test_final_override
6153 struct Derived : public Base
6155 virtual ~Derived() override {}
6156 virtual void f() override {}
6161 namespace test_double_right_angle_brackets
6164 template < typename T >
6167 typedef check<void> single_type;
6168 typedef check<check<void>> double_type;
6169 typedef check<check<check<void>>> triple_type;
6170 typedef check<check<check<check<void>>>> quadruple_type;
6174 namespace test_decltype
6187 namespace test_type_deduction
6190 template < typename T1, typename T2 >
6193 static const bool value = false;
6196 template < typename T >
6197 struct is_same<T, T>
6199 static const bool value = true;
6202 template < typename T1, typename T2 >
6204 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6210 test(const int c, volatile int v)
6212 static_assert(is_same<int, decltype(0)>::value == true, "");
6213 static_assert(is_same<int, decltype(c)>::value == false, "");
6214 static_assert(is_same<int, decltype(v)>::value == false, "");
6217 auto sumi = ac + av + 'x';
6218 auto sumf = ac + av + 1.0;
6219 static_assert(is_same<int, decltype(ac)>::value == true, "");
6220 static_assert(is_same<int, decltype(av)>::value == true, "");
6221 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6222 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6223 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6224 return (sumf > 0.0) ? sumi : add(c, v);
6229 namespace test_noexcept
6232 int f() { return 0; }
6233 int g() noexcept { return 0; }
6235 static_assert(noexcept(f()) == false, "");
6236 static_assert(noexcept(g()) == true, "");
6240 namespace test_constexpr
6243 template < typename CharT >
6244 unsigned long constexpr
6245 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6247 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6250 template < typename CharT >
6251 unsigned long constexpr
6252 strlen_c(const CharT *const s) noexcept
6254 return strlen_c_r(s, 0UL);
6257 static_assert(strlen_c("") == 0UL, "");
6258 static_assert(strlen_c("1") == 1UL, "");
6259 static_assert(strlen_c("example") == 7UL, "");
6260 static_assert(strlen_c("another\0example") == 7UL, "");
6264 namespace test_rvalue_references
6270 static constexpr int value = N;
6273 answer<1> f(int&) { return answer<1>(); }
6274 answer<2> f(const int&) { return answer<2>(); }
6275 answer<3> f(int&&) { return answer<3>(); }
6282 static_assert(decltype(f(i))::value == 1, "");
6283 static_assert(decltype(f(c))::value == 2, "");
6284 static_assert(decltype(f(0))::value == 3, "");
6289 namespace test_uniform_initialization
6294 static const int zero {};
6295 static const int one {1};
6298 static_assert(test::zero == 0, "");
6299 static_assert(test::one == 1, "");
6303 namespace test_lambdas
6309 auto lambda1 = [](){};
6310 auto lambda2 = lambda1;
6318 auto a = [](int i, int j){ return i + j; }(1, 2);
6319 auto b = []() -> int { return '0'; }();
6320 auto c = [=](){ return a + b; }();
6321 auto d = [&](){ return c; }();
6322 auto e = [a, &b](int x) mutable {
6323 const auto identity = [](int y){ return y; };
6324 for (auto i = 0; i < a; ++i)
6326 return x + identity(a + b);
6328 return a + b + c + d + e;
6334 const auto nullary = [](){ return 0; };
6335 const auto unary = [](int x){ return x; };
6336 using nullary_t = decltype(nullary);
6337 using unary_t = decltype(unary);
6338 const auto higher1st = [](nullary_t f){ return f(); };
6339 const auto higher2nd = [unary](nullary_t f1){
6340 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6342 return higher1st(nullary) + higher2nd(nullary)(unary);
6347 namespace test_variadic_templates
6353 template <int N0, int... N1toN>
6354 struct sum<N0, N1toN...>
6356 static constexpr auto value = N0 + sum<N1toN...>::value;
6362 static constexpr auto value = 0;
6365 static_assert(sum<>::value == 0, "");
6366 static_assert(sum<1>::value == 1, "");
6367 static_assert(sum<23>::value == 23, "");
6368 static_assert(sum<1, 2>::value == 3, "");
6369 static_assert(sum<5, 5, 11>::value == 21, "");
6370 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6374 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6375 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6377 namespace test_template_alias_sfinae
6382 template<typename T>
6383 using member = typename T::member_type;
6385 template<typename T>
6388 template<typename T>
6389 void func(member<T>*) {}
6393 void test() { func<foo>(0); }
6397 } // namespace cxx11
6399 #endif // __cplusplus >= 201103L
6404 if ac_fn_cxx_try_compile
"$LINENO"; then :
6409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6412 eval ac_res
=\$
$cachevar
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6414 $as_echo "$ac_res" >&6; }
6415 if eval test x\$
$cachevar = xyes
; then
6417 if test -n "$CXXCPP" ; then
6418 CXXCPP
="$CXXCPP $switch"
6426 if test x
$ac_success = xno
; then
6427 for alternative
in ${ax_cxx_compile_alternatives}; do
6428 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6429 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6431 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6432 if eval \${$cachevar+:} false; then :
6433 $as_echo_n "(cached
) " >&6
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6441 // If the compiler admits that it is not ready for C++11, why torture it?
6442 // Hopefully, this will speed up the test.
6446 #error "This is not a C
++ compiler
"
6448 #elif __cplusplus < 201103L
6450 #error "This is not a C
++11 compiler
"
6457 namespace test_static_assert
6460 template <typename T>
6463 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6468 namespace test_final_override
6477 struct Derived : public Base
6479 virtual ~Derived() override {}
6480 virtual void f() override {}
6485 namespace test_double_right_angle_brackets
6488 template < typename T >
6491 typedef check<void> single_type;
6492 typedef check<check<void>> double_type;
6493 typedef check<check<check<void>>> triple_type;
6494 typedef check<check<check<check<void>>>> quadruple_type;
6498 namespace test_decltype
6511 namespace test_type_deduction
6514 template < typename T1, typename T2 >
6517 static const bool value = false;
6520 template < typename T >
6521 struct is_same<T, T>
6523 static const bool value = true;
6526 template < typename T1, typename T2 >
6528 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6534 test(const int c, volatile int v)
6536 static_assert(is_same<int, decltype(0)>::value == true, "");
6537 static_assert(is_same<int, decltype(c)>::value == false, "");
6538 static_assert(is_same<int, decltype(v)>::value == false, "");
6541 auto sumi = ac + av + 'x';
6542 auto sumf = ac + av + 1.0;
6543 static_assert(is_same<int, decltype(ac)>::value == true, "");
6544 static_assert(is_same<int, decltype(av)>::value == true, "");
6545 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6546 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6547 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6548 return (sumf > 0.0) ? sumi : add(c, v);
6553 namespace test_noexcept
6556 int f() { return 0; }
6557 int g() noexcept { return 0; }
6559 static_assert(noexcept(f()) == false, "");
6560 static_assert(noexcept(g()) == true, "");
6564 namespace test_constexpr
6567 template < typename CharT >
6568 unsigned long constexpr
6569 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6571 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6574 template < typename CharT >
6575 unsigned long constexpr
6576 strlen_c(const CharT *const s) noexcept
6578 return strlen_c_r(s, 0UL);
6581 static_assert(strlen_c("") == 0UL, "");
6582 static_assert(strlen_c("1") == 1UL, "");
6583 static_assert(strlen_c("example
") == 7UL, "");
6584 static_assert(strlen_c("another\
0example
") == 7UL, "");
6588 namespace test_rvalue_references
6594 static constexpr int value = N;
6597 answer<1> f(int&) { return answer<1>(); }
6598 answer<2> f(const int&) { return answer<2>(); }
6599 answer<3> f(int&&) { return answer<3>(); }
6606 static_assert(decltype(f(i))::value == 1, "");
6607 static_assert(decltype(f(c))::value == 2, "");
6608 static_assert(decltype(f(0))::value == 3, "");
6613 namespace test_uniform_initialization
6618 static const int zero {};
6619 static const int one {1};
6622 static_assert(test::zero == 0, "");
6623 static_assert(test::one == 1, "");
6627 namespace test_lambdas
6633 auto lambda1 = [](){};
6634 auto lambda2 = lambda1;
6642 auto a = [](int i, int j){ return i + j; }(1, 2);
6643 auto b = []() -> int { return '0'; }();
6644 auto c = [=](){ return a + b; }();
6645 auto d = [&](){ return c; }();
6646 auto e = [a, &b](int x) mutable {
6647 const auto identity = [](int y){ return y; };
6648 for (auto i = 0; i < a; ++i)
6650 return x + identity(a + b);
6652 return a + b + c + d + e;
6658 const auto nullary = [](){ return 0; };
6659 const auto unary = [](int x){ return x; };
6660 using nullary_t = decltype(nullary);
6661 using unary_t = decltype(unary);
6662 const auto higher1st = [](nullary_t f){ return f(); };
6663 const auto higher2nd = [unary](nullary_t f1){
6664 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6666 return higher1st(nullary) + higher2nd(nullary)(unary);
6671 namespace test_variadic_templates
6677 template <int N0, int... N1toN>
6678 struct sum<N0, N1toN...>
6680 static constexpr auto value = N0 + sum<N1toN...>::value;
6686 static constexpr auto value = 0;
6689 static_assert(sum<>::value == 0, "");
6690 static_assert(sum<1>::value == 1, "");
6691 static_assert(sum<23>::value == 23, "");
6692 static_assert(sum<1, 2>::value == 3, "");
6693 static_assert(sum<5, 5, 11>::value == 21, "");
6694 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6698 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6699 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6701 namespace test_template_alias_sfinae
6706 template<typename T>
6707 using member = typename T::member_type;
6709 template<typename T>
6712 template<typename T>
6713 void func(member<T>*) {}
6717 void test() { func<foo>(0); }
6721 } // namespace cxx11
6723 #endif // __cplusplus >= 201103L
6728 if ac_fn_cxx_try_compile "$LINENO"; then :
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 eval ac_res=\$$cachevar
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6738 $as_echo "$ac_res" >&6; }
6739 if eval test x\$$cachevar = xyes; then
6741 if test -n "$CXXCPP" ; then
6742 CXXCPP="$CXXCPP $switch"
6748 if test x$ac_success = xyes; then
6755 ac_cpp='$CPP $CPPFLAGS'
6756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6760 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6761 if test x$ac_success = xno; then
6762 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6765 if test x$ac_success = xno; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6768 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6772 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6778 if test "${build}" != "${host}"; then
6779 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6781 ac_cpp
='$CXXCPP $CPPFLAGS'
6782 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6786 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6787 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6788 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6789 CXX
="$CXX_FOR_BUILD"
6790 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6791 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6793 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6794 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6795 $as_echo_n "(cached) " >&6
6797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6801 // If the compiler admits that it is not ready for C++11, why torture it?
6802 // Hopefully, this will speed up the test.
6806 #error "This is not a C++ compiler"
6808 #elif __cplusplus < 201103L
6810 #error "This is not a C++11 compiler"
6817 namespace test_static_assert
6820 template <typename T>
6823 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6828 namespace test_final_override
6837 struct Derived : public Base
6839 virtual ~Derived() override {}
6840 virtual void f() override {}
6845 namespace test_double_right_angle_brackets
6848 template < typename T >
6851 typedef check<void> single_type;
6852 typedef check<check<void>> double_type;
6853 typedef check<check<check<void>>> triple_type;
6854 typedef check<check<check<check<void>>>> quadruple_type;
6858 namespace test_decltype
6871 namespace test_type_deduction
6874 template < typename T1, typename T2 >
6877 static const bool value = false;
6880 template < typename T >
6881 struct is_same<T, T>
6883 static const bool value = true;
6886 template < typename T1, typename T2 >
6888 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6894 test(const int c, volatile int v)
6896 static_assert(is_same<int, decltype(0)>::value == true, "");
6897 static_assert(is_same<int, decltype(c)>::value == false, "");
6898 static_assert(is_same<int, decltype(v)>::value == false, "");
6901 auto sumi = ac + av + 'x';
6902 auto sumf = ac + av + 1.0;
6903 static_assert(is_same<int, decltype(ac)>::value == true, "");
6904 static_assert(is_same<int, decltype(av)>::value == true, "");
6905 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6906 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6907 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6908 return (sumf > 0.0) ? sumi : add(c, v);
6913 namespace test_noexcept
6916 int f() { return 0; }
6917 int g() noexcept { return 0; }
6919 static_assert(noexcept(f()) == false, "");
6920 static_assert(noexcept(g()) == true, "");
6924 namespace test_constexpr
6927 template < typename CharT >
6928 unsigned long constexpr
6929 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6931 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6934 template < typename CharT >
6935 unsigned long constexpr
6936 strlen_c(const CharT *const s) noexcept
6938 return strlen_c_r(s, 0UL);
6941 static_assert(strlen_c("") == 0UL, "");
6942 static_assert(strlen_c("1") == 1UL, "");
6943 static_assert(strlen_c("example") == 7UL, "");
6944 static_assert(strlen_c("another\0example") == 7UL, "");
6948 namespace test_rvalue_references
6954 static constexpr int value = N;
6957 answer<1> f(int&) { return answer<1>(); }
6958 answer<2> f(const int&) { return answer<2>(); }
6959 answer<3> f(int&&) { return answer<3>(); }
6966 static_assert(decltype(f(i))::value == 1, "");
6967 static_assert(decltype(f(c))::value == 2, "");
6968 static_assert(decltype(f(0))::value == 3, "");
6973 namespace test_uniform_initialization
6978 static const int zero {};
6979 static const int one {1};
6982 static_assert(test::zero == 0, "");
6983 static_assert(test::one == 1, "");
6987 namespace test_lambdas
6993 auto lambda1 = [](){};
6994 auto lambda2 = lambda1;
7002 auto a = [](int i, int j){ return i + j; }(1, 2);
7003 auto b = []() -> int { return '0'; }();
7004 auto c = [=](){ return a + b; }();
7005 auto d = [&](){ return c; }();
7006 auto e = [a, &b](int x) mutable {
7007 const auto identity = [](int y){ return y; };
7008 for (auto i = 0; i < a; ++i)
7010 return x + identity(a + b);
7012 return a + b + c + d + e;
7018 const auto nullary = [](){ return 0; };
7019 const auto unary = [](int x){ return x; };
7020 using nullary_t = decltype(nullary);
7021 using unary_t = decltype(unary);
7022 const auto higher1st = [](nullary_t f){ return f(); };
7023 const auto higher2nd = [unary](nullary_t f1){
7024 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7026 return higher1st(nullary) + higher2nd(nullary)(unary);
7031 namespace test_variadic_templates
7037 template <int N0, int... N1toN>
7038 struct sum<N0, N1toN...>
7040 static constexpr auto value = N0 + sum<N1toN...>::value;
7046 static constexpr auto value = 0;
7049 static_assert(sum<>::value == 0, "");
7050 static_assert(sum<1>::value == 1, "");
7051 static_assert(sum<23>::value == 23, "");
7052 static_assert(sum<1, 2>::value == 3, "");
7053 static_assert(sum<5, 5, 11>::value == 21, "");
7054 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7058 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7059 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7061 namespace test_template_alias_sfinae
7066 template<typename T>
7067 using member = typename T::member_type;
7069 template<typename T>
7072 template<typename T>
7073 void func(member<T>*) {}
7077 void test() { func<foo>(0); }
7081 } // namespace cxx11
7083 #endif // __cplusplus >= 201103L
7088 if ac_fn_cxx_try_compile
"$LINENO"; then :
7089 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7091 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7096 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7097 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7101 if test x
$ac_success = xno
; then
7102 for alternative
in ${ax_cxx_compile_alternatives}; do
7103 switch
="-std=gnu++${alternative}"
7104 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7106 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7107 if eval \
${$cachevar+:} false
; then :
7108 $as_echo_n "(cached) " >&6
7112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7116 // If the compiler admits that it is not ready for C++11, why torture it?
7117 // Hopefully, this will speed up the test.
7121 #error "This is not a C++ compiler"
7123 #elif __cplusplus < 201103L
7125 #error "This is not a C++11 compiler"
7132 namespace test_static_assert
7135 template <typename T>
7138 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7143 namespace test_final_override
7152 struct Derived : public Base
7154 virtual ~Derived() override {}
7155 virtual void f() override {}
7160 namespace test_double_right_angle_brackets
7163 template < typename T >
7166 typedef check<void> single_type;
7167 typedef check<check<void>> double_type;
7168 typedef check<check<check<void>>> triple_type;
7169 typedef check<check<check<check<void>>>> quadruple_type;
7173 namespace test_decltype
7186 namespace test_type_deduction
7189 template < typename T1, typename T2 >
7192 static const bool value = false;
7195 template < typename T >
7196 struct is_same<T, T>
7198 static const bool value = true;
7201 template < typename T1, typename T2 >
7203 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7209 test(const int c, volatile int v)
7211 static_assert(is_same<int, decltype(0)>::value == true, "");
7212 static_assert(is_same<int, decltype(c)>::value == false, "");
7213 static_assert(is_same<int, decltype(v)>::value == false, "");
7216 auto sumi = ac + av + 'x';
7217 auto sumf = ac + av + 1.0;
7218 static_assert(is_same<int, decltype(ac)>::value == true, "");
7219 static_assert(is_same<int, decltype(av)>::value == true, "");
7220 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7221 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7222 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7223 return (sumf > 0.0) ? sumi : add(c, v);
7228 namespace test_noexcept
7231 int f() { return 0; }
7232 int g() noexcept { return 0; }
7234 static_assert(noexcept(f()) == false, "");
7235 static_assert(noexcept(g()) == true, "");
7239 namespace test_constexpr
7242 template < typename CharT >
7243 unsigned long constexpr
7244 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7246 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7249 template < typename CharT >
7250 unsigned long constexpr
7251 strlen_c(const CharT *const s) noexcept
7253 return strlen_c_r(s, 0UL);
7256 static_assert(strlen_c("") == 0UL, "");
7257 static_assert(strlen_c("1") == 1UL, "");
7258 static_assert(strlen_c("example") == 7UL, "");
7259 static_assert(strlen_c("another\0example") == 7UL, "");
7263 namespace test_rvalue_references
7269 static constexpr int value = N;
7272 answer<1> f(int&) { return answer<1>(); }
7273 answer<2> f(const int&) { return answer<2>(); }
7274 answer<3> f(int&&) { return answer<3>(); }
7281 static_assert(decltype(f(i))::value == 1, "");
7282 static_assert(decltype(f(c))::value == 2, "");
7283 static_assert(decltype(f(0))::value == 3, "");
7288 namespace test_uniform_initialization
7293 static const int zero {};
7294 static const int one {1};
7297 static_assert(test::zero == 0, "");
7298 static_assert(test::one == 1, "");
7302 namespace test_lambdas
7308 auto lambda1 = [](){};
7309 auto lambda2 = lambda1;
7317 auto a = [](int i, int j){ return i + j; }(1, 2);
7318 auto b = []() -> int { return '0'; }();
7319 auto c = [=](){ return a + b; }();
7320 auto d = [&](){ return c; }();
7321 auto e = [a, &b](int x) mutable {
7322 const auto identity = [](int y){ return y; };
7323 for (auto i = 0; i < a; ++i)
7325 return x + identity(a + b);
7327 return a + b + c + d + e;
7333 const auto nullary = [](){ return 0; };
7334 const auto unary = [](int x){ return x; };
7335 using nullary_t = decltype(nullary);
7336 using unary_t = decltype(unary);
7337 const auto higher1st = [](nullary_t f){ return f(); };
7338 const auto higher2nd = [unary](nullary_t f1){
7339 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7341 return higher1st(nullary) + higher2nd(nullary)(unary);
7346 namespace test_variadic_templates
7352 template <int N0, int... N1toN>
7353 struct sum<N0, N1toN...>
7355 static constexpr auto value = N0 + sum<N1toN...>::value;
7361 static constexpr auto value = 0;
7364 static_assert(sum<>::value == 0, "");
7365 static_assert(sum<1>::value == 1, "");
7366 static_assert(sum<23>::value == 23, "");
7367 static_assert(sum<1, 2>::value == 3, "");
7368 static_assert(sum<5, 5, 11>::value == 21, "");
7369 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7373 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7374 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7376 namespace test_template_alias_sfinae
7381 template<typename T>
7382 using member = typename T::member_type;
7384 template<typename T>
7387 template<typename T>
7388 void func(member<T>*) {}
7392 void test() { func<foo>(0); }
7396 } // namespace cxx11
7398 #endif // __cplusplus >= 201103L
7403 if ac_fn_cxx_try_compile
"$LINENO"; then :
7408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7411 eval ac_res
=\$
$cachevar
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7413 $as_echo "$ac_res" >&6; }
7414 if eval test x\$
$cachevar = xyes
; then
7416 if test -n "$CXXCPP" ; then
7417 CXXCPP
="$CXXCPP $switch"
7425 if test x
$ac_success = xno
; then
7426 for alternative
in ${ax_cxx_compile_alternatives}; do
7427 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7428 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7430 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7431 if eval \${$cachevar+:} false; then :
7432 $as_echo_n "(cached
) " >&6
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7440 // If the compiler admits that it is not ready for C++11, why torture it?
7441 // Hopefully, this will speed up the test.
7445 #error "This is not a C
++ compiler
"
7447 #elif __cplusplus < 201103L
7449 #error "This is not a C
++11 compiler
"
7456 namespace test_static_assert
7459 template <typename T>
7462 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7467 namespace test_final_override
7476 struct Derived : public Base
7478 virtual ~Derived() override {}
7479 virtual void f() override {}
7484 namespace test_double_right_angle_brackets
7487 template < typename T >
7490 typedef check<void> single_type;
7491 typedef check<check<void>> double_type;
7492 typedef check<check<check<void>>> triple_type;
7493 typedef check<check<check<check<void>>>> quadruple_type;
7497 namespace test_decltype
7510 namespace test_type_deduction
7513 template < typename T1, typename T2 >
7516 static const bool value = false;
7519 template < typename T >
7520 struct is_same<T, T>
7522 static const bool value = true;
7525 template < typename T1, typename T2 >
7527 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7533 test(const int c, volatile int v)
7535 static_assert(is_same<int, decltype(0)>::value == true, "");
7536 static_assert(is_same<int, decltype(c)>::value == false, "");
7537 static_assert(is_same<int, decltype(v)>::value == false, "");
7540 auto sumi = ac + av + 'x';
7541 auto sumf = ac + av + 1.0;
7542 static_assert(is_same<int, decltype(ac)>::value == true, "");
7543 static_assert(is_same<int, decltype(av)>::value == true, "");
7544 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7545 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7546 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7547 return (sumf > 0.0) ? sumi : add(c, v);
7552 namespace test_noexcept
7555 int f() { return 0; }
7556 int g() noexcept { return 0; }
7558 static_assert(noexcept(f()) == false, "");
7559 static_assert(noexcept(g()) == true, "");
7563 namespace test_constexpr
7566 template < typename CharT >
7567 unsigned long constexpr
7568 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7570 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7573 template < typename CharT >
7574 unsigned long constexpr
7575 strlen_c(const CharT *const s) noexcept
7577 return strlen_c_r(s, 0UL);
7580 static_assert(strlen_c("") == 0UL, "");
7581 static_assert(strlen_c("1") == 1UL, "");
7582 static_assert(strlen_c("example
") == 7UL, "");
7583 static_assert(strlen_c("another\
0example
") == 7UL, "");
7587 namespace test_rvalue_references
7593 static constexpr int value = N;
7596 answer<1> f(int&) { return answer<1>(); }
7597 answer<2> f(const int&) { return answer<2>(); }
7598 answer<3> f(int&&) { return answer<3>(); }
7605 static_assert(decltype(f(i))::value == 1, "");
7606 static_assert(decltype(f(c))::value == 2, "");
7607 static_assert(decltype(f(0))::value == 3, "");
7612 namespace test_uniform_initialization
7617 static const int zero {};
7618 static const int one {1};
7621 static_assert(test::zero == 0, "");
7622 static_assert(test::one == 1, "");
7626 namespace test_lambdas
7632 auto lambda1 = [](){};
7633 auto lambda2 = lambda1;
7641 auto a = [](int i, int j){ return i + j; }(1, 2);
7642 auto b = []() -> int { return '0'; }();
7643 auto c = [=](){ return a + b; }();
7644 auto d = [&](){ return c; }();
7645 auto e = [a, &b](int x) mutable {
7646 const auto identity = [](int y){ return y; };
7647 for (auto i = 0; i < a; ++i)
7649 return x + identity(a + b);
7651 return a + b + c + d + e;
7657 const auto nullary = [](){ return 0; };
7658 const auto unary = [](int x){ return x; };
7659 using nullary_t = decltype(nullary);
7660 using unary_t = decltype(unary);
7661 const auto higher1st = [](nullary_t f){ return f(); };
7662 const auto higher2nd = [unary](nullary_t f1){
7663 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7665 return higher1st(nullary) + higher2nd(nullary)(unary);
7670 namespace test_variadic_templates
7676 template <int N0, int... N1toN>
7677 struct sum<N0, N1toN...>
7679 static constexpr auto value = N0 + sum<N1toN...>::value;
7685 static constexpr auto value = 0;
7688 static_assert(sum<>::value == 0, "");
7689 static_assert(sum<1>::value == 1, "");
7690 static_assert(sum<23>::value == 23, "");
7691 static_assert(sum<1, 2>::value == 3, "");
7692 static_assert(sum<5, 5, 11>::value == 21, "");
7693 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7697 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7698 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7700 namespace test_template_alias_sfinae
7705 template<typename T>
7706 using member = typename T::member_type;
7708 template<typename T>
7711 template<typename T>
7712 void func(member<T>*) {}
7716 void test() { func<foo>(0); }
7720 } // namespace cxx11
7722 #endif // __cplusplus >= 201103L
7727 if ac_fn_cxx_try_compile "$LINENO"; then :
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 eval ac_res=\$$cachevar
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7737 $as_echo "$ac_res" >&6; }
7738 if eval test x\$$cachevar = xyes; then
7740 if test -n "$CXXCPP" ; then
7741 CXXCPP="$CXXCPP $switch"
7747 if test x$ac_success = xyes; then
7752 CXX_FOR_BUILD="$CXX"
7753 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7754 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7755 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7756 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7757 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7765 if test x$ac_success = xno; then
7766 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7769 if test x$ac_success = xno; then
7770 HAVE_CXX11_FOR_BUILD=0
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7772 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7774 HAVE_CXX11_FOR_BUILD=1
7776 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7784 # Check whether --enable-pgo-build was given.
7785 if test "${enable_pgo_build+set}" = set; then :
7786 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7792 # Issue errors and warnings for invalid/strange PGO build combinations.
7793 case "$have_compiler:$host:$target:$enable_pgo_build" in
7796 # Allow the PGO build only if we aren't building a compiler and
7797 # we are in a native configuration.
7798 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7800 # Disallow the PGO bootstrap if we are building a compiler.
7801 yes:*:*:yes |
yes:*:*:lto
)
7802 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7805 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7809 if test "$enable_pgo_build" != "no"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7811 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7812 old_CFLAGS
="$CFLAGS"
7813 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7814 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7820 if ac_fn_c_try_compile
"$LINENO"; then :
7823 PGO_BUILD_GEN_CFLAGS
=
7825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7826 CFLAGS
="$old_CFLAGS"
7827 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7829 $as_echo "yes" >&6; }
7830 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7837 if test "$enable_pgo_build" = "lto"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7839 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7840 old_CFLAGS
="$CFLAGS"
7841 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7842 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7847 if ac_fn_c_try_compile
"$LINENO"; then :
7850 PGO_BUILD_LTO_CFLAGS
=
7852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7853 CFLAGS
="$old_CFLAGS"
7854 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7856 $as_echo "yes" >&6; }
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7861 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7869 # Used for setting $lt_cv_objdir
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7871 $as_echo_n "checking for objdir... " >&6; }
7872 if ${lt_cv_objdir+:} false
; then :
7873 $as_echo_n "(cached) " >&6
7875 rm -f .libs
2>/dev
/null
7876 mkdir .libs
2>/dev
/null
7877 if test -d .libs
; then
7880 # MS-DOS does not allow filenames that begin with a dot.
7883 rmdir .libs
2>/dev
/null
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7886 $as_echo "$lt_cv_objdir" >&6; }
7887 objdir
=$lt_cv_objdir
7893 cat >>confdefs.h
<<_ACEOF
7894 #define LT_OBJDIR "$lt_cv_objdir/"
7899 # Check for GMP, MPFR and MPC
7900 gmplibs
="-lmpc -lmpfr -lgmp"
7904 # Specify a location for mpc
7905 # check for this first so it ends up on the link line before mpfr.
7907 # Check whether --with-mpc was given.
7908 if test "${with_mpc+set}" = set; then :
7913 # Check whether --with-mpc-include was given.
7914 if test "${with_mpc_include+set}" = set; then :
7915 withval
=$with_mpc_include;
7919 # Check whether --with-mpc-lib was given.
7920 if test "${with_mpc_lib+set}" = set; then :
7921 withval
=$with_mpc_lib;
7925 if test "x$with_mpc" != x
; then
7926 gmplibs
="-L$with_mpc/lib $gmplibs"
7927 gmpinc
="-I$with_mpc/include $gmpinc"
7929 if test "x$with_mpc_include" != x
; then
7930 gmpinc
="-I$with_mpc_include $gmpinc"
7932 if test "x$with_mpc_lib" != x
; then
7933 gmplibs
="-L$with_mpc_lib $gmplibs"
7935 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7936 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7937 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7938 # Do not test the mpc version. Assume that it is sufficient, since
7939 # it is in the source tree, and the library has not been built yet
7940 # but it would be included on the link line in the version check below
7941 # hence making the test fail.
7945 # Specify a location for mpfr
7946 # check for this first so it ends up on the link line before gmp.
7948 # Check whether --with-mpfr was given.
7949 if test "${with_mpfr+set}" = set; then :
7954 # Check whether --with-mpfr-include was given.
7955 if test "${with_mpfr_include+set}" = set; then :
7956 withval
=$with_mpfr_include;
7960 # Check whether --with-mpfr-lib was given.
7961 if test "${with_mpfr_lib+set}" = set; then :
7962 withval
=$with_mpfr_lib;
7966 if test "x$with_mpfr" != x
; then
7967 gmplibs
="-L$with_mpfr/lib $gmplibs"
7968 gmpinc
="-I$with_mpfr/include $gmpinc"
7970 if test "x$with_mpfr_include" != x
; then
7971 gmpinc
="-I$with_mpfr_include $gmpinc"
7973 if test "x$with_mpfr_lib" != x
; then
7974 gmplibs
="-L$with_mpfr_lib $gmplibs"
7976 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
7977 # MPFR v3.1.0 moved the sources into a src sub-directory.
7978 if ! test -d ${srcdir}/mpfr
/src
; then
7979 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7981 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7982 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7983 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7984 # Do not test the mpfr version. Assume that it is sufficient, since
7985 # it is in the source tree, and the library has not been built yet
7986 # but it would be included on the link line in the version check below
7987 # hence making the test fail.
7991 # Specify a location for gmp
7994 # The library versions listed in the error message below should match
7995 # the HARD-minimums enforced above.
7998 # Flags needed for both GMP, MPFR and/or MPC.
8006 # Libraries to use for stage1 or when not bootstrapping.
8008 # Check whether --with-stage1-libs was given.
8009 if test "${with_stage1_libs+set}" = set; then :
8010 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8013 stage1_libs
=$withval
8021 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8022 # default is yes if gcc is being built; no otherwise. The reason for
8023 # this default is that gdb is sometimes linked against GNU Source
8024 # Highlight, which is a shared library that uses C++ exceptions. In
8025 # this case, -static-libstdc++ will cause crashes.
8027 # Check whether --with-static-standard-libraries was given.
8028 if test "${with_static_standard_libraries+set}" = set; then :
8029 withval
=$with_static_standard_libraries;
8031 with_static_standard_libraries
=auto
8034 if test "$with_static_standard_libraries" = auto
; then
8035 with_static_standard_libraries
=$have_compiler
8038 # Linker flags to use for stage1 or when not bootstrapping.
8040 # Check whether --with-stage1-ldflags was given.
8041 if test "${with_stage1_ldflags+set}" = set; then :
8042 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8045 stage1_ldflags
=$withval
8049 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8050 # if supported. But if the user explicitly specified the libraries to use,
8051 # trust that they are doing what they want.
8052 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8053 -a "$have_static_libs" = yes; then
8054 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8060 # Libraries to use for stage2 and later builds.
8062 # Check whether --with-boot-libs was given.
8063 if test "${with_boot_libs+set}" = set; then :
8064 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8067 poststage1_libs
=$withval
8075 # Linker flags to use for stage2 and later builds.
8077 # Check whether --with-boot-ldflags was given.
8078 if test "${with_boot_ldflags+set}" = set; then :
8079 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8082 poststage1_ldflags
=$withval
8086 # In stages 2 and 3, default to linking libstdc++ and libgcc
8087 # statically. But if the user explicitly specified the libraries to
8088 # use, trust that they are doing what they want.
8089 if test "$poststage1_libs" = ""; then
8090 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8096 # GCC GRAPHITE dependency isl.
8097 # Basic setup is inlined here, actual checks are in config/isl.m4
8100 # Check whether --with-isl was given.
8101 if test "${with_isl+set}" = set; then :
8106 # Treat --without-isl as a request to disable
8107 # GRAPHITE support and skip all following checks.
8108 if test "x$with_isl" != "xno"; then
8112 # Check whether --with-isl-include was given.
8113 if test "${with_isl_include+set}" = set; then :
8114 withval
=$with_isl_include;
8118 # Check whether --with-isl-lib was given.
8119 if test "${with_isl_lib+set}" = set; then :
8120 withval
=$with_isl_lib;
8124 # Check whether --enable-isl-version-check was given.
8125 if test "${enable_isl_version_check+set}" = set; then :
8126 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8128 ENABLE_ISL_CHECK
=yes
8132 # Initialize isllibs and islinc.
8141 isllibs
="-L$with_isl/lib"
8142 islinc
="-I$with_isl/include"
8145 if test "x${with_isl_include}" != x
; then
8146 islinc
="-I$with_isl_include"
8148 if test "x${with_isl_lib}" != x
; then
8149 isllibs
="-L$with_isl_lib"
8151 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8152 && test -d ${srcdir}/isl
; then
8153 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8154 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8157 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8160 isllibs
="${isllibs} -lisl"
8164 if test "${ENABLE_ISL_CHECK}" = yes ; then
8165 _isl_saved_CFLAGS
=$CFLAGS
8166 _isl_saved_LDFLAGS
=$LDFLAGS
8167 _isl_saved_LIBS
=$LIBS
8169 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8170 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8171 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8174 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 #include <isl/schedule.h>
8181 isl_options_set_schedule_serialize_sccs (NULL, 0);
8186 if ac_fn_c_try_link
"$LINENO"; then :
8191 rm -f core conftest.err conftest.
$ac_objext \
8192 conftest
$ac_exeext conftest.
$ac_ext
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8194 $as_echo "$gcc_cv_isl" >&6; }
8196 if test "${gcc_cv_isl}" = no
; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8198 $as_echo "required isl version is 0.15 or later" >&6; }
8201 CFLAGS
=$_isl_saved_CFLAGS
8202 LDFLAGS
=$_isl_saved_LDFLAGS
8203 LIBS
=$_isl_saved_LIBS
8211 if test "x${with_isl}" = xno
; then
8212 graphite_requested
=no
8213 elif test "x${with_isl}" != x \
8214 ||
test "x${with_isl_include}" != x \
8215 ||
test "x${with_isl_lib}" != x
; then
8216 graphite_requested
=yes
8218 graphite_requested
=no
8223 if test "${gcc_cv_isl}" = no
; then
8228 if test "${graphite_requested}" = yes \
8229 && test "x${isllibs}" = x \
8230 && test "x${islinc}" = x
; then
8232 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8238 # If the isl check failed, disable builds of in-tree variant of isl
8239 if test "x$with_isl" = xno ||
8240 test "x$gcc_cv_isl" = xno
; then
8241 noconfigdirs
="$noconfigdirs isl"
8248 # Check for LTO support.
8249 # Check whether --enable-lto was given.
8250 if test "${enable_lto+set}" = set; then :
8251 enableval
=$enable_lto; enable_lto
=$enableval
8253 enable_lto
=yes; default_enable_lto
=yes
8262 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8263 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8264 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8273 if test $target_elf = yes; then :
8274 # ELF platforms build the lto-plugin always.
8275 build_lto_plugin
=yes
8278 if test x
"$default_enable_lto" = x
"yes" ; then
8280 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8281 # On other non-ELF platforms, LTO has yet to be validated.
8285 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8286 # It would also be nice to check the binutils support, but we don't
8287 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8288 # warn during gcc/ subconfigure; unless you're bootstrapping with
8289 # -flto it won't be needed until after installation anyway.
8291 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8292 *) if test x
"$enable_lto" = x
"yes"; then
8293 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8298 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8299 # Build it unless LTO was explicitly disabled.
8301 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8308 # Check whether --enable-linker-plugin-configure-flags was given.
8309 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8310 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8312 extra_linker_plugin_configure_flags
=
8316 # Check whether --enable-linker-plugin-flags was given.
8317 if test "${enable_linker_plugin_flags+set}" = set; then :
8318 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8320 extra_linker_plugin_flags
=
8325 # Enable --enable-host-shared.
8326 # Checked early to determine whether jit is an 'all' language
8327 # Check whether --enable-host-shared was given.
8328 if test "${enable_host_shared+set}" = set; then :
8329 enableval
=$enable_host_shared; host_shared
=$enableval
8331 x86_64-
*-darwin* | aarch64-
*-darwin*)
8332 if test x
$host_shared != xyes
; then
8333 # PIC is the default, and actually cannot be switched off.
8334 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8341 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8342 *) host_shared
=no
;;
8348 # By default, C and C++ are the only stage 1 languages.
8349 stage1_languages
=,c
,
8351 # Target libraries that we bootstrap.
8352 bootstrap_target_libs
=,target-libgcc
,
8354 # Figure out what language subdirectories are present.
8355 # Look if the user specified --enable-languages="..."; if not, use
8356 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8358 # NB: embedded tabs in this IF block -- do not untabify
8359 if test -d ${srcdir}/gcc
; then
8360 if test x
"${enable_languages+set}" != xset
; then
8361 if test x
"${LANGUAGES+set}" = xset
; then
8362 enable_languages
="${LANGUAGES}"
8363 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8365 enable_languages
=default
8368 if test x
"${enable_languages}" = x ||
8369 test x
"${enable_languages}" = xyes
;
8371 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8375 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8377 # 'f95' is the old name for the 'fortran' language. We issue a warning
8378 # and make the substitution.
8379 case ,${enable_languages}, in
8381 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8382 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8386 # If bootstrapping, C++ must be enabled.
8387 case ",$enable_languages,:$enable_bootstrap" in
8390 if test -f ${srcdir}/gcc
/c
/c-lang.cc
; then
8391 enable_languages
="${enable_languages},c++"
8393 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8398 # First scan to see if an enabled language requires some other language.
8399 # We assume that a given config-lang.in will list all the language
8400 # front ends it requires, even if some are required indirectly.
8401 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8402 case ${lang_frag} in
8404 # The odd quoting in the next line works around
8405 # an apparent bug in bash 1.12 on linux.
8406 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8408 # From the config-lang.in, get $language, $lang_requires, and
8409 # $lang_requires_boot_languages.
8412 lang_requires_boot_languages
=
8413 # set srcdir during sourcing lang_frag to the gcc dir.
8414 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8415 # polutes this shell
8416 saved_srcdir
=${srcdir}
8417 srcdir
=${srcdir}/gcc .
${lang_frag}
8418 srcdir
=${saved_srcdir}
8419 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8420 case ,${enable_languages}, in
8425 echo " \`$other' language required by \`$language'; enabling" 1>&2
8426 enable_languages
="${enable_languages},${other}"
8430 for other
in ${lang_requires_boot_languages} ; do
8431 if test "$other" != "c"; then
8432 case ,${enable_stage1_languages}, in
8437 case ,${enable_languages}, in
8439 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8440 enable_stage1_languages
="$enable_stage1_languages,${other}"
8451 new_enable_languages
=,c
,
8453 # If LTO is enabled, add the LTO front end.
8454 if test "$enable_lto" = "yes" ; then
8455 case ,${enable_languages}, in
8457 *) enable_languages
="${enable_languages},lto" ;;
8459 if test "${build_lto_plugin}" = "yes" ; then
8460 configdirs
="$configdirs lto-plugin"
8464 # If we're building an offloading compiler, add the LTO front end.
8465 if test x
"$enable_as_accelerator_for" != x
; then
8466 case ,${enable_languages}, in
8468 *) enable_languages
="${enable_languages},lto" ;;
8472 missing_languages
= # `echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8473 potential_languages
=,c
,
8475 enabled_target_libs
=
8476 disabled_target_libs
=
8478 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8479 case ${lang_frag} in
8481 # The odd quoting in the next line works around
8482 # an apparent bug in bash 1.12 on linux.
8483 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8485 # From the config-lang.in, get $language, $target_libs,
8486 # $lang_dirs, $boot_language, and $build_by_default
8492 build_by_default
=yes
8493 # set srcdir during sourcing. See above about save & restore
8494 saved_srcdir
=${srcdir}
8495 srcdir
=${srcdir}/gcc .
${lang_frag}
8496 srcdir
=${saved_srcdir}
8497 if test x
${language} = x
; then
8498 echo "${lang_frag} doesn't set \$language." 1>&2
8502 if test "$language" = "c++"; then
8507 # C is always enabled, so no need to add it again
8508 if test "$language" != "c"; then
8509 case ,${enable_languages}, in
8511 # Language was explicitly selected; include it
8515 # All languages are enabled
8519 # 'default' was selected, select it if it is a default language
8520 add_this_lang
=${build_by_default}
8525 # Disable languages that need other directories if these aren't available.
8526 for i
in $subdir_requires; do
8527 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8528 case ${add_this_lang} in
8530 # Specifically requested language; tell them.
8531 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8535 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8536 add_this_lang
=unsupported
8540 add_this_lang
=unsupported
8545 # Disable Ada if no preexisting GNAT is available.
8546 case ${add_this_lang}:${language}:${have_gnat} in
8548 # Specifically requested language; tell them.
8549 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8553 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8554 add_this_lang
=unsupported
8558 add_this_lang
=unsupported
8562 # Disable D if no preexisting GDC is available.
8563 case ${add_this_lang}:${language}:${have_gdc} in
8565 # Specifically requested language; tell them.
8566 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8570 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8571 add_this_lang
=unsupported
8575 add_this_lang
=unsupported
8579 # Disable jit if -enable-host-shared not specified
8580 # but not if building for Mingw. All code in Windows
8581 # is position independent code (PIC).
8585 case ${add_this_lang}:${language}:${host_shared} in
8587 # PR jit/64780: explicitly specify --enable-host-shared
8589 Enabling language \"jit\" requires --enable-host-shared.
8591 --enable-host-shared typically slows the rest of the compiler down by
8592 a few %, so you must explicitly enable it.
8594 If you want to build both the jit and the regular compiler, it is often
8595 best to do this via two separate configure/builds, in separate
8596 directories, to avoid imposing the performance cost of
8597 --enable-host-shared on the regular compiler." "$LINENO" 5
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8601 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8602 add_this_lang
=unsupported
8606 add_this_lang
=unsupported
8612 # Disable a language that is unsupported by the target.
8613 case "${add_this_lang}: $unsupported_languages " in
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8618 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8619 add_this_lang
=unsupported
8623 case $add_this_lang in
8625 # Remove language-dependent dirs.
8626 disabled_target_libs
="$disabled_target_libs $target_libs"
8627 noconfigdirs
="$noconfigdirs $lang_dirs"
8630 # Remove language-dependent dirs; still show language as supported.
8631 disabled_target_libs
="$disabled_target_libs $target_libs"
8632 noconfigdirs
="$noconfigdirs $lang_dirs"
8633 potential_languages
="${potential_languages}${language},"
8636 new_enable_languages
="${new_enable_languages}${language},"
8637 potential_languages
="${potential_languages}${language},"
8638 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
8639 enabled_target_libs
="$enabled_target_libs $target_libs"
8640 case "${boot_language}:,$enable_stage1_languages," in
8641 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
8642 # Add to (comma-separated) list of stage 1 languages.
8643 case ",$stage1_languages," in
8644 *,$language,* |
,yes, |
,all
,) ;;
8645 *) stage1_languages
="${stage1_languages}${language}," ;;
8647 # We need to bootstrap any supporting libraries.
8648 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8657 # Add target libraries which are only needed for disabled languages
8659 if test -n "$disabled_target_libs"; then
8660 for dir
in $disabled_target_libs; do
8661 case " $enabled_target_libs " in
8663 *) noconfigdirs
="$noconfigdirs $dir" ;;
8668 # Check whether --enable-stage1-languages was given.
8669 if test "${enable_stage1_languages+set}" = set; then :
8670 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8672 # Set it to something that will have no effect in the loop below
8673 enable_stage1_languages
=c
;;
8675 enable_stage1_languages
=`echo $new_enable_languages | \
8676 sed -e "s/^,//" -e "s/,$//" ` ;;
8678 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
8679 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8682 # Add "good" languages from enable_stage1_languages to stage1_languages,
8683 # while "bad" languages go in missing_languages. Leave no duplicates.
8684 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8685 case $potential_languages in
8687 case $stage1_languages in
8689 *) stage1_languages
="$stage1_languages$i," ;;
8692 case $missing_languages in
8694 *) missing_languages
="$missing_languages$i," ;;
8701 # Remove leading/trailing commas that were added for simplicity
8702 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8703 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8704 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8705 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8707 if test "x$missing_languages" != x
; then
8709 The following requested languages could not be built: ${missing_languages}
8710 Supported languages are: ${potential_languages}" "$LINENO" 5
8712 if test "x$new_enable_languages" != "x$enable_languages"; then
8713 echo The following languages will be built
: ${new_enable_languages}
8714 enable_languages
="$new_enable_languages"
8718 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8721 # Handle --disable-<component> generically.
8722 for dir
in $configdirs $build_configdirs $target_configdirs ; do
8723 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8724 varname
=`echo $dirname | sed -e s/+/_/g`
8725 if eval test x\
${enable_${varname}} "=" xno
; then
8726 noconfigdirs
="$noconfigdirs $dir"
8730 # Check for Boehm's garbage collector
8733 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8736 # If gcc/ is not in the source tree then we'll not be building a
8737 # target compiler, assume in that case we don't want to build any
8738 # target libraries or tools.
8740 # This was added primarily for the benefit for binutils-gdb who reuse
8741 # this configure script, but don't always have target tools available.
8742 if test ! -d ${srcdir}/gcc
; then
8743 skipdirs
="${skipdirs} ${target_configdirs}"
8746 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8747 # $build_configdirs and $target_configdirs.
8748 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8751 # Quietly strip out all directories which aren't configurable in this tree.
8752 # This relies on all configurable subdirectories being autoconfiscated, which
8756 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8757 # so we have to add it after the preceding checks.
8760 # Sometimes we have special requirements for the host libiberty.
8763 # Produce a warning message for the subdirs we can't configure.
8764 # This isn't especially interesting in the Cygnus tree, but in the individual
8765 # FSF releases, it's important to let people know when their machine isn't
8766 # supported by the one or two programs in a package.
8769 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
8770 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
8771 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
8772 # We want to ensure that TARGET libraries (which we know are built with
8773 # gcc) are built with "-O2 -g", so include those options when setting
8774 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
8777 # Handle --with-headers=XXX. If the value is not "yes", the contents of
8778 # the named directory are copied to $(tooldir)/sys-include.
8781 # Handle --with-libs=XXX. If the value is not "yes", the contents of
8782 # the name directories are copied to $(tooldir)/lib. Multiple directories
8786 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
8788 # This is done by determining whether or not the appropriate directory
8789 # is available, and by checking whether or not specific configurations
8790 # have requested that this magic not happen.
8792 # The command line options always override the explicit settings in
8793 # configure.ac, and the settings in configure.ac override this magic.
8795 # If the default for a toolchain is to use GNU as and ld, and you don't
8796 # want to do that, then you should use the --without-gnu-as and
8797 # --without-gnu-ld options for the configure script. Similarly, if
8798 # the default is to use the included zlib and you don't want to do that,
8799 # you should use the --with-system-zlib option for the configure script.
8801 if test x
${use_gnu_as} = x
&&
8802 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
8804 extra_host_args
="$extra_host_args --with-gnu-as"
8807 if test x
${use_gnu_ld} = x
&&
8808 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
8810 extra_host_args
="$extra_host_args --with-gnu-ld"
8813 if test x
${use_included_zlib} = x
&&
8814 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
8817 with_system_zlib
=yes
8818 extra_host_args
="$extra_host_args --with-system-zlib"
8821 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
8822 # can detect this case.
8824 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
8826 extra_host_args
="$extra_host_args --with-newlib"
8829 # Handle ${copy_dirs}
8830 set fnord
${copy_dirs}
8832 while test $# != 0 ; do
8833 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
8836 echo Copying
$1 to
$2
8838 # Use the install script to create the directory and all required
8839 # parent directories.
8840 if test -d $2 ; then
8844 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
8847 # Copy the directory, assuming we have tar.
8848 # FIXME: Should we use B in the second tar? Not all systems support it.
8849 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
8851 # It is the responsibility of the user to correctly adjust all
8852 # symlinks. If somebody can figure out how to handle them correctly
8853 # here, feel free to add the code.
8860 # Determine a target-dependent exec_prefix that the installed
8861 # gcc will search in. Keep this list sorted by triplet, with
8862 # the *-*-osname triplets last.
8865 i
[34567]86-pc-msdosdjgpp*)
8866 md_exec_prefix
=/dev
/env
/DJDIR
/bin
8871 md_exec_prefix
=/usr
/ccs
/bin
8875 ################################################################################
8877 # mkdir takes a single argument on some systems.
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
8879 $as_echo_n "checking if mkdir takes one argument... " >&6; }
8880 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
8881 $as_echo_n "(cached) " >&6
8883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8886 #include <sys/types.h>
8887 #ifdef HAVE_SYS_STAT_H
8888 # include <sys/stat.h>
8890 #ifdef HAVE_UNISTD_H
8891 # include <unistd.h>
8893 #ifdef HAVE_DIRECT_H
8894 # include <direct.h>
8904 if ac_fn_c_try_compile
"$LINENO"; then :
8905 gcc_cv_mkdir_takes_one_arg
=no
8907 gcc_cv_mkdir_takes_one_arg
=yes
8909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
8912 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
8913 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8915 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
8928 build_install_headers_dir
=install-headers-tar
8933 host_truncate_target
=
8936 # Decode the host machine, then the target machine.
8937 # For the host machine, we save the xm_file variable as host_xm_file;
8938 # then we decode the target machine and forget everything else
8939 # that came from the host machine.
8940 #for machine in $build $host $target; do
8941 # . ${srcdir}/config.gcc
8944 extra_objs
="${host_extra_objs} ${extra_objs}"
8946 # Default the target-machine variables that were not explicitly set.
8947 if test x
"$tm_file" = x
8948 then tm_file
=$cpu_type/$cpu_type.h
; fi
8950 if test x
"$extra_headers" = x
8951 then extra_headers
=; fi
8953 if test x
$md_file = x
8954 then md_file
=$cpu_type/$cpu_type.md
; fi
8956 if test x
$out_file = x
8957 then out_file
=$cpu_type/$cpu_type.c
; fi
8959 if test x
"$tmake_file" = x
8960 then tmake_file
=$cpu_type/t-
$cpu_type
8963 if test x
"$dwarf2" = xyes
8964 then tm_file
="$tm_file tm-dwarf2.h"
8967 # Handle cpp installation.
8968 if test x
$enable_cpp != xno
8970 tmake_file
="$tmake_file t-install-cpp"
8973 # auto-host.h is the file containing items generated by autoconf and is
8974 # the first file included by config.h.
8975 # If host=build, it is correct to have hconfig include auto-host.h
8976 # as well. If host!=build, we are in error and need to do more
8977 # work to find out the build config parameters.
8978 if test x
$host = x
$build
8980 build_auto
=auto-host.h
8982 # We create a subdir, then run autoconf in the subdir.
8983 # To prevent recursion we set host and build for the new
8984 # invocation of configure to the build for this invocation
8991 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
8992 *) realsrcdir
=..
/${srcdir};;
8994 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
8995 --target=$target --host=$build --build=$build
8997 # We just finished tests for the build machine, so rename
8998 # the file auto-build.h in the gcc directory.
8999 mv auto-host.h ..
/auto-build.h
9002 build_auto
=auto-build.h
9005 tm_file
="${tm_file} defaults.h"
9006 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
9007 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
9008 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
9010 # Truncate the target if necessary
9011 if test x
$host_truncate_target != x
; then
9012 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9015 # Get the version trigger filename from the toplevel
9016 if test "${with_gcc_version_trigger+set}" = set; then
9017 gcc_version_trigger
=$with_gcc_version_trigger
9019 gcc_version_trigger
=${srcdir}/version.c
9022 ## changequote(,)dnl
9023 ## gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9024 ## gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9026 ## changequote([,])dnl
9028 ## # Internationalization
9030 ## VERSION="$gcc_version"
9031 ## AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
9032 ## [Define to the name of the distribution.])
9033 ## AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
9034 ## [Define to the version of the distribution.])
9035 ## AC_SUBST(PACKAGE)
9036 ## AC_SUBST(VERSION)
9038 extra_arflags_for_target
=
9039 extra_nmflags_for_target
=
9040 extra_ranlibflags_for_target
=
9041 target_makefile_frag
=/dev
/null
9044 target_makefile_frag
="config/mt-spu"
9046 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9047 target_makefile_frag
="config/mt-sde"
9049 mipsisa
*-*-elfoabi*)
9050 target_makefile_frag
="config/mt-mips-elfoabi"
9052 mips
*-*-*linux
* | mips
*-*-gnu*)
9053 target_makefile_frag
="config/mt-mips-gnu"
9056 target_makefile_frag
="config/mt-nios2-elf"
9059 target_makefile_frag
="config/mt-android"
9061 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9062 target_makefile_frag
="config/mt-gnu"
9064 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9065 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9066 # commands to handle both 32-bit and 64-bit objects. These flags are
9067 # harmless if we're using GNU nm or ar.
9068 extra_arflags_for_target
=" -X32_64"
9069 extra_nmflags_for_target
=" -B -X32_64"
9073 alphaieee_frag
=/dev
/null
9076 # This just makes sure to use the -mieee option to build target libs.
9077 # This should probably be set individually by each library.
9078 alphaieee_frag
="config/mt-alphaieee"
9082 # If --enable-target-optspace always use -Os instead of -O2 to build
9083 # the target libraries, similarly if it is not specified, use -Os
9084 # on selected platforms.
9085 ospace_frag
=/dev
/null
9086 case "${enable_target_optspace}:${target}" in
9088 ospace_frag
="config/mt-ospace"
9091 ospace_frag
="config/mt-d30v"
9093 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9094 ospace_frag
="config/mt-ospace"
9099 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9103 # Some systems (e.g., one of the i386-aix systems the gas testers are
9104 # using) don't handle "\$" correctly, so don't use it here.
9105 tooldir
='${exec_prefix}'/${target_noncanonical}
9106 build_tooldir
=${tooldir}
9108 # Create a .gdbinit file which runs the one in srcdir
9109 # and tells GDB to look there for source files.
9111 if test -r ${srcdir}/.gdbinit
; then
9114 *) cat > .
/.gdbinit
<<EOF
9118 source ${srcdir}/.gdbinit
9124 # Make sure that the compiler is able to generate an executable. If it
9125 # can't, we are probably in trouble. We don't care whether we can run the
9126 # executable--we might be using a cross compiler--we only care whether it
9127 # can be created. At this point the main configure script has set CC.
9129 echo "int main () { return 0; }" > conftest.c
9130 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9131 if test $?
= 0 ; then
9132 if test -s conftest ||
test -s conftest.exe
; then
9138 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9139 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9146 # Decide which environment variable is used to find dynamic libraries.
9148 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9149 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9150 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9151 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9154 # On systems where the dynamic library environment variable is PATH,
9155 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9156 # built executables to PATH.
9157 if test "$RPATH_ENVVAR" = PATH
; then
9158 GCC_SHLIB_SUBDIR
=/shlib
9163 # Adjust the toplevel makefile according to whether bootstrap was selected.
9164 case $enable_bootstrap in
9166 bootstrap_suffix
=bootstrap
9167 BUILD_CONFIG
=bootstrap-debug
9170 bootstrap_suffix
=no-bootstrap
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9176 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9179 # Check whether --with-build-config was given.
9180 if test "${with_build_config+set}" = set; then :
9181 withval
=$with_build_config; case $with_build_config in
9182 yes) with_build_config
= ;;
9183 no
) with_build_config
= BUILD_CONFIG
= ;;
9188 if test "x${with_build_config}" != x
; then
9189 BUILD_CONFIG
=$with_build_config
9191 case $BUILD_CONFIG in
9193 if echo "int f (void) { return 0; }" > conftest.c
&&
9194 ${CC} -c conftest.c
&&
9195 mv conftest.o conftest.o.g0
&&
9196 ${CC} -c -g conftest.c
&&
9197 mv conftest.o conftest.o.g
&&
9198 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9203 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9208 $as_echo "$BUILD_CONFIG" >&6; }
9211 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9213 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9214 # Check whether --enable-vtable-verify was given.
9215 if test "${enable_vtable_verify+set}" = set; then :
9216 enableval
=$enable_vtable_verify; case "$enableval" in
9217 yes) enable_vtable_verify
=yes ;;
9218 no
) enable_vtable_verify
=no
;;
9219 *) enable_vtable_verify
=no
;;
9222 enable_vtable_verify
=no
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9226 $as_echo "$enable_vtable_verify" >&6; }
9228 # Record target_configdirs and the configure arguments for target and
9229 # build configuration in Makefile.
9230 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9231 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9232 bootstrap_fixincludes
=no
9234 # If we are building libgomp, bootstrap it.
9235 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9236 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9239 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9240 # or bootstrap-ubsan, bootstrap it.
9241 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9242 case "$BUILD_CONFIG" in
9243 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9244 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9245 bootstrap_fixincludes
=yes
9250 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9251 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9252 test "$enable_vtable_verify" != no
; then
9253 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9256 # If we are building libatomic and the list of enabled languages includes the
9257 # D frontend, bootstrap it.
9258 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9259 case ,${enable_languages}, in
9261 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9266 # Determine whether gdb needs tk/tcl or not.
9267 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9268 # and in that case we want gdb to be built without tk. Ugh!
9269 # In fact I believe gdb is the *only* package directly dependent on tk,
9270 # so we should be able to put the 'maybe's in unconditionally and
9271 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9272 # 100% sure that that's safe though.
9274 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9275 case "$enable_gdbtk" in
9279 GDB_TK
="${gdb_tk}" ;;
9281 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9282 # distro. Eventually someone will fix this and move Insight, nee
9283 # gdbtk to a separate directory.
9284 if test -d ${srcdir}/gdb
/gdbtk
; then
9291 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9292 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9294 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9295 # else does, only include them if one of these is built. The Makefile
9296 # provides the ordering, so it's enough here to add to the list.
9297 case " ${configdirs} " in
9299 configdirs
="${configdirs} gnulib gdbsupport"
9302 configdirs
="${configdirs} gnulib gdbsupport"
9305 configdirs
="${configdirs} gnulib"
9309 # Strip out unwanted targets.
9311 # While at that, we remove Makefiles if we were started for recursive
9312 # configuration, so that the top-level Makefile reconfigures them,
9313 # like we used to do when configure itself was recursive.
9315 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9316 # but now we're fixing up the Makefile ourselves with the additional
9317 # commands passed to AC_CONFIG_FILES. Use separate variables
9318 # extrasub-{build,host,target} not because there is any reason to split
9319 # the substitutions up that way, but only to remain below the limit of
9320 # 99 commands in a script, for HP-UX sed.
9322 # Do not nest @if/@endif or @unless/@endunless pairs, because
9323 # configure will not warn you at all.
9325 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9326 yes:yes:*\ gold\
*:*,c
++,*) ;;
9327 yes:yes:*\ gold\
*:*)
9328 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9333 for module
in ${build_configdirs} ; do
9334 if test -z "${no_recursion}" \
9335 && test -f ${build_subdir}/${module}/Makefile
; then
9336 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9337 rm -f ${build_subdir}/${module}/Makefile
9339 extrasub_build
="$extrasub_build
9340 /^@if build-$module\$/d
9341 /^@endif build-$module\$/d
9342 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9343 /^@if build-$module-$bootstrap_suffix\$/d
9344 /^@endif build-$module-$bootstrap_suffix\$/d
9345 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9348 for module
in ${configdirs} ; do
9349 if test -z "${no_recursion}"; then
9350 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9351 if test -f ${file}; then
9352 echo 1>&2 "*** removing ${file} to force reconfigure"
9357 case ${module},${bootstrap_fixincludes} in
9358 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9359 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9361 extrasub_host
="$extrasub_host
9363 /^@endif $module\$/d
9364 /^@unless $module\$/,/^@endunless $module\$/d
9365 /^@if $module-$host_bootstrap_suffix\$/d
9366 /^@endif $module-$host_bootstrap_suffix\$/d
9367 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9370 for module
in ${target_configdirs} ; do
9371 if test -z "${no_recursion}" \
9372 && test -f ${target_subdir}/${module}/Makefile
; then
9373 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9374 rm -f ${target_subdir}/${module}/Makefile
9377 # We only bootstrap target libraries listed in bootstrap_target_libs.
9378 case $bootstrap_target_libs in
9379 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9380 *) target_bootstrap_suffix
=no-bootstrap
;;
9383 extrasub_target
="$extrasub_target
9384 /^@if target-$module\$/d
9385 /^@endif target-$module\$/d
9386 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9387 /^@if target-$module-$target_bootstrap_suffix\$/d
9388 /^@endif target-$module-$target_bootstrap_suffix\$/d
9389 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9392 # Do the final fixup along with target modules.
9393 extrasub_target
="$extrasub_target
9398 if test "$enable_pgo_build" != "no"; then
9399 extrasub_build
="$extrasub_build
9401 /^@endif pgo-build\$/d"
9404 # Create the serialization dependencies. This uses a temporary file.
9406 # Check whether --enable-serial-configure was given.
9407 if test "${enable_serial_configure+set}" = set; then :
9408 enableval
=$enable_serial_configure;
9412 case ${enable_serial_configure} in
9414 enable_serial_build_configure
=yes
9415 enable_serial_host_configure
=yes
9416 enable_serial_target_configure
=yes
9420 # These force 'configure's to be done one at a time, to avoid problems
9421 # with contention over a shared config.cache.
9423 echo '# serdep.tmp' > serdep.tmp
9425 test "x${enable_serial_build_configure}" = xyes
&&
9426 for item
in ${build_configdirs} ; do
9429 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9434 test "x${enable_serial_host_configure}" = xyes
&&
9435 for item
in ${configdirs} ; do
9438 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9443 test "x${enable_serial_target_configure}" = xyes
&&
9444 for item
in ${target_configdirs} ; do
9447 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9451 serialization_dependencies
=serdep.tmp
9454 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9455 # target, nonopt, and variable assignments. These are the ones we
9456 # might not want to pass down to subconfigures. The exception being
9457 # --cache-file=/dev/null, which is used to turn off the use of cache
9458 # files altogether, and which should be passed on to subconfigures.
9459 # Also strip program-prefix, program-suffix, and program-transform-name,
9460 # so that we can pass down a consistent program-transform-name.
9465 eval "set -- $ac_configure_args"
9468 if test X
"$skip_next" = X
"yes"; then
9472 if test X
"$keep_next" = X
"yes"; then
9475 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9477 baseargs
="$baseargs '$ac_arg'"
9478 tbaseargs
="$tbaseargs '$ac_arg'"
9483 # Handle separated arguments. Based on the logic generated by
9486 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
9487 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
9488 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
9489 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
9503 --with-* |
--without-*)
9504 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9508 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
9511 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
9520 mpc | mpfr | gmp | isl
)
9521 # If we're processing --with-$lib, --with-$lib-include or
9522 # --with-$lib-lib, for one of the libs above, and target is
9523 # different from host, don't pass the current argument to any
9524 # target library's configure.
9525 if test x
$is_cross_compiler = xyes
; then
9534 --cache-file=/dev
/null | \
9535 -cache-file=/dev
/null
)
9536 # Handled here to avoid the test to skip args below.
9537 baseargs
="$baseargs '$ac_arg'"
9538 tbaseargs
="$tbaseargs '$ac_arg'"
9539 # Assert: $separate_arg should always be no.
9540 keep_next
=$separate_arg
9556 -program-prefix* | \
9557 -program-suffix* | \
9558 -program-transform-name* )
9559 skip_next
=$separate_arg
9563 # An option. Add it.
9566 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9568 baseargs
="$baseargs '$ac_arg'"
9569 if test X
"$skip_targ" = Xno
; then
9570 tbaseargs
="$tbaseargs '$ac_arg'"
9572 keep_next
=$separate_arg
9575 # Either a variable assignment, or a nonopt (triplet). Don't
9576 # pass it down; let the Makefile handle this.
9581 # Remove the initial space we just introduced and, as these will be
9582 # expanded by make, quote '$'.
9583 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9585 # Add in --program-transform-name, after --program-prefix and
9586 # --program-suffix have been applied to it. Autoconf has already
9587 # doubled dollar signs and backslashes in program_transform_name; we want
9588 # the backslashes un-doubled, and then the entire thing wrapped in single
9589 # quotes, because this will be expanded first by make and then by the shell.
9590 # Also, because we want to override the logic in subdir configure scripts to
9591 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9592 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9593 ${program_transform_name}
9595 gcc_transform_name
=`cat conftestsed.out`
9596 rm -f conftestsed.out
9597 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
9598 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9599 if test "$silent" = yes; then
9600 baseargs
="$baseargs --silent"
9601 tbaseargs
="$tbaseargs --silent"
9603 baseargs
="$baseargs --disable-option-checking"
9604 tbaseargs
="$tbaseargs --disable-option-checking"
9606 # Record and document user additions to sub configure arguments.
9611 # For the build-side libraries, we just need to pretend we're native,
9612 # and not use the same cache file. Multilibs are neither needed nor
9613 # desired. We can't even use the same cache file for all build-side
9614 # libraries, as they're compiled differently; some with C, some with
9615 # C++ or with different feature-enabling options.
9616 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
9618 # For host modules, accept cache file option, or specification as blank.
9619 case "${cache_file}" in
9621 cache_file_option
="" ;;
9622 /* |
[A-Za-z
]:[\\/]* ) # absolute path
9623 cache_file_option
="--cache-file=${cache_file}" ;;
9625 cache_file_option
="--cache-file=../${cache_file}" ;;
9628 # Host dirs don't like to share a cache file either, horribly enough.
9629 # This seems to be due to autoconf 2.5x stupidity.
9630 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9632 target_configargs
="$target_configargs ${tbaseargs}"
9634 # Passing a --with-cross-host argument lets the target libraries know
9635 # whether they are being built with a cross-compiler or being built
9636 # native. However, it would be better to use other mechanisms to make the
9637 # sorts of decisions they want to make on this basis. Please consider
9638 # this option to be deprecated. FIXME.
9639 if test x
${is_cross_compiler} = xyes
; then
9640 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
9643 # Special user-friendly check for native x86_64-linux build, if
9644 # multilib is not explicitly enabled.
9647 # Default to --enable-multilib.
9648 if test x
${enable_multilib} = x
; then
9649 target_configargs
="--disable-multilib ${target_configargs}"
9652 # Pass --with-newlib if appropriate. Note that target_configdirs has
9653 # changed from the earlier setting of with_newlib.
9654 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
9655 target_configargs
="--with-newlib ${target_configargs}"
9658 # Different target subdirs use different values of certain variables
9659 # (notably CXX). Worse, multilibs use *lots* of different values.
9660 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9661 # it doesn't automatically accept command-line overrides of them.
9662 # This means it's not safe for target subdirs to share a cache file,
9663 # which is disgusting, but there you have it. Hopefully this can be
9664 # fixed in future. It's still worthwhile to use a cache file for each
9665 # directory. I think.
9667 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9668 # We need to pass --target, as newer autoconf's requires consistency
9669 # for target_alias and gcc doesn't manage it consistently.
9670 target_configargs
="--cache-file=./config.cache ${target_configargs}"
9673 case " $target_configdirs " in
9675 case " $target_configargs " in
9676 *" --with-newlib "*)
9679 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9683 # If we're not building GCC, don't discard standard headers.
9684 if test -d ${srcdir}/gcc
; then
9685 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
9687 if test "${build}" != "${host}"; then
9688 # On Canadian crosses, CC_FOR_TARGET will have already been set
9689 # by `configure', so we won't have an opportunity to add -Bgcc/
9690 # to it. This is right: we don't want to search that directory
9691 # for binaries, but we want the header files in there, so add
9693 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9695 # Someone might think of using the pre-installed headers on
9696 # Canadian crosses, in case the installed compiler is not fully
9697 # compatible with the compiler being built. In this case, it
9698 # would be better to flag an error than risking having
9699 # incompatible object files being constructed. We can't
9700 # guarantee that an error will be flagged, but let's hope the
9701 # compiler will do it, when presented with incompatible header
9706 case "${target}-${is_cross_compiler}" in
9707 i
[3456789]86-*-linux*-no)
9708 # Here host == target, so we don't need to build gcc,
9709 # so we don't want to discard standard headers.
9710 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9713 # If we're building newlib, use its generic headers last, but search
9714 # for any libc-related directories first (so make it the last -B
9716 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9718 # If we're building libgloss, find the startup file, simulator library
9719 # and linker script.
9720 case " $target_configdirs " in
9722 # Look for startup file, simulator library and maybe linker script.
9723 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9724 # Look for libnosys.a in case the target needs it.
9725 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9726 # Most targets have the linker script in the source directory.
9727 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9738 x86_64-
*mingw
* |
*-w64-mingw*)
9739 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9740 # however, use a symlink named 'mingw' in ${prefix} .
9741 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9744 # MinGW can't be handled as Cygwin above since it does not use newlib.
9745 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'
9749 # Allow the user to override the flags for
9750 # our build compiler if desired.
9751 if test x
"${build}" = x
"${host}" ; then
9752 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
9753 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
9754 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9755 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9758 # On Canadian crosses, we'll be searching the right directories for
9759 # the previously-installed cross compiler, so don't bother to add
9760 # flags for directories within the install tree of the compiler
9761 # being built; programs in there won't even run.
9762 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
9763 # Search for pre-installed headers if nothing else fits.
9764 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
9767 if test "x
${use_gnu_ld}" = x &&
9768 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
9769 # Arrange for us to find uninstalled linker scripts.
9770 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
9773 # Search for other target-specific linker scripts and such.
9776 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
9780 # Makefile fragments.
9781 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
9783 eval fragval=\$$frag
9784 if test $fragval != /dev/null; then
9785 eval $frag=${srcdir}/$fragval
9793 # Miscellanea: directories, flags, etc.
9802 # Build module lists & subconfigure args.
9806 # Host module lists & subconfigure args.
9811 # Target module lists & subconfigure args.
9836 # sdcpp (?) Substitute configuration variables
9873 # why? (not in gcc/configure.ac)
9879 # Generate default definitions for YACC, M4, LEX and other programs that run
9880 # on the build machine. These are used if the Makefile can't locate these
9881 # programs in objdir.
9882 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
9884 for ac_prog in 'bison -y' byacc yacc
9886 # Extract the first word of "$ac_prog", so it can be a program name with args.
9887 set dummy $ac_prog; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9889 $as_echo_n "checking
for $ac_word...
" >&6; }
9890 if ${ac_cv_prog_YACC+:} false; then :
9891 $as_echo_n "(cached
) " >&6
9893 if test -n "$YACC"; then
9894 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9903 ac_cv_prog_YACC="$ac_prog"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9913 YACC=$ac_cv_prog_YACC
9914 if test -n "$YACC"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
9916 $as_echo "$YACC" >&6; }
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9919 $as_echo "no
" >&6; }
9923 test -n "$YACC" && break
9925 test -n "$YACC" || YACC="$MISSING bison
-y"
9927 # case " $build_configdirs " in
9928 # *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
9931 for ac_prog in bison
9933 # Extract the first word of "$ac_prog", so it can be a program name with args.
9934 set dummy $ac_prog; ac_word=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9936 $as_echo_n "checking
for $ac_word...
" >&6; }
9937 if ${ac_cv_prog_BISON+:} false; then :
9938 $as_echo_n "(cached
) " >&6
9940 if test -n "$BISON"; then
9941 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9950 ac_cv_prog_BISON="$ac_prog"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9960 BISON=$ac_cv_prog_BISON
9961 if test -n "$BISON"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
9963 $as_echo "$BISON" >&6; }
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9966 $as_echo "no
" >&6; }
9970 test -n "$BISON" && break
9972 test -n "$BISON" || BISON="$MISSING bison
"
9974 # case " $build_configdirs " in
9975 # *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
9978 for ac_prog in gm4 gnum4 m4
9980 # Extract the first word of "$ac_prog", so it can be a program name with args.
9981 set dummy $ac_prog; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9983 $as_echo_n "checking
for $ac_word...
" >&6; }
9984 if ${ac_cv_prog_M4+:} false; then :
9985 $as_echo_n "(cached
) " >&6
9987 if test -n "$M4"; then
9988 ac_cv_prog_M4="$M4" # Let the user override the test.
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9997 ac_cv_prog_M4="$ac_prog"
9998 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10008 if test -n "$M4"; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10010 $as_echo "$M4" >&6; }
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10013 $as_echo "no
" >&6; }
10017 test -n "$M4" && break
10019 test -n "$M4" || M4="$MISSING m4"
10021 # case " $build_configdirs " in
10022 # *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10025 for ac_prog in flex lex
10027 # Extract the first word of "$ac_prog", so it can be a program name with args.
10028 set dummy $ac_prog; ac_word=$2
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10030 $as_echo_n "checking
for $ac_word...
" >&6; }
10031 if ${ac_cv_prog_LEX+:} false; then :
10032 $as_echo_n "(cached
) " >&6
10034 if test -n "$LEX"; then
10035 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in $PATH
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044 ac_cv_prog_LEX="$ac_prog"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10054 LEX=$ac_cv_prog_LEX
10055 if test -n "$LEX"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10057 $as_echo "$LEX" >&6; }
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10060 $as_echo "no
" >&6; }
10064 test -n "$LEX" && break
10066 test -n "$LEX" || LEX="$MISSING flex
"
10068 # case " $build_configdirs " in
10069 # *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10070 # *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10073 for ac_prog in flex
10075 # Extract the first word of "$ac_prog", so it can be a program name with args.
10076 set dummy $ac_prog; ac_word=$2
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10078 $as_echo_n "checking
for $ac_word...
" >&6; }
10079 if ${ac_cv_prog_FLEX+:} false; then :
10080 $as_echo_n "(cached
) " >&6
10082 if test -n "$FLEX"; then
10083 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092 ac_cv_prog_FLEX="$ac_prog"
10093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10102 FLEX=$ac_cv_prog_FLEX
10103 if test -n "$FLEX"; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10105 $as_echo "$FLEX" >&6; }
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10108 $as_echo "no
" >&6; }
10112 test -n "$FLEX" && break
10114 test -n "$FLEX" || FLEX="$MISSING flex
"
10116 # case " $build_configdirs " in
10117 # *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10120 for ac_prog in makeinfo
10122 # Extract the first word of "$ac_prog", so it can be a program name with args.
10123 set dummy $ac_prog; ac_word=$2
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10125 $as_echo_n "checking
for $ac_word...
" >&6; }
10126 if ${ac_cv_prog_MAKEINFO+:} false; then :
10127 $as_echo_n "(cached
) " >&6
10129 if test -n "$MAKEINFO"; then
10130 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10139 ac_cv_prog_MAKEINFO="$ac_prog"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10149 MAKEINFO=$ac_cv_prog_MAKEINFO
10150 if test -n "$MAKEINFO"; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10152 $as_echo "$MAKEINFO" >&6; }
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10155 $as_echo "no
" >&6; }
10159 test -n "$MAKEINFO" && break
10161 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10163 case " $build_configdirs " in
10164 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10167 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10168 # higher, else we use the "missing
" dummy.
10169 if ${MAKEINFO} --version \
10170 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10173 MAKEINFO="$MISSING makeinfo
"
10179 # FIXME: expect and dejagnu may become build tools?
10181 for ac_prog in expect
10183 # Extract the first word of "$ac_prog", so it can be a program name with args.
10184 set dummy $ac_prog; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10186 $as_echo_n "checking
for $ac_word...
" >&6; }
10187 if ${ac_cv_prog_EXPECT+:} false; then :
10188 $as_echo_n "(cached
) " >&6
10190 if test -n "$EXPECT"; then
10191 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_EXPECT="$ac_prog"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10210 EXPECT=$ac_cv_prog_EXPECT
10211 if test -n "$EXPECT"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10213 $as_echo "$EXPECT" >&6; }
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10216 $as_echo "no
" >&6; }
10220 test -n "$EXPECT" && break
10222 test -n "$EXPECT" || EXPECT="expect
"
10224 case " $configdirs " in
10226 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10230 for ac_prog in runtest
10232 # Extract the first word of "$ac_prog", so it can be a program name with args.
10233 set dummy $ac_prog; ac_word=$2
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10235 $as_echo_n "checking
for $ac_word...
" >&6; }
10236 if ${ac_cv_prog_RUNTEST+:} false; then :
10237 $as_echo_n "(cached
) " >&6
10239 if test -n "$RUNTEST"; then
10240 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10243 for as_dir in $PATH
10246 test -z "$as_dir" && as_dir=.
10247 for ac_exec_ext in '' $ac_executable_extensions; do
10248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10249 ac_cv_prog_RUNTEST="$ac_prog"
10250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10259 RUNTEST=$ac_cv_prog_RUNTEST
10260 if test -n "$RUNTEST"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10262 $as_echo "$RUNTEST" >&6; }
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10265 $as_echo "no
" >&6; }
10269 test -n "$RUNTEST" && break
10271 test -n "$RUNTEST" || RUNTEST="runtest
"
10273 case " $configdirs " in
10275 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10282 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10283 ncn_target_tool_prefix=
10284 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10288 if test -n "$AR"; then
10290 elif test -n "$ac_cv_prog_AR"; then
10294 if test -n "$ac_cv_prog_AR"; then
10295 for ncn_progname in ar; do
10296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10297 set dummy ${ncn_progname}; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10299 $as_echo_n "checking
for $ac_word...
" >&6; }
10300 if ${ac_cv_prog_AR+:} false; then :
10301 $as_echo_n "(cached
) " >&6
10303 if test -n "$AR"; then
10304 ac_cv_prog_AR="$AR" # Let the user override the test.
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10313 ac_cv_prog_AR="${ncn_progname}"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10324 if test -n "$AR"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10326 $as_echo "$AR" >&6; }
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10329 $as_echo "no
" >&6; }
10336 for ncn_progname in ar; do
10337 if test -n "$ncn_tool_prefix"; then
10338 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10339 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10341 $as_echo_n "checking
for $ac_word...
" >&6; }
10342 if ${ac_cv_prog_AR+:} false; then :
10343 $as_echo_n "(cached
) " >&6
10345 if test -n "$AR"; then
10346 ac_cv_prog_AR="$AR" # Let the user override the test.
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10355 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10366 if test -n "$AR"; then
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10368 $as_echo "$AR" >&6; }
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10371 $as_echo "no
" >&6; }
10376 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10378 set dummy ${ncn_progname}; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10380 $as_echo_n "checking
for $ac_word...
" >&6; }
10381 if ${ac_cv_prog_AR+:} false; then :
10382 $as_echo_n "(cached
) " >&6
10384 if test -n "$AR"; then
10385 ac_cv_prog_AR="$AR" # Let the user override the test.
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10391 test -z "$as_dir" && as_dir=.
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10394 ac_cv_prog_AR="${ncn_progname}"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10405 if test -n "$AR"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10407 $as_echo "$AR" >&6; }
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10410 $as_echo "no
" >&6; }
10415 test -n "$ac_cv_prog_AR" && break
10418 if test -z "$ac_cv_prog_AR" ; then
10420 if test $build = $host ; then
10423 AR="${ncn_tool_prefix}$2"
10429 if test -n "$AS"; then
10431 elif test -n "$ac_cv_prog_AS"; then
10435 if test -n "$ac_cv_prog_AS"; then
10436 for ncn_progname in as; do
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10438 set dummy ${ncn_progname}; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10440 $as_echo_n "checking
for $ac_word...
" >&6; }
10441 if ${ac_cv_prog_AS+:} false; then :
10442 $as_echo_n "(cached
) " >&6
10444 if test -n "$AS"; then
10445 ac_cv_prog_AS="$AS" # Let the user override the test.
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_AS="${ncn_progname}"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10465 if test -n "$AS"; then
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10467 $as_echo "$AS" >&6; }
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10470 $as_echo "no
" >&6; }
10477 for ncn_progname in as; do
10478 if test -n "$ncn_tool_prefix"; then
10479 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10480 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10482 $as_echo_n "checking
for $ac_word...
" >&6; }
10483 if ${ac_cv_prog_AS+:} false; then :
10484 $as_echo_n "(cached
) " >&6
10486 if test -n "$AS"; then
10487 ac_cv_prog_AS="$AS" # Let the user override the test.
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10507 if test -n "$AS"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10509 $as_echo "$AS" >&6; }
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10512 $as_echo "no
" >&6; }
10517 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10519 set dummy ${ncn_progname}; ac_word=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10521 $as_echo_n "checking
for $ac_word...
" >&6; }
10522 if ${ac_cv_prog_AS+:} false; then :
10523 $as_echo_n "(cached
) " >&6
10525 if test -n "$AS"; then
10526 ac_cv_prog_AS="$AS" # Let the user override the test.
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10535 ac_cv_prog_AS="${ncn_progname}"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10546 if test -n "$AS"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10548 $as_echo "$AS" >&6; }
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10551 $as_echo "no
" >&6; }
10556 test -n "$ac_cv_prog_AS" && break
10559 if test -z "$ac_cv_prog_AS" ; then
10561 if test $build = $host ; then
10564 AS="${ncn_tool_prefix}$2"
10570 if test -n "$DLLTOOL"; then
10571 ac_cv_prog_DLLTOOL=$DLLTOOL
10572 elif test -n "$ac_cv_prog_DLLTOOL"; then
10573 DLLTOOL=$ac_cv_prog_DLLTOOL
10576 if test -n "$ac_cv_prog_DLLTOOL"; then
10577 for ncn_progname in dlltool; do
10578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10579 set dummy ${ncn_progname}; ac_word=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10581 $as_echo_n "checking
for $ac_word...
" >&6; }
10582 if ${ac_cv_prog_DLLTOOL+:} false; then :
10583 $as_echo_n "(cached
) " >&6
10585 if test -n "$DLLTOOL"; then
10586 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
10594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595 ac_cv_prog_DLLTOOL="${ncn_progname}"
10596 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10605 DLLTOOL=$ac_cv_prog_DLLTOOL
10606 if test -n "$DLLTOOL"; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10608 $as_echo "$DLLTOOL" >&6; }
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10611 $as_echo "no
" >&6; }
10618 for ncn_progname in dlltool; do
10619 if test -n "$ncn_tool_prefix"; then
10620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10621 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10623 $as_echo_n "checking
for $ac_word...
" >&6; }
10624 if ${ac_cv_prog_DLLTOOL+:} false; then :
10625 $as_echo_n "(cached
) " >&6
10627 if test -n "$DLLTOOL"; then
10628 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631 for as_dir in $PATH
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10638 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10647 DLLTOOL=$ac_cv_prog_DLLTOOL
10648 if test -n "$DLLTOOL"; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10650 $as_echo "$DLLTOOL" >&6; }
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10653 $as_echo "no
" >&6; }
10658 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10660 set dummy ${ncn_progname}; ac_word=$2
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10662 $as_echo_n "checking
for $ac_word...
" >&6; }
10663 if ${ac_cv_prog_DLLTOOL+:} false; then :
10664 $as_echo_n "(cached
) " >&6
10666 if test -n "$DLLTOOL"; then
10667 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10676 ac_cv_prog_DLLTOOL="${ncn_progname}"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10686 DLLTOOL=$ac_cv_prog_DLLTOOL
10687 if test -n "$DLLTOOL"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10689 $as_echo "$DLLTOOL" >&6; }
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10692 $as_echo "no
" >&6; }
10697 test -n "$ac_cv_prog_DLLTOOL" && break
10700 if test -z "$ac_cv_prog_DLLTOOL" ; then
10702 if test $build = $host ; then
10705 DLLTOOL="${ncn_tool_prefix}$2"
10711 if test -n "$DSYMUTIL"; then
10712 ac_cv_prog_DSYMUTIL=$DSYMUTIL
10713 elif test -n "$ac_cv_prog_DSYMUTIL"; then
10714 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10717 if test -n "$ac_cv_prog_DSYMUTIL"; then
10718 for ncn_progname in dsymutil; do
10719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10720 set dummy ${ncn_progname}; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10722 $as_echo_n "checking
for $ac_word...
" >&6; }
10723 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10724 $as_echo_n "(cached
) " >&6
10726 if test -n "$DSYMUTIL"; then
10727 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10737 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10746 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10747 if test -n "$DSYMUTIL"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
10749 $as_echo "$DSYMUTIL" >&6; }
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10752 $as_echo "no
" >&6; }
10759 for ncn_progname in dsymutil; do
10760 if test -n "$ncn_tool_prefix"; then
10761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10762 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10764 $as_echo_n "checking
for $ac_word...
" >&6; }
10765 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10766 $as_echo_n "(cached
) " >&6
10768 if test -n "$DSYMUTIL"; then
10769 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10788 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10789 if test -n "$DSYMUTIL"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
10791 $as_echo "$DSYMUTIL" >&6; }
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10794 $as_echo "no
" >&6; }
10799 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
10800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10801 set dummy ${ncn_progname}; ac_word=$2
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10803 $as_echo_n "checking
for $ac_word...
" >&6; }
10804 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10805 $as_echo_n "(cached
) " >&6
10807 if test -n "$DSYMUTIL"; then
10808 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10817 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10818 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10827 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10828 if test -n "$DSYMUTIL"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
10830 $as_echo "$DSYMUTIL" >&6; }
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10833 $as_echo "no
" >&6; }
10838 test -n "$ac_cv_prog_DSYMUTIL" && break
10841 if test -z "$ac_cv_prog_DSYMUTIL" ; then
10843 if test $build = $host ; then
10846 DSYMUTIL="${ncn_tool_prefix}$2"
10852 if test -n "$LD"; then
10854 elif test -n "$ac_cv_prog_LD"; then
10858 if test -n "$ac_cv_prog_LD"; then
10859 for ncn_progname in ld; do
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10861 set dummy ${ncn_progname}; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10863 $as_echo_n "checking
for $ac_word...
" >&6; }
10864 if ${ac_cv_prog_LD+:} false; then :
10865 $as_echo_n "(cached
) " >&6
10867 if test -n "$LD"; then
10868 ac_cv_prog_LD="$LD" # Let the user override the test.
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10877 ac_cv_prog_LD="${ncn_progname}"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10888 if test -n "$LD"; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
10890 $as_echo "$LD" >&6; }
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10893 $as_echo "no
" >&6; }
10900 for ncn_progname in ld; do
10901 if test -n "$ncn_tool_prefix"; then
10902 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10903 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10905 $as_echo_n "checking
for $ac_word...
" >&6; }
10906 if ${ac_cv_prog_LD+:} false; then :
10907 $as_echo_n "(cached
) " >&6
10909 if test -n "$LD"; then
10910 ac_cv_prog_LD="$LD" # Let the user override the test.
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
10920 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10930 if test -n "$LD"; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
10932 $as_echo "$LD" >&6; }
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10935 $as_echo "no
" >&6; }
10940 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
10941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10942 set dummy ${ncn_progname}; ac_word=$2
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10944 $as_echo_n "checking
for $ac_word...
" >&6; }
10945 if ${ac_cv_prog_LD+:} false; then :
10946 $as_echo_n "(cached
) " >&6
10948 if test -n "$LD"; then
10949 ac_cv_prog_LD="$LD" # Let the user override the test.
10951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952 for as_dir in $PATH
10955 test -z "$as_dir" && as_dir=.
10956 for ac_exec_ext in '' $ac_executable_extensions; do
10957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10958 ac_cv_prog_LD="${ncn_progname}"
10959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10969 if test -n "$LD"; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
10971 $as_echo "$LD" >&6; }
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10974 $as_echo "no
" >&6; }
10979 test -n "$ac_cv_prog_LD" && break
10982 if test -z "$ac_cv_prog_LD" ; then
10984 if test $build = $host ; then
10987 LD="${ncn_tool_prefix}$2"
10993 if test -n "$LIPO"; then
10994 ac_cv_prog_LIPO=$LIPO
10995 elif test -n "$ac_cv_prog_LIPO"; then
10996 LIPO=$ac_cv_prog_LIPO
10999 if test -n "$ac_cv_prog_LIPO"; then
11000 for ncn_progname in lipo; do
11001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11002 set dummy ${ncn_progname}; ac_word=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11004 $as_echo_n "checking
for $ac_word...
" >&6; }
11005 if ${ac_cv_prog_LIPO+:} false; then :
11006 $as_echo_n "(cached
) " >&6
11008 if test -n "$LIPO"; then
11009 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012 for as_dir in $PATH
11015 test -z "$as_dir" && as_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
11017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11018 ac_cv_prog_LIPO="${ncn_progname}"
11019 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11028 LIPO=$ac_cv_prog_LIPO
11029 if test -n "$LIPO"; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11031 $as_echo "$LIPO" >&6; }
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11034 $as_echo "no
" >&6; }
11041 for ncn_progname in lipo; do
11042 if test -n "$ncn_tool_prefix"; then
11043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11044 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11046 $as_echo_n "checking
for $ac_word...
" >&6; }
11047 if ${ac_cv_prog_LIPO+:} false; then :
11048 $as_echo_n "(cached
) " >&6
11050 if test -n "$LIPO"; then
11051 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11070 LIPO=$ac_cv_prog_LIPO
11071 if test -n "$LIPO"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11073 $as_echo "$LIPO" >&6; }
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11076 $as_echo "no
" >&6; }
11081 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11083 set dummy ${ncn_progname}; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11085 $as_echo_n "checking
for $ac_word...
" >&6; }
11086 if ${ac_cv_prog_LIPO+:} false; then :
11087 $as_echo_n "(cached
) " >&6
11089 if test -n "$LIPO"; then
11090 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11096 test -z "$as_dir" && as_dir=.
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11099 ac_cv_prog_LIPO="${ncn_progname}"
11100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11109 LIPO=$ac_cv_prog_LIPO
11110 if test -n "$LIPO"; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11112 $as_echo "$LIPO" >&6; }
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11115 $as_echo "no
" >&6; }
11120 test -n "$ac_cv_prog_LIPO" && break
11123 if test -z "$ac_cv_prog_LIPO" ; then
11125 if test $build = $host ; then
11128 LIPO="${ncn_tool_prefix}$2"
11134 if test -n "$NM"; then
11136 elif test -n "$ac_cv_prog_NM"; then
11140 if test -n "$ac_cv_prog_NM"; then
11141 for ncn_progname in nm; do
11142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11143 set dummy ${ncn_progname}; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11145 $as_echo_n "checking
for $ac_word...
" >&6; }
11146 if ${ac_cv_prog_NM+:} false; then :
11147 $as_echo_n "(cached
) " >&6
11149 if test -n "$NM"; then
11150 ac_cv_prog_NM="$NM" # Let the user override the test.
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11159 ac_cv_prog_NM="${ncn_progname}"
11160 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11170 if test -n "$NM"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11172 $as_echo "$NM" >&6; }
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11175 $as_echo "no
" >&6; }
11182 for ncn_progname in nm; do
11183 if test -n "$ncn_tool_prefix"; then
11184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11185 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11187 $as_echo_n "checking
for $ac_word...
" >&6; }
11188 if ${ac_cv_prog_NM+:} false; then :
11189 $as_echo_n "(cached
) " >&6
11191 if test -n "$NM"; then
11192 ac_cv_prog_NM="$NM" # Let the user override the test.
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11212 if test -n "$NM"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11214 $as_echo "$NM" >&6; }
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11217 $as_echo "no
" >&6; }
11222 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11224 set dummy ${ncn_progname}; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11226 $as_echo_n "checking
for $ac_word...
" >&6; }
11227 if ${ac_cv_prog_NM+:} false; then :
11228 $as_echo_n "(cached
) " >&6
11230 if test -n "$NM"; then
11231 ac_cv_prog_NM="$NM" # Let the user override the test.
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240 ac_cv_prog_NM="${ncn_progname}"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11251 if test -n "$NM"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11253 $as_echo "$NM" >&6; }
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11256 $as_echo "no
" >&6; }
11261 test -n "$ac_cv_prog_NM" && break
11264 if test -z "$ac_cv_prog_NM" ; then
11266 if test $build = $host ; then
11269 NM="${ncn_tool_prefix}$2"
11275 if test -n "$RANLIB"; then
11276 ac_cv_prog_RANLIB=$RANLIB
11277 elif test -n "$ac_cv_prog_RANLIB"; then
11278 RANLIB=$ac_cv_prog_RANLIB
11281 if test -n "$ac_cv_prog_RANLIB"; then
11282 for ncn_progname in ranlib; do
11283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11284 set dummy ${ncn_progname}; ac_word=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11286 $as_echo_n "checking
for $ac_word...
" >&6; }
11287 if ${ac_cv_prog_RANLIB+:} false; then :
11288 $as_echo_n "(cached
) " >&6
11290 if test -n "$RANLIB"; then
11291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_prog_RANLIB="${ncn_progname}"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11310 RANLIB=$ac_cv_prog_RANLIB
11311 if test -n "$RANLIB"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11313 $as_echo "$RANLIB" >&6; }
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11316 $as_echo "no
" >&6; }
11323 for ncn_progname in ranlib; do
11324 if test -n "$ncn_tool_prefix"; then
11325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11326 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11328 $as_echo_n "checking
for $ac_word...
" >&6; }
11329 if ${ac_cv_prog_RANLIB+:} false; then :
11330 $as_echo_n "(cached
) " >&6
11332 if test -n "$RANLIB"; then
11333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in $PATH
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11343 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11352 RANLIB=$ac_cv_prog_RANLIB
11353 if test -n "$RANLIB"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11355 $as_echo "$RANLIB" >&6; }
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11358 $as_echo "no
" >&6; }
11363 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11365 set dummy ${ncn_progname}; ac_word=$2
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11367 $as_echo_n "checking
for $ac_word...
" >&6; }
11368 if ${ac_cv_prog_RANLIB+:} false; then :
11369 $as_echo_n "(cached
) " >&6
11371 if test -n "$RANLIB"; then
11372 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375 for as_dir in $PATH
11378 test -z "$as_dir" && as_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11381 ac_cv_prog_RANLIB="${ncn_progname}"
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11391 RANLIB=$ac_cv_prog_RANLIB
11392 if test -n "$RANLIB"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11394 $as_echo "$RANLIB" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11397 $as_echo "no
" >&6; }
11402 test -n "$ac_cv_prog_RANLIB" && break
11405 if test -z "$ac_cv_prog_RANLIB" ; then
11411 if test -n "$STRIP"; then
11412 ac_cv_prog_STRIP=$STRIP
11413 elif test -n "$ac_cv_prog_STRIP"; then
11414 STRIP=$ac_cv_prog_STRIP
11417 if test -n "$ac_cv_prog_STRIP"; then
11418 for ncn_progname in strip; do
11419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11420 set dummy ${ncn_progname}; ac_word=$2
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11422 $as_echo_n "checking
for $ac_word...
" >&6; }
11423 if ${ac_cv_prog_STRIP+:} false; then :
11424 $as_echo_n "(cached
) " >&6
11426 if test -n "$STRIP"; then
11427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_prog_STRIP="${ncn_progname}"
11437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11446 STRIP=$ac_cv_prog_STRIP
11447 if test -n "$STRIP"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11449 $as_echo "$STRIP" >&6; }
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11452 $as_echo "no
" >&6; }
11459 for ncn_progname in strip; do
11460 if test -n "$ncn_tool_prefix"; then
11461 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11462 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11464 $as_echo_n "checking
for $ac_word...
" >&6; }
11465 if ${ac_cv_prog_STRIP+:} false; then :
11466 $as_echo_n "(cached
) " >&6
11468 if test -n "$STRIP"; then
11469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
11477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11478 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11479 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11488 STRIP=$ac_cv_prog_STRIP
11489 if test -n "$STRIP"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11491 $as_echo "$STRIP" >&6; }
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11494 $as_echo "no
" >&6; }
11499 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11501 set dummy ${ncn_progname}; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11503 $as_echo_n "checking
for $ac_word...
" >&6; }
11504 if ${ac_cv_prog_STRIP+:} false; then :
11505 $as_echo_n "(cached
) " >&6
11507 if test -n "$STRIP"; then
11508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511 for as_dir in $PATH
11514 test -z "$as_dir" && as_dir=.
11515 for ac_exec_ext in '' $ac_executable_extensions; do
11516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11517 ac_cv_prog_STRIP="${ncn_progname}"
11518 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11527 STRIP=$ac_cv_prog_STRIP
11528 if test -n "$STRIP"; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11530 $as_echo "$STRIP" >&6; }
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11533 $as_echo "no
" >&6; }
11538 test -n "$ac_cv_prog_STRIP" && break
11541 if test -z "$ac_cv_prog_STRIP" ; then
11547 if test -n "$WINDRES"; then
11548 ac_cv_prog_WINDRES=$WINDRES
11549 elif test -n "$ac_cv_prog_WINDRES"; then
11550 WINDRES=$ac_cv_prog_WINDRES
11553 if test -n "$ac_cv_prog_WINDRES"; then
11554 for ncn_progname in windres; do
11555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11556 set dummy ${ncn_progname}; ac_word=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11558 $as_echo_n "checking
for $ac_word...
" >&6; }
11559 if ${ac_cv_prog_WINDRES+:} false; then :
11560 $as_echo_n "(cached
) " >&6
11562 if test -n "$WINDRES"; then
11563 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11572 ac_cv_prog_WINDRES="${ncn_progname}"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11582 WINDRES=$ac_cv_prog_WINDRES
11583 if test -n "$WINDRES"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11585 $as_echo "$WINDRES" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11588 $as_echo "no
" >&6; }
11595 for ncn_progname in windres; do
11596 if test -n "$ncn_tool_prefix"; then
11597 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11598 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11600 $as_echo_n "checking
for $ac_word...
" >&6; }
11601 if ${ac_cv_prog_WINDRES+:} false; then :
11602 $as_echo_n "(cached
) " >&6
11604 if test -n "$WINDRES"; then
11605 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11624 WINDRES=$ac_cv_prog_WINDRES
11625 if test -n "$WINDRES"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11627 $as_echo "$WINDRES" >&6; }
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11630 $as_echo "no
" >&6; }
11635 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11637 set dummy ${ncn_progname}; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11639 $as_echo_n "checking
for $ac_word...
" >&6; }
11640 if ${ac_cv_prog_WINDRES+:} false; then :
11641 $as_echo_n "(cached
) " >&6
11643 if test -n "$WINDRES"; then
11644 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11653 ac_cv_prog_WINDRES="${ncn_progname}"
11654 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11663 WINDRES=$ac_cv_prog_WINDRES
11664 if test -n "$WINDRES"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11666 $as_echo "$WINDRES" >&6; }
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11669 $as_echo "no
" >&6; }
11674 test -n "$ac_cv_prog_WINDRES" && break
11677 if test -z "$ac_cv_prog_WINDRES" ; then
11679 if test $build = $host ; then
11682 WINDRES="${ncn_tool_prefix}$2"
11688 if test -n "$WINDMC"; then
11689 ac_cv_prog_WINDMC=$WINDMC
11690 elif test -n "$ac_cv_prog_WINDMC"; then
11691 WINDMC=$ac_cv_prog_WINDMC
11694 if test -n "$ac_cv_prog_WINDMC"; then
11695 for ncn_progname in windmc; do
11696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11697 set dummy ${ncn_progname}; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11699 $as_echo_n "checking
for $ac_word...
" >&6; }
11700 if ${ac_cv_prog_WINDMC+:} false; then :
11701 $as_echo_n "(cached
) " >&6
11703 if test -n "$WINDMC"; then
11704 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_prog_WINDMC="${ncn_progname}"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11723 WINDMC=$ac_cv_prog_WINDMC
11724 if test -n "$WINDMC"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
11726 $as_echo "$WINDMC" >&6; }
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11729 $as_echo "no
" >&6; }
11736 for ncn_progname in windmc; do
11737 if test -n "$ncn_tool_prefix"; then
11738 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11739 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11741 $as_echo_n "checking
for $ac_word...
" >&6; }
11742 if ${ac_cv_prog_WINDMC+:} false; then :
11743 $as_echo_n "(cached
) " >&6
11745 if test -n "$WINDMC"; then
11746 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11765 WINDMC=$ac_cv_prog_WINDMC
11766 if test -n "$WINDMC"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
11768 $as_echo "$WINDMC" >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11771 $as_echo "no
" >&6; }
11776 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11778 set dummy ${ncn_progname}; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11780 $as_echo_n "checking
for $ac_word...
" >&6; }
11781 if ${ac_cv_prog_WINDMC+:} false; then :
11782 $as_echo_n "(cached
) " >&6
11784 if test -n "$WINDMC"; then
11785 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794 ac_cv_prog_WINDMC="${ncn_progname}"
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11804 WINDMC=$ac_cv_prog_WINDMC
11805 if test -n "$WINDMC"; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
11807 $as_echo "$WINDMC" >&6; }
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11810 $as_echo "no
" >&6; }
11815 test -n "$ac_cv_prog_WINDMC" && break
11818 if test -z "$ac_cv_prog_WINDMC" ; then
11820 if test $build = $host ; then
11823 WINDMC="${ncn_tool_prefix}$2"
11829 if test -n "$OBJCOPY"; then
11830 ac_cv_prog_OBJCOPY=$OBJCOPY
11831 elif test -n "$ac_cv_prog_OBJCOPY"; then
11832 OBJCOPY=$ac_cv_prog_OBJCOPY
11835 if test -n "$ac_cv_prog_OBJCOPY"; then
11836 for ncn_progname in objcopy; do
11837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11838 set dummy ${ncn_progname}; ac_word=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11840 $as_echo_n "checking
for $ac_word...
" >&6; }
11841 if ${ac_cv_prog_OBJCOPY+:} false; then :
11842 $as_echo_n "(cached
) " >&6
11844 if test -n "$OBJCOPY"; then
11845 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11854 ac_cv_prog_OBJCOPY="${ncn_progname}"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11864 OBJCOPY=$ac_cv_prog_OBJCOPY
11865 if test -n "$OBJCOPY"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
11867 $as_echo "$OBJCOPY" >&6; }
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11870 $as_echo "no
" >&6; }
11877 for ncn_progname in objcopy; do
11878 if test -n "$ncn_tool_prefix"; then
11879 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11880 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11882 $as_echo_n "checking
for $ac_word...
" >&6; }
11883 if ${ac_cv_prog_OBJCOPY+:} false; then :
11884 $as_echo_n "(cached
) " >&6
11886 if test -n "$OBJCOPY"; then
11887 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890 for as_dir in $PATH
11893 test -z "$as_dir" && as_dir=.
11894 for ac_exec_ext in '' $ac_executable_extensions; do
11895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11896 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
11897 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11906 OBJCOPY=$ac_cv_prog_OBJCOPY
11907 if test -n "$OBJCOPY"; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
11909 $as_echo "$OBJCOPY" >&6; }
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11912 $as_echo "no
" >&6; }
11917 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11919 set dummy ${ncn_progname}; ac_word=$2
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11921 $as_echo_n "checking
for $ac_word...
" >&6; }
11922 if ${ac_cv_prog_OBJCOPY+:} false; then :
11923 $as_echo_n "(cached
) " >&6
11925 if test -n "$OBJCOPY"; then
11926 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in $PATH
11932 test -z "$as_dir" && as_dir=.
11933 for ac_exec_ext in '' $ac_executable_extensions; do
11934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11935 ac_cv_prog_OBJCOPY="${ncn_progname}"
11936 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11945 OBJCOPY=$ac_cv_prog_OBJCOPY
11946 if test -n "$OBJCOPY"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
11948 $as_echo "$OBJCOPY" >&6; }
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11951 $as_echo "no
" >&6; }
11956 test -n "$ac_cv_prog_OBJCOPY" && break
11959 if test -z "$ac_cv_prog_OBJCOPY" ; then
11961 if test $build = $host ; then
11964 OBJCOPY="${ncn_tool_prefix}$2"
11970 if test -n "$OBJDUMP"; then
11971 ac_cv_prog_OBJDUMP=$OBJDUMP
11972 elif test -n "$ac_cv_prog_OBJDUMP"; then
11973 OBJDUMP=$ac_cv_prog_OBJDUMP
11976 if test -n "$ac_cv_prog_OBJDUMP"; then
11977 for ncn_progname in objdump; do
11978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11979 set dummy ${ncn_progname}; ac_word=$2
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11981 $as_echo_n "checking
for $ac_word...
" >&6; }
11982 if ${ac_cv_prog_OBJDUMP+:} false; then :
11983 $as_echo_n "(cached
) " >&6
11985 if test -n "$OBJDUMP"; then
11986 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995 ac_cv_prog_OBJDUMP="${ncn_progname}"
11996 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12005 OBJDUMP=$ac_cv_prog_OBJDUMP
12006 if test -n "$OBJDUMP"; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12008 $as_echo "$OBJDUMP" >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12011 $as_echo "no
" >&6; }
12018 for ncn_progname in objdump; do
12019 if test -n "$ncn_tool_prefix"; then
12020 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12021 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12023 $as_echo_n "checking
for $ac_word...
" >&6; }
12024 if ${ac_cv_prog_OBJDUMP+:} false; then :
12025 $as_echo_n "(cached
) " >&6
12027 if test -n "$OBJDUMP"; then
12028 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12047 OBJDUMP=$ac_cv_prog_OBJDUMP
12048 if test -n "$OBJDUMP"; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12050 $as_echo "$OBJDUMP" >&6; }
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12053 $as_echo "no
" >&6; }
12058 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12060 set dummy ${ncn_progname}; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12062 $as_echo_n "checking
for $ac_word...
" >&6; }
12063 if ${ac_cv_prog_OBJDUMP+:} false; then :
12064 $as_echo_n "(cached
) " >&6
12066 if test -n "$OBJDUMP"; then
12067 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12076 ac_cv_prog_OBJDUMP="${ncn_progname}"
12077 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12086 OBJDUMP=$ac_cv_prog_OBJDUMP
12087 if test -n "$OBJDUMP"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12089 $as_echo "$OBJDUMP" >&6; }
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12092 $as_echo "no
" >&6; }
12097 test -n "$ac_cv_prog_OBJDUMP" && break
12100 if test -z "$ac_cv_prog_OBJDUMP" ; then
12102 if test $build = $host ; then
12105 OBJDUMP="${ncn_tool_prefix}$2"
12111 if test -n "$OTOOL"; then
12112 ac_cv_prog_OTOOL=$OTOOL
12113 elif test -n "$ac_cv_prog_OTOOL"; then
12114 OTOOL=$ac_cv_prog_OTOOL
12117 if test -n "$ac_cv_prog_OTOOL"; then
12118 for ncn_progname in otool; do
12119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12120 set dummy ${ncn_progname}; ac_word=$2
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12122 $as_echo_n "checking
for $ac_word...
" >&6; }
12123 if ${ac_cv_prog_OTOOL+:} false; then :
12124 $as_echo_n "(cached
) " >&6
12126 if test -n "$OTOOL"; then
12127 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130 for as_dir in $PATH
12133 test -z "$as_dir" && as_dir=.
12134 for ac_exec_ext in '' $ac_executable_extensions; do
12135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12136 ac_cv_prog_OTOOL="${ncn_progname}"
12137 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12146 OTOOL=$ac_cv_prog_OTOOL
12147 if test -n "$OTOOL"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12149 $as_echo "$OTOOL" >&6; }
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12152 $as_echo "no
" >&6; }
12159 for ncn_progname in otool; do
12160 if test -n "$ncn_tool_prefix"; then
12161 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12162 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12164 $as_echo_n "checking
for $ac_word...
" >&6; }
12165 if ${ac_cv_prog_OTOOL+:} false; then :
12166 $as_echo_n "(cached
) " >&6
12168 if test -n "$OTOOL"; then
12169 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12188 OTOOL=$ac_cv_prog_OTOOL
12189 if test -n "$OTOOL"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12191 $as_echo "$OTOOL" >&6; }
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12194 $as_echo "no
" >&6; }
12199 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12201 set dummy ${ncn_progname}; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12203 $as_echo_n "checking
for $ac_word...
" >&6; }
12204 if ${ac_cv_prog_OTOOL+:} false; then :
12205 $as_echo_n "(cached
) " >&6
12207 if test -n "$OTOOL"; then
12208 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217 ac_cv_prog_OTOOL="${ncn_progname}"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12227 OTOOL=$ac_cv_prog_OTOOL
12228 if test -n "$OTOOL"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12230 $as_echo "$OTOOL" >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12233 $as_echo "no
" >&6; }
12238 test -n "$ac_cv_prog_OTOOL" && break
12241 if test -z "$ac_cv_prog_OTOOL" ; then
12243 if test $build = $host ; then
12246 OTOOL="${ncn_tool_prefix}$2"
12252 if test -n "$READELF"; then
12253 ac_cv_prog_READELF=$READELF
12254 elif test -n "$ac_cv_prog_READELF"; then
12255 READELF=$ac_cv_prog_READELF
12258 if test -n "$ac_cv_prog_READELF"; then
12259 for ncn_progname in readelf; do
12260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12261 set dummy ${ncn_progname}; 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_prog_READELF+:} false; then :
12265 $as_echo_n "(cached
) " >&6
12267 if test -n "$READELF"; then
12268 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271 for as_dir in $PATH
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12277 ac_cv_prog_READELF="${ncn_progname}"
12278 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12287 READELF=$ac_cv_prog_READELF
12288 if test -n "$READELF"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12290 $as_echo "$READELF" >&6; }
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12293 $as_echo "no
" >&6; }
12300 for ncn_progname in readelf; do
12301 if test -n "$ncn_tool_prefix"; then
12302 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12303 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12305 $as_echo_n "checking
for $ac_word...
" >&6; }
12306 if ${ac_cv_prog_READELF+:} false; then :
12307 $as_echo_n "(cached
) " >&6
12309 if test -n "$READELF"; then
12310 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12319 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12320 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12329 READELF=$ac_cv_prog_READELF
12330 if test -n "$READELF"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12332 $as_echo "$READELF" >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12335 $as_echo "no
" >&6; }
12340 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12342 set dummy ${ncn_progname}; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12344 $as_echo_n "checking
for $ac_word...
" >&6; }
12345 if ${ac_cv_prog_READELF+:} false; then :
12346 $as_echo_n "(cached
) " >&6
12348 if test -n "$READELF"; then
12349 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $PATH
12355 test -z "$as_dir" && as_dir=.
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12358 ac_cv_prog_READELF="${ncn_progname}"
12359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12368 READELF=$ac_cv_prog_READELF
12369 if test -n "$READELF"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12371 $as_echo "$READELF" >&6; }
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12374 $as_echo "no
" >&6; }
12379 test -n "$ac_cv_prog_READELF" && break
12382 if test -z "$ac_cv_prog_READELF" ; then
12384 if test $build = $host ; then
12387 READELF="${ncn_tool_prefix}$2"
12400 # Check whether --with-build-time-tools was given.
12401 if test "${with_build_time_tools+set}" = set; then :
12402 withval=$with_build_time_tools; case x"$withval" in
12405 with_build_time_tools=
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12407 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12411 with_build_time_tools=
12417 if test -n "$CC_FOR_TARGET"; then
12418 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12419 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12420 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12423 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12424 for ncn_progname in cc gcc; do
12425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12426 set dummy ${ncn_progname}; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12428 $as_echo_n "checking
for $ac_word...
" >&6; }
12429 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12430 $as_echo_n "(cached
) " >&6
12432 if test -n "$CC_FOR_TARGET"; then
12433 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12439 test -z "$as_dir" && as_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12442 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12443 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12452 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12453 if test -n "$CC_FOR_TARGET"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12455 $as_echo "$CC_FOR_TARGET" >&6; }
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12458 $as_echo "no
" >&6; }
12465 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12466 for ncn_progname in cc gcc; do
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12468 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12469 if test -x $with_build_time_tools/${ncn_progname}; then
12470 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12472 $as_echo "yes" >&6; }
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12476 $as_echo "no
" >&6; }
12481 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12482 for ncn_progname in cc gcc; do
12483 if test -n "$ncn_target_tool_prefix"; then
12484 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12485 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12487 $as_echo_n "checking
for $ac_word...
" >&6; }
12488 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12489 $as_echo_n "(cached
) " >&6
12491 if test -n "$CC_FOR_TARGET"; then
12492 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12501 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12502 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12511 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12512 if test -n "$CC_FOR_TARGET"; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12514 $as_echo "$CC_FOR_TARGET" >&6; }
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12517 $as_echo "no
" >&6; }
12522 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12524 set dummy ${ncn_progname}; ac_word=$2
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12526 $as_echo_n "checking
for $ac_word...
" >&6; }
12527 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12528 $as_echo_n "(cached
) " >&6
12530 if test -n "$CC_FOR_TARGET"; then
12531 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12550 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12551 if test -n "$CC_FOR_TARGET"; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12553 $as_echo "$CC_FOR_TARGET" >&6; }
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12556 $as_echo "no
" >&6; }
12561 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12565 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12567 if test $build = $target ; then
12570 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12573 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12578 if test -n "$CXX_FOR_TARGET"; then
12579 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12580 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12581 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12584 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12585 for ncn_progname in c++ g++ cxx gxx; do
12586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12587 set dummy ${ncn_progname}; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12589 $as_echo_n "checking
for $ac_word...
" >&6; }
12590 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12591 $as_echo_n "(cached
) " >&6
12593 if test -n "$CXX_FOR_TARGET"; then
12594 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12613 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12614 if test -n "$CXX_FOR_TARGET"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12616 $as_echo "$CXX_FOR_TARGET" >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12619 $as_echo "no
" >&6; }
12626 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12627 for ncn_progname in c++ g++ cxx gxx; do
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12629 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12630 if test -x $with_build_time_tools/${ncn_progname}; then
12631 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12633 $as_echo "yes" >&6; }
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12637 $as_echo "no
" >&6; }
12642 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12643 for ncn_progname in c++ g++ cxx gxx; do
12644 if test -n "$ncn_target_tool_prefix"; then
12645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12646 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12648 $as_echo_n "checking
for $ac_word...
" >&6; }
12649 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12650 $as_echo_n "(cached
) " >&6
12652 if test -n "$CXX_FOR_TARGET"; then
12653 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12672 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12673 if test -n "$CXX_FOR_TARGET"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12675 $as_echo "$CXX_FOR_TARGET" >&6; }
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12678 $as_echo "no
" >&6; }
12683 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12685 set dummy ${ncn_progname}; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12687 $as_echo_n "checking
for $ac_word...
" >&6; }
12688 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12689 $as_echo_n "(cached
) " >&6
12691 if test -n "$CXX_FOR_TARGET"; then
12692 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12711 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12712 if test -n "$CXX_FOR_TARGET"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12714 $as_echo "$CXX_FOR_TARGET" >&6; }
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12717 $as_echo "no
" >&6; }
12722 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12726 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12727 set dummy c++ g++ cxx gxx
12728 if test $build = $target ; then
12729 CXX_FOR_TARGET="$2"
12731 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12734 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12739 if test -n "$GCC_FOR_TARGET"; then
12740 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12741 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12742 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12745 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12746 for ncn_progname in gcc; do
12747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12748 set dummy ${ncn_progname}; ac_word=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12750 $as_echo_n "checking
for $ac_word...
" >&6; }
12751 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12752 $as_echo_n "(cached
) " >&6
12754 if test -n "$GCC_FOR_TARGET"; then
12755 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12764 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12765 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12774 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12775 if test -n "$GCC_FOR_TARGET"; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
12777 $as_echo "$GCC_FOR_TARGET" >&6; }
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12780 $as_echo "no
" >&6; }
12787 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12788 for ncn_progname in gcc; do
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12790 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12791 if test -x $with_build_time_tools/${ncn_progname}; then
12792 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12794 $as_echo "yes" >&6; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12798 $as_echo "no
" >&6; }
12803 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12804 for ncn_progname in gcc; do
12805 if test -n "$ncn_target_tool_prefix"; then
12806 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12807 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12809 $as_echo_n "checking
for $ac_word...
" >&6; }
12810 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12811 $as_echo_n "(cached
) " >&6
12813 if test -n "$GCC_FOR_TARGET"; then
12814 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12820 test -z "$as_dir" && as_dir=.
12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12823 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12824 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12833 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12834 if test -n "$GCC_FOR_TARGET"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
12836 $as_echo "$GCC_FOR_TARGET" >&6; }
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12839 $as_echo "no
" >&6; }
12844 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12846 set dummy ${ncn_progname}; ac_word=$2
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12848 $as_echo_n "checking
for $ac_word...
" >&6; }
12849 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12850 $as_echo_n "(cached
) " >&6
12852 if test -n "$GCC_FOR_TARGET"; then
12853 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12862 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12872 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12873 if test -n "$GCC_FOR_TARGET"; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
12875 $as_echo "$GCC_FOR_TARGET" >&6; }
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12878 $as_echo "no
" >&6; }
12883 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12887 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12888 GCC_FOR_TARGET="${CC_FOR_TARGET}"
12890 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
12895 if test -n "$GFORTRAN_FOR_TARGET"; then
12896 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12897 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12898 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12901 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12902 for ncn_progname in gfortran; do
12903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12904 set dummy ${ncn_progname}; ac_word=$2
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12906 $as_echo_n "checking
for $ac_word...
" >&6; }
12907 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12908 $as_echo_n "(cached
) " >&6
12910 if test -n "$GFORTRAN_FOR_TARGET"; then
12911 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914 for as_dir in $PATH
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12920 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12930 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12931 if test -n "$GFORTRAN_FOR_TARGET"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
12933 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12936 $as_echo "no
" >&6; }
12943 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
12944 for ncn_progname in gfortran; do
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12946 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12947 if test -x $with_build_time_tools/${ncn_progname}; then
12948 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12950 $as_echo "yes" >&6; }
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12954 $as_echo "no
" >&6; }
12959 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12960 for ncn_progname in gfortran; do
12961 if test -n "$ncn_target_tool_prefix"; then
12962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12965 $as_echo_n "checking
for $ac_word...
" >&6; }
12966 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12967 $as_echo_n "(cached
) " >&6
12969 if test -n "$GFORTRAN_FOR_TARGET"; then
12970 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12976 test -z "$as_dir" && as_dir=.
12977 for ac_exec_ext in '' $ac_executable_extensions; do
12978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12979 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12980 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12989 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12990 if test -n "$GFORTRAN_FOR_TARGET"; then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
12992 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12995 $as_echo "no
" >&6; }
13000 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13002 set dummy ${ncn_progname}; ac_word=$2
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13004 $as_echo_n "checking
for $ac_word...
" >&6; }
13005 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13006 $as_echo_n "(cached
) " >&6
13008 if test -n "$GFORTRAN_FOR_TARGET"; then
13009 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012 for as_dir in $PATH
13015 test -z "$as_dir" && as_dir=.
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13019 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13028 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13029 if test -n "$GFORTRAN_FOR_TARGET"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13031 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13034 $as_echo "no
" >&6; }
13039 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13043 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13045 if test $build = $target ; then
13046 GFORTRAN_FOR_TARGET="$2"
13048 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13051 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13056 if test -n "$GOC_FOR_TARGET"; then
13057 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13058 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13059 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13062 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13063 for ncn_progname in gccgo; do
13064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13065 set dummy ${ncn_progname}; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13067 $as_echo_n "checking
for $ac_word...
" >&6; }
13068 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13069 $as_echo_n "(cached
) " >&6
13071 if test -n "$GOC_FOR_TARGET"; then
13072 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13091 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13092 if test -n "$GOC_FOR_TARGET"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13094 $as_echo "$GOC_FOR_TARGET" >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13097 $as_echo "no
" >&6; }
13104 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13105 for ncn_progname in gccgo; do
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13107 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13108 if test -x $with_build_time_tools/${ncn_progname}; then
13109 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13111 $as_echo "yes" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13115 $as_echo "no
" >&6; }
13120 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13121 for ncn_progname in gccgo; do
13122 if test -n "$ncn_target_tool_prefix"; then
13123 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13124 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13126 $as_echo_n "checking
for $ac_word...
" >&6; }
13127 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13128 $as_echo_n "(cached
) " >&6
13130 if test -n "$GOC_FOR_TARGET"; then
13131 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13150 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13151 if test -n "$GOC_FOR_TARGET"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13153 $as_echo "$GOC_FOR_TARGET" >&6; }
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13156 $as_echo "no
" >&6; }
13161 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13163 set dummy ${ncn_progname}; ac_word=$2
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13165 $as_echo_n "checking
for $ac_word...
" >&6; }
13166 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13167 $as_echo_n "(cached
) " >&6
13169 if test -n "$GOC_FOR_TARGET"; then
13170 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173 for as_dir in $PATH
13176 test -z "$as_dir" && as_dir=.
13177 for ac_exec_ext in '' $ac_executable_extensions; do
13178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13179 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13180 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13189 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13190 if test -n "$GOC_FOR_TARGET"; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13192 $as_echo "$GOC_FOR_TARGET" >&6; }
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13195 $as_echo "no
" >&6; }
13200 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13204 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13206 if test $build = $target ; then
13207 GOC_FOR_TARGET="$2"
13209 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13212 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13217 if test -n "$GDC_FOR_TARGET"; then
13218 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13219 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13220 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13223 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13224 for ncn_progname in gdc; do
13225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13226 set dummy ${ncn_progname}; ac_word=$2
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13228 $as_echo_n "checking
for $ac_word...
" >&6; }
13229 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13230 $as_echo_n "(cached
) " >&6
13232 if test -n "$GDC_FOR_TARGET"; then
13233 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236 for as_dir in $PATH
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13242 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13252 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13253 if test -n "$GDC_FOR_TARGET"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13255 $as_echo "$GDC_FOR_TARGET" >&6; }
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13258 $as_echo "no
" >&6; }
13265 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13266 for ncn_progname in gdc; do
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13268 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13269 if test -x $with_build_time_tools/${ncn_progname}; then
13270 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13272 $as_echo "yes" >&6; }
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13276 $as_echo "no
" >&6; }
13281 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13282 for ncn_progname in gdc; do
13283 if test -n "$ncn_target_tool_prefix"; then
13284 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13285 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13287 $as_echo_n "checking
for $ac_word...
" >&6; }
13288 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13289 $as_echo_n "(cached
) " >&6
13291 if test -n "$GDC_FOR_TARGET"; then
13292 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295 for as_dir in $PATH
13298 test -z "$as_dir" && as_dir=.
13299 for ac_exec_ext in '' $ac_executable_extensions; do
13300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13301 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13302 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13311 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13312 if test -n "$GDC_FOR_TARGET"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13314 $as_echo "$GDC_FOR_TARGET" >&6; }
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13317 $as_echo "no
" >&6; }
13322 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13324 set dummy ${ncn_progname}; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13326 $as_echo_n "checking
for $ac_word...
" >&6; }
13327 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13328 $as_echo_n "(cached
) " >&6
13330 if test -n "$GDC_FOR_TARGET"; then
13331 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13340 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13350 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13351 if test -n "$GDC_FOR_TARGET"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13353 $as_echo "$GDC_FOR_TARGET" >&6; }
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13356 $as_echo "no
" >&6; }
13361 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13365 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13367 if test $build = $target ; then
13368 GDC_FOR_TARGET="$2"
13370 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13373 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13378 # The user is always right.
13379 if test "${PATH_SEPARATOR+set}" != set; then
13380 echo "#! /bin/sh" >conf$$.sh
13381 echo "exit 0" >>conf$$.sh
13383 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13392 get_gcc_base_ver
="cat"
13394 # Check whether --with-gcc-major-version-only was given.
13395 if test "${with_gcc_major_version_only+set}" = set; then :
13396 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13397 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13407 if test "x$exec_prefix" = xNONE
; then
13408 if test "x$prefix" = xNONE
; then
13409 gcc_cv_tool_prefix
=$ac_default_prefix
13411 gcc_cv_tool_prefix
=$prefix
13414 gcc_cv_tool_prefix
=$exec_prefix
13417 # If there is no compiler in the tree, use the PATH only. In any
13418 # case, if there is no compiler in the tree nobody should use
13419 # AS_FOR_TARGET and LD_FOR_TARGET.
13420 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
13421 if test x
$with_gcc_major_version_only = xyes
; then
13422 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
13424 gcc_version
=`cat $srcdir/gcc/BASE-VER`
13426 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
13427 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
13428 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
13429 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
13430 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
13431 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
13436 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
13437 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
13442 cat > conftest.c
<< \EOF
13447 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
13448 have_gcc_for_target
=yes
13450 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
13451 have_gcc_for_target
=no
13458 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13459 if test -n "$with_build_time_tools"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13461 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13462 if test -x $with_build_time_tools/ar; then
13463 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
13464 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13466 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13471 elif test $build != $host && test $have_gcc_for_target = yes; then
13472 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
13473 test $AR_FOR_TARGET = ar && AR_FOR_TARGET
=
13474 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
13477 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13478 # Extract the first word of "ar", so it can be a program name with args.
13479 set dummy
ar; ac_word
=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_path_AR_FOR_TARGET+:} false
; then :
13483 $as_echo_n "(cached) " >&6
13485 case $AR_FOR_TARGET in
13487 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
13490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13491 for as_dir
in $gcc_cv_tool_dirs
13494 test -z "$as_dir" && as_dir
=.
13495 for ac_exec_ext
in '' $ac_executable_extensions; do
13496 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13497 ac_cv_path_AR_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13508 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
13509 if test -n "$AR_FOR_TARGET"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13511 $as_echo "$AR_FOR_TARGET" >&6; }
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13519 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13522 if test -n "$AR_FOR_TARGET"; then
13523 ac_cv_prog_AR_FOR_TARGET
=$AR_FOR_TARGET
13524 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13525 AR_FOR_TARGET
=$ac_cv_prog_AR_FOR_TARGET
13528 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13529 for ncn_progname
in ar; do
13530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13531 set dummy
${ncn_progname}; ac_word
=$2
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533 $as_echo_n "checking for $ac_word... " >&6; }
13534 if ${ac_cv_prog_AR_FOR_TARGET+:} false
; then :
13535 $as_echo_n "(cached) " >&6
13537 if test -n "$AR_FOR_TARGET"; then
13538 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
13540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13541 for as_dir
in $PATH
13544 test -z "$as_dir" && as_dir
=.
13545 for ac_exec_ext
in '' $ac_executable_extensions; do
13546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13547 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 AR_FOR_TARGET
=$ac_cv_prog_AR_FOR_TARGET
13558 if test -n "$AR_FOR_TARGET"; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13560 $as_echo "$AR_FOR_TARGET" >&6; }
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13570 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13571 for ncn_progname
in ar; do
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13573 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13574 if test -x $with_build_time_tools/${ncn_progname}; then
13575 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13577 $as_echo "yes" >&6; }
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13586 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13587 for ncn_progname
in ar; do
13588 if test -n "$ncn_target_tool_prefix"; then
13589 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13590 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if ${ac_cv_prog_AR_FOR_TARGET+:} false
; then :
13594 $as_echo_n "(cached) " >&6
13596 if test -n "$AR_FOR_TARGET"; then
13597 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
13599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13600 for as_dir
in $PATH
13603 test -z "$as_dir" && as_dir
=.
13604 for ac_exec_ext
in '' $ac_executable_extensions; do
13605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13606 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616 AR_FOR_TARGET
=$ac_cv_prog_AR_FOR_TARGET
13617 if test -n "$AR_FOR_TARGET"; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13619 $as_echo "$AR_FOR_TARGET" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13627 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13629 set dummy
${ncn_progname}; ac_word
=$2
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13631 $as_echo_n "checking for $ac_word... " >&6; }
13632 if ${ac_cv_prog_AR_FOR_TARGET+:} false
; then :
13633 $as_echo_n "(cached) " >&6
13635 if test -n "$AR_FOR_TARGET"; then
13636 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
13638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13639 for as_dir
in $PATH
13642 test -z "$as_dir" && as_dir
=.
13643 for ac_exec_ext
in '' $ac_executable_extensions; do
13644 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13645 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13655 AR_FOR_TARGET
=$ac_cv_prog_AR_FOR_TARGET
13656 if test -n "$AR_FOR_TARGET"; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13658 $as_echo "$AR_FOR_TARGET" >&6; }
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661 $as_echo "no" >&6; }
13666 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13670 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13672 if test $build = $target ; then
13675 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
13678 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
13682 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
13688 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13689 if test -n "$with_build_time_tools"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13691 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13692 if test -x $with_build_time_tools/as
; then
13693 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
13694 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13696 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13701 elif test $build != $host && test $have_gcc_for_target = yes; then
13702 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
13703 test $AS_FOR_TARGET = as
&& AS_FOR_TARGET
=
13704 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
13707 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13708 # Extract the first word of "as", so it can be a program name with args.
13709 set dummy as
; ac_word
=$2
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13711 $as_echo_n "checking for $ac_word... " >&6; }
13712 if ${ac_cv_path_AS_FOR_TARGET+:} false
; then :
13713 $as_echo_n "(cached) " >&6
13715 case $AS_FOR_TARGET in
13717 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
13720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13721 for as_dir
in $gcc_cv_tool_dirs
13724 test -z "$as_dir" && as_dir
=.
13725 for ac_exec_ext
in '' $ac_executable_extensions; do
13726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13727 ac_cv_path_AS_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
13739 if test -n "$AS_FOR_TARGET"; then
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13741 $as_echo "$AS_FOR_TARGET" >&6; }
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744 $as_echo "no" >&6; }
13749 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13752 if test -n "$AS_FOR_TARGET"; then
13753 ac_cv_prog_AS_FOR_TARGET
=$AS_FOR_TARGET
13754 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13755 AS_FOR_TARGET
=$ac_cv_prog_AS_FOR_TARGET
13758 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13759 for ncn_progname
in as
; do
13760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13761 set dummy
${ncn_progname}; ac_word
=$2
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13763 $as_echo_n "checking for $ac_word... " >&6; }
13764 if ${ac_cv_prog_AS_FOR_TARGET+:} false
; then :
13765 $as_echo_n "(cached) " >&6
13767 if test -n "$AS_FOR_TARGET"; then
13768 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
13770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13771 for as_dir
in $PATH
13774 test -z "$as_dir" && as_dir
=.
13775 for ac_exec_ext
in '' $ac_executable_extensions; do
13776 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13777 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
13778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787 AS_FOR_TARGET
=$ac_cv_prog_AS_FOR_TARGET
13788 if test -n "$AS_FOR_TARGET"; then
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13790 $as_echo "$AS_FOR_TARGET" >&6; }
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793 $as_echo "no" >&6; }
13800 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13801 for ncn_progname
in as
; do
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13803 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13804 if test -x $with_build_time_tools/${ncn_progname}; then
13805 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13807 $as_echo "yes" >&6; }
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13816 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13817 for ncn_progname
in as
; do
13818 if test -n "$ncn_target_tool_prefix"; then
13819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13820 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822 $as_echo_n "checking for $ac_word... " >&6; }
13823 if ${ac_cv_prog_AS_FOR_TARGET+:} false
; then :
13824 $as_echo_n "(cached) " >&6
13826 if test -n "$AS_FOR_TARGET"; then
13827 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
13829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13830 for as_dir
in $PATH
13833 test -z "$as_dir" && as_dir
=.
13834 for ac_exec_ext
in '' $ac_executable_extensions; do
13835 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13836 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
13837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 AS_FOR_TARGET
=$ac_cv_prog_AS_FOR_TARGET
13847 if test -n "$AS_FOR_TARGET"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13849 $as_echo "$AS_FOR_TARGET" >&6; }
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13857 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13859 set dummy
${ncn_progname}; ac_word
=$2
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13861 $as_echo_n "checking for $ac_word... " >&6; }
13862 if ${ac_cv_prog_AS_FOR_TARGET+:} false
; then :
13863 $as_echo_n "(cached) " >&6
13865 if test -n "$AS_FOR_TARGET"; then
13866 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
13868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13869 for as_dir
in $PATH
13872 test -z "$as_dir" && as_dir
=.
13873 for ac_exec_ext
in '' $ac_executable_extensions; do
13874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
13876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 AS_FOR_TARGET
=$ac_cv_prog_AS_FOR_TARGET
13886 if test -n "$AS_FOR_TARGET"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13888 $as_echo "$AS_FOR_TARGET" >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891 $as_echo "no" >&6; }
13896 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13900 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13902 if test $build = $target ; then
13905 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
13908 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
13912 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
13918 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13919 if test -n "$with_build_time_tools"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13921 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
13922 if test -x $with_build_time_tools/dlltool
; then
13923 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
13924 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13926 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 $as_echo "no" >&6; }
13931 elif test $build != $host && test $have_gcc_for_target = yes; then
13932 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
13933 test $DLLTOOL_FOR_TARGET = dlltool
&& DLLTOOL_FOR_TARGET
=
13934 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
13937 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13938 # Extract the first word of "dlltool", so it can be a program name with args.
13939 set dummy dlltool
; ac_word
=$2
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13941 $as_echo_n "checking for $ac_word... " >&6; }
13942 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false
; then :
13943 $as_echo_n "(cached) " >&6
13945 case $DLLTOOL_FOR_TARGET in
13947 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13951 for as_dir
in $gcc_cv_tool_dirs
13954 test -z "$as_dir" && as_dir
=.
13955 for ac_exec_ext
in '' $ac_executable_extensions; do
13956 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13957 ac_cv_path_DLLTOOL_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
13958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13968 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
13969 if test -n "$DLLTOOL_FOR_TARGET"; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13971 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13979 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13982 if test -n "$DLLTOOL_FOR_TARGET"; then
13983 ac_cv_prog_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
13984 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13985 DLLTOOL_FOR_TARGET
=$ac_cv_prog_DLLTOOL_FOR_TARGET
13988 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13989 for ncn_progname
in dlltool
; do
13990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13991 set dummy
${ncn_progname}; ac_word
=$2
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993 $as_echo_n "checking for $ac_word... " >&6; }
13994 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false
; then :
13995 $as_echo_n "(cached) " >&6
13997 if test -n "$DLLTOOL_FOR_TARGET"; then
13998 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14001 for as_dir
in $PATH
14004 test -z "$as_dir" && as_dir
=.
14005 for ac_exec_ext
in '' $ac_executable_extensions; do
14006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14007 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
14008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 DLLTOOL_FOR_TARGET
=$ac_cv_prog_DLLTOOL_FOR_TARGET
14018 if test -n "$DLLTOOL_FOR_TARGET"; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14020 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023 $as_echo "no" >&6; }
14030 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14031 for ncn_progname
in dlltool
; do
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14033 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14034 if test -x $with_build_time_tools/${ncn_progname}; then
14035 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14037 $as_echo "yes" >&6; }
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041 $as_echo "no" >&6; }
14046 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14047 for ncn_progname
in dlltool
; do
14048 if test -n "$ncn_target_tool_prefix"; then
14049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14050 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false
; then :
14054 $as_echo_n "(cached) " >&6
14056 if test -n "$DLLTOOL_FOR_TARGET"; then
14057 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14060 for as_dir
in $PATH
14063 test -z "$as_dir" && as_dir
=.
14064 for ac_exec_ext
in '' $ac_executable_extensions; do
14065 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14066 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 DLLTOOL_FOR_TARGET
=$ac_cv_prog_DLLTOOL_FOR_TARGET
14077 if test -n "$DLLTOOL_FOR_TARGET"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14079 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14087 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14089 set dummy
${ncn_progname}; ac_word
=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091 $as_echo_n "checking for $ac_word... " >&6; }
14092 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false
; then :
14093 $as_echo_n "(cached) " >&6
14095 if test -n "$DLLTOOL_FOR_TARGET"; then
14096 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14099 for as_dir
in $PATH
14102 test -z "$as_dir" && as_dir
=.
14103 for ac_exec_ext
in '' $ac_executable_extensions; do
14104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 DLLTOOL_FOR_TARGET
=$ac_cv_prog_DLLTOOL_FOR_TARGET
14116 if test -n "$DLLTOOL_FOR_TARGET"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14118 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121 $as_echo "no" >&6; }
14126 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14130 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14132 if test $build = $target ; then
14133 DLLTOOL_FOR_TARGET
="$2"
14135 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
14138 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14142 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
14148 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14149 if test -n "$with_build_time_tools"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14151 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14152 if test -x $with_build_time_tools/dsymutil
; then
14153 DSYMUTIL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dsymutil
14154 ac_cv_path_DSYMUTIL_FOR_TARGET
=$DSYMUTIL_FOR_TARGET
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14156 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14161 elif test $build != $host && test $have_gcc_for_target = yes; then
14162 DSYMUTIL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14163 test $DSYMUTIL_FOR_TARGET = dsymutil
&& DSYMUTIL_FOR_TARGET
=
14164 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET
=$DSYMUTIL_FOR_TARGET
14167 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14168 # Extract the first word of "dsymutil", so it can be a program name with args.
14169 set dummy dsymutil
; ac_word
=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false
; then :
14173 $as_echo_n "(cached) " >&6
14175 case $DSYMUTIL_FOR_TARGET in
14177 ac_cv_path_DSYMUTIL_FOR_TARGET
="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14181 for as_dir
in $gcc_cv_tool_dirs
14184 test -z "$as_dir" && as_dir
=.
14185 for ac_exec_ext
in '' $ac_executable_extensions; do
14186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_path_DSYMUTIL_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14198 DSYMUTIL_FOR_TARGET
=$ac_cv_path_DSYMUTIL_FOR_TARGET
14199 if test -n "$DSYMUTIL_FOR_TARGET"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14201 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14209 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14212 if test -n "$DSYMUTIL_FOR_TARGET"; then
14213 ac_cv_prog_DSYMUTIL_FOR_TARGET
=$DSYMUTIL_FOR_TARGET
14214 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14215 DSYMUTIL_FOR_TARGET
=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14218 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14219 for ncn_progname
in dsymutil
; do
14220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14221 set dummy
${ncn_progname}; ac_word
=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false
; then :
14225 $as_echo_n "(cached) " >&6
14227 if test -n "$DSYMUTIL_FOR_TARGET"; then
14228 ac_cv_prog_DSYMUTIL_FOR_TARGET
="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14231 for as_dir
in $PATH
14234 test -z "$as_dir" && as_dir
=.
14235 for ac_exec_ext
in '' $ac_executable_extensions; do
14236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14237 ac_cv_prog_DSYMUTIL_FOR_TARGET
="${ncn_progname}"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14247 DSYMUTIL_FOR_TARGET
=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14248 if test -n "$DSYMUTIL_FOR_TARGET"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14250 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14260 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14261 for ncn_progname
in dsymutil
; do
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14263 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14264 if test -x $with_build_time_tools/${ncn_progname}; then
14265 ac_cv_prog_DSYMUTIL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14267 $as_echo "yes" >&6; }
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14276 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14277 for ncn_progname
in dsymutil
; do
14278 if test -n "$ncn_target_tool_prefix"; then
14279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14280 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false
; then :
14284 $as_echo_n "(cached) " >&6
14286 if test -n "$DSYMUTIL_FOR_TARGET"; then
14287 ac_cv_prog_DSYMUTIL_FOR_TARGET
="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14290 for as_dir
in $PATH
14293 test -z "$as_dir" && as_dir
=.
14294 for ac_exec_ext
in '' $ac_executable_extensions; do
14295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_DSYMUTIL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14306 DSYMUTIL_FOR_TARGET
=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14307 if test -n "$DSYMUTIL_FOR_TARGET"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14309 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14317 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14319 set dummy
${ncn_progname}; ac_word
=$2
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14321 $as_echo_n "checking for $ac_word... " >&6; }
14322 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false
; then :
14323 $as_echo_n "(cached) " >&6
14325 if test -n "$DSYMUTIL_FOR_TARGET"; then
14326 ac_cv_prog_DSYMUTIL_FOR_TARGET
="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14329 for as_dir
in $PATH
14332 test -z "$as_dir" && as_dir
=.
14333 for ac_exec_ext
in '' $ac_executable_extensions; do
14334 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14335 ac_cv_prog_DSYMUTIL_FOR_TARGET
="${ncn_progname}"
14336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14345 DSYMUTIL_FOR_TARGET
=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14346 if test -n "$DSYMUTIL_FOR_TARGET"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14348 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14356 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14360 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14362 if test $build = $target ; then
14363 DSYMUTIL_FOR_TARGET
="$2"
14365 DSYMUTIL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
14368 DSYMUTIL_FOR_TARGET
="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14372 DSYMUTIL_FOR_TARGET
=$ac_cv_path_DSYMUTIL_FOR_TARGET
14378 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14379 if test -n "$with_build_time_tools"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14381 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14382 if test -x $with_build_time_tools/ld
; then
14383 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
14384 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14386 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14391 elif test $build != $host && test $have_gcc_for_target = yes; then
14392 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
14393 test $LD_FOR_TARGET = ld
&& LD_FOR_TARGET
=
14394 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
14397 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14398 # Extract the first word of "ld", so it can be a program name with args.
14399 set dummy ld
; ac_word
=$2
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14401 $as_echo_n "checking for $ac_word... " >&6; }
14402 if ${ac_cv_path_LD_FOR_TARGET+:} false
; then :
14403 $as_echo_n "(cached) " >&6
14405 case $LD_FOR_TARGET in
14407 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
14410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14411 for as_dir
in $gcc_cv_tool_dirs
14414 test -z "$as_dir" && as_dir
=.
14415 for ac_exec_ext
in '' $ac_executable_extensions; do
14416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14417 ac_cv_path_LD_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
14418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14428 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
14429 if test -n "$LD_FOR_TARGET"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14431 $as_echo "$LD_FOR_TARGET" >&6; }
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14439 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14442 if test -n "$LD_FOR_TARGET"; then
14443 ac_cv_prog_LD_FOR_TARGET
=$LD_FOR_TARGET
14444 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14445 LD_FOR_TARGET
=$ac_cv_prog_LD_FOR_TARGET
14448 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14449 for ncn_progname
in ld
; do
14450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14451 set dummy
${ncn_progname}; ac_word
=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_prog_LD_FOR_TARGET+:} false
; then :
14455 $as_echo_n "(cached) " >&6
14457 if test -n "$LD_FOR_TARGET"; then
14458 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
14460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14461 for as_dir
in $PATH
14464 test -z "$as_dir" && as_dir
=.
14465 for ac_exec_ext
in '' $ac_executable_extensions; do
14466 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14477 LD_FOR_TARGET
=$ac_cv_prog_LD_FOR_TARGET
14478 if test -n "$LD_FOR_TARGET"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14480 $as_echo "$LD_FOR_TARGET" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14490 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14491 for ncn_progname
in ld
; do
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14493 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14494 if test -x $with_build_time_tools/${ncn_progname}; then
14495 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14501 $as_echo "no" >&6; }
14506 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14507 for ncn_progname
in ld
; do
14508 if test -n "$ncn_target_tool_prefix"; then
14509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14510 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512 $as_echo_n "checking for $ac_word... " >&6; }
14513 if ${ac_cv_prog_LD_FOR_TARGET+:} false
; then :
14514 $as_echo_n "(cached) " >&6
14516 if test -n "$LD_FOR_TARGET"; then
14517 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
14519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14520 for as_dir
in $PATH
14523 test -z "$as_dir" && as_dir
=.
14524 for ac_exec_ext
in '' $ac_executable_extensions; do
14525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14536 LD_FOR_TARGET
=$ac_cv_prog_LD_FOR_TARGET
14537 if test -n "$LD_FOR_TARGET"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14539 $as_echo "$LD_FOR_TARGET" >&6; }
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14547 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14549 set dummy
${ncn_progname}; ac_word
=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14551 $as_echo_n "checking for $ac_word... " >&6; }
14552 if ${ac_cv_prog_LD_FOR_TARGET+:} false
; then :
14553 $as_echo_n "(cached) " >&6
14555 if test -n "$LD_FOR_TARGET"; then
14556 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
14558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14559 for as_dir
in $PATH
14562 test -z "$as_dir" && as_dir
=.
14563 for ac_exec_ext
in '' $ac_executable_extensions; do
14564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14565 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14575 LD_FOR_TARGET
=$ac_cv_prog_LD_FOR_TARGET
14576 if test -n "$LD_FOR_TARGET"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14578 $as_echo "$LD_FOR_TARGET" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14586 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14590 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14592 if test $build = $target ; then
14595 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
14598 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
14602 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
14608 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14609 if test -n "$with_build_time_tools"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14611 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14612 if test -x $with_build_time_tools/lipo
; then
14613 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
14614 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14616 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14621 elif test $build != $host && test $have_gcc_for_target = yes; then
14622 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
14623 test $LIPO_FOR_TARGET = lipo
&& LIPO_FOR_TARGET
=
14624 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
14627 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14628 # Extract the first word of "lipo", so it can be a program name with args.
14629 set dummy lipo
; ac_word
=$2
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14631 $as_echo_n "checking for $ac_word... " >&6; }
14632 if ${ac_cv_path_LIPO_FOR_TARGET+:} false
; then :
14633 $as_echo_n "(cached) " >&6
14635 case $LIPO_FOR_TARGET in
14637 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14641 for as_dir
in $gcc_cv_tool_dirs
14644 test -z "$as_dir" && as_dir
=.
14645 for ac_exec_ext
in '' $ac_executable_extensions; do
14646 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14647 ac_cv_path_LIPO_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
14648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14658 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
14659 if test -n "$LIPO_FOR_TARGET"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14661 $as_echo "$LIPO_FOR_TARGET" >&6; }
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; }
14669 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14672 if test -n "$LIPO_FOR_TARGET"; then
14673 ac_cv_prog_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
14674 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14675 LIPO_FOR_TARGET
=$ac_cv_prog_LIPO_FOR_TARGET
14678 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14679 for ncn_progname
in lipo
; do
14680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14681 set dummy
${ncn_progname}; ac_word
=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683 $as_echo_n "checking for $ac_word... " >&6; }
14684 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false
; then :
14685 $as_echo_n "(cached) " >&6
14687 if test -n "$LIPO_FOR_TARGET"; then
14688 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
14690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14691 for as_dir
in $PATH
14694 test -z "$as_dir" && as_dir
=.
14695 for ac_exec_ext
in '' $ac_executable_extensions; do
14696 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14707 LIPO_FOR_TARGET
=$ac_cv_prog_LIPO_FOR_TARGET
14708 if test -n "$LIPO_FOR_TARGET"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14710 $as_echo "$LIPO_FOR_TARGET" >&6; }
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14720 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14721 for ncn_progname
in lipo
; do
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14723 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14724 if test -x $with_build_time_tools/${ncn_progname}; then
14725 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14727 $as_echo "yes" >&6; }
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731 $as_echo "no" >&6; }
14736 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14737 for ncn_progname
in lipo
; do
14738 if test -n "$ncn_target_tool_prefix"; then
14739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14740 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14742 $as_echo_n "checking for $ac_word... " >&6; }
14743 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false
; then :
14744 $as_echo_n "(cached) " >&6
14746 if test -n "$LIPO_FOR_TARGET"; then
14747 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
14749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14750 for as_dir
in $PATH
14753 test -z "$as_dir" && as_dir
=.
14754 for ac_exec_ext
in '' $ac_executable_extensions; do
14755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14756 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
14757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14766 LIPO_FOR_TARGET
=$ac_cv_prog_LIPO_FOR_TARGET
14767 if test -n "$LIPO_FOR_TARGET"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14769 $as_echo "$LIPO_FOR_TARGET" >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14777 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14779 set dummy
${ncn_progname}; ac_word
=$2
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14781 $as_echo_n "checking for $ac_word... " >&6; }
14782 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false
; then :
14783 $as_echo_n "(cached) " >&6
14785 if test -n "$LIPO_FOR_TARGET"; then
14786 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
14788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14789 for as_dir
in $PATH
14792 test -z "$as_dir" && as_dir
=.
14793 for ac_exec_ext
in '' $ac_executable_extensions; do
14794 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14795 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
14796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14805 LIPO_FOR_TARGET
=$ac_cv_prog_LIPO_FOR_TARGET
14806 if test -n "$LIPO_FOR_TARGET"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14808 $as_echo "$LIPO_FOR_TARGET" >&6; }
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14811 $as_echo "no" >&6; }
14816 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14820 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14822 if test $build = $target ; then
14823 LIPO_FOR_TARGET
="$2"
14825 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
14828 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
14832 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
14838 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14839 if test -n "$with_build_time_tools"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14841 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14842 if test -x $with_build_time_tools/nm
; then
14843 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
14844 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14846 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 $as_echo "no" >&6; }
14851 elif test $build != $host && test $have_gcc_for_target = yes; then
14852 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
14853 test $NM_FOR_TARGET = nm
&& NM_FOR_TARGET
=
14854 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
14857 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14858 # Extract the first word of "nm", so it can be a program name with args.
14859 set dummy nm
; ac_word
=$2
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14861 $as_echo_n "checking for $ac_word... " >&6; }
14862 if ${ac_cv_path_NM_FOR_TARGET+:} false
; then :
14863 $as_echo_n "(cached) " >&6
14865 case $NM_FOR_TARGET in
14867 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
14870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14871 for as_dir
in $gcc_cv_tool_dirs
14874 test -z "$as_dir" && as_dir
=.
14875 for ac_exec_ext
in '' $ac_executable_extensions; do
14876 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14877 ac_cv_path_NM_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
14878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14888 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
14889 if test -n "$NM_FOR_TARGET"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14891 $as_echo "$NM_FOR_TARGET" >&6; }
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894 $as_echo "no" >&6; }
14899 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14902 if test -n "$NM_FOR_TARGET"; then
14903 ac_cv_prog_NM_FOR_TARGET
=$NM_FOR_TARGET
14904 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14905 NM_FOR_TARGET
=$ac_cv_prog_NM_FOR_TARGET
14908 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14909 for ncn_progname
in nm
; do
14910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14911 set dummy
${ncn_progname}; ac_word
=$2
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14913 $as_echo_n "checking for $ac_word... " >&6; }
14914 if ${ac_cv_prog_NM_FOR_TARGET+:} false
; then :
14915 $as_echo_n "(cached) " >&6
14917 if test -n "$NM_FOR_TARGET"; then
14918 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
14920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14921 for as_dir
in $PATH
14924 test -z "$as_dir" && as_dir
=.
14925 for ac_exec_ext
in '' $ac_executable_extensions; do
14926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14927 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
14928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14937 NM_FOR_TARGET
=$ac_cv_prog_NM_FOR_TARGET
14938 if test -n "$NM_FOR_TARGET"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14940 $as_echo "$NM_FOR_TARGET" >&6; }
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943 $as_echo "no" >&6; }
14950 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
14951 for ncn_progname
in nm
; do
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14953 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14954 if test -x $with_build_time_tools/${ncn_progname}; then
14955 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14957 $as_echo "yes" >&6; }
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961 $as_echo "no" >&6; }
14966 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14967 for ncn_progname
in nm
; do
14968 if test -n "$ncn_target_tool_prefix"; then
14969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14970 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14972 $as_echo_n "checking for $ac_word... " >&6; }
14973 if ${ac_cv_prog_NM_FOR_TARGET+:} false
; then :
14974 $as_echo_n "(cached) " >&6
14976 if test -n "$NM_FOR_TARGET"; then
14977 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
14979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14980 for as_dir
in $PATH
14983 test -z "$as_dir" && as_dir
=.
14984 for ac_exec_ext
in '' $ac_executable_extensions; do
14985 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14996 NM_FOR_TARGET
=$ac_cv_prog_NM_FOR_TARGET
14997 if test -n "$NM_FOR_TARGET"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14999 $as_echo "$NM_FOR_TARGET" >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15007 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15009 set dummy
${ncn_progname}; ac_word
=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011 $as_echo_n "checking for $ac_word... " >&6; }
15012 if ${ac_cv_prog_NM_FOR_TARGET+:} false
; then :
15013 $as_echo_n "(cached) " >&6
15015 if test -n "$NM_FOR_TARGET"; then
15016 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
15018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15019 for as_dir
in $PATH
15022 test -z "$as_dir" && as_dir
=.
15023 for ac_exec_ext
in '' $ac_executable_extensions; do
15024 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15035 NM_FOR_TARGET
=$ac_cv_prog_NM_FOR_TARGET
15036 if test -n "$NM_FOR_TARGET"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15038 $as_echo "$NM_FOR_TARGET" >&6; }
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041 $as_echo "no" >&6; }
15046 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15050 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15052 if test $build = $target ; then
15055 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15058 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
15062 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
15068 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15069 if test -n "$with_build_time_tools"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15071 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15072 if test -x $with_build_time_tools/objcopy
; then
15073 OBJCOPY_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objcopy
15074 ac_cv_path_OBJCOPY_FOR_TARGET
=$OBJCOPY_FOR_TARGET
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15076 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079 $as_echo "no" >&6; }
15081 elif test $build != $host && test $have_gcc_for_target = yes; then
15082 OBJCOPY_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15083 test $OBJCOPY_FOR_TARGET = objcopy
&& OBJCOPY_FOR_TARGET
=
15084 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET
=$OBJCOPY_FOR_TARGET
15087 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15088 # Extract the first word of "objcopy", so it can be a program name with args.
15089 set dummy objcopy
; ac_word
=$2
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15091 $as_echo_n "checking for $ac_word... " >&6; }
15092 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false
; then :
15093 $as_echo_n "(cached) " >&6
15095 case $OBJCOPY_FOR_TARGET in
15097 ac_cv_path_OBJCOPY_FOR_TARGET
="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15101 for as_dir
in $gcc_cv_tool_dirs
15104 test -z "$as_dir" && as_dir
=.
15105 for ac_exec_ext
in '' $ac_executable_extensions; do
15106 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15107 ac_cv_path_OBJCOPY_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
15108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15118 OBJCOPY_FOR_TARGET
=$ac_cv_path_OBJCOPY_FOR_TARGET
15119 if test -n "$OBJCOPY_FOR_TARGET"; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15121 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124 $as_echo "no" >&6; }
15129 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15132 if test -n "$OBJCOPY_FOR_TARGET"; then
15133 ac_cv_prog_OBJCOPY_FOR_TARGET
=$OBJCOPY_FOR_TARGET
15134 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15135 OBJCOPY_FOR_TARGET
=$ac_cv_prog_OBJCOPY_FOR_TARGET
15138 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15139 for ncn_progname
in objcopy
; do
15140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15141 set dummy
${ncn_progname}; ac_word
=$2
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15143 $as_echo_n "checking for $ac_word... " >&6; }
15144 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false
; then :
15145 $as_echo_n "(cached) " >&6
15147 if test -n "$OBJCOPY_FOR_TARGET"; then
15148 ac_cv_prog_OBJCOPY_FOR_TARGET
="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15151 for as_dir
in $PATH
15154 test -z "$as_dir" && as_dir
=.
15155 for ac_exec_ext
in '' $ac_executable_extensions; do
15156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_prog_OBJCOPY_FOR_TARGET
="${ncn_progname}"
15158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15167 OBJCOPY_FOR_TARGET
=$ac_cv_prog_OBJCOPY_FOR_TARGET
15168 if test -n "$OBJCOPY_FOR_TARGET"; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15170 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15173 $as_echo "no" >&6; }
15180 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15181 for ncn_progname
in objcopy
; do
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15183 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15184 if test -x $with_build_time_tools/${ncn_progname}; then
15185 ac_cv_prog_OBJCOPY_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15187 $as_echo "yes" >&6; }
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15191 $as_echo "no" >&6; }
15196 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15197 for ncn_progname
in objcopy
; do
15198 if test -n "$ncn_target_tool_prefix"; then
15199 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15200 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15202 $as_echo_n "checking for $ac_word... " >&6; }
15203 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false
; then :
15204 $as_echo_n "(cached) " >&6
15206 if test -n "$OBJCOPY_FOR_TARGET"; then
15207 ac_cv_prog_OBJCOPY_FOR_TARGET
="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15210 for as_dir
in $PATH
15213 test -z "$as_dir" && as_dir
=.
15214 for ac_exec_ext
in '' $ac_executable_extensions; do
15215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15216 ac_cv_prog_OBJCOPY_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
15217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15226 OBJCOPY_FOR_TARGET
=$ac_cv_prog_OBJCOPY_FOR_TARGET
15227 if test -n "$OBJCOPY_FOR_TARGET"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15229 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15237 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15239 set dummy
${ncn_progname}; ac_word
=$2
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15241 $as_echo_n "checking for $ac_word... " >&6; }
15242 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false
; then :
15243 $as_echo_n "(cached) " >&6
15245 if test -n "$OBJCOPY_FOR_TARGET"; then
15246 ac_cv_prog_OBJCOPY_FOR_TARGET
="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15249 for as_dir
in $PATH
15252 test -z "$as_dir" && as_dir
=.
15253 for ac_exec_ext
in '' $ac_executable_extensions; do
15254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15255 ac_cv_prog_OBJCOPY_FOR_TARGET
="${ncn_progname}"
15256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15265 OBJCOPY_FOR_TARGET
=$ac_cv_prog_OBJCOPY_FOR_TARGET
15266 if test -n "$OBJCOPY_FOR_TARGET"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15268 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271 $as_echo "no" >&6; }
15276 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15280 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15282 if test $build = $target ; then
15283 OBJCOPY_FOR_TARGET
="$2"
15285 OBJCOPY_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15288 OBJCOPY_FOR_TARGET
="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15292 OBJCOPY_FOR_TARGET
=$ac_cv_path_OBJCOPY_FOR_TARGET
15298 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15299 if test -n "$with_build_time_tools"; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15301 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15302 if test -x $with_build_time_tools/objdump
; then
15303 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
15304 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15306 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309 $as_echo "no" >&6; }
15311 elif test $build != $host && test $have_gcc_for_target = yes; then
15312 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
15313 test $OBJDUMP_FOR_TARGET = objdump
&& OBJDUMP_FOR_TARGET
=
15314 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
15317 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15318 # Extract the first word of "objdump", so it can be a program name with args.
15319 set dummy objdump
; ac_word
=$2
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15321 $as_echo_n "checking for $ac_word... " >&6; }
15322 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false
; then :
15323 $as_echo_n "(cached) " >&6
15325 case $OBJDUMP_FOR_TARGET in
15327 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15331 for as_dir
in $gcc_cv_tool_dirs
15334 test -z "$as_dir" && as_dir
=.
15335 for ac_exec_ext
in '' $ac_executable_extensions; do
15336 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15337 ac_cv_path_OBJDUMP_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
15338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15348 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
15349 if test -n "$OBJDUMP_FOR_TARGET"; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15351 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15354 $as_echo "no" >&6; }
15359 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15362 if test -n "$OBJDUMP_FOR_TARGET"; then
15363 ac_cv_prog_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
15364 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15365 OBJDUMP_FOR_TARGET
=$ac_cv_prog_OBJDUMP_FOR_TARGET
15368 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15369 for ncn_progname
in objdump
; do
15370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15371 set dummy
${ncn_progname}; ac_word
=$2
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15373 $as_echo_n "checking for $ac_word... " >&6; }
15374 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false
; then :
15375 $as_echo_n "(cached) " >&6
15377 if test -n "$OBJDUMP_FOR_TARGET"; then
15378 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15381 for as_dir
in $PATH
15384 test -z "$as_dir" && as_dir
=.
15385 for ac_exec_ext
in '' $ac_executable_extensions; do
15386 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15387 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
15388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15397 OBJDUMP_FOR_TARGET
=$ac_cv_prog_OBJDUMP_FOR_TARGET
15398 if test -n "$OBJDUMP_FOR_TARGET"; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15400 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15410 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15411 for ncn_progname
in objdump
; do
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15413 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15414 if test -x $with_build_time_tools/${ncn_progname}; then
15415 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15417 $as_echo "yes" >&6; }
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15426 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15427 for ncn_progname
in objdump
; do
15428 if test -n "$ncn_target_tool_prefix"; then
15429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15430 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15432 $as_echo_n "checking for $ac_word... " >&6; }
15433 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false
; then :
15434 $as_echo_n "(cached) " >&6
15436 if test -n "$OBJDUMP_FOR_TARGET"; then
15437 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15440 for as_dir
in $PATH
15443 test -z "$as_dir" && as_dir
=.
15444 for ac_exec_ext
in '' $ac_executable_extensions; do
15445 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15446 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
15447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15456 OBJDUMP_FOR_TARGET
=$ac_cv_prog_OBJDUMP_FOR_TARGET
15457 if test -n "$OBJDUMP_FOR_TARGET"; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15459 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15467 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15469 set dummy
${ncn_progname}; ac_word
=$2
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15471 $as_echo_n "checking for $ac_word... " >&6; }
15472 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false
; then :
15473 $as_echo_n "(cached) " >&6
15475 if test -n "$OBJDUMP_FOR_TARGET"; then
15476 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15479 for as_dir
in $PATH
15482 test -z "$as_dir" && as_dir
=.
15483 for ac_exec_ext
in '' $ac_executable_extensions; do
15484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15495 OBJDUMP_FOR_TARGET
=$ac_cv_prog_OBJDUMP_FOR_TARGET
15496 if test -n "$OBJDUMP_FOR_TARGET"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15498 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15501 $as_echo "no" >&6; }
15506 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15510 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15512 if test $build = $target ; then
15513 OBJDUMP_FOR_TARGET
="$2"
15515 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15518 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15522 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
15528 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15529 if test -n "$with_build_time_tools"; then
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15531 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15532 if test -x $with_build_time_tools/otool
; then
15533 OTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/otool
15534 ac_cv_path_OTOOL_FOR_TARGET
=$OTOOL_FOR_TARGET
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15536 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15541 elif test $build != $host && test $have_gcc_for_target = yes; then
15542 OTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=otool`
15543 test $OTOOL_FOR_TARGET = otool
&& OTOOL_FOR_TARGET
=
15544 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET
=$OTOOL_FOR_TARGET
15547 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15548 # Extract the first word of "otool", so it can be a program name with args.
15549 set dummy otool
; ac_word
=$2
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15551 $as_echo_n "checking for $ac_word... " >&6; }
15552 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false
; then :
15553 $as_echo_n "(cached) " >&6
15555 case $OTOOL_FOR_TARGET in
15557 ac_cv_path_OTOOL_FOR_TARGET
="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15561 for as_dir
in $gcc_cv_tool_dirs
15564 test -z "$as_dir" && as_dir
=.
15565 for ac_exec_ext
in '' $ac_executable_extensions; do
15566 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15567 ac_cv_path_OTOOL_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
15568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15578 OTOOL_FOR_TARGET
=$ac_cv_path_OTOOL_FOR_TARGET
15579 if test -n "$OTOOL_FOR_TARGET"; then
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15581 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15589 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15592 if test -n "$OTOOL_FOR_TARGET"; then
15593 ac_cv_prog_OTOOL_FOR_TARGET
=$OTOOL_FOR_TARGET
15594 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15595 OTOOL_FOR_TARGET
=$ac_cv_prog_OTOOL_FOR_TARGET
15598 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15599 for ncn_progname
in otool
; do
15600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15601 set dummy
${ncn_progname}; ac_word
=$2
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15603 $as_echo_n "checking for $ac_word... " >&6; }
15604 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false
; then :
15605 $as_echo_n "(cached) " >&6
15607 if test -n "$OTOOL_FOR_TARGET"; then
15608 ac_cv_prog_OTOOL_FOR_TARGET
="$OTOOL_FOR_TARGET" # Let the user override the test.
15610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15611 for as_dir
in $PATH
15614 test -z "$as_dir" && as_dir
=.
15615 for ac_exec_ext
in '' $ac_executable_extensions; do
15616 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15617 ac_cv_prog_OTOOL_FOR_TARGET
="${ncn_progname}"
15618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15627 OTOOL_FOR_TARGET
=$ac_cv_prog_OTOOL_FOR_TARGET
15628 if test -n "$OTOOL_FOR_TARGET"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15630 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 $as_echo "no" >&6; }
15640 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15641 for ncn_progname
in otool
; do
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15643 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15644 if test -x $with_build_time_tools/${ncn_progname}; then
15645 ac_cv_prog_OTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15647 $as_echo "yes" >&6; }
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15651 $as_echo "no" >&6; }
15656 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15657 for ncn_progname
in otool
; do
15658 if test -n "$ncn_target_tool_prefix"; then
15659 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15660 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15662 $as_echo_n "checking for $ac_word... " >&6; }
15663 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false
; then :
15664 $as_echo_n "(cached) " >&6
15666 if test -n "$OTOOL_FOR_TARGET"; then
15667 ac_cv_prog_OTOOL_FOR_TARGET
="$OTOOL_FOR_TARGET" # Let the user override the test.
15669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15670 for as_dir
in $PATH
15673 test -z "$as_dir" && as_dir
=.
15674 for ac_exec_ext
in '' $ac_executable_extensions; do
15675 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15676 ac_cv_prog_OTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
15677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15686 OTOOL_FOR_TARGET
=$ac_cv_prog_OTOOL_FOR_TARGET
15687 if test -n "$OTOOL_FOR_TARGET"; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15689 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15697 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15699 set dummy
${ncn_progname}; ac_word
=$2
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15701 $as_echo_n "checking for $ac_word... " >&6; }
15702 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false
; then :
15703 $as_echo_n "(cached) " >&6
15705 if test -n "$OTOOL_FOR_TARGET"; then
15706 ac_cv_prog_OTOOL_FOR_TARGET
="$OTOOL_FOR_TARGET" # Let the user override the test.
15708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15709 for as_dir
in $PATH
15712 test -z "$as_dir" && as_dir
=.
15713 for ac_exec_ext
in '' $ac_executable_extensions; do
15714 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15715 ac_cv_prog_OTOOL_FOR_TARGET
="${ncn_progname}"
15716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15725 OTOOL_FOR_TARGET
=$ac_cv_prog_OTOOL_FOR_TARGET
15726 if test -n "$OTOOL_FOR_TARGET"; then
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15728 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731 $as_echo "no" >&6; }
15736 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15740 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15742 if test $build = $target ; then
15743 OTOOL_FOR_TARGET
="$2"
15745 OTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15748 OTOOL_FOR_TARGET
="$ac_cv_prog_OTOOL_FOR_TARGET"
15752 OTOOL_FOR_TARGET
=$ac_cv_path_OTOOL_FOR_TARGET
15758 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15759 if test -n "$with_build_time_tools"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15761 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15762 if test -x $with_build_time_tools/ranlib
; then
15763 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
15764 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15766 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 $as_echo "no" >&6; }
15771 elif test $build != $host && test $have_gcc_for_target = yes; then
15772 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15773 test $RANLIB_FOR_TARGET = ranlib
&& RANLIB_FOR_TARGET
=
15774 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
15777 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15778 # Extract the first word of "ranlib", so it can be a program name with args.
15779 set dummy ranlib
; ac_word
=$2
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15781 $as_echo_n "checking for $ac_word... " >&6; }
15782 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false
; then :
15783 $as_echo_n "(cached) " >&6
15785 case $RANLIB_FOR_TARGET in
15787 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15791 for as_dir
in $gcc_cv_tool_dirs
15794 test -z "$as_dir" && as_dir
=.
15795 for ac_exec_ext
in '' $ac_executable_extensions; do
15796 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15797 ac_cv_path_RANLIB_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
15798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15808 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
15809 if test -n "$RANLIB_FOR_TARGET"; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15811 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15814 $as_echo "no" >&6; }
15819 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15822 if test -n "$RANLIB_FOR_TARGET"; then
15823 ac_cv_prog_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
15824 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15825 RANLIB_FOR_TARGET
=$ac_cv_prog_RANLIB_FOR_TARGET
15828 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15829 for ncn_progname
in ranlib
; do
15830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15831 set dummy
${ncn_progname}; ac_word
=$2
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15833 $as_echo_n "checking for $ac_word... " >&6; }
15834 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false
; then :
15835 $as_echo_n "(cached) " >&6
15837 if test -n "$RANLIB_FOR_TARGET"; then
15838 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
15840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15841 for as_dir
in $PATH
15844 test -z "$as_dir" && as_dir
=.
15845 for ac_exec_ext
in '' $ac_executable_extensions; do
15846 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15847 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
15848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15857 RANLIB_FOR_TARGET
=$ac_cv_prog_RANLIB_FOR_TARGET
15858 if test -n "$RANLIB_FOR_TARGET"; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15860 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15863 $as_echo "no" >&6; }
15870 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15871 for ncn_progname
in ranlib
; do
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15873 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15874 if test -x $with_build_time_tools/${ncn_progname}; then
15875 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15877 $as_echo "yes" >&6; }
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15881 $as_echo "no" >&6; }
15886 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15887 for ncn_progname
in ranlib
; do
15888 if test -n "$ncn_target_tool_prefix"; then
15889 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15890 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15892 $as_echo_n "checking for $ac_word... " >&6; }
15893 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false
; then :
15894 $as_echo_n "(cached) " >&6
15896 if test -n "$RANLIB_FOR_TARGET"; then
15897 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
15899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15900 for as_dir
in $PATH
15903 test -z "$as_dir" && as_dir
=.
15904 for ac_exec_ext
in '' $ac_executable_extensions; do
15905 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15906 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
15907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15916 RANLIB_FOR_TARGET
=$ac_cv_prog_RANLIB_FOR_TARGET
15917 if test -n "$RANLIB_FOR_TARGET"; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15919 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 $as_echo "no" >&6; }
15927 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15929 set dummy
${ncn_progname}; ac_word
=$2
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15931 $as_echo_n "checking for $ac_word... " >&6; }
15932 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false
; then :
15933 $as_echo_n "(cached) " >&6
15935 if test -n "$RANLIB_FOR_TARGET"; then
15936 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
15938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15939 for as_dir
in $PATH
15942 test -z "$as_dir" && as_dir
=.
15943 for ac_exec_ext
in '' $ac_executable_extensions; do
15944 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15945 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
15946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 RANLIB_FOR_TARGET
=$ac_cv_prog_RANLIB_FOR_TARGET
15956 if test -n "$RANLIB_FOR_TARGET"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15958 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961 $as_echo "no" >&6; }
15966 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15970 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15972 if test $build = $target ; then
15973 RANLIB_FOR_TARGET
="$2"
15975 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
15978 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
15982 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
15988 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15989 if test -n "$with_build_time_tools"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15991 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15992 if test -x $with_build_time_tools/readelf
; then
15993 READELF_FOR_TARGET
=`cd $with_build_time_tools && pwd`/readelf
15994 ac_cv_path_READELF_FOR_TARGET
=$READELF_FOR_TARGET
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15996 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999 $as_echo "no" >&6; }
16001 elif test $build != $host && test $have_gcc_for_target = yes; then
16002 READELF_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=readelf`
16003 test $READELF_FOR_TARGET = readelf
&& READELF_FOR_TARGET
=
16004 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET
=$READELF_FOR_TARGET
16007 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16008 # Extract the first word of "readelf", so it can be a program name with args.
16009 set dummy readelf
; ac_word
=$2
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16011 $as_echo_n "checking for $ac_word... " >&6; }
16012 if ${ac_cv_path_READELF_FOR_TARGET+:} false
; then :
16013 $as_echo_n "(cached) " >&6
16015 case $READELF_FOR_TARGET in
16017 ac_cv_path_READELF_FOR_TARGET
="$READELF_FOR_TARGET" # Let the user override the test with a path.
16020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16021 for as_dir
in $gcc_cv_tool_dirs
16024 test -z "$as_dir" && as_dir
=.
16025 for ac_exec_ext
in '' $ac_executable_extensions; do
16026 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16027 ac_cv_path_READELF_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
16028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16038 READELF_FOR_TARGET
=$ac_cv_path_READELF_FOR_TARGET
16039 if test -n "$READELF_FOR_TARGET"; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16041 $as_echo "$READELF_FOR_TARGET" >&6; }
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16044 $as_echo "no" >&6; }
16049 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16052 if test -n "$READELF_FOR_TARGET"; then
16053 ac_cv_prog_READELF_FOR_TARGET
=$READELF_FOR_TARGET
16054 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16055 READELF_FOR_TARGET
=$ac_cv_prog_READELF_FOR_TARGET
16058 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16059 for ncn_progname
in readelf
; do
16060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16061 set dummy
${ncn_progname}; ac_word
=$2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16063 $as_echo_n "checking for $ac_word... " >&6; }
16064 if ${ac_cv_prog_READELF_FOR_TARGET+:} false
; then :
16065 $as_echo_n "(cached) " >&6
16067 if test -n "$READELF_FOR_TARGET"; then
16068 ac_cv_prog_READELF_FOR_TARGET
="$READELF_FOR_TARGET" # Let the user override the test.
16070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16071 for as_dir
in $PATH
16074 test -z "$as_dir" && as_dir
=.
16075 for ac_exec_ext
in '' $ac_executable_extensions; do
16076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16077 ac_cv_prog_READELF_FOR_TARGET
="${ncn_progname}"
16078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16087 READELF_FOR_TARGET
=$ac_cv_prog_READELF_FOR_TARGET
16088 if test -n "$READELF_FOR_TARGET"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16090 $as_echo "$READELF_FOR_TARGET" >&6; }
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16100 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16101 for ncn_progname
in readelf
; do
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16103 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16104 if test -x $with_build_time_tools/${ncn_progname}; then
16105 ac_cv_prog_READELF_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16107 $as_echo "yes" >&6; }
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 $as_echo "no" >&6; }
16116 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16117 for ncn_progname
in readelf
; do
16118 if test -n "$ncn_target_tool_prefix"; then
16119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16120 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122 $as_echo_n "checking for $ac_word... " >&6; }
16123 if ${ac_cv_prog_READELF_FOR_TARGET+:} false
; then :
16124 $as_echo_n "(cached) " >&6
16126 if test -n "$READELF_FOR_TARGET"; then
16127 ac_cv_prog_READELF_FOR_TARGET
="$READELF_FOR_TARGET" # Let the user override the test.
16129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16130 for as_dir
in $PATH
16133 test -z "$as_dir" && as_dir
=.
16134 for ac_exec_ext
in '' $ac_executable_extensions; do
16135 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16136 ac_cv_prog_READELF_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
16137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16146 READELF_FOR_TARGET
=$ac_cv_prog_READELF_FOR_TARGET
16147 if test -n "$READELF_FOR_TARGET"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16149 $as_echo "$READELF_FOR_TARGET" >&6; }
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16157 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16159 set dummy
${ncn_progname}; ac_word
=$2
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16161 $as_echo_n "checking for $ac_word... " >&6; }
16162 if ${ac_cv_prog_READELF_FOR_TARGET+:} false
; then :
16163 $as_echo_n "(cached) " >&6
16165 if test -n "$READELF_FOR_TARGET"; then
16166 ac_cv_prog_READELF_FOR_TARGET
="$READELF_FOR_TARGET" # Let the user override the test.
16168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16169 for as_dir
in $PATH
16172 test -z "$as_dir" && as_dir
=.
16173 for ac_exec_ext
in '' $ac_executable_extensions; do
16174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16175 ac_cv_prog_READELF_FOR_TARGET
="${ncn_progname}"
16176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16185 READELF_FOR_TARGET
=$ac_cv_prog_READELF_FOR_TARGET
16186 if test -n "$READELF_FOR_TARGET"; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16188 $as_echo "$READELF_FOR_TARGET" >&6; }
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16196 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16200 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16202 if test $build = $target ; then
16203 READELF_FOR_TARGET
="$2"
16205 READELF_FOR_TARGET
="${ncn_target_tool_prefix}$2"
16208 READELF_FOR_TARGET
="$ac_cv_prog_READELF_FOR_TARGET"
16212 READELF_FOR_TARGET
=$ac_cv_path_READELF_FOR_TARGET
16218 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16219 if test -n "$with_build_time_tools"; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16221 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16222 if test -x $with_build_time_tools/strip
; then
16223 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
16224 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16226 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16231 elif test $build != $host && test $have_gcc_for_target = yes; then
16232 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
16233 test $STRIP_FOR_TARGET = strip
&& STRIP_FOR_TARGET
=
16234 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
16237 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16238 # Extract the first word of "strip", so it can be a program name with args.
16239 set dummy strip
; ac_word
=$2
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16241 $as_echo_n "checking for $ac_word... " >&6; }
16242 if ${ac_cv_path_STRIP_FOR_TARGET+:} false
; then :
16243 $as_echo_n "(cached) " >&6
16245 case $STRIP_FOR_TARGET in
16247 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16251 for as_dir
in $gcc_cv_tool_dirs
16254 test -z "$as_dir" && as_dir
=.
16255 for ac_exec_ext
in '' $ac_executable_extensions; do
16256 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16257 ac_cv_path_STRIP_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
16258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16268 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
16269 if test -n "$STRIP_FOR_TARGET"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16271 $as_echo "$STRIP_FOR_TARGET" >&6; }
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16274 $as_echo "no" >&6; }
16279 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16282 if test -n "$STRIP_FOR_TARGET"; then
16283 ac_cv_prog_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
16284 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16285 STRIP_FOR_TARGET
=$ac_cv_prog_STRIP_FOR_TARGET
16288 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16289 for ncn_progname
in strip
; do
16290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16291 set dummy
${ncn_progname}; ac_word
=$2
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293 $as_echo_n "checking for $ac_word... " >&6; }
16294 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false
; then :
16295 $as_echo_n "(cached) " >&6
16297 if test -n "$STRIP_FOR_TARGET"; then
16298 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
16300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16301 for as_dir
in $PATH
16304 test -z "$as_dir" && as_dir
=.
16305 for ac_exec_ext
in '' $ac_executable_extensions; do
16306 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16307 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
16308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16317 STRIP_FOR_TARGET
=$ac_cv_prog_STRIP_FOR_TARGET
16318 if test -n "$STRIP_FOR_TARGET"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16320 $as_echo "$STRIP_FOR_TARGET" >&6; }
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16330 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16331 for ncn_progname
in strip
; do
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16333 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16334 if test -x $with_build_time_tools/${ncn_progname}; then
16335 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16337 $as_echo "yes" >&6; }
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341 $as_echo "no" >&6; }
16346 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16347 for ncn_progname
in strip
; do
16348 if test -n "$ncn_target_tool_prefix"; then
16349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16350 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16352 $as_echo_n "checking for $ac_word... " >&6; }
16353 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false
; then :
16354 $as_echo_n "(cached) " >&6
16356 if test -n "$STRIP_FOR_TARGET"; then
16357 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
16359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16360 for as_dir
in $PATH
16363 test -z "$as_dir" && as_dir
=.
16364 for ac_exec_ext
in '' $ac_executable_extensions; do
16365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16366 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
16367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16376 STRIP_FOR_TARGET
=$ac_cv_prog_STRIP_FOR_TARGET
16377 if test -n "$STRIP_FOR_TARGET"; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16379 $as_echo "$STRIP_FOR_TARGET" >&6; }
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16382 $as_echo "no" >&6; }
16387 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16389 set dummy
${ncn_progname}; ac_word
=$2
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16391 $as_echo_n "checking for $ac_word... " >&6; }
16392 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false
; then :
16393 $as_echo_n "(cached) " >&6
16395 if test -n "$STRIP_FOR_TARGET"; then
16396 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
16398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16399 for as_dir
in $PATH
16402 test -z "$as_dir" && as_dir
=.
16403 for ac_exec_ext
in '' $ac_executable_extensions; do
16404 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16405 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
16406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16415 STRIP_FOR_TARGET
=$ac_cv_prog_STRIP_FOR_TARGET
16416 if test -n "$STRIP_FOR_TARGET"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16418 $as_echo "$STRIP_FOR_TARGET" >&6; }
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16421 $as_echo "no" >&6; }
16426 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16430 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16432 if test $build = $target ; then
16433 STRIP_FOR_TARGET
="$2"
16435 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
16438 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
16442 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
16448 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16449 if test -n "$with_build_time_tools"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16451 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16452 if test -x $with_build_time_tools/windres
; then
16453 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
16454 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16456 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459 $as_echo "no" >&6; }
16461 elif test $build != $host && test $have_gcc_for_target = yes; then
16462 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
16463 test $WINDRES_FOR_TARGET = windres
&& WINDRES_FOR_TARGET
=
16464 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
16467 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16468 # Extract the first word of "windres", so it can be a program name with args.
16469 set dummy windres
; ac_word
=$2
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16471 $as_echo_n "checking for $ac_word... " >&6; }
16472 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false
; then :
16473 $as_echo_n "(cached) " >&6
16475 case $WINDRES_FOR_TARGET in
16477 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16481 for as_dir
in $gcc_cv_tool_dirs
16484 test -z "$as_dir" && as_dir
=.
16485 for ac_exec_ext
in '' $ac_executable_extensions; do
16486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16487 ac_cv_path_WINDRES_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
16488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16498 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
16499 if test -n "$WINDRES_FOR_TARGET"; then
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16501 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16504 $as_echo "no" >&6; }
16509 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16512 if test -n "$WINDRES_FOR_TARGET"; then
16513 ac_cv_prog_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
16514 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16515 WINDRES_FOR_TARGET
=$ac_cv_prog_WINDRES_FOR_TARGET
16518 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16519 for ncn_progname
in windres
; do
16520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16521 set dummy
${ncn_progname}; ac_word
=$2
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16523 $as_echo_n "checking for $ac_word... " >&6; }
16524 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false
; then :
16525 $as_echo_n "(cached) " >&6
16527 if test -n "$WINDRES_FOR_TARGET"; then
16528 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
16530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16531 for as_dir
in $PATH
16534 test -z "$as_dir" && as_dir
=.
16535 for ac_exec_ext
in '' $ac_executable_extensions; do
16536 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16537 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
16538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16547 WINDRES_FOR_TARGET
=$ac_cv_prog_WINDRES_FOR_TARGET
16548 if test -n "$WINDRES_FOR_TARGET"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16550 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16560 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16561 for ncn_progname
in windres
; do
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16563 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16564 if test -x $with_build_time_tools/${ncn_progname}; then
16565 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16567 $as_echo "yes" >&6; }
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16571 $as_echo "no" >&6; }
16576 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16577 for ncn_progname
in windres
; do
16578 if test -n "$ncn_target_tool_prefix"; then
16579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16580 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false
; then :
16584 $as_echo_n "(cached) " >&6
16586 if test -n "$WINDRES_FOR_TARGET"; then
16587 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
16589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16590 for as_dir
in $PATH
16593 test -z "$as_dir" && as_dir
=.
16594 for ac_exec_ext
in '' $ac_executable_extensions; do
16595 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16596 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16606 WINDRES_FOR_TARGET
=$ac_cv_prog_WINDRES_FOR_TARGET
16607 if test -n "$WINDRES_FOR_TARGET"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16609 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16617 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16619 set dummy
${ncn_progname}; ac_word
=$2
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16621 $as_echo_n "checking for $ac_word... " >&6; }
16622 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false
; then :
16623 $as_echo_n "(cached) " >&6
16625 if test -n "$WINDRES_FOR_TARGET"; then
16626 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
16628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16629 for as_dir
in $PATH
16632 test -z "$as_dir" && as_dir
=.
16633 for ac_exec_ext
in '' $ac_executable_extensions; do
16634 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16635 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
16636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16645 WINDRES_FOR_TARGET
=$ac_cv_prog_WINDRES_FOR_TARGET
16646 if test -n "$WINDRES_FOR_TARGET"; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16648 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16651 $as_echo "no" >&6; }
16656 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16660 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16662 if test $build = $target ; then
16663 WINDRES_FOR_TARGET
="$2"
16665 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
16668 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
16672 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
16678 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16679 if test -n "$with_build_time_tools"; then
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16681 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16682 if test -x $with_build_time_tools/windmc
; then
16683 WINDMC_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windmc
16684 ac_cv_path_WINDMC_FOR_TARGET
=$WINDMC_FOR_TARGET
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16686 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689 $as_echo "no" >&6; }
16691 elif test $build != $host && test $have_gcc_for_target = yes; then
16692 WINDMC_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windmc`
16693 test $WINDMC_FOR_TARGET = windmc
&& WINDMC_FOR_TARGET
=
16694 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET
=$WINDMC_FOR_TARGET
16697 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16698 # Extract the first word of "windmc", so it can be a program name with args.
16699 set dummy windmc
; ac_word
=$2
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16701 $as_echo_n "checking for $ac_word... " >&6; }
16702 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false
; then :
16703 $as_echo_n "(cached) " >&6
16705 case $WINDMC_FOR_TARGET in
16707 ac_cv_path_WINDMC_FOR_TARGET
="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16711 for as_dir
in $gcc_cv_tool_dirs
16714 test -z "$as_dir" && as_dir
=.
16715 for ac_exec_ext
in '' $ac_executable_extensions; do
16716 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16717 ac_cv_path_WINDMC_FOR_TARGET
="$as_dir/$ac_word$ac_exec_ext"
16718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16728 WINDMC_FOR_TARGET
=$ac_cv_path_WINDMC_FOR_TARGET
16729 if test -n "$WINDMC_FOR_TARGET"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16731 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16734 $as_echo "no" >&6; }
16739 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16742 if test -n "$WINDMC_FOR_TARGET"; then
16743 ac_cv_prog_WINDMC_FOR_TARGET
=$WINDMC_FOR_TARGET
16744 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16745 WINDMC_FOR_TARGET
=$ac_cv_prog_WINDMC_FOR_TARGET
16748 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16749 for ncn_progname
in windmc
; do
16750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16751 set dummy
${ncn_progname}; ac_word
=$2
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16753 $as_echo_n "checking for $ac_word... " >&6; }
16754 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false
; then :
16755 $as_echo_n "(cached) " >&6
16757 if test -n "$WINDMC_FOR_TARGET"; then
16758 ac_cv_prog_WINDMC_FOR_TARGET
="$WINDMC_FOR_TARGET" # Let the user override the test.
16760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16761 for as_dir
in $PATH
16764 test -z "$as_dir" && as_dir
=.
16765 for ac_exec_ext
in '' $ac_executable_extensions; do
16766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16767 ac_cv_prog_WINDMC_FOR_TARGET
="${ncn_progname}"
16768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16777 WINDMC_FOR_TARGET
=$ac_cv_prog_WINDMC_FOR_TARGET
16778 if test -n "$WINDMC_FOR_TARGET"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16780 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16783 $as_echo "no" >&6; }
16790 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16791 for ncn_progname
in windmc
; do
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16793 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16794 if test -x $with_build_time_tools/${ncn_progname}; then
16795 ac_cv_prog_WINDMC_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16797 $as_echo "yes" >&6; }
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16801 $as_echo "no" >&6; }
16806 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16807 for ncn_progname
in windmc
; do
16808 if test -n "$ncn_target_tool_prefix"; then
16809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16810 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16812 $as_echo_n "checking for $ac_word... " >&6; }
16813 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false
; then :
16814 $as_echo_n "(cached) " >&6
16816 if test -n "$WINDMC_FOR_TARGET"; then
16817 ac_cv_prog_WINDMC_FOR_TARGET
="$WINDMC_FOR_TARGET" # Let the user override the test.
16819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16820 for as_dir
in $PATH
16823 test -z "$as_dir" && as_dir
=.
16824 for ac_exec_ext
in '' $ac_executable_extensions; do
16825 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16826 ac_cv_prog_WINDMC_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
16827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16836 WINDMC_FOR_TARGET
=$ac_cv_prog_WINDMC_FOR_TARGET
16837 if test -n "$WINDMC_FOR_TARGET"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16839 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16847 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16849 set dummy
${ncn_progname}; ac_word
=$2
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16851 $as_echo_n "checking for $ac_word... " >&6; }
16852 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false
; then :
16853 $as_echo_n "(cached) " >&6
16855 if test -n "$WINDMC_FOR_TARGET"; then
16856 ac_cv_prog_WINDMC_FOR_TARGET
="$WINDMC_FOR_TARGET" # Let the user override the test.
16858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16859 for as_dir
in $PATH
16862 test -z "$as_dir" && as_dir
=.
16863 for ac_exec_ext
in '' $ac_executable_extensions; do
16864 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16865 ac_cv_prog_WINDMC_FOR_TARGET
="${ncn_progname}"
16866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16875 WINDMC_FOR_TARGET
=$ac_cv_prog_WINDMC_FOR_TARGET
16876 if test -n "$WINDMC_FOR_TARGET"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16878 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881 $as_echo "no" >&6; }
16886 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16890 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16892 if test $build = $target ; then
16893 WINDMC_FOR_TARGET
="$2"
16895 WINDMC_FOR_TARGET
="${ncn_target_tool_prefix}$2"
16898 WINDMC_FOR_TARGET
="$ac_cv_prog_WINDMC_FOR_TARGET"
16902 WINDMC_FOR_TARGET
=$ac_cv_path_WINDMC_FOR_TARGET
16906 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16909 $as_echo_n "checking where to find the target ar... " >&6; }
16910 if test "x${build}" != "x${host}" ; then
16911 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
16912 # We already found the complete path
16913 ac_dir
=`dirname $AR_FOR_TARGET`
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16915 $as_echo "pre-installed in $ac_dir" >&6; }
16917 # Canadian cross, just use what we found
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16919 $as_echo "pre-installed" >&6; }
16923 case " ${configdirs} " in
16928 if test $ok = yes; then
16929 # An in-tree tool is available and we can use it
16930 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16932 $as_echo "just compiled" >&6; }
16933 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
16934 # We already found the complete path
16935 ac_dir
=`dirname $AR_FOR_TARGET`
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16937 $as_echo "pre-installed in $ac_dir" >&6; }
16938 elif test "x$target" = "x$host"; then
16939 # We can use an host tool
16940 AR_FOR_TARGET
='$(AR)'
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16942 $as_echo "host tool" >&6; }
16944 # We need a cross tool
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16946 $as_echo "pre-installed" >&6; }
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16951 $as_echo_n "checking where to find the target as... " >&6; }
16952 if test "x${build}" != "x${host}" ; then
16953 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
16954 # We already found the complete path
16955 ac_dir
=`dirname $AS_FOR_TARGET`
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16957 $as_echo "pre-installed in $ac_dir" >&6; }
16959 # Canadian cross, just use what we found
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16961 $as_echo "pre-installed" >&6; }
16965 case " ${configdirs} " in
16970 if test $ok = yes; then
16971 # An in-tree tool is available and we can use it
16972 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16974 $as_echo "just compiled" >&6; }
16975 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
16976 # We already found the complete path
16977 ac_dir
=`dirname $AS_FOR_TARGET`
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16979 $as_echo "pre-installed in $ac_dir" >&6; }
16980 elif test "x$target" = "x$host"; then
16981 # We can use an host tool
16982 AS_FOR_TARGET
='$(AS)'
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16984 $as_echo "host tool" >&6; }
16986 # We need a cross tool
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16988 $as_echo "pre-installed" >&6; }
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16993 $as_echo_n "checking where to find the target cc... " >&6; }
16994 if test "x${build}" != "x${host}" ; then
16995 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
16996 # We already found the complete path
16997 ac_dir
=`dirname $CC_FOR_TARGET`
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16999 $as_echo "pre-installed in $ac_dir" >&6; }
17001 # Canadian cross, just use what we found
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17003 $as_echo "pre-installed" >&6; }
17007 case " ${configdirs} " in
17012 if test $ok = yes; then
17013 # An in-tree tool is available and we can use it
17014 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17016 $as_echo "just compiled" >&6; }
17017 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
17018 # We already found the complete path
17019 ac_dir
=`dirname $CC_FOR_TARGET`
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17021 $as_echo "pre-installed in $ac_dir" >&6; }
17022 elif test "x$target" = "x$host"; then
17023 # We can use an host tool
17024 CC_FOR_TARGET
='$(CC)'
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17026 $as_echo "host tool" >&6; }
17028 # We need a cross tool
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17030 $as_echo "pre-installed" >&6; }
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17035 $as_echo_n "checking where to find the target c++... " >&6; }
17036 if test "x${build}" != "x${host}" ; then
17037 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
17038 # We already found the complete path
17039 ac_dir
=`dirname $CXX_FOR_TARGET`
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17041 $as_echo "pre-installed in $ac_dir" >&6; }
17043 # Canadian cross, just use what we found
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17045 $as_echo "pre-installed" >&6; }
17049 case " ${configdirs} " in
17053 case ,${enable_languages}, in
17057 if test $ok = yes; then
17058 # An in-tree tool is available and we can use it
17059 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'
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17061 $as_echo "just compiled" >&6; }
17062 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
17063 # We already found the complete path
17064 ac_dir
=`dirname $CXX_FOR_TARGET`
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17066 $as_echo "pre-installed in $ac_dir" >&6; }
17067 elif test "x$target" = "x$host"; then
17068 # We can use an host tool
17069 CXX_FOR_TARGET
='$(CXX)'
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17071 $as_echo "host tool" >&6; }
17073 # We need a cross tool
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17075 $as_echo "pre-installed" >&6; }
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17080 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17081 if test "x${build}" != "x${host}" ; then
17082 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
17083 # We already found the complete path
17084 ac_dir
=`dirname $RAW_CXX_FOR_TARGET`
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17086 $as_echo "pre-installed in $ac_dir" >&6; }
17088 # Canadian cross, just use what we found
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17090 $as_echo "pre-installed" >&6; }
17094 case " ${configdirs} " in
17098 case ,${enable_languages}, in
17102 if test $ok = yes; then
17103 # An in-tree tool is available and we can use it
17104 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'
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17106 $as_echo "just compiled" >&6; }
17107 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
17108 # We already found the complete path
17109 ac_dir
=`dirname $RAW_CXX_FOR_TARGET`
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17111 $as_echo "pre-installed in $ac_dir" >&6; }
17112 elif test "x$target" = "x$host"; then
17113 # We can use an host tool
17114 RAW_CXX_FOR_TARGET
='$(CXX)'
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17116 $as_echo "host tool" >&6; }
17118 # We need a cross tool
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17120 $as_echo "pre-installed" >&6; }
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17125 $as_echo_n "checking where to find the target dlltool... " >&6; }
17126 if test "x${build}" != "x${host}" ; then
17127 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
17128 # We already found the complete path
17129 ac_dir
=`dirname $DLLTOOL_FOR_TARGET`
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17131 $as_echo "pre-installed in $ac_dir" >&6; }
17133 # Canadian cross, just use what we found
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17135 $as_echo "pre-installed" >&6; }
17139 case " ${configdirs} " in
17144 if test $ok = yes; then
17145 # An in-tree tool is available and we can use it
17146 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17148 $as_echo "just compiled" >&6; }
17149 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
17150 # We already found the complete path
17151 ac_dir
=`dirname $DLLTOOL_FOR_TARGET`
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17153 $as_echo "pre-installed in $ac_dir" >&6; }
17154 elif test "x$target" = "x$host"; then
17155 # We can use an host tool
17156 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17158 $as_echo "host tool" >&6; }
17160 # We need a cross tool
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17162 $as_echo "pre-installed" >&6; }
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17167 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17168 if test "x${build}" != "x${host}" ; then
17169 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev
/null
; then
17170 # We already found the complete path
17171 ac_dir
=`dirname $DSYMUTIL_FOR_TARGET`
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17173 $as_echo "pre-installed in $ac_dir" >&6; }
17175 # Canadian cross, just use what we found
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17177 $as_echo "pre-installed" >&6; }
17180 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev
/null
; then
17181 # We already found the complete path
17182 ac_dir
=`dirname $DSYMUTIL_FOR_TARGET`
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17184 $as_echo "pre-installed in $ac_dir" >&6; }
17185 elif test "x$target" = "x$host"; then
17186 # We can use an host tool
17187 DSYMUTIL_FOR_TARGET
='$(DSYMUTIL)'
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17189 $as_echo "host tool" >&6; }
17191 # We need a cross tool
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17193 $as_echo "pre-installed" >&6; }
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17198 $as_echo_n "checking where to find the target gcc... " >&6; }
17199 if test "x${build}" != "x${host}" ; then
17200 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
17201 # We already found the complete path
17202 ac_dir
=`dirname $GCC_FOR_TARGET`
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17204 $as_echo "pre-installed in $ac_dir" >&6; }
17206 # Canadian cross, just use what we found
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17208 $as_echo "pre-installed" >&6; }
17212 case " ${configdirs} " in
17217 if test $ok = yes; then
17218 # An in-tree tool is available and we can use it
17219 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17221 $as_echo "just compiled" >&6; }
17222 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
17223 # We already found the complete path
17224 ac_dir
=`dirname $GCC_FOR_TARGET`
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17226 $as_echo "pre-installed in $ac_dir" >&6; }
17227 elif test "x$target" = "x$host"; then
17228 # We can use an host tool
17229 GCC_FOR_TARGET
='$()'
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17231 $as_echo "host tool" >&6; }
17233 # We need a cross tool
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17235 $as_echo "pre-installed" >&6; }
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17240 $as_echo_n "checking where to find the target gfortran... " >&6; }
17241 if test "x${build}" != "x${host}" ; then
17242 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
17243 # We already found the complete path
17244 ac_dir
=`dirname $GFORTRAN_FOR_TARGET`
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17246 $as_echo "pre-installed in $ac_dir" >&6; }
17248 # Canadian cross, just use what we found
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17250 $as_echo "pre-installed" >&6; }
17254 case " ${configdirs} " in
17258 case ,${enable_languages}, in
17262 if test $ok = yes; then
17263 # An in-tree tool is available and we can use it
17264 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17266 $as_echo "just compiled" >&6; }
17267 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
17268 # We already found the complete path
17269 ac_dir
=`dirname $GFORTRAN_FOR_TARGET`
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17271 $as_echo "pre-installed in $ac_dir" >&6; }
17272 elif test "x$target" = "x$host"; then
17273 # We can use an host tool
17274 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17276 $as_echo "host tool" >&6; }
17278 # We need a cross tool
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17280 $as_echo "pre-installed" >&6; }
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17285 $as_echo_n "checking where to find the target gccgo... " >&6; }
17286 if test "x${build}" != "x${host}" ; then
17287 if expr "x$GOC_FOR_TARGET" : "x/" > /dev
/null
; then
17288 # We already found the complete path
17289 ac_dir
=`dirname $GOC_FOR_TARGET`
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17291 $as_echo "pre-installed in $ac_dir" >&6; }
17293 # Canadian cross, just use what we found
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17295 $as_echo "pre-installed" >&6; }
17299 case " ${configdirs} " in
17303 case ,${enable_languages}, in
17307 if test $ok = yes; then
17308 # An in-tree tool is available and we can use it
17309 GOC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17311 $as_echo "just compiled" >&6; }
17312 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev
/null
; then
17313 # We already found the complete path
17314 ac_dir
=`dirname $GOC_FOR_TARGET`
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17316 $as_echo "pre-installed in $ac_dir" >&6; }
17317 elif test "x$target" = "x$host"; then
17318 # We can use an host tool
17319 GOC_FOR_TARGET
='$(GOC)'
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17321 $as_echo "host tool" >&6; }
17323 # We need a cross tool
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17325 $as_echo "pre-installed" >&6; }
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17330 $as_echo_n "checking where to find the target gdc... " >&6; }
17331 if test "x${build}" != "x${host}" ; then
17332 if expr "x$GDC_FOR_TARGET" : "x/" > /dev
/null
; then
17333 # We already found the complete path
17334 ac_dir
=`dirname $GDC_FOR_TARGET`
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17336 $as_echo "pre-installed in $ac_dir" >&6; }
17338 # Canadian cross, just use what we found
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17340 $as_echo "pre-installed" >&6; }
17344 case " ${configdirs} " in
17348 case ,${enable_languages}, in
17352 if test $ok = yes; then
17353 # An in-tree tool is available and we can use it
17354 GDC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17356 $as_echo "just compiled" >&6; }
17357 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev
/null
; then
17358 # We already found the complete path
17359 ac_dir
=`dirname $GDC_FOR_TARGET`
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17361 $as_echo "pre-installed in $ac_dir" >&6; }
17362 elif test "x$target" = "x$host"; then
17363 # We can use an host tool
17364 GDC_FOR_TARGET
='$(GDC)'
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17366 $as_echo "host tool" >&6; }
17368 # We need a cross tool
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17370 $as_echo "pre-installed" >&6; }
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17375 $as_echo_n "checking where to find the target ld... " >&6; }
17376 if test "x${build}" != "x${host}" ; then
17377 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
17378 # We already found the complete path
17379 ac_dir
=`dirname $LD_FOR_TARGET`
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17381 $as_echo "pre-installed in $ac_dir" >&6; }
17383 # Canadian cross, just use what we found
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17385 $as_echo "pre-installed" >&6; }
17389 case " ${configdirs} " in
17394 if test $ok = yes; then
17395 # An in-tree tool is available and we can use it
17396 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17398 $as_echo "just compiled" >&6; }
17399 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
17400 # We already found the complete path
17401 ac_dir
=`dirname $LD_FOR_TARGET`
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17403 $as_echo "pre-installed in $ac_dir" >&6; }
17404 elif test "x$target" = "x$host"; then
17405 # We can use an host tool
17406 LD_FOR_TARGET
='$(LD)'
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17408 $as_echo "host tool" >&6; }
17410 # We need a cross tool
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17412 $as_echo "pre-installed" >&6; }
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17417 $as_echo_n "checking where to find the target lipo... " >&6; }
17418 if test "x${build}" != "x${host}" ; then
17419 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
17420 # We already found the complete path
17421 ac_dir
=`dirname $LIPO_FOR_TARGET`
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17423 $as_echo "pre-installed in $ac_dir" >&6; }
17425 # Canadian cross, just use what we found
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17427 $as_echo "pre-installed" >&6; }
17430 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
17431 # We already found the complete path
17432 ac_dir
=`dirname $LIPO_FOR_TARGET`
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17434 $as_echo "pre-installed in $ac_dir" >&6; }
17435 elif test "x$target" = "x$host"; then
17436 # We can use an host tool
17437 LIPO_FOR_TARGET
='$(LIPO)'
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17439 $as_echo "host tool" >&6; }
17441 # We need a cross tool
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17443 $as_echo "pre-installed" >&6; }
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17448 $as_echo_n "checking where to find the target nm... " >&6; }
17449 if test "x${build}" != "x${host}" ; then
17450 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
17451 # We already found the complete path
17452 ac_dir
=`dirname $NM_FOR_TARGET`
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17454 $as_echo "pre-installed in $ac_dir" >&6; }
17456 # Canadian cross, just use what we found
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17458 $as_echo "pre-installed" >&6; }
17462 case " ${configdirs} " in
17467 if test $ok = yes; then
17468 # An in-tree tool is available and we can use it
17469 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17471 $as_echo "just compiled" >&6; }
17472 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
17473 # We already found the complete path
17474 ac_dir
=`dirname $NM_FOR_TARGET`
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17476 $as_echo "pre-installed in $ac_dir" >&6; }
17477 elif test "x$target" = "x$host"; then
17478 # We can use an host tool
17479 NM_FOR_TARGET
='$(NM)'
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17481 $as_echo "host tool" >&6; }
17483 # We need a cross tool
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17485 $as_echo "pre-installed" >&6; }
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17490 $as_echo_n "checking where to find the target objcopy... " >&6; }
17491 if test "x${build}" != "x${host}" ; then
17492 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev
/null
; then
17493 # We already found the complete path
17494 ac_dir
=`dirname $OBJCOPY_FOR_TARGET`
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17496 $as_echo "pre-installed in $ac_dir" >&6; }
17498 # Canadian cross, just use what we found
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17500 $as_echo "pre-installed" >&6; }
17504 case " ${configdirs} " in
17509 if test $ok = yes; then
17510 # An in-tree tool is available and we can use it
17511 OBJCOPY_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17513 $as_echo "just compiled" >&6; }
17514 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev
/null
; then
17515 # We already found the complete path
17516 ac_dir
=`dirname $OBJCOPY_FOR_TARGET`
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17518 $as_echo "pre-installed in $ac_dir" >&6; }
17519 elif test "x$target" = "x$host"; then
17520 # We can use an host tool
17521 OBJCOPY_FOR_TARGET
='$(OBJCOPY)'
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17523 $as_echo "host tool" >&6; }
17525 # We need a cross tool
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17527 $as_echo "pre-installed" >&6; }
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17532 $as_echo_n "checking where to find the target objdump... " >&6; }
17533 if test "x${build}" != "x${host}" ; then
17534 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
17535 # We already found the complete path
17536 ac_dir
=`dirname $OBJDUMP_FOR_TARGET`
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17538 $as_echo "pre-installed in $ac_dir" >&6; }
17540 # Canadian cross, just use what we found
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17542 $as_echo "pre-installed" >&6; }
17546 case " ${configdirs} " in
17551 if test $ok = yes; then
17552 # An in-tree tool is available and we can use it
17553 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17555 $as_echo "just compiled" >&6; }
17556 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
17557 # We already found the complete path
17558 ac_dir
=`dirname $OBJDUMP_FOR_TARGET`
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17560 $as_echo "pre-installed in $ac_dir" >&6; }
17561 elif test "x$target" = "x$host"; then
17562 # We can use an host tool
17563 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17565 $as_echo "host tool" >&6; }
17567 # We need a cross tool
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17569 $as_echo "pre-installed" >&6; }
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17574 $as_echo_n "checking where to find the target otool... " >&6; }
17575 if test "x${build}" != "x${host}" ; then
17576 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
17577 # We already found the complete path
17578 ac_dir
=`dirname $OTOOL_FOR_TARGET`
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17580 $as_echo "pre-installed in $ac_dir" >&6; }
17582 # Canadian cross, just use what we found
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17584 $as_echo "pre-installed" >&6; }
17587 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
17588 # We already found the complete path
17589 ac_dir
=`dirname $OTOOL_FOR_TARGET`
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17591 $as_echo "pre-installed in $ac_dir" >&6; }
17592 elif test "x$target" = "x$host"; then
17593 # We can use an host tool
17594 OTOOL_FOR_TARGET
='$(OTOOL)'
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17596 $as_echo "host tool" >&6; }
17598 # We need a cross tool
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17600 $as_echo "pre-installed" >&6; }
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17605 $as_echo_n "checking where to find the target ranlib... " >&6; }
17606 if test "x${build}" != "x${host}" ; then
17607 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
17608 # We already found the complete path
17609 ac_dir
=`dirname $RANLIB_FOR_TARGET`
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17611 $as_echo "pre-installed in $ac_dir" >&6; }
17613 # Canadian cross, just use what we found
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17615 $as_echo "pre-installed" >&6; }
17619 case " ${configdirs} " in
17624 if test $ok = yes; then
17625 # An in-tree tool is available and we can use it
17626 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17628 $as_echo "just compiled" >&6; }
17629 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
17630 # We already found the complete path
17631 ac_dir
=`dirname $RANLIB_FOR_TARGET`
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17633 $as_echo "pre-installed in $ac_dir" >&6; }
17634 elif test "x$target" = "x$host"; then
17635 # We can use an host tool
17636 RANLIB_FOR_TARGET
='$(RANLIB)'
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17638 $as_echo "host tool" >&6; }
17640 # We need a cross tool
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17642 $as_echo "pre-installed" >&6; }
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17647 $as_echo_n "checking where to find the target readelf... " >&6; }
17648 if test "x${build}" != "x${host}" ; then
17649 if expr "x$READELF_FOR_TARGET" : "x/" > /dev
/null
; then
17650 # We already found the complete path
17651 ac_dir
=`dirname $READELF_FOR_TARGET`
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17653 $as_echo "pre-installed in $ac_dir" >&6; }
17655 # Canadian cross, just use what we found
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17657 $as_echo "pre-installed" >&6; }
17661 case " ${configdirs} " in
17666 if test $ok = yes; then
17667 # An in-tree tool is available and we can use it
17668 READELF_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/readelf'
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17670 $as_echo "just compiled" >&6; }
17671 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev
/null
; then
17672 # We already found the complete path
17673 ac_dir
=`dirname $READELF_FOR_TARGET`
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17675 $as_echo "pre-installed in $ac_dir" >&6; }
17676 elif test "x$target" = "x$host"; then
17677 # We can use an host tool
17678 READELF_FOR_TARGET
='$(READELF)'
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17680 $as_echo "host tool" >&6; }
17682 # We need a cross tool
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17684 $as_echo "pre-installed" >&6; }
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17689 $as_echo_n "checking where to find the target strip... " >&6; }
17690 if test "x${build}" != "x${host}" ; then
17691 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
17692 # We already found the complete path
17693 ac_dir
=`dirname $STRIP_FOR_TARGET`
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17695 $as_echo "pre-installed in $ac_dir" >&6; }
17697 # Canadian cross, just use what we found
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17699 $as_echo "pre-installed" >&6; }
17703 case " ${configdirs} " in
17708 if test $ok = yes; then
17709 # An in-tree tool is available and we can use it
17710 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17712 $as_echo "just compiled" >&6; }
17713 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
17714 # We already found the complete path
17715 ac_dir
=`dirname $STRIP_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17717 $as_echo "pre-installed in $ac_dir" >&6; }
17718 elif test "x$target" = "x$host"; then
17719 # We can use an host tool
17720 STRIP_FOR_TARGET
='$(STRIP)'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17722 $as_echo "host tool" >&6; }
17724 # We need a cross tool
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17726 $as_echo "pre-installed" >&6; }
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17731 $as_echo_n "checking where to find the target windres... " >&6; }
17732 if test "x${build}" != "x${host}" ; then
17733 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
17734 # We already found the complete path
17735 ac_dir
=`dirname $WINDRES_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17737 $as_echo "pre-installed in $ac_dir" >&6; }
17739 # Canadian cross, just use what we found
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17741 $as_echo "pre-installed" >&6; }
17745 case " ${configdirs} " in
17750 if test $ok = yes; then
17751 # An in-tree tool is available and we can use it
17752 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17754 $as_echo "just compiled" >&6; }
17755 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
17756 # We already found the complete path
17757 ac_dir
=`dirname $WINDRES_FOR_TARGET`
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17759 $as_echo "pre-installed in $ac_dir" >&6; }
17760 elif test "x$target" = "x$host"; then
17761 # We can use an host tool
17762 WINDRES_FOR_TARGET
='$(WINDRES)'
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17764 $as_echo "host tool" >&6; }
17766 # We need a cross tool
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17768 $as_echo "pre-installed" >&6; }
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17773 $as_echo_n "checking where to find the target windmc... " >&6; }
17774 if test "x${build}" != "x${host}" ; then
17775 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev
/null
; then
17776 # We already found the complete path
17777 ac_dir
=`dirname $WINDMC_FOR_TARGET`
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17779 $as_echo "pre-installed in $ac_dir" >&6; }
17781 # Canadian cross, just use what we found
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17783 $as_echo "pre-installed" >&6; }
17787 case " ${configdirs} " in
17792 if test $ok = yes; then
17793 # An in-tree tool is available and we can use it
17794 WINDMC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windmc'
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17796 $as_echo "just compiled" >&6; }
17797 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev
/null
; then
17798 # We already found the complete path
17799 ac_dir
=`dirname $WINDMC_FOR_TARGET`
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17801 $as_echo "pre-installed in $ac_dir" >&6; }
17802 elif test "x$target" = "x$host"; then
17803 # We can use an host tool
17804 WINDMC_FOR_TARGET
='$(WINDMC)'
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17806 $as_echo "host tool" >&6; }
17808 # We need a cross tool
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17810 $as_echo "pre-installed" >&6; }
17818 # Certain tools may need extra flags.
17819 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
17820 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17821 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
17823 # When building target libraries, except in a Canadian cross, we use
17824 # the same toolchain as the compiler we just built.
17825 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
17826 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
17827 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
17828 if test $host = $build; then
17829 case " $configdirs " in
17831 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
17832 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17833 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17843 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17844 # Check whether --enable-maintainer-mode was given.
17845 if test "${enable_maintainer_mode+set}" = set; then :
17846 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
17848 USE_MAINTAINER_MODE
=no
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17852 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17855 if test "$USE_MAINTAINER_MODE" = yes; then
17856 MAINTAINER_MODE_TRUE
=
17857 MAINTAINER_MODE_FALSE
='#'
17859 MAINTAINER_MODE_TRUE
='#'
17860 MAINTAINER_MODE_FALSE
=
17862 MAINT
=$MAINTAINER_MODE_TRUE
17864 # ---------------------
17865 # GCC bootstrap support
17866 # ---------------------
17870 ac_config_files
="$ac_config_files Makefile"
17872 cat >confcache
<<\_ACEOF
17873 # This file is a shell script that caches the results of configure
17874 # tests run on this system so they can be shared between configure
17875 # scripts and configure runs, see configure's option --config-cache.
17876 # It is not useful on other systems. If it contains results you don't
17877 # want to keep, you may remove or edit it.
17879 # config.status only pays attention to the cache file if you give it
17880 # the --recheck option to rerun configure.
17882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17884 # following values.
17888 # The following way of writing the cache mishandles newlines in values,
17889 # but we know of no workaround that is simple, portable, and efficient.
17890 # So, we kill variables containing newlines.
17891 # Ultrix sh set writes to stderr and can't be redirected directly,
17892 # and sets the high bit in the cache file unless we assign to the vars.
17894 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17895 eval ac_val
=\$
$ac_var
17899 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17900 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17903 _ | IFS | as_nl
) ;; #(
17904 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17905 *) { eval $ac_var=; unset $ac_var;} ;;
17911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17912 *${as_nl}ac_space
=\
*)
17913 # `set' does not quote correctly, so add quotes: double-quote
17914 # substitution turns \\\\ into \\, and sed turns \\ into \.
17917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17920 # `set' quotes correctly as required by POSIX, so do not add quotes.
17921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17934 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17935 if test -w "$cache_file"; then
17936 if test "x$cache_file" != "x/dev/null"; then
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17938 $as_echo "$as_me: updating cache $cache_file" >&6;}
17939 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17940 cat confcache
>"$cache_file"
17942 case $cache_file in #(
17944 mv -f confcache
"$cache_file"$$
&&
17945 mv -f "$cache_file"$$
"$cache_file" ;; #(
17947 mv -f confcache
"$cache_file" ;;
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17953 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17958 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17959 # Let make expand exec_prefix.
17960 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17962 # Transform confdefs.h into DEFS.
17963 # Protect against shell expansion while executing Makefile rules.
17964 # Protect against Makefile macro expansion.
17966 # If the first sed substitution is executed (which looks for macros that
17967 # take arguments), then branch to the quote section. Otherwise,
17968 # look for a macro that doesn't take arguments.
17978 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17980 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17984 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17997 DEFS
=`sed -n "$ac_script" confdefs.h`
18003 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18004 # 1. Remove the extension, and $U if already installed.
18005 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18006 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
18007 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18008 # will be set to the directory where LIBOBJS objects are built.
18009 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18010 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
18012 LIBOBJS
=$ac_libobjs
18014 LTLIBOBJS
=$ac_ltlibobjs
18018 : "${CONFIG_STATUS=./config.status}"
18020 ac_clean_files_save
=$ac_clean_files
18021 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18027 # Generated by $as_me.
18028 # Run this file to recreate the current configuration.
18029 # Compiler output produced by configure, useful for debugging
18030 # configure, is in config.log if it exists.
18033 ac_cs_recheck=false
18036 SHELL=\${CONFIG_SHELL-$SHELL}
18039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
18040 ## -------------------- ##
18041 ## M4sh Initialization. ##
18042 ## -------------------- ##
18044 # Be more Bourne compatible
18045 DUALCASE
=1; export DUALCASE
# for MKS sh
18046 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
18049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18050 # is contrary to our usage. Disable this feature.
18051 alias -g '${1+"$@"}'='"$@"'
18052 setopt NO_GLOB_SUBST
18054 case `(set -o) 2>/dev/null` in #(
18066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18067 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18070 # Prefer a ksh shell builtin over an external printf program on Solaris,
18071 # but without wasting forks for bash or zsh.
18072 if test -z "$BASH_VERSION$ZSH_VERSION" \
18073 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18074 as_echo='print
-r --'
18075 as_echo_n='print
-rn --'
18076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18077 as_echo='printf %s
\n'
18078 as_echo_n='printf %s
'
18080 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18081 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18082 as_echo_n='/usr
/ucb
/echo -n'
18084 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18085 as_echo_n_body='eval
18089 expr "X$arg" : "X\\(.*\\)$as_nl";
18090 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18092 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18094 export as_echo_n_body
18095 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18097 export as_echo_body
18098 as_echo='sh
-c $as_echo_body as_echo
'
18101 # The user is always right.
18102 if test "${PATH_SEPARATOR+set}" != set; then
18104 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18105 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18112 # We need space, tab and new line, in precisely that order. Quoting is
18113 # there to prevent editors from complaining about space-tab.
18114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18115 # splitting by setting IFS to empty value.)
18118 # Find who we are. Look in the path if we contain no directory separator.
18121 *[\\/]* ) as_myself=$0 ;;
18122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18126 test -z "$as_dir" && as_dir=.
18127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18133 # We did not find ourselves, most probably we were run as `sh COMMAND'
18134 # in which case we are not to be found in the path.
18135 if test "x$as_myself" = x
; then
18138 if test ! -f "$as_myself"; then
18139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18143 # Unset variables that we do not need and which cause bugs (e.g. in
18144 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18145 # suppresses any "Segmentation fault" message there. '((' could
18146 # trigger a bug in pdksh 5.2.14.
18147 for as_var
in BASH_ENV ENV MAIL MAILPATH
18148 do eval test x\
${$as_var+set} = xset \
18149 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18162 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18165 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18166 # ----------------------------------------
18167 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18168 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18169 # script with STATUS, using 1 if that was 0.
18172 as_status
=$1; test $as_status -eq 0 && as_status
=1
18174 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18175 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18177 $as_echo "$as_me: error: $2" >&2
18178 as_fn_exit
$as_status
18182 # as_fn_set_status STATUS
18183 # -----------------------
18184 # Set $? to STATUS, without forking.
18185 as_fn_set_status
()
18188 } # as_fn_set_status
18190 # as_fn_exit STATUS
18191 # -----------------
18192 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18196 as_fn_set_status
$1
18202 # Portably unset VAR.
18205 { eval $1=; unset $1;}
18207 as_unset
=as_fn_unset
18208 # as_fn_append VAR VALUE
18209 # ----------------------
18210 # Append the text in VALUE to the end of the definition contained in VAR. Take
18211 # advantage of any shell optimizations that allow amortized linear growth over
18212 # repeated appends, instead of the typical quadratic growth present in naive
18214 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18215 eval 'as_fn_append ()
18226 # as_fn_arith ARG...
18227 # ------------------
18228 # Perform arithmetic evaluation on the ARGs, and store the result in the
18229 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18230 # must be portable across $(()) and expr.
18231 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18232 eval 'as_fn_arith ()
18239 as_val
=`expr "$@" || test $? -eq 1`
18244 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18245 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18251 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18252 as_basename
=basename
18257 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18263 as_me
=`$as_basename -- "$0" ||
18264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18265 X"$0" : 'X\(//\)$' \| \
18266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18268 sed '/^.*\/\([^/][^/]*\)\/*$/{
18282 # Avoid depending upon Character Ranges.
18283 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18284 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18285 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18286 as_cr_digits
='0123456789'
18287 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18289 ECHO_C
= ECHO_N
= ECHO_T
=
18290 case `echo -n x` in #(((((
18292 case `echo 'xy\c'` in
18293 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18295 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18302 rm -f conf$$ conf$$.exe conf$$.
file
18303 if test -d conf$$.dir
; then
18304 rm -f conf$$.dir
/conf$$.
file
18307 mkdir conf$$.dir
2>/dev
/null
18309 if (echo >conf$$.
file) 2>/dev
/null
; then
18310 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18312 # ... but there are two gotchas:
18313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18315 # In both cases, we have to default to `cp -pR'.
18316 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18318 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18326 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18327 rmdir conf$$.dir
2>/dev
/null
18332 # Create "$as_dir" as a directory, including parents if necessary.
18337 -*) as_dir
=.
/$as_dir;;
18339 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18343 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18344 *) as_qdir
=$as_dir;;
18346 as_dirs
="'$as_qdir' $as_dirs"
18347 as_dir
=`$as_dirname -- "$as_dir" ||
18348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18349 X"$as_dir" : 'X\(//\)[^/]' \| \
18350 X"$as_dir" : 'X\(//\)$' \| \
18351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18352 $as_echo X"$as_dir" |
18353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18357 /^X\(\/\/\)[^/].*/{
18370 test -d "$as_dir" && break
18372 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18373 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18377 if mkdir
-p .
2>/dev
/null
; then
18378 as_mkdir_p
='mkdir -p "$as_dir"'
18380 test -d .
/-p && rmdir .
/-p
18385 # as_fn_executable_p FILE
18386 # -----------------------
18387 # Test if FILE is an executable regular file.
18388 as_fn_executable_p
()
18390 test -f "$1" && test -x "$1"
18391 } # as_fn_executable_p
18392 as_test_x
='test -x'
18393 as_executable_p
=as_fn_executable_p
18395 # Sed expression to map a string onto a valid CPP name.
18396 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18398 # Sed expression to map a string onto a valid variable name.
18399 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18403 ## ----------------------------------- ##
18404 ## Main body of $CONFIG_STATUS script. ##
18405 ## ----------------------------------- ##
18407 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18410 # Save the log message, to keep $0 and so on meaningful, and to
18411 # report actual input values of CONFIG_FILES etc. instead of their
18412 # values after options handling.
18414 This file was extended by $as_me, which was
18415 generated by GNU Autoconf 2.69. Invocation command line was
18417 CONFIG_FILES = $CONFIG_FILES
18418 CONFIG_HEADERS = $CONFIG_HEADERS
18419 CONFIG_LINKS = $CONFIG_LINKS
18420 CONFIG_COMMANDS = $CONFIG_COMMANDS
18423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18428 case $ac_config_files in *"
18429 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18435 # Files that config.status was made for.
18436 config_files="$ac_config_files"
18440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18442 \`$as_me' instantiates files and other configuration actions
18443 from templates according to the current configuration. Unless the files
18444 and actions are specified as TAGs, all are instantiated by default.
18446 Usage: $0 [OPTION]... [TAG]...
18448 -h, --help print this help, then exit
18449 -V, --version print version number and configuration settings, then exit
18450 --config print configuration, then exit
18451 -q, --quiet, --silent
18452 do not print progress messages
18453 -d, --debug don't remove temporary files
18454 --recheck update $as_me by reconfiguring in the same conditions
18455 --file=FILE[:TEMPLATE]
18456 instantiate the configuration file FILE
18458 Configuration files:
18461 Report bugs to the package provider."
18464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18465 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18468 configured by $0, generated by GNU Autoconf 2.69,
18469 with options \\"\$ac_cs_config\\"
18471 Copyright (C) 2012 Free Software Foundation, Inc.
18472 This config.status script is free software; the Free Software Foundation
18473 gives unlimited permission to copy, distribute and modify it."
18479 test -n "\$AWK" || AWK=awk
18482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18483 # The default lists apply if the user does not specify any file.
18489 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18490 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18494 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18506 # Handling of the options.
18507 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18509 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18510 $as_echo "$ac_cs_version"; exit ;;
18511 --config |
--confi |
--conf |
--con |
--co |
--c )
18512 $as_echo "$ac_cs_config"; exit ;;
18513 --debug |
--debu |
--deb |
--de |
--d |
-d )
18515 --file |
--fil |
--fi |
--f )
18518 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18519 '') as_fn_error $?
"missing file argument" ;;
18521 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18522 ac_need_defaults
=false
;;
18523 --he |
--h |
--help |
--hel |
-h )
18524 $as_echo "$ac_cs_usage"; exit ;;
18525 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18526 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18529 # This is an error.
18530 -*) as_fn_error $?
"unrecognized option: \`$1'
18531 Try \`$0 --help' for more information." ;;
18533 *) as_fn_append ac_config_targets
" $1"
18534 ac_need_defaults
=false
;;
18540 ac_configure_extra_args
=
18542 if $ac_cs_silent; then
18544 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 if \$ac_cs_recheck; then
18550 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18552 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18553 CONFIG_SHELL='$SHELL'
18554 export CONFIG_SHELL
18559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18564 ## Running $as_me. ##
18570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18574 extrasub_build="$extrasub_build"
18575 extrasub_host="$extrasub_host"
18576 extrasub_target="$extrasub_target"
18580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18582 # Handling of arguments.
18583 for ac_config_target
in $ac_config_targets
18585 case $ac_config_target in
18586 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18588 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18593 # If the user did not use the arguments to specify the items to instantiate,
18594 # then the envvar interface is used. Set only those that are not.
18595 # We use the long form for the default assignment because of an extremely
18596 # bizarre bug on SunOS 4.1.3.
18597 if $ac_need_defaults; then
18598 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18601 # Have a temporary directory for convenience. Make it in the build tree
18602 # simply because there is no reason against having it here, and in addition,
18603 # creating and moving files from /tmp can sometimes cause problems.
18604 # Hook for its removal unless debugging.
18605 # Note that there is a small window in which the directory will not be cleaned:
18606 # after its creation but before its name has been assigned to `$tmp'.
18610 trap 'exit_status=$?
18611 : "${ac_tmp:=$tmp}"
18612 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18614 trap 'as_fn_exit 1' 1 2 13 15
18616 # Create a (secure) tmp directory for tmp files.
18619 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18623 tmp
=.
/conf$$
-$RANDOM
18624 (umask 077 && mkdir
"$tmp")
18625 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18628 # Set up the scripts for CONFIG_FILES section.
18629 # No need to generate them if there are no CONFIG_FILES.
18630 # This happens for instance with `./config.status config.h'.
18631 if test -n "$CONFIG_FILES"; then
18633 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18634 ac_cs_awk_getline
=:
18635 ac_cs_awk_pipe_init
=
18636 ac_cs_awk_read_file
='
18637 while ((getline aline < (F[key])) > 0)
18640 ac_cs_awk_pipe_fini
=
18642 ac_cs_awk_getline
=false
18643 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18644 ac_cs_awk_read_file
='
18646 print "cat " F[key] " &&"
18647 '$ac_cs_awk_pipe_init
18648 # The final `:' finishes the AND list.
18649 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18651 ac_cr
=`echo X | tr X '\015'`
18652 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18653 # But we know of no other shell where ac_cr would be empty at this
18654 # point, so we can use a bashism as a fallback.
18655 if test "x$ac_cr" = x
; then
18656 eval ac_cr
=\$
\'\\r
\'
18658 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18659 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18662 ac_cs_awk_cr
=$ac_cr
18665 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18668 # Create commands to substitute file output variables.
18670 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18671 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18672 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18675 } >conf$
$files.sh
&&
18676 . .
/conf$
$files.sh ||
18677 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18678 rm -f conf$
$files.sh
18681 echo "cat >conf$$subs.awk <<_ACEOF" &&
18682 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18684 } >conf$$subs.sh ||
18685 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18686 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18688 for ac_last_try in false false false false false :; do
18689 . ./conf$$subs.sh ||
18690 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18692 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18693 if test $ac_delim_n = $ac_delim_num; then
18695 elif $ac_last_try; then
18696 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18698 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18701 rm -f conf$$subs.sh
18703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18704 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18708 s/^/S["/; s
/!.
*/"]=/
18718 s/\(.\{148\}\)..*/\1/
18720 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18725 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18732 s/\(.\{148\}\)..*/\1/
18734 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18738 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18743 ' <conf$$subs.awk | sed '
18748 ' >>$CONFIG_STATUS || ac_write_fail=1
18749 rm -f conf$$subs.awk
18750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18752 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18753 for (key in S) S_is_set[key] = 1
18755 \$ac_cs_awk_pipe_init
18759 nfields = split(line, field, "@
")
18761 len = length(field[1])
18762 for (i = 2; i < nfields; i++) {
18764 keylen = length(key)
18765 if (S_is_set[key]) {
18767 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18768 len += length(value) + length(field[++i])
18773 if (nfields == 3 && !substed) {
18775 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18776 \$ac_cs_awk_read_file
18782 \$ac_cs_awk_pipe_fini
18785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18786 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18787 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18790 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18791 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18794 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18795 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18796 # trailing colons and then remove the whole line if VPATH becomes empty
18797 # (actually we leave an empty line to preserve line numbers).
18798 if test "x
$srcdir" = x.; then
18799 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18818 fi # test -n "$CONFIG_FILES"
18821 eval set X " :F
$CONFIG_FILES "
18826 :[FHLC]) ac_mode=$ac_tag; continue;;
18828 case $ac_mode$ac_tag in
18830 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
18831 :[FH]-) ac_tag=-:-;;
18832 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18849 -) ac_f="$ac_tmp/stdin";;
18850 *) # Look for the file first in the build tree, then in the source tree
18851 # (if the path is not absolute). The absolute path cannot be DOS-style,
18852 # because $ac_f cannot contain `:'.
18856 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18858 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18860 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
18861 as_fn_append ac_file_inputs " '$ac_f'"
18864 # Let's still pretend it is `configure' which instantiates (i.e., don't
18865 # use $as_me), people would be surprised to read:
18866 # /* config.h. Generated by config.status. */
18867 configure_input='Generated from '`
18868 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18870 if test x"$ac_file" != x-; then
18871 configure_input="$ac_file.
$configure_input"
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
18873 $as_echo "$as_me: creating
$ac_file" >&6;}
18875 # Neutralize special characters interpreted by sed in replacement strings.
18876 case $configure_input in #(
18877 *\&* | *\|* | *\\* )
18878 ac_sed_conf_input=`$as_echo "$configure_input" |
18879 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18880 *) ac_sed_conf_input=$configure_input;;
18884 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
18885 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
18890 ac_dir=`$as_dirname -- "$ac_file" ||
18891 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18892 X"$ac_file" : 'X\(//\)[^/]' \| \
18893 X"$ac_file" : 'X\(//\)$' \| \
18894 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18895 $as_echo X"$ac_file" |
18896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18900 /^X\(\/\/\)[^/].*/{
18913 as_dir="$ac_dir"; as_fn_mkdir_p
18917 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18919 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18920 # A "..
" for each directory in $ac_dir_suffix.
18921 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18922 case $ac_top_builddir_sub in
18923 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18924 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18927 ac_abs_top_builddir=$ac_pwd
18928 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18929 # for backward compatibility:
18930 ac_top_builddir=$ac_top_build_prefix
18933 .) # We are building in place.
18935 ac_top_srcdir=$ac_top_builddir_sub
18936 ac_abs_top_srcdir=$ac_pwd ;;
18937 [\\/]* | ?:[\\/]* ) # Absolute name.
18938 ac_srcdir=$srcdir$ac_dir_suffix;
18939 ac_top_srcdir=$srcdir
18940 ac_abs_top_srcdir=$srcdir ;;
18941 *) # Relative name.
18942 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18943 ac_top_srcdir=$ac_top_build_prefix$srcdir
18944 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18946 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18956 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18957 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18962 # If the template does not know about datarootdir, expand it.
18963 # FIXME: This hack should be removed a few years after 2.60.
18964 ac_datarootdir_hack=; ac_datarootdir_seen=
18975 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
18976 *datarootdir*) ac_datarootdir_seen=yes;;
18977 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
18979 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
18981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18982 ac_datarootdir_hack='
18983 s&@datadir@&$datadir&g
18984 s&@docdir@&$docdir&g
18985 s&@infodir@&$infodir&g
18986 s&@localedir@&$localedir&g
18987 s&@mandir@&$mandir&g
18988 s&\\\${datarootdir}&$datarootdir&g' ;;
18992 # Neutralize VPATH when `$srcdir' = `.'.
18993 # Shell code in configure.ac might set extrasub.
18994 # FIXME: do we really want to maintain this feature?
18995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18996 ac_sed_extra="$ac_vpsub
18999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19001 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19002 s|@configure_input@|
$ac_sed_conf_input|
;t t
19003 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19004 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19005 s
&@srcdir@
&$ac_srcdir&;t t
19006 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19007 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19008 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19009 s
&@builddir@
&$ac_builddir&;t t
19010 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19011 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19012 s
&@INSTALL@
&$ac_INSTALL&;t t
19013 $ac_datarootdir_hack
19015 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19016 if $ac_cs_awk_getline; then
19017 $AWK -f "$ac_tmp/subs.
awk"
19019 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19021 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19023 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19024 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19025 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19026 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19028 which seems to be undefined. Please make sure it is defined" >&5
19029 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19030 which seems to be undefined. Please make sure it is defined" >&2;}
19032 rm -f "$ac_tmp/stdin"
19034 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19035 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19045 case $ac_file$ac_mode in
19046 "Makefile":F) sed "$extrasub_build" Makefile |
19047 sed "$extrasub_host" |
19048 sed "$extrasub_target" > mf$$
19049 mv -f mf$$ Makefile ;;
19057 ac_clean_files=$ac_clean_files_save
19059 test $ac_write_fail = 0 ||
19060 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19063 # configure is writing to config.log, and then calls config.status.
19064 # config.status does its own redirection, appending to config.log.
19065 # Unfortunately, on DOS this fails, as config.log is still kept open
19066 # by configure, so config.status won't be able to
write to it
; its
19067 # output is simply discarded. So we exec the FD to /dev/null,
19068 # effectively closing config.log, so it can be properly (re)opened and
19069 # appended to by config.status. When coming back to configure, we
19070 # need to make the FD available again.
19071 if test "$no_create" != yes; then
19073 ac_config_status_args
=
19074 test "$silent" = yes &&
19075 ac_config_status_args
="$ac_config_status_args --quiet"
19077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19080 # would make configure fail if this is the last instruction.
19081 $ac_cs_success || as_fn_exit
1
19083 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19085 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}