Daily bump.
[official-gcc.git] / configure
blob8d031adafa824c993b15ef57f97c80c1c27039e7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 RANLIB_PLUGIN_OPTION
624 AR_PLUGIN_OPTION
625 PKG_CONFIG_PATH
626 GDCFLAGS
627 READELF
628 OTOOL
629 OBJDUMP
630 OBJCOPY
631 WINDMC
632 WINDRES
633 STRIP
634 RANLIB
636 LIPO
638 DSYMUTIL
639 DLLTOOL
642 RUNTEST
643 EXPECT
644 MAKEINFO
645 FLEX
648 BISON
649 YACC
650 WINDRES_FOR_BUILD
651 WINDMC_FOR_BUILD
652 RANLIB_FOR_BUILD
653 NM_FOR_BUILD
654 LD_FOR_BUILD
655 LDFLAGS_FOR_BUILD
656 GDC_FOR_BUILD
657 GOC_FOR_BUILD
658 GFORTRAN_FOR_BUILD
659 DSYMUTIL_FOR_BUILD
660 DLLTOOL_FOR_BUILD
661 CXX_FOR_BUILD
662 CXXFLAGS_FOR_BUILD
663 CPPFLAGS_FOR_BUILD
664 CPP_FOR_BUILD
665 CFLAGS_FOR_BUILD
666 CC_FOR_BUILD
667 AS_FOR_BUILD
668 AR_FOR_BUILD
669 target_configdirs
670 configdirs
671 build_configdirs
672 INSTALL_GDB_TK
673 GDB_TK
674 CONFIGURE_GDB_TK
675 build_tooldir
676 tooldir
677 GCC_SHLIB_SUBDIR
678 RPATH_ENVVAR
679 target_configargs
680 host_configargs
681 build_configargs
682 BUILD_CONFIG
683 LDFLAGS_FOR_TARGET
684 CXXFLAGS_FOR_TARGET
685 CFLAGS_FOR_TARGET
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
688 get_gcc_base_ver
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
691 stage1_languages
692 host_libs_picflag
693 CRAB1_LIBS
694 PICFLAG
695 host_shared
696 gcc_host_pie
697 host_pie
698 extra_linker_plugin_flags
699 extra_linker_plugin_configure_flags
700 islinc
701 isllibs
702 poststage1_ldflags
703 poststage1_libs
704 stage1_ldflags
705 stage1_libs
706 extra_isl_gmp_configure_flags
707 extra_mpc_mpfr_configure_flags
708 extra_mpc_gmp_configure_flags
709 extra_mpfr_configure_flags
710 gmpinc
711 gmplibs
712 PGO_BUILD_LTO_CFLAGS
713 PGO_BUILD_USE_CFLAGS
714 PGO_BUILD_GEN_CFLAGS
715 HAVE_CXX14_FOR_BUILD
716 HAVE_CXX14
717 do_compare
718 CARGO
720 GNATMAKE
721 GNATBIND
722 ac_ct_CXX
723 CXXFLAGS
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
732 target_subdir
733 host_subdir
734 build_subdir
735 build_libsubdir
738 LN_S
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 target_os
744 target_vendor
745 target_cpu
746 target
747 host_os
748 host_vendor
749 host_cpu
750 host
751 target_noncanonical
752 host_noncanonical
753 build_noncanonical
754 build_os
755 build_vendor
756 build_cpu
757 build
758 TOPLEVEL_CONFIGURE_ARGUMENTS
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files='serialization_dependencies
798 host_makefile_frag
799 target_makefile_frag
800 alphaieee_frag
801 ospace_frag'
802 ac_user_opts='
803 enable_option_checking
804 with_build_libsubdir
805 with_system_zlib
806 with_zstd
807 enable_as_accelerator_for
808 enable_offload_targets
809 enable_offload_defaulted
810 enable_gold
811 enable_ld
812 enable_gprofng
813 enable_compressed_debug_sections
814 enable_default_compressed_debug_sections_algorithm
815 enable_year2038
816 enable_libquadmath
817 enable_libquadmath_support
818 enable_libada
819 enable_libgm2
820 enable_libssp
821 enable_libstdcxx
822 enable_bootstrap
823 enable_pgo_build
824 with_mpc
825 with_mpc_include
826 with_mpc_lib
827 with_mpfr
828 with_mpfr_include
829 with_mpfr_lib
830 with_gmp
831 with_gmp_include
832 with_gmp_lib
833 with_stage1_libs
834 with_static_standard_libraries
835 with_stage1_ldflags
836 with_boot_libs
837 with_boot_ldflags
838 with_isl
839 with_isl_include
840 with_isl_lib
841 enable_isl_version_check
842 enable_lto
843 enable_linker_plugin_configure_flags
844 enable_linker_plugin_flags
845 enable_host_pie
846 enable_host_shared
847 enable_stage1_languages
848 enable_objc_gc
849 with_target_bdw_gc
850 with_target_bdw_gc_include
851 with_target_bdw_gc_lib
852 with_gcc_major_version_only
853 with_build_sysroot
854 with_debug_prefix_map
855 with_build_config
856 enable_vtable_verify
857 enable_serial_configure
858 with_build_time_tools
859 enable_maintainer_mode
860 enable_stage1_checking
861 enable_werror
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
872 CXXFLAGS
874 build_configargs
875 host_configargs
876 target_configargs
879 DLLTOOL
880 DSYMUTIL
882 LIPO
884 RANLIB
885 STRIP
886 WINDRES
887 WINDMC
888 OBJCOPY
889 OBJDUMP
890 OTOOL
891 READELF
892 CC_FOR_TARGET
893 CXX_FOR_TARGET
894 GCC_FOR_TARGET
895 GFORTRAN_FOR_TARGET
896 GOC_FOR_TARGET
897 GDC_FOR_TARGET
898 GM2_FOR_TARGET
899 AR_FOR_TARGET
900 AS_FOR_TARGET
901 DLLTOOL_FOR_TARGET
902 DSYMUTIL_FOR_TARGET
903 LD_FOR_TARGET
904 LIPO_FOR_TARGET
905 NM_FOR_TARGET
906 OBJCOPY_FOR_TARGET
907 OBJDUMP_FOR_TARGET
908 OTOOL_FOR_TARGET
909 RANLIB_FOR_TARGET
910 READELF_FOR_TARGET
911 STRIP_FOR_TARGET
912 WINDRES_FOR_TARGET
913 WINDMC_FOR_TARGET'
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
964 ac_prev=
965 ac_dashdash=
966 for ac_option
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
975 case $ac_option in
976 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *=) ac_optarg= ;;
978 *) ac_optarg=yes ;;
979 esac
981 # Accept the important Cygnus configure options, so we can diagnose typos.
983 case $ac_dashdash$ac_option in
985 ac_dashdash=yes ;;
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 ac_prev=bindir ;;
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 bindir=$ac_optarg ;;
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1007 -datadir | --datadir | --datadi | --datad)
1008 ac_prev=datadir ;;
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1019 -disable-* | --disable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1249 -with-* | --with-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1258 "with_$ac_useropt"
1259 "*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1299 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information"
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
1308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1309 esac
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1321 esac
1322 done
1324 if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error $? "missing argument to $ac_option"
1329 if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
1332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1337 # Check all directory arguments for consistency.
1338 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1343 eval ac_val=\$$ac_var
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1356 done
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377 test "$silent" = yes && exec 6>/dev/null
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 as_fn_error $? "working directory cannot be determined"
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 as_fn_error $? "pwd does not report name of working directory"
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397 $as_echo X"$as_myself" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1406 /^X\(\/\/\)$/{
1407 s//\1/
1410 /^X\(\/\).*/{
1411 s//\1/
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1419 else
1420 ac_srcdir_defaulted=no
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429 pwd)`
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 srcdir=.
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1437 case $srcdir in
1438 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 esac
1440 case $srcdir in
1441 *" "*)
1442 as_fn_error $? "path to source, $srcdir, contains spaces"
1444 esac
1445 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
1461 \`configure' configures this package to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1470 Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking ...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 [PREFIX]
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1514 _ACEOF
1516 cat <<\_ACEOF
1518 Program names:
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1523 System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1527 _ACEOF
1530 if test -n "$ac_init_help"; then
1532 cat <<\_ACEOF
1534 Optional Features:
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-as-accelerator-for=ARG
1539 build as offload target compiler. Specify offload
1540 host triple by ARG
1541 --enable-offload-targets=LIST
1542 enable offloading to devices from comma-separated
1543 LIST of TARGET[=DIR]. Use optional path to find
1544 offload target compiler during the build
1545 --enable-offload-defaulted
1546 If enabled, configured but not installed offload compilers and
1547 libgomp plugins are silently ignored. Useful for distribution
1548 compilers where those are in separate optional packages.
1550 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1551 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1552 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1553 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1554 Enable compressed debug sections for gas, gold or ld
1555 by default
1556 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1557 Default compression algorithm for
1558 --enable-compressed-debug-sections.
1559 --enable-year2038 enable support for timestamps past the year 2038
1560 --disable-libquadmath do not build libquadmath directory
1561 --disable-libquadmath-support
1562 disable libquadmath support for Fortran
1563 --enable-libada build libada directory
1564 --enable-libgm2 build libgm2 directory
1565 --enable-libssp build libssp directory
1566 --disable-libstdcxx do not build libstdc++-v3 directory
1567 --enable-bootstrap enable bootstrapping [yes if native build]
1568 --enable-pgo-build[=lto]
1569 enable the PGO build
1570 --disable-isl-version-check
1571 disable check for isl version
1572 --enable-lto enable link time optimization support
1573 --enable-linker-plugin-configure-flags=FLAGS
1574 additional flags for configuring linker plugins
1575 [none]
1576 --enable-linker-plugin-flags=FLAGS
1577 additional flags for configuring and building linker
1578 plugins [none]
1579 --enable-host-pie build position independent host executables
1580 --enable-host-shared build host code as shared libraries
1581 --enable-stage1-languages[=all]
1582 choose additional languages to build during stage1.
1583 Mostly useful for compiler development
1584 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1585 Objective-C runtime
1586 --enable-vtable-verify Enable vtable verification feature
1587 --enable-serial-[{host,target,build}-]configure
1588 force sequential configuration of sub-packages for
1589 the host, target or build machine, or all
1590 sub-packages
1591 --enable-maintainer-mode
1592 enable make rules and dependencies not useful (and
1593 sometimes confusing) to the casual installer
1594 --enable-stage1-checking[=all]
1595 choose additional checking for stage1 of the
1596 compiler
1597 --enable-werror enable -Werror in bootstrap stage2 and later
1599 Optional Packages:
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-build-libsubdir=DIR Directory where to find libraries for build system
1603 --with-system-zlib use installed libz
1604 --with-zstd Support zstd compressed debug sections
1605 (default=auto)
1606 --with-mpc=PATH specify prefix directory for installed MPC package.
1607 Equivalent to --with-mpc-include=PATH/include plus
1608 --with-mpc-lib=PATH/lib
1609 --with-mpc-include=PATH specify directory for installed MPC include files
1610 --with-mpc-lib=PATH specify directory for the installed MPC library
1611 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1612 Equivalent to --with-mpfr-include=PATH/include plus
1613 --with-mpfr-lib=PATH/lib
1614 --with-mpfr-include=PATH
1615 specify directory for installed MPFR include files
1616 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1617 --with-gmp=PATH specify prefix directory for the installed GMP
1618 package. Equivalent to
1619 --with-gmp-include=PATH/include plus
1620 --with-gmp-lib=PATH/lib
1621 --with-gmp-include=PATH specify directory for installed GMP include files
1622 --with-gmp-lib=PATH specify directory for the installed GMP library
1623 --with-stage1-libs=LIBS libraries for stage1
1624 --with-static-standard-libraries
1625 use -static-libstdc++ and -static-libgcc
1626 (default=auto)
1627 --with-stage1-ldflags=FLAGS
1628 linker flags for stage1
1629 --with-boot-libs=LIBS libraries for stage2 and later
1630 --with-boot-ldflags=FLAGS
1631 linker flags for stage2 and later
1632 --with-isl=PATH Specify prefix directory for the installed isl
1633 package. Equivalent to
1634 --with-isl-include=PATH/include plus
1635 --with-isl-lib=PATH/lib
1636 --with-isl-include=PATH Specify directory for installed isl include files
1637 --with-isl-lib=PATH Specify the directory for the installed isl library
1638 --with-target-bdw-gc=PATHLIST
1639 specify prefix directory for installed bdw-gc
1640 package. Equivalent to
1641 --with-target-bdw-gc-include=PATH/include plus
1642 --with-target-bdw-gc-lib=PATH/lib
1643 --with-target-bdw-gc-include=PATHLIST
1644 specify directories for installed bdw-gc include
1645 files
1646 --with-target-bdw-gc-lib=PATHLIST
1647 specify directories for installed bdw-gc library
1648 --with-gcc-major-version-only
1649 use only GCC major number in filesystem paths
1650 --with-build-sysroot=SYSROOT
1651 use sysroot as the system root during the build
1652 --with-debug-prefix-map='A=B C=D ...'
1653 map A to B, C to D ... in debug information
1654 --with-build-config='NAME NAME2...'
1655 use config/NAME.mk build configuration
1656 --with-build-time-tools=PATH
1657 use given path to find target tools during the build
1659 Some influential environment variables:
1660 CC C compiler command
1661 CFLAGS C compiler flags
1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1663 nonstandard directory <lib dir>
1664 LIBS libraries to pass to the linker, e.g. -l<library>
1665 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1666 you have headers in a nonstandard directory <include dir>
1667 CXX C++ compiler command
1668 CXXFLAGS C++ compiler flags
1669 build_configargs
1670 additional configure arguments for build directories
1671 host_configargs
1672 additional configure arguments for host directories
1673 target_configargs
1674 additional configure arguments for target directories
1675 AR AR for the host
1676 AS AS for the host
1677 DLLTOOL DLLTOOL for the host
1678 DSYMUTIL DSYMUTIL for the host
1679 LD LD for the host
1680 LIPO LIPO for the host
1681 NM NM for the host
1682 RANLIB RANLIB for the host
1683 STRIP STRIP for the host
1684 WINDRES WINDRES for the host
1685 WINDMC WINDMC for the host
1686 OBJCOPY OBJCOPY for the host
1687 OBJDUMP OBJDUMP for the host
1688 OTOOL OTOOL for the host
1689 READELF READELF for the host
1690 CC_FOR_TARGET
1691 CC for the target
1692 CXX_FOR_TARGET
1693 CXX for the target
1694 GCC_FOR_TARGET
1695 GCC for the target
1696 GFORTRAN_FOR_TARGET
1697 GFORTRAN for the target
1698 GOC_FOR_TARGET
1699 GOC for the target
1700 GDC_FOR_TARGET
1701 GDC for the target
1702 GM2_FOR_TARGET
1703 GM2 for the target
1704 AR_FOR_TARGET
1705 AR for the target
1706 AS_FOR_TARGET
1707 AS for the target
1708 DLLTOOL_FOR_TARGET
1709 DLLTOOL for the target
1710 DSYMUTIL_FOR_TARGET
1711 DSYMUTIL for the target
1712 LD_FOR_TARGET
1713 LD for the target
1714 LIPO_FOR_TARGET
1715 LIPO for the target
1716 NM_FOR_TARGET
1717 NM for the target
1718 OBJCOPY_FOR_TARGET
1719 OBJCOPY for the target
1720 OBJDUMP_FOR_TARGET
1721 OBJDUMP for the target
1722 OTOOL_FOR_TARGET
1723 OTOOL for the target
1724 RANLIB_FOR_TARGET
1725 RANLIB for the target
1726 READELF_FOR_TARGET
1727 READELF for the target
1728 STRIP_FOR_TARGET
1729 STRIP for the target
1730 WINDRES_FOR_TARGET
1731 WINDRES for the target
1732 WINDMC_FOR_TARGET
1733 WINDMC for the target
1735 Use these variables to override the choices made by `configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1738 Report bugs to the package provider.
1739 _ACEOF
1740 ac_status=$?
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1748 continue
1749 ac_builddir=.
1751 case "$ac_dir" in
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1760 esac ;;
1761 esac
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1767 case $srcdir in
1768 .) # We are building in place.
1769 ac_srcdir=.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1776 *) # Relative name.
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1780 esac
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1789 echo &&
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1791 else
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 fi || ac_status=$?
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1795 done
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1800 cat <<\_ACEOF
1801 configure
1802 generated by GNU Autoconf 2.69
1804 Copyright (C) 2012 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1807 _ACEOF
1808 exit
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=1
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_c_try_compile
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_cxx_try_link LINENO
1892 # -------------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_link ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_cxx_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=1
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_cxx_try_link
1937 # ac_fn_c_try_link LINENO
1938 # -----------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_c_try_link ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext conftest$ac_exeext
1944 if { { ac_try="$ac_link"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest$ac_exeext && {
1963 test "$cross_compiling" = yes ||
1964 test -x conftest$ac_exeext
1965 }; then :
1966 ac_retval=0
1967 else
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1971 ac_retval=1
1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975 # interfere with the next link command; also delete a directory that is
1976 # left behind by Apple's compiler. We do this before executing the actions.
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1981 } # ac_fn_c_try_link
1982 cat >config.log <<_ACEOF
1983 This file contains any messages produced by compilers while
1984 running configure, to aid debugging if configure makes a mistake.
1986 It was created by $as_me, which was
1987 generated by GNU Autoconf 2.69. Invocation command line was
1989 $ $0 $@
1991 _ACEOF
1992 exec 5>>config.log
1994 cat <<_ASUNAME
1995 ## --------- ##
1996 ## Platform. ##
1997 ## --------- ##
1999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2011 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2016 _ASUNAME
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 $as_echo "PATH: $as_dir"
2024 done
2025 IFS=$as_save_IFS
2027 } >&5
2029 cat >&5 <<_ACEOF
2032 ## ----------- ##
2033 ## Core tests. ##
2034 ## ----------- ##
2036 _ACEOF
2039 # Keep a trace of the command line.
2040 # Strip out --no-create and --no-recursion so they do not pile up.
2041 # Strip out --silent because we don't want to record it for future runs.
2042 # Also quote any args containing shell meta-characters.
2043 # Make two passes to allow for proper duplicate-argument suppression.
2044 ac_configure_args=
2045 ac_configure_args0=
2046 ac_configure_args1=
2047 ac_must_keep_next=false
2048 for ac_pass in 1 2
2050 for ac_arg
2052 case $ac_arg in
2053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2055 | -silent | --silent | --silen | --sile | --sil)
2056 continue ;;
2057 *\'*)
2058 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2059 esac
2060 case $ac_pass in
2061 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2063 as_fn_append ac_configure_args1 " '$ac_arg'"
2064 if test $ac_must_keep_next = true; then
2065 ac_must_keep_next=false # Got value, back to normal.
2066 else
2067 case $ac_arg in
2068 *=* | --config-cache | -C | -disable-* | --disable-* \
2069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2071 | -with-* | --with-* | -without-* | --without-* | --x)
2072 case "$ac_configure_args0 " in
2073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2074 esac
2076 -* ) ac_must_keep_next=true ;;
2077 esac
2079 as_fn_append ac_configure_args " '$ac_arg'"
2081 esac
2082 done
2083 done
2084 { ac_configure_args0=; unset ac_configure_args0;}
2085 { ac_configure_args1=; unset ac_configure_args1;}
2087 # When interrupted or exit'd, cleanup temporary files, and complete
2088 # config.log. We remove comments because anyway the quotes in there
2089 # would cause problems or look ugly.
2090 # WARNING: Use '\'' to represent an apostrophe within the trap.
2091 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2092 trap 'exit_status=$?
2093 # Save into config.log some information that might help in debugging.
2095 echo
2097 $as_echo "## ---------------- ##
2098 ## Cache variables. ##
2099 ## ---------------- ##"
2100 echo
2101 # The following way of writing the cache mishandles newlines in values,
2103 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in #(
2106 *${as_nl}*)
2107 case $ac_var in #(
2108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2110 esac
2111 case $ac_var in #(
2112 _ | IFS | as_nl) ;; #(
2113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2114 *) { eval $ac_var=; unset $ac_var;} ;;
2115 esac ;;
2116 esac
2117 done
2118 (set) 2>&1 |
2119 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2120 *${as_nl}ac_space=\ *)
2121 sed -n \
2122 "s/'\''/'\''\\\\'\'''\''/g;
2123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2124 ;; #(
2126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128 esac |
2129 sort
2131 echo
2133 $as_echo "## ----------------- ##
2134 ## Output variables. ##
2135 ## ----------------- ##"
2136 echo
2137 for ac_var in $ac_subst_vars
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 $as_echo "$ac_var='\''$ac_val'\''"
2144 done | sort
2145 echo
2147 if test -n "$ac_subst_files"; then
2148 $as_echo "## ------------------- ##
2149 ## File substitutions. ##
2150 ## ------------------- ##"
2151 echo
2152 for ac_var in $ac_subst_files
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 $as_echo "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2163 if test -s confdefs.h; then
2164 $as_echo "## ----------- ##
2165 ## confdefs.h. ##
2166 ## ----------- ##"
2167 echo
2168 cat confdefs.h
2169 echo
2171 test "$ac_signal" != 0 &&
2172 $as_echo "$as_me: caught signal $ac_signal"
2173 $as_echo "$as_me: exit $exit_status"
2174 } >&5
2175 rm -f core *.core core.conftest.* &&
2176 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2177 exit $exit_status
2179 for ac_signal in 1 2 13 15; do
2180 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2181 done
2182 ac_signal=0
2184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2185 rm -f -r conftest* confdefs.h
2187 $as_echo "/* confdefs.h */" > confdefs.h
2189 # Predefined preprocessor variables.
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_NAME "$PACKAGE_NAME"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2201 _ACEOF
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_STRING "$PACKAGE_STRING"
2205 _ACEOF
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2209 _ACEOF
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_URL "$PACKAGE_URL"
2213 _ACEOF
2216 # Let the site file select an alternate cache file if it wants to.
2217 # Prefer an explicitly selected file to automatically selected ones.
2218 ac_site_file1=NONE
2219 ac_site_file2=NONE
2220 if test -n "$CONFIG_SITE"; then
2221 # We do not want a PATH search for config.site.
2222 case $CONFIG_SITE in #((
2223 -*) ac_site_file1=./$CONFIG_SITE;;
2224 */*) ac_site_file1=$CONFIG_SITE;;
2225 *) ac_site_file1=./$CONFIG_SITE;;
2226 esac
2227 elif test "x$prefix" != xNONE; then
2228 ac_site_file1=$prefix/share/config.site
2229 ac_site_file2=$prefix/etc/config.site
2230 else
2231 ac_site_file1=$ac_default_prefix/share/config.site
2232 ac_site_file2=$ac_default_prefix/etc/config.site
2234 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2236 test "x$ac_site_file" = xNONE && continue
2237 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2239 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2240 sed 's/^/| /' "$ac_site_file" >&5
2241 . "$ac_site_file" \
2242 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 as_fn_error $? "failed to load site script $ac_site_file
2245 See \`config.log' for more details" "$LINENO" 5; }
2247 done
2249 if test -r "$cache_file"; then
2250 # Some versions of bash will fail to source /dev/null (special files
2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2252 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254 $as_echo "$as_me: loading cache $cache_file" >&6;}
2255 case $cache_file in
2256 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2257 *) . "./$cache_file";;
2258 esac
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262 $as_echo "$as_me: creating cache $cache_file" >&6;}
2263 >$cache_file
2266 # Check that the precious variables saved in the cache have kept the same
2267 # value.
2268 ac_cache_corrupted=false
2269 for ac_var in $ac_precious_vars; do
2270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2271 eval ac_new_set=\$ac_env_${ac_var}_set
2272 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2273 eval ac_new_val=\$ac_env_${ac_var}_value
2274 case $ac_old_set,$ac_new_set in
2275 set,)
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2277 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2278 ac_cache_corrupted=: ;;
2279 ,set)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,);;
2285 if test "x$ac_old_val" != "x$ac_new_val"; then
2286 # differences in whitespace do not lead to failure.
2287 ac_old_val_w=`echo x $ac_old_val`
2288 ac_new_val_w=`echo x $ac_new_val`
2289 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2291 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2292 ac_cache_corrupted=:
2293 else
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2295 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2296 eval $ac_var=\$ac_old_val
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2299 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2301 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2302 fi;;
2303 esac
2304 # Pass precious variables to config.status.
2305 if test "$ac_new_set" = set; then
2306 case $ac_new_val in
2307 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2308 *) ac_arg=$ac_var=$ac_new_val ;;
2309 esac
2310 case " $ac_configure_args " in
2311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2312 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2313 esac
2315 done
2316 if $ac_cache_corrupted; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2320 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2321 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323 ## -------------------- ##
2324 ## Main body of script. ##
2325 ## -------------------- ##
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 progname=$0
2341 # if PWD already has a value, it is probably wrong.
2342 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2344 # Export original configure arguments for use by sub-configures.
2345 # Quote arguments with shell meta charatcers.
2346 TOPLEVEL_CONFIGURE_ARGUMENTS=
2347 set -- "$progname" "$@"
2348 for ac_arg
2350 case "$ac_arg" in
2351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2352 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2353 # if the argument is of the form -foo=baz, quote the baz part only
2354 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2355 *) ;;
2356 esac
2357 # Add the quoted argument to the list.
2358 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2359 done
2360 if test "$silent" = yes; then
2361 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2363 # Remove the initial space we just introduced and, as these will be
2364 # expanded by make, quote '$'.
2365 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2368 # Find the build, host, and target systems.
2369 ac_aux_dir=
2370 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2371 if test -f "$ac_dir/install-sh"; then
2372 ac_aux_dir=$ac_dir
2373 ac_install_sh="$ac_aux_dir/install-sh -c"
2374 break
2375 elif test -f "$ac_dir/install.sh"; then
2376 ac_aux_dir=$ac_dir
2377 ac_install_sh="$ac_aux_dir/install.sh -c"
2378 break
2379 elif test -f "$ac_dir/shtool"; then
2380 ac_aux_dir=$ac_dir
2381 ac_install_sh="$ac_aux_dir/shtool install -c"
2382 break
2384 done
2385 if test -z "$ac_aux_dir"; then
2386 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2389 # These three variables are undocumented and unsupported,
2390 # and are intended to be withdrawn in a future Autoconf release.
2391 # They can cause serious problems if a builder's source tree is in a directory
2392 # whose full name contains unusual characters.
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2395 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2398 # Make sure we can run config.sub.
2399 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2400 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2403 $as_echo_n "checking build system type... " >&6; }
2404 if ${ac_cv_build+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 ac_build_alias=$build_alias
2408 test "x$ac_build_alias" = x &&
2409 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2410 test "x$ac_build_alias" = x &&
2411 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2412 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2417 $as_echo "$ac_cv_build" >&6; }
2418 case $ac_cv_build in
2419 *-*-*) ;;
2420 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2421 esac
2422 build=$ac_cv_build
2423 ac_save_IFS=$IFS; IFS='-'
2424 set x $ac_cv_build
2425 shift
2426 build_cpu=$1
2427 build_vendor=$2
2428 shift; shift
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2431 build_os=$*
2432 IFS=$ac_save_IFS
2433 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2436 case ${build_alias} in
2437 "") build_noncanonical=${build} ;;
2438 *) build_noncanonical=${build_alias} ;;
2439 esac
2443 case ${host_alias} in
2444 "") host_noncanonical=${build_noncanonical} ;;
2445 *) host_noncanonical=${host_alias} ;;
2446 esac
2450 case ${target_alias} in
2451 "") target_noncanonical=${host_noncanonical} ;;
2452 *) target_noncanonical=${target_alias} ;;
2453 esac
2458 test "$host_noncanonical" = "$target_noncanonical" &&
2459 test "$program_prefix$program_suffix$program_transform_name" = \
2460 NONENONEs,x,x, &&
2461 program_transform_name=s,y,y,
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2464 $as_echo_n "checking host system type... " >&6; }
2465 if ${ac_cv_host+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 if test "x$host_alias" = x; then
2469 ac_cv_host=$ac_cv_build
2470 else
2471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2477 $as_echo "$ac_cv_host" >&6; }
2478 case $ac_cv_host in
2479 *-*-*) ;;
2480 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2481 esac
2482 host=$ac_cv_host
2483 ac_save_IFS=$IFS; IFS='-'
2484 set x $ac_cv_host
2485 shift
2486 host_cpu=$1
2487 host_vendor=$2
2488 shift; shift
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2491 host_os=$*
2492 IFS=$ac_save_IFS
2493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2497 $as_echo_n "checking target system type... " >&6; }
2498 if ${ac_cv_target+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 if test "x$target_alias" = x; then
2502 ac_cv_target=$ac_cv_host
2503 else
2504 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2510 $as_echo "$ac_cv_target" >&6; }
2511 case $ac_cv_target in
2512 *-*-*) ;;
2513 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2514 esac
2515 target=$ac_cv_target
2516 ac_save_IFS=$IFS; IFS='-'
2517 set x $ac_cv_target
2518 shift
2519 target_cpu=$1
2520 target_vendor=$2
2521 shift; shift
2522 # Remember, the first character of IFS is used to create $*,
2523 # except with old shells:
2524 target_os=$*
2525 IFS=$ac_save_IFS
2526 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2529 # The aliases save the names the user supplied, while $host etc.
2530 # will get canonicalized.
2531 test -n "$target_alias" &&
2532 test "$program_prefix$program_suffix$program_transform_name" = \
2533 NONENONEs,x,x, &&
2534 program_prefix=${target_alias}-
2536 test "$program_prefix" != NONE &&
2537 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2538 # Use a double $ so make ignores it.
2539 test "$program_suffix" != NONE &&
2540 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2541 # Double any \ or $.
2542 # By default was `s,x,x', remove it if useless.
2543 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2544 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2548 # Get 'install' or 'install-sh' and its variants.
2549 # Find a good install program. We prefer a C program (faster),
2550 # so one script is as good as another. But avoid the broken or
2551 # incompatible versions:
2552 # SysV /etc/install, /usr/sbin/install
2553 # SunOS /usr/etc/install
2554 # IRIX /sbin/install
2555 # AIX /bin/install
2556 # AmigaOS /C/install, which installs bootblocks on floppy discs
2557 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2560 # OS/2's system install, which has a completely different semantic
2561 # ./install, which can be erroneously created by make from ./install.sh.
2562 # Reject install programs that cannot install multiple files.
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2564 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2565 if test -z "$INSTALL"; then
2566 if ${ac_cv_path_install+:} false; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 # Account for people who put trailing slashes in PATH elements.
2575 case $as_dir/ in #((
2576 ./ | .// | /[cC]/* | \
2577 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2578 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2579 /usr/ucb/* ) ;;
2581 # OSF1 and SCO ODT 3.0 have their own names for install.
2582 # Don't use installbsd from OSF since it installs stuff as root
2583 # by default.
2584 for ac_prog in ginstall scoinst install; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2587 if test $ac_prog = install &&
2588 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2589 # AIX install. It has an incompatible calling convention.
2591 elif test $ac_prog = install &&
2592 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2593 # program-specific install script used by HP pwplus--don't use.
2595 else
2596 rm -rf conftest.one conftest.two conftest.dir
2597 echo one > conftest.one
2598 echo two > conftest.two
2599 mkdir conftest.dir
2600 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2601 test -s conftest.one && test -s conftest.two &&
2602 test -s conftest.dir/conftest.one &&
2603 test -s conftest.dir/conftest.two
2604 then
2605 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2606 break 3
2610 done
2611 done
2613 esac
2615 done
2616 IFS=$as_save_IFS
2618 rm -rf conftest.one conftest.two conftest.dir
2621 if test "${ac_cv_path_install+set}" = set; then
2622 INSTALL=$ac_cv_path_install
2623 else
2624 # As a last resort, use the slow shell script. Don't cache a
2625 # value for INSTALL within a source directory, because that will
2626 # break other packages using the cache if that directory is
2627 # removed, or if the value is a relative name.
2628 INSTALL=$ac_install_sh
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2632 $as_echo "$INSTALL" >&6; }
2634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2635 # It thinks the first close brace ends the variable substitution.
2636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2643 $as_echo_n "checking whether ln works... " >&6; }
2644 if ${acx_cv_prog_LN+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 rm -f conftestdata_t
2648 echo >conftestdata_f
2649 if ln conftestdata_f conftestdata_t 2>/dev/null
2650 then
2651 acx_cv_prog_LN=ln
2652 else
2653 acx_cv_prog_LN=no
2655 rm -f conftestdata_f conftestdata_t
2658 if test $acx_cv_prog_LN = no; then
2659 LN="cp"
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2661 $as_echo "no, using $LN" >&6; }
2662 else
2663 LN="$acx_cv_prog_LN"
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2669 $as_echo_n "checking whether ln -s works... " >&6; }
2670 LN_S=$as_ln_s
2671 if test "$LN_S" = "ln -s"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2676 $as_echo "no, using $LN_S" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2680 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2681 if ${ac_cv_path_SED+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2685 for ac_i in 1 2 3 4 5 6 7; do
2686 ac_script="$ac_script$as_nl$ac_script"
2687 done
2688 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2689 { ac_script=; unset ac_script;}
2690 if test -z "$SED"; then
2691 ac_path_SED_found=false
2692 # Loop through the user's path and test for each of PROGNAME-LIST
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_prog in sed gsed; do
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2701 as_fn_executable_p "$ac_path_SED" || continue
2702 # Check for GNU ac_path_SED and select it if it is found.
2703 # Check for GNU $ac_path_SED
2704 case `"$ac_path_SED" --version 2>&1` in
2705 *GNU*)
2706 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2708 ac_count=0
2709 $as_echo_n 0123456789 >"conftest.in"
2710 while :
2712 cat "conftest.in" "conftest.in" >"conftest.tmp"
2713 mv "conftest.tmp" "conftest.in"
2714 cp "conftest.in" "conftest.nl"
2715 $as_echo '' >> "conftest.nl"
2716 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2718 as_fn_arith $ac_count + 1 && ac_count=$as_val
2719 if test $ac_count -gt ${ac_path_SED_max-0}; then
2720 # Best one so far, save it but keep looking for a better one
2721 ac_cv_path_SED="$ac_path_SED"
2722 ac_path_SED_max=$ac_count
2724 # 10*(2^10) chars as input seems more than enough
2725 test $ac_count -gt 10 && break
2726 done
2727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2728 esac
2730 $ac_path_SED_found && break 3
2731 done
2732 done
2733 done
2734 IFS=$as_save_IFS
2735 if test -z "$ac_cv_path_SED"; then
2736 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2738 else
2739 ac_cv_path_SED=$SED
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2744 $as_echo "$ac_cv_path_SED" >&6; }
2745 SED="$ac_cv_path_SED"
2746 rm -f conftest.sed
2748 for ac_prog in gawk mawk nawk awk
2750 # Extract the first word of "$ac_prog", so it can be a program name with args.
2751 set dummy $ac_prog; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_AWK+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test -n "$AWK"; then
2758 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_AWK="$ac_prog"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2771 done
2772 done
2773 IFS=$as_save_IFS
2777 AWK=$ac_cv_prog_AWK
2778 if test -n "$AWK"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2780 $as_echo "$AWK" >&6; }
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2787 test -n "$AWK" && break
2788 done
2791 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2793 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2794 # a relative path.
2795 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2796 INSTALL="${srcpwd}/install-sh -c"
2799 # Set srcdir to "." if that's what it is.
2800 # This is important for multilib support.
2801 pwd=`${PWDCMD-pwd}`
2802 if test "${pwd}" = "${srcpwd}" ; then
2803 srcdir=.
2806 topsrcdir=$srcpwd
2808 extra_host_args=
2810 ### To add a new directory to the tree, first choose whether it is a target
2811 ### or a host dependent tool. Then put it into the appropriate list
2812 ### (library or tools, host or target), doing a dependency sort.
2814 # Subdirs will be configured in the order listed in build_configdirs,
2815 # configdirs, or target_configdirs; see the serialization section below.
2817 # Dependency sorting is only needed when *configuration* must be done in
2818 # a particular order. In all cases a dependency should be specified in
2819 # the Makefile, whether or not it's implicitly specified here.
2821 # Double entries in build_configdirs, configdirs, or target_configdirs may
2822 # cause circular dependencies and break everything horribly.
2824 # these library is used by various programs built for the build
2825 # environment
2827 build_libs="build-libiberty build-libcpp"
2829 # these tools are built for the build environment
2830 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2832 # these libraries are used by various programs built for the host environment
2834 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2836 # these tools are built for the host environment
2837 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2838 # know that we are building the simulator.
2839 # binutils, gas and ld appear in that order because it makes sense to run
2840 # "make check" in that particular order.
2841 # If --enable-gold is used, "gold" may replace "ld".
2842 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 gm2tools gotools c++tools"
2844 # these libraries are built for the target environment, and are built after
2845 # the host libraries and the host tools (which may be a cross compiler)
2846 # Note that libiberty is not a target library.
2847 target_libraries="target-libgcc \
2848 target-libbacktrace \
2849 target-libgloss \
2850 target-newlib \
2851 target-libgomp \
2852 target-libatomic \
2853 target-libitm \
2854 target-libstdc++-v3 \
2855 target-libsanitizer \
2856 target-libvtv \
2857 target-libssp \
2858 target-libquadmath \
2859 target-libgfortran \
2860 target-libffi \
2861 target-libobjc \
2862 target-libada \
2863 target-libgm2 \
2864 target-libgo \
2865 target-libgrust \
2866 target-libphobos \
2867 target-zlib"
2869 # these tools are built using the target libraries, and are intended to
2870 # run only in the target environment
2872 # note: any program that *uses* libraries that are in the "target_libraries"
2873 # list belongs in this list.
2875 target_tools="target-rda"
2877 ################################################################################
2879 ## All tools belong in one of the four categories, and are assigned above
2880 ## We assign ${configdirs} this way to remove all embedded newlines. This
2881 ## is important because configure will choke if they ever get through.
2882 ## ${configdirs} is directories we build using the host tools.
2883 ## ${target_configdirs} is directories we build using the target tools.
2884 configdirs=`echo ${host_libs} ${host_tools}`
2885 target_configdirs=`echo ${target_libraries} ${target_tools}`
2886 build_configdirs=`echo ${build_libs} ${build_tools}`
2890 ################################################################################
2892 srcname="gnu development package"
2894 # This gets set non-empty for some net releases of packages.
2895 appdirs=""
2897 # Define is_cross_compiler to save on calls to 'test'.
2898 is_cross_compiler=
2899 if test x"${host}" = x"${target}" ; then
2900 is_cross_compiler=no
2901 else
2902 is_cross_compiler=yes
2905 # Find the build and target subdir names.
2907 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2908 # have matching libraries, they should use host libraries: Makefile.tpl
2909 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2910 # However, they still use the build modules, because the corresponding
2911 # host modules (e.g. bison) are only built for the host when bootstrap
2912 # finishes. So:
2913 # - build_subdir is where we find build modules, and never changes.
2914 # - build_libsubdir is where we find build libraries, and can be overridden.
2916 # Prefix 'build-' so this never conflicts with target_subdir.
2917 build_subdir="build-${build_noncanonical}"
2919 # Check whether --with-build-libsubdir was given.
2920 if test "${with_build_libsubdir+set}" = set; then :
2921 withval=$with_build_libsubdir; build_libsubdir="$withval"
2922 else
2923 build_libsubdir="$build_subdir"
2926 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2927 if ( test $srcdir = . && test -d gcc ) \
2928 || test -d $srcdir/../host-${host_noncanonical}; then
2929 host_subdir="host-${host_noncanonical}"
2930 else
2931 host_subdir=.
2933 # No prefix.
2934 target_subdir=${target_noncanonical}
2936 # Be sure to cover against remnants of an in-tree build.
2937 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2938 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2939 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2942 # Skipdirs are removed silently.
2943 skipdirs=
2944 # Noconfigdirs are removed loudly.
2945 noconfigdirs=""
2947 use_gnu_ld=
2948 # Make sure we don't let GNU ld be added if we didn't want it.
2949 if test x$with_gnu_ld = xno ; then
2950 use_gnu_ld=no
2951 noconfigdirs="$noconfigdirs ld gold"
2954 use_gnu_as=
2955 # Make sure we don't let GNU as be added if we didn't want it.
2956 if test x$with_gnu_as = xno ; then
2957 use_gnu_as=no
2958 noconfigdirs="$noconfigdirs gas"
2961 use_included_zlib=
2963 # Check whether --with-system-zlib was given.
2964 if test "${with_system_zlib+set}" = set; then :
2965 withval=$with_system_zlib;
2968 # Make sure we don't let ZLIB be added if we didn't want it.
2969 if test x$with_system_zlib = xyes ; then
2970 use_included_zlib=no
2971 noconfigdirs="$noconfigdirs zlib"
2974 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2975 # is provided.
2976 if test x$with_system_readline = xyes ; then
2977 noconfigdirs="$noconfigdirs readline"
2981 # Check whether --with-zstd was given.
2982 if test "${with_zstd+set}" = set; then :
2983 withval=$with_zstd;
2987 # some tools are so dependent upon X11 that if we're not building with X,
2988 # it's not even worth trying to configure, much less build, that tool.
2990 case ${with_x} in
2991 yes | "") ;; # the default value for this tree is that X11 is available
2993 skipdirs="${skipdirs} tk itcl libgui"
2994 # We won't be able to build gdbtk without X.
2995 enable_gdbtk=no
2997 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2998 esac
3000 # Some are only suitable for cross toolchains.
3001 # Remove these if host=target.
3002 cross_only="target-libgloss target-newlib target-opcodes"
3004 case $is_cross_compiler in
3005 no) skipdirs="${skipdirs} ${cross_only}" ;;
3006 esac
3008 # If both --with-headers and --with-libs are specified, default to
3009 # --without-newlib.
3010 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3011 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3012 if test x"${with_newlib}" = x ; then
3013 with_newlib=no
3017 # Recognize --with-newlib/--without-newlib.
3018 case ${with_newlib} in
3019 no) skipdirs="${skipdirs} target-newlib" ;;
3020 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3021 esac
3023 # Check whether --enable-as-accelerator-for was given.
3024 if test "${enable_as_accelerator_for+set}" = set; then :
3025 enableval=$enable_as_accelerator_for;
3029 # Check whether --enable-offload-targets was given.
3030 if test "${enable_offload_targets+set}" = set; then :
3031 enableval=$enable_offload_targets;
3032 if test x"$enable_offload_targets" = x; then
3033 as_fn_error $? "no offload targets specified" "$LINENO" 5
3036 else
3037 enable_offload_targets=
3041 # Check whether --enable-offload-defaulted was given.
3042 if test "${enable_offload_defaulted+set}" = set; then :
3043 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3044 else
3045 enable_offload_defaulted=
3049 # Handle --enable-gold, --enable-ld.
3050 # --disable-gold [--enable-ld]
3051 # Build only ld. Default option.
3052 # --enable-gold [--enable-ld]
3053 # Build both gold and ld. Install gold as "ld.gold", install ld
3054 # as "ld.bfd" and "ld".
3055 # --enable-gold=default [--enable-ld]
3056 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3057 # install ld as "ld.bfd".
3058 # --enable-gold[=default] --disable-ld
3059 # Build only gold, which is then installed as both "ld.gold" and "ld".
3060 # --enable-gold --enable-ld=default
3061 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3062 # and ld.bfd).
3063 # In other words, ld is default
3064 # --enable-gold=default --enable-ld=default
3065 # Error.
3067 default_ld=
3068 # Check whether --enable-gold was given.
3069 if test "${enable_gold+set}" = set; then :
3070 enableval=$enable_gold; ENABLE_GOLD=$enableval
3071 else
3072 ENABLE_GOLD=no
3075 case "${ENABLE_GOLD}" in
3076 yes|default)
3077 # Check for ELF target.
3078 is_elf=no
3079 case "${target}" in
3080 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3081 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3082 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3083 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3084 case "${target}" in
3085 *-*-linux*aout* | *-*-linux*oldld*)
3088 is_elf=yes
3090 esac
3091 esac
3093 if test "$is_elf" = "yes"; then
3094 # Check for target supported by gold.
3095 case "${target}" in
3096 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3097 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3098 configdirs="$configdirs gold"
3099 if test x${ENABLE_GOLD} = xdefault; then
3100 default_ld=gold
3102 ENABLE_GOLD=yes
3104 esac
3110 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3112 esac
3114 # Check whether --enable-ld was given.
3115 if test "${enable_ld+set}" = set; then :
3116 enableval=$enable_ld; ENABLE_LD=$enableval
3117 else
3118 ENABLE_LD=yes
3122 case "${ENABLE_LD}" in
3123 default)
3124 if test x${default_ld} != x; then
3125 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3128 yes)
3131 if test x${ENABLE_GOLD} != xyes; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3133 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3135 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3138 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3140 esac
3142 # Check whether --enable-gprofng was given.
3143 if test "${enable_gprofng+set}" = set; then :
3144 enableval=$enable_gprofng; enable_gprofng=$enableval
3145 else
3146 enable_gprofng=yes
3149 if test "$enable_gprofng" = "yes"; then
3150 case "${target}" in
3151 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3152 configdirs="$configdirs gprofng"
3154 esac
3158 # PR gas/19109
3159 # Decide the default method for compressing debug sections.
3160 # Provide a configure time option to override our default.
3161 # Check whether --enable-compressed_debug_sections was given.
3162 if test "${enable_compressed_debug_sections+set}" = set; then :
3163 enableval=$enable_compressed_debug_sections;
3164 if test x"$enable_compressed_debug_sections" = xyes; then
3165 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3168 else
3169 enable_compressed_debug_sections=
3173 # Select default compression algorithm.
3174 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3175 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3176 enableval=$enable_default_compressed_debug_sections_algorithm;
3177 else
3178 default_compressed_debug_sections_algorithm=
3182 # Configure extra directories which are host specific
3184 case "${host}" in
3185 *-cygwin*)
3186 configdirs="$configdirs libtermcap" ;;
3187 esac
3189 # A target can indicate whether a language isn't supported for some reason.
3190 # Only spaces may be used in this macro; not newlines or tabs.
3191 unsupported_languages=
3193 # Remove more programs from consideration, based on the host or
3194 # target this usually means that a port of the program doesn't
3195 # exist yet.
3197 case "${host}" in
3198 i[3456789]86-*-msdosdjgpp*)
3199 noconfigdirs="$noconfigdirs tcl tk itcl"
3201 esac
3203 # Default to --disable-year2038 until we can handle differences between
3204 # projects that use gnulib (which understands year 2038) and projects that
3205 # do not (like BFD).
3206 # Check whether --enable-year2038 was given.
3207 if test "${enable_year2038+set}" = set; then :
3208 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3209 else
3210 ENABLE_YEAR2038=no
3213 enable_year2038=
3214 if test "${ENABLE_YEAR2038}" = "no" ; then
3215 enable_year2038=no
3218 # Check whether --enable-libquadmath was given.
3219 if test "${enable_libquadmath+set}" = set; then :
3220 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3221 else
3222 ENABLE_LIBQUADMATH=yes
3225 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3226 noconfigdirs="$noconfigdirs target-libquadmath"
3230 # Check whether --enable-libquadmath-support was given.
3231 if test "${enable_libquadmath_support+set}" = set; then :
3232 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3233 else
3234 ENABLE_LIBQUADMATH_SUPPORT=yes
3237 enable_libquadmath_support=
3238 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3239 enable_libquadmath_support=no
3243 # Check whether --enable-libada was given.
3244 if test "${enable_libada+set}" = set; then :
3245 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3246 else
3247 ENABLE_LIBADA=yes
3250 if test "${ENABLE_LIBADA}" != "yes" ; then
3251 noconfigdirs="$noconfigdirs gnattools"
3254 # Check whether --enable-libgm2 was given.
3255 if test "${enable_libgm2+set}" = set; then :
3256 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3257 else
3258 ENABLE_LIBGM2=no
3261 if test "${ENABLE_LIBGM2}" != "yes" ; then
3262 noconfigdirs="$noconfigdirs gm2tools"
3265 # Check whether --enable-libssp was given.
3266 if test "${enable_libssp+set}" = set; then :
3267 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3268 else
3269 ENABLE_LIBSSP=yes
3273 # Check whether --enable-libstdcxx was given.
3274 if test "${enable_libstdcxx+set}" = set; then :
3275 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3276 else
3277 ENABLE_LIBSTDCXX=default
3280 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3281 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3284 # Enable libgomp by default on hosted POSIX systems, and a few others.
3285 if test x$enable_libgomp = x ; then
3286 case "${target}" in
3287 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3289 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3291 *-*-solaris2* | *-*-hpux11*)
3293 *-*-darwin* | *-*-aix*)
3295 nvptx*-*-* | amdgcn*-*-*)
3298 noconfigdirs="$noconfigdirs target-libgomp"
3300 esac
3303 # Disable libatomic on unsupported systems.
3304 if test -d ${srcdir}/libatomic; then
3305 if test x$enable_libatomic = x; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3307 $as_echo_n "checking for libatomic support... " >&6; }
3308 if (srcdir=${srcdir}/libatomic; \
3309 . ${srcdir}/configure.tgt; \
3310 test -n "$UNSUPPORTED")
3311 then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 noconfigdirs="$noconfigdirs target-libatomic"
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3322 # Disable libitm on unsupported systems.
3323 if test -d ${srcdir}/libitm; then
3324 if test x$enable_libitm = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3326 $as_echo_n "checking for libitm support... " >&6; }
3327 if (srcdir=${srcdir}/libitm; \
3328 . ${srcdir}/configure.tgt; \
3329 test -n "$UNSUPPORTED")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libitm"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3341 # Disable libsanitizer on unsupported systems.
3342 if test -d ${srcdir}/libsanitizer; then
3343 if test x$enable_libsanitizer = x; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3345 $as_echo_n "checking for libsanitizer support... " >&6; }
3346 if (srcdir=${srcdir}/libsanitizer; \
3347 . ${srcdir}/configure.tgt; \
3348 test -n "$UNSUPPORTED")
3349 then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 noconfigdirs="$noconfigdirs target-libsanitizer"
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3360 # Disable libvtv on unsupported systems.
3361 if test -d ${srcdir}/libvtv; then
3362 if test x$enable_libvtv = x; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3364 $as_echo_n "checking for libvtv support... " >&6; }
3365 if (srcdir=${srcdir}/libvtv; \
3366 . ${srcdir}/configure.tgt; \
3367 test "$VTV_SUPPORTED" != "yes")
3368 then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 noconfigdirs="$noconfigdirs target-libvtv"
3372 else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3379 # Disable libquadmath for some systems.
3380 case "${target}" in
3381 avr-*-*)
3382 noconfigdirs="$noconfigdirs target-libquadmath"
3384 # libquadmath is unused on AIX and libquadmath build process use of
3385 # LD_LIBRARY_PATH can break AIX bootstrap.
3386 powerpc-*-aix* | rs6000-*-aix*)
3387 noconfigdirs="$noconfigdirs target-libquadmath"
3389 esac
3391 # Disable libssp for some systems.
3392 case "${target}" in
3393 avr-*-*)
3394 # No hosted I/O support.
3395 noconfigdirs="$noconfigdirs target-libssp"
3397 bpf-*-*)
3398 noconfigdirs="$noconfigdirs target-libssp"
3400 powerpc-*-aix* | rs6000-*-aix*)
3401 noconfigdirs="$noconfigdirs target-libssp"
3403 pru-*-*)
3404 # No hosted I/O support.
3405 noconfigdirs="$noconfigdirs target-libssp"
3407 rl78-*-*)
3408 # libssp uses a misaligned load to trigger a fault, but the RL78
3409 # doesn't fault for those - instead, it gives a build-time error
3410 # for explicit misaligned loads.
3411 noconfigdirs="$noconfigdirs target-libssp"
3413 visium-*-*)
3414 # No hosted I/O support.
3415 noconfigdirs="$noconfigdirs target-libssp"
3417 esac
3419 # Disable libstdc++-v3 for some systems.
3420 # Allow user to override this if they pass --enable-libstdcxx
3421 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3422 case "${target}" in
3423 *-*-vxworks*)
3424 # VxWorks uses the Dinkumware C++ library.
3425 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3427 amdgcn*-*-*)
3428 # Not ported/fails to build when using newlib.
3429 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3431 arm*-wince-pe*)
3432 # the C++ libraries don't build on top of CE's C libraries
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3435 avr-*-*)
3436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3438 bpf-*-*)
3439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3441 ft32-*-*)
3442 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3444 esac
3447 # Disable C++ on systems where it is known to not work.
3448 # For testing, you can override this with --enable-languages=c++.
3449 case ,${enable_languages}, in
3450 *,c++,*)
3453 case "${target}" in
3454 bpf-*-*)
3455 unsupported_languages="$unsupported_languages c++"
3457 esac
3459 esac
3461 # Disable Objc on systems where it is known to not work.
3462 # For testing, you can override this with --enable-languages=objc.
3463 case ,${enable_languages}, in
3464 *,objc,*)
3467 case "${target}" in
3468 bpf-*-*)
3469 unsupported_languages="$unsupported_languages objc"
3471 esac
3473 esac
3475 # Disable D on systems where it is known to not work.
3476 # For testing, you can override this with --enable-languages=d.
3477 case ,${enable_languages}, in
3478 *,d,*)
3481 case "${target}" in
3482 bpf-*-*)
3483 unsupported_languages="$unsupported_languages d"
3485 esac
3487 esac
3489 # Disable libphobos on unsupported systems.
3490 # For testing, you can override this with --enable-libphobos.
3491 if test -d ${srcdir}/libphobos; then
3492 if test x$enable_libphobos = x; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3494 $as_echo_n "checking for libphobos support... " >&6; }
3495 if (srcdir=${srcdir}/libphobos; \
3496 . ${srcdir}/configure.tgt; \
3497 test "$LIBPHOBOS_SUPPORTED" != "yes")
3498 then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 noconfigdirs="$noconfigdirs target-libphobos"
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504 $as_echo "yes" >&6; }
3509 # Disable Fortran for some systems.
3510 case "${target}" in
3511 mmix-*-*)
3512 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3513 unsupported_languages="$unsupported_languages fortran"
3515 bpf-*-*)
3516 unsupported_languages="$unsupported_languages fortran"
3518 esac
3520 # Disable libffi for some systems.
3521 case "${target}" in
3522 powerpc-*-darwin*)
3524 i[3456789]86-*-darwin*)
3526 x86_64-*-darwin[912]*)
3528 *-*-darwin*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3531 *-*-netware*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3534 *-*-phoenix*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3537 *-*-rtems*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3540 *-*-tpf*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3543 *-*-uclinux*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3546 *-*-vxworks*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3549 aarch64*-*-freebsd*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3552 alpha*-*-*vms*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3555 arm*-*-freebsd*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3558 arm-wince-pe)
3559 noconfigdirs="$noconfigdirs target-libffi"
3561 arm*-*-symbianelf*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3564 bpf-*-*)
3565 noconfigdirs="$noconfigdirs target-libffi"
3567 cris-*-* | crisv32-*-*)
3568 case "${target}" in
3569 *-*-linux*)
3571 *) # See PR46792 regarding target-libffi.
3572 noconfigdirs="$noconfigdirs target-libffi";;
3573 esac
3575 hppa*64*-*-hpux*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3578 hppa*-hp-hpux11*)
3580 hppa*-*-hpux*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3583 ia64*-*-*vms*)
3584 noconfigdirs="$noconfigdirs target-libffi"
3586 i[3456789]86-w64-mingw*)
3587 noconfigdirs="$noconfigdirs target-libffi"
3589 i[3456789]86-*-mingw*)
3590 noconfigdirs="$noconfigdirs target-libffi"
3592 x86_64-*-mingw*)
3593 noconfigdirs="$noconfigdirs target-libffi"
3595 mmix-*-*)
3596 noconfigdirs="$noconfigdirs target-libffi"
3598 powerpc-*-aix*)
3600 rs6000-*-aix*)
3602 ft32-*-*)
3603 noconfigdirs="$noconfigdirs target-libffi"
3605 *-*-lynxos*)
3606 noconfigdirs="$noconfigdirs target-libffi"
3608 esac
3610 # Disable the go frontend on systems where it is known to not work. Please keep
3611 # this in sync with contrib/config-list.mk.
3612 case "${target}" in
3613 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3614 unsupported_languages="$unsupported_languages go"
3616 esac
3618 # Only allow gdbserver on some systems.
3619 if test -d ${srcdir}/gdbserver; then
3620 if test x$enable_gdbserver = x; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3622 $as_echo_n "checking for gdbserver support... " >&6; }
3623 if (srcdir=${srcdir}/gdbserver; \
3624 . ${srcdir}/configure.srv; \
3625 test -n "$UNSUPPORTED")
3626 then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 noconfigdirs="$noconfigdirs gdbserver"
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3637 # Disable libgo for some systems where it is known to not work.
3638 # For testing, you can easily override this with --enable-libgo.
3639 if test x$enable_libgo = x; then
3640 case "${target}" in
3641 *-*-darwin*)
3642 # PR 46986
3643 noconfigdirs="$noconfigdirs target-libgo"
3645 *-*-cygwin* | *-*-mingw*)
3646 noconfigdirs="$noconfigdirs target-libgo"
3648 bpf-*-*)
3649 noconfigdirs="$noconfigdirs target-libgo"
3651 esac
3654 # Default libgloss CPU subdirectory.
3655 libgloss_dir="$target_cpu"
3657 case "${target}" in
3658 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3659 libgloss_dir=wince
3661 aarch64*-*-* )
3662 libgloss_dir=aarch64
3664 arm*-*-*)
3665 libgloss_dir=arm
3667 cris-*-* | crisv32-*-*)
3668 libgloss_dir=cris
3670 hppa*-*-*)
3671 libgloss_dir=pa
3673 i[3456789]86-*-*)
3674 libgloss_dir=i386
3676 loongarch*-*-*)
3677 libgloss_dir=loongarch
3679 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3680 libgloss_dir=m68hc11
3682 m68*-*-* | fido-*-*)
3683 libgloss_dir=m68k
3685 mips*-*-*)
3686 libgloss_dir=mips
3688 powerpc*-*-*)
3689 libgloss_dir=rs6000
3691 pru-*-*)
3692 libgloss_dir=pru
3694 sparc*-*-*)
3695 libgloss_dir=sparc
3697 esac
3699 # Disable newlib and libgloss for various target OSes.
3700 case "${target}" in
3701 alpha*-dec-osf*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 i[3456789]86-*-linux*)
3705 # This section makes it possible to build newlib natively on linux.
3706 # If we are using a cross compiler then don't configure newlib.
3707 if test x${is_cross_compiler} != xno ; then
3708 noconfigdirs="$noconfigdirs target-newlib"
3710 noconfigdirs="$noconfigdirs target-libgloss"
3711 # If we are not using a cross compiler, do configure newlib.
3712 # Note however, that newlib will only be configured in this situation
3713 # if the --with-newlib option has been given, because otherwise
3714 # 'target-newlib' will appear in skipdirs.
3716 i[3456789]86-*-rdos*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 sparc-*-sunos4*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 bpf-*-*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 *-*-aix*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 *-*-beos*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 *-*-chorusos)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 *-*-dragonfly*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 *-*-freebsd*)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3743 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3744 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 *-*-lynxos*)
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 *-*-mingw*)
3750 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3752 *-*-netbsd*)
3753 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 *-*-netware*)
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 *-*-tpf*)
3759 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761 *-*-uclinux*)
3762 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 *-*-vxworks*)
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3767 esac
3769 case "${target}" in
3770 *-*-chorusos)
3772 aarch64-*-darwin*)
3773 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3774 noconfigdirs="$noconfigdirs sim target-rda"
3776 amdgcn*-*-*)
3778 arm-*-darwin*)
3779 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3780 noconfigdirs="$noconfigdirs sim target-rda"
3782 powerpc-*-darwin*)
3783 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3784 noconfigdirs="$noconfigdirs sim target-rda"
3786 i[3456789]86-*-darwin*)
3787 noconfigdirs="$noconfigdirs ld gprof"
3788 noconfigdirs="$noconfigdirs sim target-rda"
3790 x86_64-*-darwin[912]*)
3791 noconfigdirs="$noconfigdirs ld gas gprof"
3792 noconfigdirs="$noconfigdirs sim target-rda"
3794 *-*-darwin*)
3795 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3796 noconfigdirs="$noconfigdirs sim target-rda"
3798 *-*-dragonfly*)
3800 *-*-freebsd*)
3801 if test "x$with_gmp" = x \
3802 && ! test -d ${srcdir}/gmp \
3803 && test -f /usr/local/include/gmp.h; then
3804 with_gmp=/usr/local
3807 *-*-kaos*)
3808 # Remove unsupported stuff on all kaOS configurations.
3809 noconfigdirs="$noconfigdirs target-libgloss"
3811 *-*-netbsd*)
3813 *-*-netware*)
3815 *-*-phoenix*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3818 *-*-rtems*)
3819 noconfigdirs="$noconfigdirs target-libgloss"
3821 # The tpf target doesn't support gdb yet.
3822 *-*-tpf*)
3823 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3825 *-*-uclinux*)
3826 noconfigdirs="$noconfigdirs target-rda"
3828 *-*-vxworks*)
3830 alpha*-dec-osf*)
3831 # ld works, but does not support shared libraries.
3832 # gas doesn't generate exception information.
3833 noconfigdirs="$noconfigdirs gas ld"
3835 alpha*-*-*vms*)
3836 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3838 alpha*-*-*)
3839 # newlib is not 64 bit ready
3840 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3842 bpf-*-*)
3843 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3845 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3846 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3848 arc*-*-*)
3849 noconfigdirs="$noconfigdirs sim"
3851 arm-*-pe*)
3852 noconfigdirs="$noconfigdirs target-libgloss"
3854 arm-*-riscix*)
3855 noconfigdirs="$noconfigdirs ld target-libgloss"
3857 avr-*-*)
3858 if test x${with_avrlibc} != xno; then
3859 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3862 c4x-*-* | tic4x-*-*)
3863 noconfigdirs="$noconfigdirs target-libgloss"
3865 tic54x-*-*)
3866 noconfigdirs="$noconfigdirs target-libgloss gdb"
3868 d10v-*-*)
3869 noconfigdirs="$noconfigdirs target-libgloss"
3871 d30v-*-*)
3872 noconfigdirs="$noconfigdirs gdb"
3874 fr30-*-elf*)
3875 noconfigdirs="$noconfigdirs gdb"
3877 ft32-*-*)
3878 noconfigdirs="$noconfigdirs target-rda gprof"
3880 moxie-*-*)
3881 noconfigdirs="$noconfigdirs"
3883 h8300*-*-*)
3884 noconfigdirs="$noconfigdirs target-libgloss"
3886 h8500-*-*)
3887 noconfigdirs="$noconfigdirs target-libgloss"
3889 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3891 hppa*64*-*-hpux*)
3892 noconfigdirs="$noconfigdirs gdb"
3894 hppa*-*-hpux11*)
3895 noconfigdirs="$noconfigdirs gdb ld"
3897 hppa*64*-*-linux*)
3899 hppa*-*-linux*)
3901 hppa*-*-*elf* | \
3902 hppa*-*-lites* | \
3903 hppa*-*-openbsd* | \
3904 hppa*64*-*-*)
3906 hppa*-*-pro*)
3908 hppa*-*-*)
3909 noconfigdirs="$noconfigdirs ld"
3911 i960-*-*)
3912 noconfigdirs="$noconfigdirs gdb"
3914 ia64*-*-elf*)
3915 # No gdb support yet.
3916 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3918 ia64*-**-hpux*)
3919 # No ld support yet.
3920 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3922 ia64*-*-*vms*)
3923 # No ld support yet.
3924 noconfigdirs="$noconfigdirs libgui itcl ld"
3926 i[3456789]86-w64-mingw*)
3928 i[3456789]86-*-mingw*)
3929 target_configdirs="$target_configdirs target-winsup"
3931 *-*-cygwin*)
3932 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3933 noconfigdirs="$noconfigdirs target-libgloss"
3934 # always build newlib if winsup directory is present.
3935 if test -d "$srcdir/winsup/cygwin"; then
3936 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3937 elif test -d "$srcdir/newlib"; then
3938 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3941 i[3456789]86-*-pe)
3942 noconfigdirs="$noconfigdirs target-libgloss"
3944 i[3456789]86-*-sco3.2v5*)
3945 # The linker does not yet know about weak symbols in COFF,
3946 # and is not configured to handle mixed ELF and COFF.
3947 noconfigdirs="$noconfigdirs ld target-libgloss"
3949 i[3456789]86-*-sco*)
3950 noconfigdirs="$noconfigdirs gprof target-libgloss"
3952 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3953 noconfigdirs="$noconfigdirs target-libgloss"
3955 i[3456789]86-*-sysv4*)
3956 noconfigdirs="$noconfigdirs target-libgloss"
3958 i[3456789]86-*-beos*)
3959 noconfigdirs="$noconfigdirs gdb"
3961 i[3456789]86-*-rdos*)
3962 noconfigdirs="$noconfigdirs gdb"
3964 mmix-*-*)
3965 noconfigdirs="$noconfigdirs gdb"
3967 mt-*-*)
3968 noconfigdirs="$noconfigdirs sim"
3970 nfp-*-*)
3971 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3972 noconfigdirs="$noconfigdirs $target_libraries"
3974 pdp11-*-*)
3975 noconfigdirs="$noconfigdirs gdb gprof"
3977 powerpc-*-aix*)
3978 # copied from rs6000-*-* entry
3979 noconfigdirs="$noconfigdirs gprof"
3981 powerpc*-*-winnt* | powerpc*-*-pe*)
3982 target_configdirs="$target_configdirs target-winsup"
3983 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3984 # always build newlib.
3985 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3987 # This is temporary until we can link against shared libraries
3988 powerpcle-*-solaris*)
3989 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3991 powerpc-*-beos*)
3992 noconfigdirs="$noconfigdirs gdb"
3994 rs6000-*-lynxos*)
3995 noconfigdirs="$noconfigdirs gprof"
3997 rs6000-*-aix*)
3998 noconfigdirs="$noconfigdirs gprof"
4000 rs6000-*-*)
4001 noconfigdirs="$noconfigdirs gprof"
4003 m68k-apollo-*)
4004 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4006 microblaze*)
4007 noconfigdirs="$noconfigdirs gprof"
4009 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4010 if test x$with_newlib = xyes; then
4011 noconfigdirs="$noconfigdirs gprof"
4014 mips*-*-irix5*)
4015 noconfigdirs="$noconfigdirs gprof target-libgloss"
4017 mips*-*-irix6*)
4018 noconfigdirs="$noconfigdirs gprof target-libgloss"
4020 mips*-*-bsd*)
4021 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4023 mips*-*-linux*)
4025 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4026 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4027 noconfigdirs="$noconfigdirs ld gas gprof"
4029 mips*-*-*)
4030 noconfigdirs="$noconfigdirs gprof"
4032 nvptx*-*-*)
4033 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4035 sh-*-*)
4036 case "${target}" in
4037 sh*-*-elf)
4040 noconfigdirs="$noconfigdirs target-libgloss" ;;
4041 esac
4043 sparc-*-sunos4*)
4044 if test x${is_cross_compiler} = xno ; then
4045 use_gnu_ld=no
4048 tic6x-*-*)
4049 noconfigdirs="$noconfigdirs sim"
4051 tilepro*-*-* | tilegx*-*-*)
4052 noconfigdirs="$noconfigdirs sim"
4054 v810-*-*)
4055 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4057 vax-*-*)
4058 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4060 wasm32-*-*)
4061 noconfigdirs="$noconfigdirs ld"
4063 loongarch*-*-linux*)
4065 loongarch*-*-*)
4066 noconfigdirs="$noconfigdirs gprof"
4068 esac
4070 # If we aren't building newlib, then don't build libgloss, since libgloss
4071 # depends upon some newlib header files.
4072 case "${noconfigdirs}" in
4073 *target-libgloss*) ;;
4074 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4075 esac
4077 # Work in distributions that contain no compiler tools, like Autoconf.
4078 host_makefile_frag=/dev/null
4079 if test -d ${srcdir}/config ; then
4080 case "${host}" in
4081 i[3456789]86-*-msdosdjgpp*)
4082 host_makefile_frag="config/mh-djgpp"
4084 *-cygwin*)
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4087 $as_echo_n "checking to see if cat works as expected... " >&6; }
4088 echo a >cygwin-cat-check
4089 if test `cat cygwin-cat-check` = a ; then
4090 rm cygwin-cat-check
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092 $as_echo "yes" >&6; }
4093 else
4094 rm cygwin-cat-check
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 as_fn_error $? "The cat command does not ignore carriage return characters.
4098 Please either mount the build directory in binary mode or run the following
4099 commands before running any configure script:
4100 set -o igncr
4101 export SHELLOPTS
4102 " "$LINENO" 5
4105 host_makefile_frag="config/mh-cygwin"
4107 *-mingw*)
4108 host_makefile_frag="config/mh-mingw"
4110 alpha*-linux*)
4111 host_makefile_frag="config/mh-alpha-linux"
4113 hppa*-hp-hpux*)
4114 host_makefile_frag="config/mh-pa"
4116 hppa*-*)
4117 host_makefile_frag="config/mh-pa"
4119 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4120 host_makefile_frag="config/mh-darwin"
4122 powerpc-*-aix*)
4123 host_makefile_frag="config/mh-ppc-aix"
4125 rs6000-*-aix*)
4126 host_makefile_frag="config/mh-ppc-aix"
4128 esac
4131 if test "${build}" != "${host}" ; then
4132 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4133 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4134 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4135 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4136 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4137 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4138 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4139 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4140 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4141 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4142 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4143 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4144 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4145 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4146 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4147 else
4148 AR_FOR_BUILD="\$(AR)"
4149 AS_FOR_BUILD="\$(AS)"
4150 CC_FOR_BUILD="\$(CC)"
4151 CXX_FOR_BUILD="\$(CXX)"
4152 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4153 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4154 GOC_FOR_BUILD="\$(GOC)"
4155 GDC_FOR_BUILD="\$(GDC)"
4156 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4157 LD_FOR_BUILD="\$(LD)"
4158 NM_FOR_BUILD="\$(NM)"
4159 RANLIB_FOR_BUILD="\$(RANLIB)"
4160 WINDRES_FOR_BUILD="\$(WINDRES)"
4161 WINDMC_FOR_BUILD="\$(WINDMC)"
4164 ac_ext=c
4165 ac_cpp='$CPP $CPPFLAGS'
4166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_CC+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -n "$CC"; then
4178 ac_cv_prog_CC="$CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4193 IFS=$as_save_IFS
4197 CC=$ac_cv_prog_CC
4198 if test -n "$CC"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4200 $as_echo "$CC" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4208 if test -z "$ac_cv_prog_CC"; then
4209 ac_ct_CC=$CC
4210 # Extract the first word of "gcc", so it can be a program name with args.
4211 set dummy gcc; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -n "$ac_ct_CC"; then
4218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_ac_ct_CC="gcc"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4231 done
4232 done
4233 IFS=$as_save_IFS
4237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4238 if test -n "$ac_ct_CC"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4240 $as_echo "$ac_ct_CC" >&6; }
4241 else
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4246 if test "x$ac_ct_CC" = x; then
4247 CC=""
4248 else
4249 case $cross_compiling:$ac_tool_warned in
4250 yes:)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253 ac_tool_warned=yes ;;
4254 esac
4255 CC=$ac_ct_CC
4257 else
4258 CC="$ac_cv_prog_CC"
4261 if test -z "$CC"; then
4262 if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4264 set dummy ${ac_tool_prefix}cc; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_CC+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_CC="${ac_tool_prefix}cc"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4284 done
4285 done
4286 IFS=$as_save_IFS
4290 CC=$ac_cv_prog_CC
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4302 if test -z "$CC"; then
4303 # Extract the first word of "cc", so it can be a program name with args.
4304 set dummy cc; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_CC+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC="$CC" # Let the user override the test.
4312 else
4313 ac_prog_rejected=no
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4322 ac_prog_rejected=yes
4323 continue
4325 ac_cv_prog_CC="cc"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4333 if test $ac_prog_rejected = yes; then
4334 # We found a bogon in the path, so make sure we never use it.
4335 set dummy $ac_cv_prog_CC
4336 shift
4337 if test $# != 0; then
4338 # We chose a different compiler from the bogus one.
4339 # However, it has the same basename, so the bogon will be chosen
4340 # first if we set CC to just the basename; use the full file name.
4341 shift
4342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4347 CC=$ac_cv_prog_CC
4348 if test -n "$CC"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4350 $as_echo "$CC" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4358 if test -z "$CC"; then
4359 if test -n "$ac_tool_prefix"; then
4360 for ac_prog in cl.exe
4362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_CC+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 CC=$ac_cv_prog_CC
4390 if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392 $as_echo "$CC" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4399 test -n "$CC" && break
4400 done
4402 if test -z "$CC"; then
4403 ac_ct_CC=$CC
4404 for ac_prog in cl.exe
4406 # Extract the first word of "$ac_prog", so it can be a program name with args.
4407 set dummy $ac_prog; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$ac_ct_CC"; then
4414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_ac_ct_CC="$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4427 done
4428 done
4429 IFS=$as_save_IFS
4433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4434 if test -n "$ac_ct_CC"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4436 $as_echo "$ac_ct_CC" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4443 test -n "$ac_ct_CC" && break
4444 done
4446 if test "x$ac_ct_CC" = x; then
4447 CC=""
4448 else
4449 case $cross_compiling:$ac_tool_warned in
4450 yes:)
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4453 ac_tool_warned=yes ;;
4454 esac
4455 CC=$ac_ct_CC
4462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464 as_fn_error $? "no acceptable C compiler found in \$PATH
4465 See \`config.log' for more details" "$LINENO" 5; }
4467 # Provide some information about the compiler.
4468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4469 set X $ac_compile
4470 ac_compiler=$2
4471 for ac_option in --version -v -V -qversion; do
4472 { { ac_try="$ac_compiler $ac_option >&5"
4473 case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4480 ac_status=$?
4481 if test -s conftest.err; then
4482 sed '10a\
4483 ... rest of stderr output deleted ...
4484 10q' conftest.err >conftest.er1
4485 cat conftest.er1 >&5
4487 rm -f conftest.er1 conftest.err
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }
4490 done
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4496 main ()
4500 return 0;
4502 _ACEOF
4503 ac_clean_files_save=$ac_clean_files
4504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4505 # Try to create an executable without -o first, disregard a.out.
4506 # It will help us diagnose broken compilers, and finding out an intuition
4507 # of exeext.
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4509 $as_echo_n "checking whether the C compiler works... " >&6; }
4510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4512 # The possible output files:
4513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4515 ac_rmfiles=
4516 for ac_file in $ac_files
4518 case $ac_file in
4519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4521 esac
4522 done
4523 rm -f $ac_rmfiles
4525 if { { ac_try="$ac_link_default"
4526 case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532 (eval "$ac_link_default") 2>&5
4533 ac_status=$?
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }; then :
4536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4539 # so that the user can short-circuit this test for compilers unknown to
4540 # Autoconf.
4541 for ac_file in $ac_files ''
4543 test -f "$ac_file" || continue
4544 case $ac_file in
4545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4547 [ab].out )
4548 # We found the default executable, but exeext='' is most
4549 # certainly right.
4550 break;;
4551 *.* )
4552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4553 then :; else
4554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556 # We set ac_cv_exeext here because the later test for it is not
4557 # safe: cross compilers may not add the suffix if given an `-o'
4558 # argument, so we may need to know it at that point already.
4559 # Even if this section looks crufty: it has the advantage of
4560 # actually working.
4561 break;;
4563 break;;
4564 esac
4565 done
4566 test "$ac_cv_exeext" = no && ac_cv_exeext=
4568 else
4569 ac_file=''
4571 if test -z "$ac_file"; then :
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 $as_echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error 77 "C compiler cannot create executables
4580 See \`config.log' for more details" "$LINENO" 5; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4583 $as_echo "yes" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4586 $as_echo_n "checking for C compiler default output file name... " >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4588 $as_echo "$ac_file" >&6; }
4589 ac_exeext=$ac_cv_exeext
4591 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4592 ac_clean_files=$ac_clean_files_save
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4594 $as_echo_n "checking for suffix of executables... " >&6; }
4595 if { { ac_try="$ac_link"
4596 case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599 esac
4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601 $as_echo "$ac_try_echo"; } >&5
4602 (eval "$ac_link") 2>&5
4603 ac_status=$?
4604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4605 test $ac_status = 0; }; then :
4606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4608 # work properly (i.e., refer to `conftest.exe'), while it won't with
4609 # `rm'.
4610 for ac_file in conftest.exe conftest conftest.*; do
4611 test -f "$ac_file" || continue
4612 case $ac_file in
4613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4615 break;;
4616 * ) break;;
4617 esac
4618 done
4619 else
4620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4623 See \`config.log' for more details" "$LINENO" 5; }
4625 rm -f conftest conftest$ac_cv_exeext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4627 $as_echo "$ac_cv_exeext" >&6; }
4629 rm -f conftest.$ac_ext
4630 EXEEXT=$ac_cv_exeext
4631 ac_exeext=$EXEEXT
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #include <stdio.h>
4636 main ()
4638 FILE *f = fopen ("conftest.out", "w");
4639 return ferror (f) || fclose (f) != 0;
4642 return 0;
4644 _ACEOF
4645 ac_clean_files="$ac_clean_files conftest.out"
4646 # Check that the compiler produces executables we can run. If not, either
4647 # the compiler is broken, or we cross compile.
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4649 $as_echo_n "checking whether we are cross compiling... " >&6; }
4650 if test "$cross_compiling" != yes; then
4651 { { ac_try="$ac_link"
4652 case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655 esac
4656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4657 $as_echo "$ac_try_echo"; } >&5
4658 (eval "$ac_link") 2>&5
4659 ac_status=$?
4660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4661 test $ac_status = 0; }
4662 if { ac_try='./conftest$ac_cv_exeext'
4663 { { case "(($ac_try" in
4664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665 *) ac_try_echo=$ac_try;;
4666 esac
4667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668 $as_echo "$ac_try_echo"; } >&5
4669 (eval "$ac_try") 2>&5
4670 ac_status=$?
4671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }; }; then
4673 cross_compiling=no
4674 else
4675 if test "$cross_compiling" = maybe; then
4676 cross_compiling=yes
4677 else
4678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 as_fn_error $? "cannot run C compiled programs.
4681 If you meant to cross compile, use \`--host'.
4682 See \`config.log' for more details" "$LINENO" 5; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4687 $as_echo "$cross_compiling" >&6; }
4689 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4690 ac_clean_files=$ac_clean_files_save
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4692 $as_echo_n "checking for suffix of object files... " >&6; }
4693 if ${ac_cv_objext+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 rm -f conftest.o conftest.obj
4708 if { { ac_try="$ac_compile"
4709 case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712 esac
4713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4714 $as_echo "$ac_try_echo"; } >&5
4715 (eval "$ac_compile") 2>&5
4716 ac_status=$?
4717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4718 test $ac_status = 0; }; then :
4719 for ac_file in conftest.o conftest.obj conftest.*; do
4720 test -f "$ac_file" || continue;
4721 case $ac_file in
4722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4724 break;;
4725 esac
4726 done
4727 else
4728 $as_echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4733 as_fn_error $? "cannot compute suffix of object files: cannot compile
4734 See \`config.log' for more details" "$LINENO" 5; }
4736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4739 $as_echo "$ac_cv_objext" >&6; }
4740 OBJEXT=$ac_cv_objext
4741 ac_objext=$OBJEXT
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4743 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4744 if ${ac_cv_c_compiler_gnu+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4751 main ()
4753 #ifndef __GNUC__
4754 choke me
4755 #endif
4758 return 0;
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_compiler_gnu=yes
4763 else
4764 ac_compiler_gnu=no
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4771 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4772 if test $ac_compiler_gnu = yes; then
4773 GCC=yes
4774 else
4775 GCC=
4777 ac_test_CFLAGS=${CFLAGS+set}
4778 ac_save_CFLAGS=$CFLAGS
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4780 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4781 if ${ac_cv_prog_cc_g+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 ac_save_c_werror_flag=$ac_c_werror_flag
4785 ac_c_werror_flag=yes
4786 ac_cv_prog_cc_g=no
4787 CFLAGS="-g"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4792 main ()
4796 return 0;
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_prog_cc_g=yes
4801 else
4802 CFLAGS=""
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4807 main ()
4811 return 0;
4813 _ACEOF
4814 if ac_fn_c_try_compile "$LINENO"; then :
4816 else
4817 ac_c_werror_flag=$ac_save_c_werror_flag
4818 CFLAGS="-g"
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4823 main ()
4827 return 0;
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 ac_cv_prog_cc_g=yes
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 ac_c_werror_flag=$ac_save_c_werror_flag
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4841 $as_echo "$ac_cv_prog_cc_g" >&6; }
4842 if test "$ac_test_CFLAGS" = set; then
4843 CFLAGS=$ac_save_CFLAGS
4844 elif test $ac_cv_prog_cc_g = yes; then
4845 if test "$GCC" = yes; then
4846 CFLAGS="-g -O2"
4847 else
4848 CFLAGS="-g"
4850 else
4851 if test "$GCC" = yes; then
4852 CFLAGS="-O2"
4853 else
4854 CFLAGS=
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4859 if ${ac_cv_prog_cc_c89+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 ac_cv_prog_cc_c89=no
4863 ac_save_CC=$CC
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #include <stdarg.h>
4867 #include <stdio.h>
4868 struct stat;
4869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4870 struct buf { int x; };
4871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4872 static char *e (p, i)
4873 char **p;
4874 int i;
4876 return p[i];
4878 static char *f (char * (*g) (char **, int), char **p, ...)
4880 char *s;
4881 va_list v;
4882 va_start (v,p);
4883 s = g (p, va_arg (v,int));
4884 va_end (v);
4885 return s;
4888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4889 function prototypes and stuff, but not '\xHH' hex character constants.
4890 These don't provoke an error unfortunately, instead are silently treated
4891 as 'x'. The following induces an error, until -std is added to get
4892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4893 array size at least. It's necessary to write '\x00'==0 to get something
4894 that's true only with -std. */
4895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4897 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4898 inside strings and character constants. */
4899 #define FOO(x) 'x'
4900 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4902 int test (int i, double x);
4903 struct s1 {int (*f) (int a);};
4904 struct s2 {int (*f) (double a);};
4905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4906 int argc;
4907 char **argv;
4909 main ()
4911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4913 return 0;
4915 _ACEOF
4916 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4917 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4919 CC="$ac_save_CC $ac_arg"
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_prog_cc_c89=$ac_arg
4923 rm -f core conftest.err conftest.$ac_objext
4924 test "x$ac_cv_prog_cc_c89" != "xno" && break
4925 done
4926 rm -f conftest.$ac_ext
4927 CC=$ac_save_CC
4930 # AC_CACHE_VAL
4931 case "x$ac_cv_prog_cc_c89" in
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4934 $as_echo "none needed" >&6; } ;;
4935 xno)
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4937 $as_echo "unsupported" >&6; } ;;
4939 CC="$CC $ac_cv_prog_cc_c89"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4942 esac
4943 if test "x$ac_cv_prog_cc_c89" != xno; then :
4947 ac_ext=c
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4954 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4955 if ${ac_cv_prog_cc_c99+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 ac_cv_prog_cc_c99=no
4959 ac_save_CC=$CC
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962 #include <stdarg.h>
4963 #include <stdbool.h>
4964 #include <stdlib.h>
4965 #include <wchar.h>
4966 #include <stdio.h>
4968 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4969 #define debug(...) fprintf (stderr, __VA_ARGS__)
4970 #define showlist(...) puts (#__VA_ARGS__)
4971 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4972 static void
4973 test_varargs_macros (void)
4975 int x = 1234;
4976 int y = 5678;
4977 debug ("Flag");
4978 debug ("X = %d\n", x);
4979 showlist (The first, second, and third items.);
4980 report (x>y, "x is %d but y is %d", x, y);
4983 // Check long long types.
4984 #define BIG64 18446744073709551615ull
4985 #define BIG32 4294967295ul
4986 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4987 #if !BIG_OK
4988 your preprocessor is broken;
4989 #endif
4990 #if BIG_OK
4991 #else
4992 your preprocessor is broken;
4993 #endif
4994 static long long int bignum = -9223372036854775807LL;
4995 static unsigned long long int ubignum = BIG64;
4997 struct incomplete_array
4999 int datasize;
5000 double data[];
5003 struct named_init {
5004 int number;
5005 const wchar_t *name;
5006 double average;
5009 typedef const char *ccp;
5011 static inline int
5012 test_restrict (ccp restrict text)
5014 // See if C++-style comments work.
5015 // Iterate through items via the restricted pointer.
5016 // Also check for declarations in for loops.
5017 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5018 continue;
5019 return 0;
5022 // Check varargs and va_copy.
5023 static void
5024 test_varargs (const char *format, ...)
5026 va_list args;
5027 va_start (args, format);
5028 va_list args_copy;
5029 va_copy (args_copy, args);
5031 const char *str;
5032 int number;
5033 float fnumber;
5035 while (*format)
5037 switch (*format++)
5039 case 's': // string
5040 str = va_arg (args_copy, const char *);
5041 break;
5042 case 'd': // int
5043 number = va_arg (args_copy, int);
5044 break;
5045 case 'f': // float
5046 fnumber = va_arg (args_copy, double);
5047 break;
5048 default:
5049 break;
5052 va_end (args_copy);
5053 va_end (args);
5057 main ()
5060 // Check bool.
5061 _Bool success = false;
5063 // Check restrict.
5064 if (test_restrict ("String literal") == 0)
5065 success = true;
5066 char *restrict newvar = "Another string";
5068 // Check varargs.
5069 test_varargs ("s, d' f .", "string", 65, 34.234);
5070 test_varargs_macros ();
5072 // Check flexible array members.
5073 struct incomplete_array *ia =
5074 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5075 ia->datasize = 10;
5076 for (int i = 0; i < ia->datasize; ++i)
5077 ia->data[i] = i * 1.234;
5079 // Check named initializers.
5080 struct named_init ni = {
5081 .number = 34,
5082 .name = L"Test wide string",
5083 .average = 543.34343,
5086 ni.number = 58;
5088 int dynamic_array[ni.number];
5089 dynamic_array[ni.number - 1] = 543;
5091 // work around unused variable warnings
5092 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5093 || dynamic_array[ni.number - 1] != 543);
5096 return 0;
5098 _ACEOF
5099 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5101 CC="$ac_save_CC $ac_arg"
5102 if ac_fn_c_try_compile "$LINENO"; then :
5103 ac_cv_prog_cc_c99=$ac_arg
5105 rm -f core conftest.err conftest.$ac_objext
5106 test "x$ac_cv_prog_cc_c99" != "xno" && break
5107 done
5108 rm -f conftest.$ac_ext
5109 CC=$ac_save_CC
5112 # AC_CACHE_VAL
5113 case "x$ac_cv_prog_cc_c99" in
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5116 $as_echo "none needed" >&6; } ;;
5117 xno)
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5119 $as_echo "unsupported" >&6; } ;;
5121 CC="$CC $ac_cv_prog_cc_c99"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5123 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5124 esac
5125 if test "x$ac_cv_prog_cc_c99" != xno; then :
5130 ac_ext=cpp
5131 ac_cpp='$CXXCPP $CPPFLAGS'
5132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 if test -z "$CXX"; then
5136 if test -n "$CCC"; then
5137 CXX=$CCC
5138 else
5139 if test -n "$ac_tool_prefix"; then
5140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_CXX+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$CXX"; then
5150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5169 CXX=$ac_cv_prog_CXX
5170 if test -n "$CXX"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5172 $as_echo "$CXX" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 test -n "$CXX" && break
5180 done
5182 if test -z "$CXX"; then
5183 ac_ct_CXX=$CXX
5184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5186 # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$ac_ct_CXX"; then
5194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_CXX="$ac_prog"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5209 IFS=$as_save_IFS
5213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5214 if test -n "$ac_ct_CXX"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5216 $as_echo "$ac_ct_CXX" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 test -n "$ac_ct_CXX" && break
5224 done
5226 if test "x$ac_ct_CXX" = x; then
5227 CXX="g++"
5228 else
5229 case $cross_compiling:$ac_tool_warned in
5230 yes:)
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233 ac_tool_warned=yes ;;
5234 esac
5235 CXX=$ac_ct_CXX
5241 # Provide some information about the compiler.
5242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5243 set X $ac_compile
5244 ac_compiler=$2
5245 for ac_option in --version -v -V -qversion; do
5246 { { ac_try="$ac_compiler $ac_option >&5"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 $as_echo "$ac_try_echo"; } >&5
5253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5254 ac_status=$?
5255 if test -s conftest.err; then
5256 sed '10a\
5257 ... rest of stderr output deleted ...
5258 10q' conftest.err >conftest.er1
5259 cat conftest.er1 >&5
5261 rm -f conftest.er1 conftest.err
5262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5263 test $ac_status = 0; }
5264 done
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5268 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5275 main ()
5277 #ifndef __GNUC__
5278 choke me
5279 #endif
5282 return 0;
5284 _ACEOF
5285 if ac_fn_cxx_try_compile "$LINENO"; then :
5286 ac_compiler_gnu=yes
5287 else
5288 ac_compiler_gnu=no
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5296 if test $ac_compiler_gnu = yes; then
5297 GXX=yes
5298 else
5299 GXX=
5301 ac_test_CXXFLAGS=${CXXFLAGS+set}
5302 ac_save_CXXFLAGS=$CXXFLAGS
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5305 if ${ac_cv_prog_cxx_g+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5309 ac_cxx_werror_flag=yes
5310 ac_cv_prog_cxx_g=no
5311 CXXFLAGS="-g"
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5316 main ()
5320 return 0;
5322 _ACEOF
5323 if ac_fn_cxx_try_compile "$LINENO"; then :
5324 ac_cv_prog_cxx_g=yes
5325 else
5326 CXXFLAGS=""
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5331 main ()
5335 return 0;
5337 _ACEOF
5338 if ac_fn_cxx_try_compile "$LINENO"; then :
5340 else
5341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5342 CXXFLAGS="-g"
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5347 main ()
5351 return 0;
5353 _ACEOF
5354 if ac_fn_cxx_try_compile "$LINENO"; then :
5355 ac_cv_prog_cxx_g=yes
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5366 if test "$ac_test_CXXFLAGS" = set; then
5367 CXXFLAGS=$ac_save_CXXFLAGS
5368 elif test $ac_cv_prog_cxx_g = yes; then
5369 if test "$GXX" = yes; then
5370 CXXFLAGS="-g -O2"
5371 else
5372 CXXFLAGS="-g"
5374 else
5375 if test "$GXX" = yes; then
5376 CXXFLAGS="-O2"
5377 else
5378 CXXFLAGS=
5381 ac_ext=c
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388 # We must set the default linker to the linker used by gcc for the correct
5389 # operation of libtool. If LD is not defined and we are using gcc, try to
5390 # set the LD default to the ld used by gcc.
5391 if test -z "$LD"; then
5392 if test "$GCC" = yes; then
5393 case $build in
5394 *-*-mingw*)
5395 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5397 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5398 esac
5399 case $gcc_prog_ld in
5400 # Accept absolute paths.
5401 [\\/]* | [A-Za-z]:[\\/]*)
5402 LD="$gcc_prog_ld" ;;
5403 esac
5407 # Check whether -static-libstdc++ -static-libgcc is supported.
5408 have_static_libs=no
5409 if test "$GCC" = yes; then
5410 saved_LDFLAGS="$LDFLAGS"
5412 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5414 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5415 ac_ext=cpp
5416 ac_cpp='$CXXCPP $CPPFLAGS'
5417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5425 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5426 #error -static-libstdc++ not implemented
5427 #endif
5428 int main() {}
5429 _ACEOF
5430 if ac_fn_cxx_try_link "$LINENO"; then :
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5432 $as_echo "yes" >&6; }; have_static_libs=yes
5433 else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5437 rm -f core conftest.err conftest.$ac_objext \
5438 conftest$ac_exeext conftest.$ac_ext
5439 ac_ext=c
5440 ac_cpp='$CPP $CPPFLAGS'
5441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446 LDFLAGS="$saved_LDFLAGS"
5452 if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5454 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_GNATBIND+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -n "$GNATBIND"; then
5461 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5474 done
5475 done
5476 IFS=$as_save_IFS
5480 GNATBIND=$ac_cv_prog_GNATBIND
5481 if test -n "$GNATBIND"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5483 $as_echo "$GNATBIND" >&6; }
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5491 if test -z "$ac_cv_prog_GNATBIND"; then
5492 ac_ct_GNATBIND=$GNATBIND
5493 # Extract the first word of "gnatbind", so it can be a program name with args.
5494 set dummy gnatbind; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$ac_ct_GNATBIND"; then
5501 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5514 done
5515 done
5516 IFS=$as_save_IFS
5520 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5521 if test -n "$ac_ct_GNATBIND"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5523 $as_echo "$ac_ct_GNATBIND" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5529 if test "x$ac_ct_GNATBIND" = x; then
5530 GNATBIND="no"
5531 else
5532 case $cross_compiling:$ac_tool_warned in
5533 yes:)
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned=yes ;;
5537 esac
5538 GNATBIND=$ac_ct_GNATBIND
5540 else
5541 GNATBIND="$ac_cv_prog_GNATBIND"
5544 if test -n "$ac_tool_prefix"; then
5545 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5546 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_GNATMAKE+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$GNATMAKE"; then
5553 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5566 done
5567 done
5568 IFS=$as_save_IFS
5572 GNATMAKE=$ac_cv_prog_GNATMAKE
5573 if test -n "$GNATMAKE"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5575 $as_echo "$GNATMAKE" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5583 if test -z "$ac_cv_prog_GNATMAKE"; then
5584 ac_ct_GNATMAKE=$GNATMAKE
5585 # Extract the first word of "gnatmake", so it can be a program name with args.
5586 set dummy gnatmake; 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_ac_ct_GNATMAKE+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$ac_ct_GNATMAKE"; then
5593 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
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_ac_ct_GNATMAKE="gnatmake"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5608 IFS=$as_save_IFS
5612 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5613 if test -n "$ac_ct_GNATMAKE"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5615 $as_echo "$ac_ct_GNATMAKE" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5621 if test "x$ac_ct_GNATMAKE" = x; then
5622 GNATMAKE="no"
5623 else
5624 case $cross_compiling:$ac_tool_warned in
5625 yes:)
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628 ac_tool_warned=yes ;;
5629 esac
5630 GNATMAKE=$ac_ct_GNATMAKE
5632 else
5633 GNATMAKE="$ac_cv_prog_GNATMAKE"
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5637 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5638 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 cat >conftest.adb <<EOF
5642 pragma Warnings (Off);
5643 with System.CRTL;
5644 pragma Warnings (On);
5645 use type System.CRTL.int64;
5646 procedure conftest is begin null; end conftest;
5648 acx_cv_cc_gcc_supports_ada=no
5649 # There is a bug in old released versions of GCC which causes the
5650 # driver to exit successfully when the appropriate language module
5651 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5652 # Therefore we must check for the error message as well as an
5653 # unsuccessful exit.
5654 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5655 # given a .adb file, but produce no object file. So we must check
5656 # if an object file was really produced to guard against this.
5657 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5658 if test x"$errors" = x && test -f conftest.$ac_objext; then
5659 acx_cv_cc_gcc_supports_ada=yes
5661 rm -f conftest.*
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5664 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5666 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5667 have_gnat=yes
5668 else
5669 have_gnat=no
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_GDC+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$GDC"; then
5683 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5696 done
5697 done
5698 IFS=$as_save_IFS
5702 GDC=$ac_cv_prog_GDC
5703 if test -n "$GDC"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5705 $as_echo "$GDC" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5713 if test -z "$ac_cv_prog_GDC"; then
5714 ac_ct_GDC=$GDC
5715 # Extract the first word of "gdc", so it can be a program name with args.
5716 set dummy gdc; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$ac_ct_GDC"; then
5723 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ac_ct_GDC="gdc"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5743 if test -n "$ac_ct_GDC"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5745 $as_echo "$ac_ct_GDC" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5751 if test "x$ac_ct_GDC" = x; then
5752 GDC="no"
5753 else
5754 case $cross_compiling:$ac_tool_warned in
5755 yes:)
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned=yes ;;
5759 esac
5760 GDC=$ac_ct_GDC
5762 else
5763 GDC="$ac_cv_prog_GDC"
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5767 $as_echo_n "checking whether the D compiler works... " >&6; }
5768 if ${acx_cv_d_compiler_works+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 cat >conftest.d <<EOF
5772 module conftest; int main() { return 0; }
5774 acx_cv_d_compiler_works=no
5775 if test "x$GDC" != xno; then
5776 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5777 if test x"$errors" = x && test -f conftest.$ac_objext; then
5778 acx_cv_d_compiler_works=yes
5780 rm -f conftest.*
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5784 $as_echo "$acx_cv_d_compiler_works" >&6; }
5785 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5786 have_gdc=yes
5787 else
5788 have_gdc=no
5791 for ac_prog in cargo
5793 # Extract the first word of "$ac_prog", so it can be a program name with args.
5794 set dummy $ac_prog; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_CARGO+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$CARGO"; then
5801 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_CARGO="$ac_prog"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5820 CARGO=$ac_cv_prog_CARGO
5821 if test -n "$CARGO"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5823 $as_echo "$CARGO" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5830 test -n "$CARGO" && break
5831 done
5832 test -n "$CARGO" || CARGO="no"
5834 if test "x$CARGO" != xno; then
5835 have_cargo=yes
5836 else
5837 have_cargo=no
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5840 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5841 if ${gcc_cv_prog_cmp_skip+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 echo abfoo >t1
5845 echo cdfoo >t2
5846 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5847 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5848 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5850 else
5851 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5854 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5855 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5857 else
5858 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5861 rm t1 t2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5865 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5866 do_compare="$gcc_cv_prog_cmp_skip"
5870 # Check whether --enable-bootstrap was given.
5871 if test "${enable_bootstrap+set}" = set; then :
5872 enableval=$enable_bootstrap;
5873 else
5874 enable_bootstrap=default
5878 # Issue errors and warnings for invalid/strange bootstrap combinations.
5879 if test -r $srcdir/gcc/configure; then
5880 have_compiler=yes
5881 else
5882 have_compiler=no
5885 case "$have_compiler:$host:$target:$enable_bootstrap" in
5886 *:*:*:no) ;;
5888 # Default behavior. Enable bootstrap if we have a compiler
5889 # and we are in a native configuration.
5890 yes:$build:$build:default)
5891 enable_bootstrap=yes ;;
5893 *:*:*:default)
5894 enable_bootstrap=no ;;
5896 # We have a compiler and we are in a native configuration, bootstrap is ok
5897 yes:$build:$build:yes)
5900 # Other configurations, but we have a compiler. Assume the user knows
5901 # what he's doing.
5902 yes:*:*:yes)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5904 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5907 # No compiler: if they passed --enable-bootstrap explicitly, fail
5908 no:*:*:yes)
5909 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5911 # Fail if wrong command line
5913 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5915 esac
5917 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
5918 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
5919 # require C++14 (or higher).
5920 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5921 CXX="$CXX -std=c++14"
5922 elif test "$have_compiler" = yes; then
5923 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
5924 ac_ext=cpp
5925 ac_cpp='$CXXCPP $CPPFLAGS'
5926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5929 ac_success=no
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
5932 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
5933 if ${ax_cv_cxx_compile_cxx14+:} false; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5940 // If the compiler admits that it is not ready for C++11, why torture it?
5941 // Hopefully, this will speed up the test.
5943 #ifndef __cplusplus
5945 #error "This is not a C++ compiler"
5947 #elif __cplusplus < 201103L
5949 #error "This is not a C++11 compiler"
5951 #else
5953 namespace cxx11
5956 namespace test_static_assert
5959 template <typename T>
5960 struct check
5962 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5967 namespace test_final_override
5970 struct Base
5972 virtual ~Base() {}
5973 virtual void f() {}
5976 struct Derived : public Base
5978 virtual ~Derived() override {}
5979 virtual void f() override {}
5984 namespace test_double_right_angle_brackets
5987 template < typename T >
5988 struct check {};
5990 typedef check<void> single_type;
5991 typedef check<check<void>> double_type;
5992 typedef check<check<check<void>>> triple_type;
5993 typedef check<check<check<check<void>>>> quadruple_type;
5997 namespace test_decltype
6003 int a = 1;
6004 decltype(a) b = 2;
6005 return a + b;
6010 namespace test_type_deduction
6013 template < typename T1, typename T2 >
6014 struct is_same
6016 static const bool value = false;
6019 template < typename T >
6020 struct is_same<T, T>
6022 static const bool value = true;
6025 template < typename T1, typename T2 >
6026 auto
6027 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6029 return a1 + a2;
6033 test(const int c, volatile int v)
6035 static_assert(is_same<int, decltype(0)>::value == true, "");
6036 static_assert(is_same<int, decltype(c)>::value == false, "");
6037 static_assert(is_same<int, decltype(v)>::value == false, "");
6038 auto ac = c;
6039 auto av = v;
6040 auto sumi = ac + av + 'x';
6041 auto sumf = ac + av + 1.0;
6042 static_assert(is_same<int, decltype(ac)>::value == true, "");
6043 static_assert(is_same<int, decltype(av)>::value == true, "");
6044 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6045 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6046 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6047 return (sumf > 0.0) ? sumi : add(c, v);
6052 namespace test_noexcept
6055 int f() { return 0; }
6056 int g() noexcept { return 0; }
6058 static_assert(noexcept(f()) == false, "");
6059 static_assert(noexcept(g()) == true, "");
6063 namespace test_constexpr
6066 template < typename CharT >
6067 unsigned long constexpr
6068 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6070 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6073 template < typename CharT >
6074 unsigned long constexpr
6075 strlen_c(const CharT *const s) noexcept
6077 return strlen_c_r(s, 0UL);
6080 static_assert(strlen_c("") == 0UL, "");
6081 static_assert(strlen_c("1") == 1UL, "");
6082 static_assert(strlen_c("example") == 7UL, "");
6083 static_assert(strlen_c("another\0example") == 7UL, "");
6087 namespace test_rvalue_references
6090 template < int N >
6091 struct answer
6093 static constexpr int value = N;
6096 answer<1> f(int&) { return answer<1>(); }
6097 answer<2> f(const int&) { return answer<2>(); }
6098 answer<3> f(int&&) { return answer<3>(); }
6100 void
6101 test()
6103 int i = 0;
6104 const int c = 0;
6105 static_assert(decltype(f(i))::value == 1, "");
6106 static_assert(decltype(f(c))::value == 2, "");
6107 static_assert(decltype(f(0))::value == 3, "");
6112 namespace test_uniform_initialization
6115 struct test
6117 static const int zero {};
6118 static const int one {1};
6121 static_assert(test::zero == 0, "");
6122 static_assert(test::one == 1, "");
6126 namespace test_lambdas
6129 void
6130 test1()
6132 auto lambda1 = [](){};
6133 auto lambda2 = lambda1;
6134 lambda1();
6135 lambda2();
6139 test2()
6141 auto a = [](int i, int j){ return i + j; }(1, 2);
6142 auto b = []() -> int { return '0'; }();
6143 auto c = [=](){ return a + b; }();
6144 auto d = [&](){ return c; }();
6145 auto e = [a, &b](int x) mutable {
6146 const auto identity = [](int y){ return y; };
6147 for (auto i = 0; i < a; ++i)
6148 a += b--;
6149 return x + identity(a + b);
6150 }(0);
6151 return a + b + c + d + e;
6155 test3()
6157 const auto nullary = [](){ return 0; };
6158 const auto unary = [](int x){ return x; };
6159 using nullary_t = decltype(nullary);
6160 using unary_t = decltype(unary);
6161 const auto higher1st = [](nullary_t f){ return f(); };
6162 const auto higher2nd = [unary](nullary_t f1){
6163 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6165 return higher1st(nullary) + higher2nd(nullary)(unary);
6170 namespace test_variadic_templates
6173 template <int...>
6174 struct sum;
6176 template <int N0, int... N1toN>
6177 struct sum<N0, N1toN...>
6179 static constexpr auto value = N0 + sum<N1toN...>::value;
6182 template <>
6183 struct sum<>
6185 static constexpr auto value = 0;
6188 static_assert(sum<>::value == 0, "");
6189 static_assert(sum<1>::value == 1, "");
6190 static_assert(sum<23>::value == 23, "");
6191 static_assert(sum<1, 2>::value == 3, "");
6192 static_assert(sum<5, 5, 11>::value == 21, "");
6193 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6197 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6198 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6199 // because of this.
6200 namespace test_template_alias_sfinae
6203 struct foo {};
6205 template<typename T>
6206 using member = typename T::member_type;
6208 template<typename T>
6209 void func(...) {}
6211 template<typename T>
6212 void func(member<T>*) {}
6214 void test();
6216 void test() { func<foo>(0); }
6220 } // namespace cxx11
6222 #endif // __cplusplus >= 201103L
6227 // If the compiler admits that it is not ready for C++14, why torture it?
6228 // Hopefully, this will speed up the test.
6230 #ifndef __cplusplus
6232 #error "This is not a C++ compiler"
6234 #elif __cplusplus < 201402L
6236 #error "This is not a C++14 compiler"
6238 #else
6240 namespace cxx14
6243 namespace test_polymorphic_lambdas
6247 test()
6249 const auto lambda = [](auto&&... args){
6250 const auto istiny = [](auto x){
6251 return (sizeof(x) == 1UL) ? 1 : 0;
6253 const int aretiny[] = { istiny(args)... };
6254 return aretiny[0];
6256 return lambda(1, 1L, 1.0f, '1');
6261 namespace test_binary_literals
6264 constexpr auto ivii = 0b0000000000101010;
6265 static_assert(ivii == 42, "wrong value");
6269 namespace test_generalized_constexpr
6272 template < typename CharT >
6273 constexpr unsigned long
6274 strlen_c(const CharT *const s) noexcept
6276 auto length = 0UL;
6277 for (auto p = s; *p; ++p)
6278 ++length;
6279 return length;
6282 static_assert(strlen_c("") == 0UL, "");
6283 static_assert(strlen_c("x") == 1UL, "");
6284 static_assert(strlen_c("test") == 4UL, "");
6285 static_assert(strlen_c("another\0test") == 7UL, "");
6289 namespace test_lambda_init_capture
6293 test()
6295 auto x = 0;
6296 const auto lambda1 = [a = x](int b){ return a + b; };
6297 const auto lambda2 = [a = lambda1(x)](){ return a; };
6298 return lambda2();
6303 namespace test_digit_separators
6306 constexpr auto ten_million = 100'000'000;
6307 static_assert(ten_million == 100000000, "");
6311 namespace test_return_type_deduction
6314 auto f(int& x) { return x; }
6315 decltype(auto) g(int& x) { return x; }
6317 template < typename T1, typename T2 >
6318 struct is_same
6320 static constexpr auto value = false;
6323 template < typename T >
6324 struct is_same<T, T>
6326 static constexpr auto value = true;
6330 test()
6332 auto x = 0;
6333 static_assert(is_same<int, decltype(f(x))>::value, "");
6334 static_assert(is_same<int&, decltype(g(x))>::value, "");
6335 return x;
6340 } // namespace cxx14
6342 #endif // __cplusplus >= 201402L
6346 _ACEOF
6347 if ac_fn_cxx_try_compile "$LINENO"; then :
6348 ax_cv_cxx_compile_cxx14=yes
6349 else
6350 ax_cv_cxx_compile_cxx14=no
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6355 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6356 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
6357 ac_success=yes
6360 if test x$ac_success = xno; then
6361 for alternative in ${ax_cxx_compile_alternatives}; do
6362 switch="-std=gnu++${alternative}"
6363 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6365 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6366 if eval \${$cachevar+:} false; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 ac_save_CXX="$CXX"
6370 CXX="$CXX $switch"
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6375 // If the compiler admits that it is not ready for C++11, why torture it?
6376 // Hopefully, this will speed up the test.
6378 #ifndef __cplusplus
6380 #error "This is not a C++ compiler"
6382 #elif __cplusplus < 201103L
6384 #error "This is not a C++11 compiler"
6386 #else
6388 namespace cxx11
6391 namespace test_static_assert
6394 template <typename T>
6395 struct check
6397 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6402 namespace test_final_override
6405 struct Base
6407 virtual ~Base() {}
6408 virtual void f() {}
6411 struct Derived : public Base
6413 virtual ~Derived() override {}
6414 virtual void f() override {}
6419 namespace test_double_right_angle_brackets
6422 template < typename T >
6423 struct check {};
6425 typedef check<void> single_type;
6426 typedef check<check<void>> double_type;
6427 typedef check<check<check<void>>> triple_type;
6428 typedef check<check<check<check<void>>>> quadruple_type;
6432 namespace test_decltype
6438 int a = 1;
6439 decltype(a) b = 2;
6440 return a + b;
6445 namespace test_type_deduction
6448 template < typename T1, typename T2 >
6449 struct is_same
6451 static const bool value = false;
6454 template < typename T >
6455 struct is_same<T, T>
6457 static const bool value = true;
6460 template < typename T1, typename T2 >
6461 auto
6462 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6464 return a1 + a2;
6468 test(const int c, volatile int v)
6470 static_assert(is_same<int, decltype(0)>::value == true, "");
6471 static_assert(is_same<int, decltype(c)>::value == false, "");
6472 static_assert(is_same<int, decltype(v)>::value == false, "");
6473 auto ac = c;
6474 auto av = v;
6475 auto sumi = ac + av + 'x';
6476 auto sumf = ac + av + 1.0;
6477 static_assert(is_same<int, decltype(ac)>::value == true, "");
6478 static_assert(is_same<int, decltype(av)>::value == true, "");
6479 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6480 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6481 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6482 return (sumf > 0.0) ? sumi : add(c, v);
6487 namespace test_noexcept
6490 int f() { return 0; }
6491 int g() noexcept { return 0; }
6493 static_assert(noexcept(f()) == false, "");
6494 static_assert(noexcept(g()) == true, "");
6498 namespace test_constexpr
6501 template < typename CharT >
6502 unsigned long constexpr
6503 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6505 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6508 template < typename CharT >
6509 unsigned long constexpr
6510 strlen_c(const CharT *const s) noexcept
6512 return strlen_c_r(s, 0UL);
6515 static_assert(strlen_c("") == 0UL, "");
6516 static_assert(strlen_c("1") == 1UL, "");
6517 static_assert(strlen_c("example") == 7UL, "");
6518 static_assert(strlen_c("another\0example") == 7UL, "");
6522 namespace test_rvalue_references
6525 template < int N >
6526 struct answer
6528 static constexpr int value = N;
6531 answer<1> f(int&) { return answer<1>(); }
6532 answer<2> f(const int&) { return answer<2>(); }
6533 answer<3> f(int&&) { return answer<3>(); }
6535 void
6536 test()
6538 int i = 0;
6539 const int c = 0;
6540 static_assert(decltype(f(i))::value == 1, "");
6541 static_assert(decltype(f(c))::value == 2, "");
6542 static_assert(decltype(f(0))::value == 3, "");
6547 namespace test_uniform_initialization
6550 struct test
6552 static const int zero {};
6553 static const int one {1};
6556 static_assert(test::zero == 0, "");
6557 static_assert(test::one == 1, "");
6561 namespace test_lambdas
6564 void
6565 test1()
6567 auto lambda1 = [](){};
6568 auto lambda2 = lambda1;
6569 lambda1();
6570 lambda2();
6574 test2()
6576 auto a = [](int i, int j){ return i + j; }(1, 2);
6577 auto b = []() -> int { return '0'; }();
6578 auto c = [=](){ return a + b; }();
6579 auto d = [&](){ return c; }();
6580 auto e = [a, &b](int x) mutable {
6581 const auto identity = [](int y){ return y; };
6582 for (auto i = 0; i < a; ++i)
6583 a += b--;
6584 return x + identity(a + b);
6585 }(0);
6586 return a + b + c + d + e;
6590 test3()
6592 const auto nullary = [](){ return 0; };
6593 const auto unary = [](int x){ return x; };
6594 using nullary_t = decltype(nullary);
6595 using unary_t = decltype(unary);
6596 const auto higher1st = [](nullary_t f){ return f(); };
6597 const auto higher2nd = [unary](nullary_t f1){
6598 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6600 return higher1st(nullary) + higher2nd(nullary)(unary);
6605 namespace test_variadic_templates
6608 template <int...>
6609 struct sum;
6611 template <int N0, int... N1toN>
6612 struct sum<N0, N1toN...>
6614 static constexpr auto value = N0 + sum<N1toN...>::value;
6617 template <>
6618 struct sum<>
6620 static constexpr auto value = 0;
6623 static_assert(sum<>::value == 0, "");
6624 static_assert(sum<1>::value == 1, "");
6625 static_assert(sum<23>::value == 23, "");
6626 static_assert(sum<1, 2>::value == 3, "");
6627 static_assert(sum<5, 5, 11>::value == 21, "");
6628 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6632 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6633 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6634 // because of this.
6635 namespace test_template_alias_sfinae
6638 struct foo {};
6640 template<typename T>
6641 using member = typename T::member_type;
6643 template<typename T>
6644 void func(...) {}
6646 template<typename T>
6647 void func(member<T>*) {}
6649 void test();
6651 void test() { func<foo>(0); }
6655 } // namespace cxx11
6657 #endif // __cplusplus >= 201103L
6662 // If the compiler admits that it is not ready for C++14, why torture it?
6663 // Hopefully, this will speed up the test.
6665 #ifndef __cplusplus
6667 #error "This is not a C++ compiler"
6669 #elif __cplusplus < 201402L
6671 #error "This is not a C++14 compiler"
6673 #else
6675 namespace cxx14
6678 namespace test_polymorphic_lambdas
6682 test()
6684 const auto lambda = [](auto&&... args){
6685 const auto istiny = [](auto x){
6686 return (sizeof(x) == 1UL) ? 1 : 0;
6688 const int aretiny[] = { istiny(args)... };
6689 return aretiny[0];
6691 return lambda(1, 1L, 1.0f, '1');
6696 namespace test_binary_literals
6699 constexpr auto ivii = 0b0000000000101010;
6700 static_assert(ivii == 42, "wrong value");
6704 namespace test_generalized_constexpr
6707 template < typename CharT >
6708 constexpr unsigned long
6709 strlen_c(const CharT *const s) noexcept
6711 auto length = 0UL;
6712 for (auto p = s; *p; ++p)
6713 ++length;
6714 return length;
6717 static_assert(strlen_c("") == 0UL, "");
6718 static_assert(strlen_c("x") == 1UL, "");
6719 static_assert(strlen_c("test") == 4UL, "");
6720 static_assert(strlen_c("another\0test") == 7UL, "");
6724 namespace test_lambda_init_capture
6728 test()
6730 auto x = 0;
6731 const auto lambda1 = [a = x](int b){ return a + b; };
6732 const auto lambda2 = [a = lambda1(x)](){ return a; };
6733 return lambda2();
6738 namespace test_digit_separators
6741 constexpr auto ten_million = 100'000'000;
6742 static_assert(ten_million == 100000000, "");
6746 namespace test_return_type_deduction
6749 auto f(int& x) { return x; }
6750 decltype(auto) g(int& x) { return x; }
6752 template < typename T1, typename T2 >
6753 struct is_same
6755 static constexpr auto value = false;
6758 template < typename T >
6759 struct is_same<T, T>
6761 static constexpr auto value = true;
6765 test()
6767 auto x = 0;
6768 static_assert(is_same<int, decltype(f(x))>::value, "");
6769 static_assert(is_same<int&, decltype(g(x))>::value, "");
6770 return x;
6775 } // namespace cxx14
6777 #endif // __cplusplus >= 201402L
6781 _ACEOF
6782 if ac_fn_cxx_try_compile "$LINENO"; then :
6783 eval $cachevar=yes
6784 else
6785 eval $cachevar=no
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 CXX="$ac_save_CXX"
6790 eval ac_res=\$$cachevar
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6792 $as_echo "$ac_res" >&6; }
6793 if eval test x\$$cachevar = xyes; then
6794 CXX="$CXX $switch"
6795 if test -n "$CXXCPP" ; then
6796 CXXCPP="$CXXCPP $switch"
6798 ac_success=yes
6799 break
6801 done
6804 if test x$ac_success = xno; then
6805 for alternative in ${ax_cxx_compile_alternatives}; do
6806 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6807 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6809 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6810 if eval \${$cachevar+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 ac_save_CXX="$CXX"
6814 CXX="$CXX $switch"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6819 // If the compiler admits that it is not ready for C++11, why torture it?
6820 // Hopefully, this will speed up the test.
6822 #ifndef __cplusplus
6824 #error "This is not a C++ compiler"
6826 #elif __cplusplus < 201103L
6828 #error "This is not a C++11 compiler"
6830 #else
6832 namespace cxx11
6835 namespace test_static_assert
6838 template <typename T>
6839 struct check
6841 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6846 namespace test_final_override
6849 struct Base
6851 virtual ~Base() {}
6852 virtual void f() {}
6855 struct Derived : public Base
6857 virtual ~Derived() override {}
6858 virtual void f() override {}
6863 namespace test_double_right_angle_brackets
6866 template < typename T >
6867 struct check {};
6869 typedef check<void> single_type;
6870 typedef check<check<void>> double_type;
6871 typedef check<check<check<void>>> triple_type;
6872 typedef check<check<check<check<void>>>> quadruple_type;
6876 namespace test_decltype
6882 int a = 1;
6883 decltype(a) b = 2;
6884 return a + b;
6889 namespace test_type_deduction
6892 template < typename T1, typename T2 >
6893 struct is_same
6895 static const bool value = false;
6898 template < typename T >
6899 struct is_same<T, T>
6901 static const bool value = true;
6904 template < typename T1, typename T2 >
6905 auto
6906 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6908 return a1 + a2;
6912 test(const int c, volatile int v)
6914 static_assert(is_same<int, decltype(0)>::value == true, "");
6915 static_assert(is_same<int, decltype(c)>::value == false, "");
6916 static_assert(is_same<int, decltype(v)>::value == false, "");
6917 auto ac = c;
6918 auto av = v;
6919 auto sumi = ac + av + 'x';
6920 auto sumf = ac + av + 1.0;
6921 static_assert(is_same<int, decltype(ac)>::value == true, "");
6922 static_assert(is_same<int, decltype(av)>::value == true, "");
6923 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6924 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6925 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6926 return (sumf > 0.0) ? sumi : add(c, v);
6931 namespace test_noexcept
6934 int f() { return 0; }
6935 int g() noexcept { return 0; }
6937 static_assert(noexcept(f()) == false, "");
6938 static_assert(noexcept(g()) == true, "");
6942 namespace test_constexpr
6945 template < typename CharT >
6946 unsigned long constexpr
6947 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6949 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6952 template < typename CharT >
6953 unsigned long constexpr
6954 strlen_c(const CharT *const s) noexcept
6956 return strlen_c_r(s, 0UL);
6959 static_assert(strlen_c("") == 0UL, "");
6960 static_assert(strlen_c("1") == 1UL, "");
6961 static_assert(strlen_c("example") == 7UL, "");
6962 static_assert(strlen_c("another\0example") == 7UL, "");
6966 namespace test_rvalue_references
6969 template < int N >
6970 struct answer
6972 static constexpr int value = N;
6975 answer<1> f(int&) { return answer<1>(); }
6976 answer<2> f(const int&) { return answer<2>(); }
6977 answer<3> f(int&&) { return answer<3>(); }
6979 void
6980 test()
6982 int i = 0;
6983 const int c = 0;
6984 static_assert(decltype(f(i))::value == 1, "");
6985 static_assert(decltype(f(c))::value == 2, "");
6986 static_assert(decltype(f(0))::value == 3, "");
6991 namespace test_uniform_initialization
6994 struct test
6996 static const int zero {};
6997 static const int one {1};
7000 static_assert(test::zero == 0, "");
7001 static_assert(test::one == 1, "");
7005 namespace test_lambdas
7008 void
7009 test1()
7011 auto lambda1 = [](){};
7012 auto lambda2 = lambda1;
7013 lambda1();
7014 lambda2();
7018 test2()
7020 auto a = [](int i, int j){ return i + j; }(1, 2);
7021 auto b = []() -> int { return '0'; }();
7022 auto c = [=](){ return a + b; }();
7023 auto d = [&](){ return c; }();
7024 auto e = [a, &b](int x) mutable {
7025 const auto identity = [](int y){ return y; };
7026 for (auto i = 0; i < a; ++i)
7027 a += b--;
7028 return x + identity(a + b);
7029 }(0);
7030 return a + b + c + d + e;
7034 test3()
7036 const auto nullary = [](){ return 0; };
7037 const auto unary = [](int x){ return x; };
7038 using nullary_t = decltype(nullary);
7039 using unary_t = decltype(unary);
7040 const auto higher1st = [](nullary_t f){ return f(); };
7041 const auto higher2nd = [unary](nullary_t f1){
7042 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7044 return higher1st(nullary) + higher2nd(nullary)(unary);
7049 namespace test_variadic_templates
7052 template <int...>
7053 struct sum;
7055 template <int N0, int... N1toN>
7056 struct sum<N0, N1toN...>
7058 static constexpr auto value = N0 + sum<N1toN...>::value;
7061 template <>
7062 struct sum<>
7064 static constexpr auto value = 0;
7067 static_assert(sum<>::value == 0, "");
7068 static_assert(sum<1>::value == 1, "");
7069 static_assert(sum<23>::value == 23, "");
7070 static_assert(sum<1, 2>::value == 3, "");
7071 static_assert(sum<5, 5, 11>::value == 21, "");
7072 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7076 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7077 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7078 // because of this.
7079 namespace test_template_alias_sfinae
7082 struct foo {};
7084 template<typename T>
7085 using member = typename T::member_type;
7087 template<typename T>
7088 void func(...) {}
7090 template<typename T>
7091 void func(member<T>*) {}
7093 void test();
7095 void test() { func<foo>(0); }
7099 } // namespace cxx11
7101 #endif // __cplusplus >= 201103L
7106 // If the compiler admits that it is not ready for C++14, why torture it?
7107 // Hopefully, this will speed up the test.
7109 #ifndef __cplusplus
7111 #error "This is not a C++ compiler"
7113 #elif __cplusplus < 201402L
7115 #error "This is not a C++14 compiler"
7117 #else
7119 namespace cxx14
7122 namespace test_polymorphic_lambdas
7126 test()
7128 const auto lambda = [](auto&&... args){
7129 const auto istiny = [](auto x){
7130 return (sizeof(x) == 1UL) ? 1 : 0;
7132 const int aretiny[] = { istiny(args)... };
7133 return aretiny[0];
7135 return lambda(1, 1L, 1.0f, '1');
7140 namespace test_binary_literals
7143 constexpr auto ivii = 0b0000000000101010;
7144 static_assert(ivii == 42, "wrong value");
7148 namespace test_generalized_constexpr
7151 template < typename CharT >
7152 constexpr unsigned long
7153 strlen_c(const CharT *const s) noexcept
7155 auto length = 0UL;
7156 for (auto p = s; *p; ++p)
7157 ++length;
7158 return length;
7161 static_assert(strlen_c("") == 0UL, "");
7162 static_assert(strlen_c("x") == 1UL, "");
7163 static_assert(strlen_c("test") == 4UL, "");
7164 static_assert(strlen_c("another\0test") == 7UL, "");
7168 namespace test_lambda_init_capture
7172 test()
7174 auto x = 0;
7175 const auto lambda1 = [a = x](int b){ return a + b; };
7176 const auto lambda2 = [a = lambda1(x)](){ return a; };
7177 return lambda2();
7182 namespace test_digit_separators
7185 constexpr auto ten_million = 100'000'000;
7186 static_assert(ten_million == 100000000, "");
7190 namespace test_return_type_deduction
7193 auto f(int& x) { return x; }
7194 decltype(auto) g(int& x) { return x; }
7196 template < typename T1, typename T2 >
7197 struct is_same
7199 static constexpr auto value = false;
7202 template < typename T >
7203 struct is_same<T, T>
7205 static constexpr auto value = true;
7209 test()
7211 auto x = 0;
7212 static_assert(is_same<int, decltype(f(x))>::value, "");
7213 static_assert(is_same<int&, decltype(g(x))>::value, "");
7214 return x;
7219 } // namespace cxx14
7221 #endif // __cplusplus >= 201402L
7225 _ACEOF
7226 if ac_fn_cxx_try_compile "$LINENO"; then :
7227 eval $cachevar=yes
7228 else
7229 eval $cachevar=no
7231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 CXX="$ac_save_CXX"
7234 eval ac_res=\$$cachevar
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7236 $as_echo "$ac_res" >&6; }
7237 if eval test x\$$cachevar = xyes; then
7238 CXX="$CXX $switch"
7239 if test -n "$CXXCPP" ; then
7240 CXXCPP="$CXXCPP $switch"
7242 ac_success=yes
7243 break
7245 done
7246 if test x$ac_success = xyes; then
7247 break
7249 done
7252 ac_ext=c
7253 ac_cpp='$CPP $CPPFLAGS'
7254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7259 if test x$ac_success = xno; then
7260 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
7263 if test x$ac_success = xno; then
7264 HAVE_CXX14=0
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
7266 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
7267 else
7268 HAVE_CXX14=1
7270 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7276 if test "${build}" != "${host}"; then
7277 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
7278 ac_ext=cpp
7279 ac_cpp='$CXXCPP $CPPFLAGS'
7280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7283 ac_success=no
7284 ax_cv_cxx_compile_cxx14_orig_cxx="$CXX"
7285 ax_cv_cxx_compile_cxx14_orig_cxxflags="$CXXFLAGS"
7286 ax_cv_cxx_compile_cxx14_orig_cppflags="$CPPFLAGS"
7287 CXX="$CXX_FOR_BUILD"
7288 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
7289 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7291 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7292 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7299 // If the compiler admits that it is not ready for C++11, why torture it?
7300 // Hopefully, this will speed up the test.
7302 #ifndef __cplusplus
7304 #error "This is not a C++ compiler"
7306 #elif __cplusplus < 201103L
7308 #error "This is not a C++11 compiler"
7310 #else
7312 namespace cxx11
7315 namespace test_static_assert
7318 template <typename T>
7319 struct check
7321 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7326 namespace test_final_override
7329 struct Base
7331 virtual ~Base() {}
7332 virtual void f() {}
7335 struct Derived : public Base
7337 virtual ~Derived() override {}
7338 virtual void f() override {}
7343 namespace test_double_right_angle_brackets
7346 template < typename T >
7347 struct check {};
7349 typedef check<void> single_type;
7350 typedef check<check<void>> double_type;
7351 typedef check<check<check<void>>> triple_type;
7352 typedef check<check<check<check<void>>>> quadruple_type;
7356 namespace test_decltype
7362 int a = 1;
7363 decltype(a) b = 2;
7364 return a + b;
7369 namespace test_type_deduction
7372 template < typename T1, typename T2 >
7373 struct is_same
7375 static const bool value = false;
7378 template < typename T >
7379 struct is_same<T, T>
7381 static const bool value = true;
7384 template < typename T1, typename T2 >
7385 auto
7386 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7388 return a1 + a2;
7392 test(const int c, volatile int v)
7394 static_assert(is_same<int, decltype(0)>::value == true, "");
7395 static_assert(is_same<int, decltype(c)>::value == false, "");
7396 static_assert(is_same<int, decltype(v)>::value == false, "");
7397 auto ac = c;
7398 auto av = v;
7399 auto sumi = ac + av + 'x';
7400 auto sumf = ac + av + 1.0;
7401 static_assert(is_same<int, decltype(ac)>::value == true, "");
7402 static_assert(is_same<int, decltype(av)>::value == true, "");
7403 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7404 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7405 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7406 return (sumf > 0.0) ? sumi : add(c, v);
7411 namespace test_noexcept
7414 int f() { return 0; }
7415 int g() noexcept { return 0; }
7417 static_assert(noexcept(f()) == false, "");
7418 static_assert(noexcept(g()) == true, "");
7422 namespace test_constexpr
7425 template < typename CharT >
7426 unsigned long constexpr
7427 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7429 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7432 template < typename CharT >
7433 unsigned long constexpr
7434 strlen_c(const CharT *const s) noexcept
7436 return strlen_c_r(s, 0UL);
7439 static_assert(strlen_c("") == 0UL, "");
7440 static_assert(strlen_c("1") == 1UL, "");
7441 static_assert(strlen_c("example") == 7UL, "");
7442 static_assert(strlen_c("another\0example") == 7UL, "");
7446 namespace test_rvalue_references
7449 template < int N >
7450 struct answer
7452 static constexpr int value = N;
7455 answer<1> f(int&) { return answer<1>(); }
7456 answer<2> f(const int&) { return answer<2>(); }
7457 answer<3> f(int&&) { return answer<3>(); }
7459 void
7460 test()
7462 int i = 0;
7463 const int c = 0;
7464 static_assert(decltype(f(i))::value == 1, "");
7465 static_assert(decltype(f(c))::value == 2, "");
7466 static_assert(decltype(f(0))::value == 3, "");
7471 namespace test_uniform_initialization
7474 struct test
7476 static const int zero {};
7477 static const int one {1};
7480 static_assert(test::zero == 0, "");
7481 static_assert(test::one == 1, "");
7485 namespace test_lambdas
7488 void
7489 test1()
7491 auto lambda1 = [](){};
7492 auto lambda2 = lambda1;
7493 lambda1();
7494 lambda2();
7498 test2()
7500 auto a = [](int i, int j){ return i + j; }(1, 2);
7501 auto b = []() -> int { return '0'; }();
7502 auto c = [=](){ return a + b; }();
7503 auto d = [&](){ return c; }();
7504 auto e = [a, &b](int x) mutable {
7505 const auto identity = [](int y){ return y; };
7506 for (auto i = 0; i < a; ++i)
7507 a += b--;
7508 return x + identity(a + b);
7509 }(0);
7510 return a + b + c + d + e;
7514 test3()
7516 const auto nullary = [](){ return 0; };
7517 const auto unary = [](int x){ return x; };
7518 using nullary_t = decltype(nullary);
7519 using unary_t = decltype(unary);
7520 const auto higher1st = [](nullary_t f){ return f(); };
7521 const auto higher2nd = [unary](nullary_t f1){
7522 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7524 return higher1st(nullary) + higher2nd(nullary)(unary);
7529 namespace test_variadic_templates
7532 template <int...>
7533 struct sum;
7535 template <int N0, int... N1toN>
7536 struct sum<N0, N1toN...>
7538 static constexpr auto value = N0 + sum<N1toN...>::value;
7541 template <>
7542 struct sum<>
7544 static constexpr auto value = 0;
7547 static_assert(sum<>::value == 0, "");
7548 static_assert(sum<1>::value == 1, "");
7549 static_assert(sum<23>::value == 23, "");
7550 static_assert(sum<1, 2>::value == 3, "");
7551 static_assert(sum<5, 5, 11>::value == 21, "");
7552 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7556 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7557 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7558 // because of this.
7559 namespace test_template_alias_sfinae
7562 struct foo {};
7564 template<typename T>
7565 using member = typename T::member_type;
7567 template<typename T>
7568 void func(...) {}
7570 template<typename T>
7571 void func(member<T>*) {}
7573 void test();
7575 void test() { func<foo>(0); }
7579 } // namespace cxx11
7581 #endif // __cplusplus >= 201103L
7586 // If the compiler admits that it is not ready for C++14, why torture it?
7587 // Hopefully, this will speed up the test.
7589 #ifndef __cplusplus
7591 #error "This is not a C++ compiler"
7593 #elif __cplusplus < 201402L
7595 #error "This is not a C++14 compiler"
7597 #else
7599 namespace cxx14
7602 namespace test_polymorphic_lambdas
7606 test()
7608 const auto lambda = [](auto&&... args){
7609 const auto istiny = [](auto x){
7610 return (sizeof(x) == 1UL) ? 1 : 0;
7612 const int aretiny[] = { istiny(args)... };
7613 return aretiny[0];
7615 return lambda(1, 1L, 1.0f, '1');
7620 namespace test_binary_literals
7623 constexpr auto ivii = 0b0000000000101010;
7624 static_assert(ivii == 42, "wrong value");
7628 namespace test_generalized_constexpr
7631 template < typename CharT >
7632 constexpr unsigned long
7633 strlen_c(const CharT *const s) noexcept
7635 auto length = 0UL;
7636 for (auto p = s; *p; ++p)
7637 ++length;
7638 return length;
7641 static_assert(strlen_c("") == 0UL, "");
7642 static_assert(strlen_c("x") == 1UL, "");
7643 static_assert(strlen_c("test") == 4UL, "");
7644 static_assert(strlen_c("another\0test") == 7UL, "");
7648 namespace test_lambda_init_capture
7652 test()
7654 auto x = 0;
7655 const auto lambda1 = [a = x](int b){ return a + b; };
7656 const auto lambda2 = [a = lambda1(x)](){ return a; };
7657 return lambda2();
7662 namespace test_digit_separators
7665 constexpr auto ten_million = 100'000'000;
7666 static_assert(ten_million == 100000000, "");
7670 namespace test_return_type_deduction
7673 auto f(int& x) { return x; }
7674 decltype(auto) g(int& x) { return x; }
7676 template < typename T1, typename T2 >
7677 struct is_same
7679 static constexpr auto value = false;
7682 template < typename T >
7683 struct is_same<T, T>
7685 static constexpr auto value = true;
7689 test()
7691 auto x = 0;
7692 static_assert(is_same<int, decltype(f(x))>::value, "");
7693 static_assert(is_same<int&, decltype(g(x))>::value, "");
7694 return x;
7699 } // namespace cxx14
7701 #endif // __cplusplus >= 201402L
7705 _ACEOF
7706 if ac_fn_cxx_try_compile "$LINENO"; then :
7707 ax_cv_cxx_compile_cxx14_FOR_BUILD=yes
7708 else
7709 ax_cv_cxx_compile_cxx14_FOR_BUILD=no
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7714 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7715 if test x$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes; then
7716 ac_success=yes
7719 if test x$ac_success = xno; then
7720 for alternative in ${ax_cxx_compile_alternatives}; do
7721 switch="-std=gnu++${alternative}"
7722 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7724 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7725 if eval \${$cachevar+:} false; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 ac_save_CXX="$CXX"
7729 CXX="$CXX $switch"
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7734 // If the compiler admits that it is not ready for C++11, why torture it?
7735 // Hopefully, this will speed up the test.
7737 #ifndef __cplusplus
7739 #error "This is not a C++ compiler"
7741 #elif __cplusplus < 201103L
7743 #error "This is not a C++11 compiler"
7745 #else
7747 namespace cxx11
7750 namespace test_static_assert
7753 template <typename T>
7754 struct check
7756 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7761 namespace test_final_override
7764 struct Base
7766 virtual ~Base() {}
7767 virtual void f() {}
7770 struct Derived : public Base
7772 virtual ~Derived() override {}
7773 virtual void f() override {}
7778 namespace test_double_right_angle_brackets
7781 template < typename T >
7782 struct check {};
7784 typedef check<void> single_type;
7785 typedef check<check<void>> double_type;
7786 typedef check<check<check<void>>> triple_type;
7787 typedef check<check<check<check<void>>>> quadruple_type;
7791 namespace test_decltype
7797 int a = 1;
7798 decltype(a) b = 2;
7799 return a + b;
7804 namespace test_type_deduction
7807 template < typename T1, typename T2 >
7808 struct is_same
7810 static const bool value = false;
7813 template < typename T >
7814 struct is_same<T, T>
7816 static const bool value = true;
7819 template < typename T1, typename T2 >
7820 auto
7821 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7823 return a1 + a2;
7827 test(const int c, volatile int v)
7829 static_assert(is_same<int, decltype(0)>::value == true, "");
7830 static_assert(is_same<int, decltype(c)>::value == false, "");
7831 static_assert(is_same<int, decltype(v)>::value == false, "");
7832 auto ac = c;
7833 auto av = v;
7834 auto sumi = ac + av + 'x';
7835 auto sumf = ac + av + 1.0;
7836 static_assert(is_same<int, decltype(ac)>::value == true, "");
7837 static_assert(is_same<int, decltype(av)>::value == true, "");
7838 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7839 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7840 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7841 return (sumf > 0.0) ? sumi : add(c, v);
7846 namespace test_noexcept
7849 int f() { return 0; }
7850 int g() noexcept { return 0; }
7852 static_assert(noexcept(f()) == false, "");
7853 static_assert(noexcept(g()) == true, "");
7857 namespace test_constexpr
7860 template < typename CharT >
7861 unsigned long constexpr
7862 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7864 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7867 template < typename CharT >
7868 unsigned long constexpr
7869 strlen_c(const CharT *const s) noexcept
7871 return strlen_c_r(s, 0UL);
7874 static_assert(strlen_c("") == 0UL, "");
7875 static_assert(strlen_c("1") == 1UL, "");
7876 static_assert(strlen_c("example") == 7UL, "");
7877 static_assert(strlen_c("another\0example") == 7UL, "");
7881 namespace test_rvalue_references
7884 template < int N >
7885 struct answer
7887 static constexpr int value = N;
7890 answer<1> f(int&) { return answer<1>(); }
7891 answer<2> f(const int&) { return answer<2>(); }
7892 answer<3> f(int&&) { return answer<3>(); }
7894 void
7895 test()
7897 int i = 0;
7898 const int c = 0;
7899 static_assert(decltype(f(i))::value == 1, "");
7900 static_assert(decltype(f(c))::value == 2, "");
7901 static_assert(decltype(f(0))::value == 3, "");
7906 namespace test_uniform_initialization
7909 struct test
7911 static const int zero {};
7912 static const int one {1};
7915 static_assert(test::zero == 0, "");
7916 static_assert(test::one == 1, "");
7920 namespace test_lambdas
7923 void
7924 test1()
7926 auto lambda1 = [](){};
7927 auto lambda2 = lambda1;
7928 lambda1();
7929 lambda2();
7933 test2()
7935 auto a = [](int i, int j){ return i + j; }(1, 2);
7936 auto b = []() -> int { return '0'; }();
7937 auto c = [=](){ return a + b; }();
7938 auto d = [&](){ return c; }();
7939 auto e = [a, &b](int x) mutable {
7940 const auto identity = [](int y){ return y; };
7941 for (auto i = 0; i < a; ++i)
7942 a += b--;
7943 return x + identity(a + b);
7944 }(0);
7945 return a + b + c + d + e;
7949 test3()
7951 const auto nullary = [](){ return 0; };
7952 const auto unary = [](int x){ return x; };
7953 using nullary_t = decltype(nullary);
7954 using unary_t = decltype(unary);
7955 const auto higher1st = [](nullary_t f){ return f(); };
7956 const auto higher2nd = [unary](nullary_t f1){
7957 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7959 return higher1st(nullary) + higher2nd(nullary)(unary);
7964 namespace test_variadic_templates
7967 template <int...>
7968 struct sum;
7970 template <int N0, int... N1toN>
7971 struct sum<N0, N1toN...>
7973 static constexpr auto value = N0 + sum<N1toN...>::value;
7976 template <>
7977 struct sum<>
7979 static constexpr auto value = 0;
7982 static_assert(sum<>::value == 0, "");
7983 static_assert(sum<1>::value == 1, "");
7984 static_assert(sum<23>::value == 23, "");
7985 static_assert(sum<1, 2>::value == 3, "");
7986 static_assert(sum<5, 5, 11>::value == 21, "");
7987 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7991 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7992 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7993 // because of this.
7994 namespace test_template_alias_sfinae
7997 struct foo {};
7999 template<typename T>
8000 using member = typename T::member_type;
8002 template<typename T>
8003 void func(...) {}
8005 template<typename T>
8006 void func(member<T>*) {}
8008 void test();
8010 void test() { func<foo>(0); }
8014 } // namespace cxx11
8016 #endif // __cplusplus >= 201103L
8021 // If the compiler admits that it is not ready for C++14, why torture it?
8022 // Hopefully, this will speed up the test.
8024 #ifndef __cplusplus
8026 #error "This is not a C++ compiler"
8028 #elif __cplusplus < 201402L
8030 #error "This is not a C++14 compiler"
8032 #else
8034 namespace cxx14
8037 namespace test_polymorphic_lambdas
8041 test()
8043 const auto lambda = [](auto&&... args){
8044 const auto istiny = [](auto x){
8045 return (sizeof(x) == 1UL) ? 1 : 0;
8047 const int aretiny[] = { istiny(args)... };
8048 return aretiny[0];
8050 return lambda(1, 1L, 1.0f, '1');
8055 namespace test_binary_literals
8058 constexpr auto ivii = 0b0000000000101010;
8059 static_assert(ivii == 42, "wrong value");
8063 namespace test_generalized_constexpr
8066 template < typename CharT >
8067 constexpr unsigned long
8068 strlen_c(const CharT *const s) noexcept
8070 auto length = 0UL;
8071 for (auto p = s; *p; ++p)
8072 ++length;
8073 return length;
8076 static_assert(strlen_c("") == 0UL, "");
8077 static_assert(strlen_c("x") == 1UL, "");
8078 static_assert(strlen_c("test") == 4UL, "");
8079 static_assert(strlen_c("another\0test") == 7UL, "");
8083 namespace test_lambda_init_capture
8087 test()
8089 auto x = 0;
8090 const auto lambda1 = [a = x](int b){ return a + b; };
8091 const auto lambda2 = [a = lambda1(x)](){ return a; };
8092 return lambda2();
8097 namespace test_digit_separators
8100 constexpr auto ten_million = 100'000'000;
8101 static_assert(ten_million == 100000000, "");
8105 namespace test_return_type_deduction
8108 auto f(int& x) { return x; }
8109 decltype(auto) g(int& x) { return x; }
8111 template < typename T1, typename T2 >
8112 struct is_same
8114 static constexpr auto value = false;
8117 template < typename T >
8118 struct is_same<T, T>
8120 static constexpr auto value = true;
8124 test()
8126 auto x = 0;
8127 static_assert(is_same<int, decltype(f(x))>::value, "");
8128 static_assert(is_same<int&, decltype(g(x))>::value, "");
8129 return x;
8134 } // namespace cxx14
8136 #endif // __cplusplus >= 201402L
8140 _ACEOF
8141 if ac_fn_cxx_try_compile "$LINENO"; then :
8142 eval $cachevar=yes
8143 else
8144 eval $cachevar=no
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 CXX="$ac_save_CXX"
8149 eval ac_res=\$$cachevar
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8151 $as_echo "$ac_res" >&6; }
8152 if eval test x\$$cachevar = xyes; then
8153 CXX="$CXX $switch"
8154 if test -n "$CXXCPP" ; then
8155 CXXCPP="$CXXCPP $switch"
8157 ac_success=yes
8158 break
8160 done
8163 if test x$ac_success = xno; then
8164 for alternative in ${ax_cxx_compile_alternatives}; do
8165 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8166 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
8168 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
8169 if eval \${$cachevar+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 ac_save_CXX="$CXX"
8173 CXX="$CXX $switch"
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8178 // If the compiler admits that it is not ready for C++11, why torture it?
8179 // Hopefully, this will speed up the test.
8181 #ifndef __cplusplus
8183 #error "This is not a C++ compiler"
8185 #elif __cplusplus < 201103L
8187 #error "This is not a C++11 compiler"
8189 #else
8191 namespace cxx11
8194 namespace test_static_assert
8197 template <typename T>
8198 struct check
8200 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8205 namespace test_final_override
8208 struct Base
8210 virtual ~Base() {}
8211 virtual void f() {}
8214 struct Derived : public Base
8216 virtual ~Derived() override {}
8217 virtual void f() override {}
8222 namespace test_double_right_angle_brackets
8225 template < typename T >
8226 struct check {};
8228 typedef check<void> single_type;
8229 typedef check<check<void>> double_type;
8230 typedef check<check<check<void>>> triple_type;
8231 typedef check<check<check<check<void>>>> quadruple_type;
8235 namespace test_decltype
8241 int a = 1;
8242 decltype(a) b = 2;
8243 return a + b;
8248 namespace test_type_deduction
8251 template < typename T1, typename T2 >
8252 struct is_same
8254 static const bool value = false;
8257 template < typename T >
8258 struct is_same<T, T>
8260 static const bool value = true;
8263 template < typename T1, typename T2 >
8264 auto
8265 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8267 return a1 + a2;
8271 test(const int c, volatile int v)
8273 static_assert(is_same<int, decltype(0)>::value == true, "");
8274 static_assert(is_same<int, decltype(c)>::value == false, "");
8275 static_assert(is_same<int, decltype(v)>::value == false, "");
8276 auto ac = c;
8277 auto av = v;
8278 auto sumi = ac + av + 'x';
8279 auto sumf = ac + av + 1.0;
8280 static_assert(is_same<int, decltype(ac)>::value == true, "");
8281 static_assert(is_same<int, decltype(av)>::value == true, "");
8282 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8283 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8284 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8285 return (sumf > 0.0) ? sumi : add(c, v);
8290 namespace test_noexcept
8293 int f() { return 0; }
8294 int g() noexcept { return 0; }
8296 static_assert(noexcept(f()) == false, "");
8297 static_assert(noexcept(g()) == true, "");
8301 namespace test_constexpr
8304 template < typename CharT >
8305 unsigned long constexpr
8306 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8308 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8311 template < typename CharT >
8312 unsigned long constexpr
8313 strlen_c(const CharT *const s) noexcept
8315 return strlen_c_r(s, 0UL);
8318 static_assert(strlen_c("") == 0UL, "");
8319 static_assert(strlen_c("1") == 1UL, "");
8320 static_assert(strlen_c("example") == 7UL, "");
8321 static_assert(strlen_c("another\0example") == 7UL, "");
8325 namespace test_rvalue_references
8328 template < int N >
8329 struct answer
8331 static constexpr int value = N;
8334 answer<1> f(int&) { return answer<1>(); }
8335 answer<2> f(const int&) { return answer<2>(); }
8336 answer<3> f(int&&) { return answer<3>(); }
8338 void
8339 test()
8341 int i = 0;
8342 const int c = 0;
8343 static_assert(decltype(f(i))::value == 1, "");
8344 static_assert(decltype(f(c))::value == 2, "");
8345 static_assert(decltype(f(0))::value == 3, "");
8350 namespace test_uniform_initialization
8353 struct test
8355 static const int zero {};
8356 static const int one {1};
8359 static_assert(test::zero == 0, "");
8360 static_assert(test::one == 1, "");
8364 namespace test_lambdas
8367 void
8368 test1()
8370 auto lambda1 = [](){};
8371 auto lambda2 = lambda1;
8372 lambda1();
8373 lambda2();
8377 test2()
8379 auto a = [](int i, int j){ return i + j; }(1, 2);
8380 auto b = []() -> int { return '0'; }();
8381 auto c = [=](){ return a + b; }();
8382 auto d = [&](){ return c; }();
8383 auto e = [a, &b](int x) mutable {
8384 const auto identity = [](int y){ return y; };
8385 for (auto i = 0; i < a; ++i)
8386 a += b--;
8387 return x + identity(a + b);
8388 }(0);
8389 return a + b + c + d + e;
8393 test3()
8395 const auto nullary = [](){ return 0; };
8396 const auto unary = [](int x){ return x; };
8397 using nullary_t = decltype(nullary);
8398 using unary_t = decltype(unary);
8399 const auto higher1st = [](nullary_t f){ return f(); };
8400 const auto higher2nd = [unary](nullary_t f1){
8401 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8403 return higher1st(nullary) + higher2nd(nullary)(unary);
8408 namespace test_variadic_templates
8411 template <int...>
8412 struct sum;
8414 template <int N0, int... N1toN>
8415 struct sum<N0, N1toN...>
8417 static constexpr auto value = N0 + sum<N1toN...>::value;
8420 template <>
8421 struct sum<>
8423 static constexpr auto value = 0;
8426 static_assert(sum<>::value == 0, "");
8427 static_assert(sum<1>::value == 1, "");
8428 static_assert(sum<23>::value == 23, "");
8429 static_assert(sum<1, 2>::value == 3, "");
8430 static_assert(sum<5, 5, 11>::value == 21, "");
8431 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8435 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8436 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8437 // because of this.
8438 namespace test_template_alias_sfinae
8441 struct foo {};
8443 template<typename T>
8444 using member = typename T::member_type;
8446 template<typename T>
8447 void func(...) {}
8449 template<typename T>
8450 void func(member<T>*) {}
8452 void test();
8454 void test() { func<foo>(0); }
8458 } // namespace cxx11
8460 #endif // __cplusplus >= 201103L
8465 // If the compiler admits that it is not ready for C++14, why torture it?
8466 // Hopefully, this will speed up the test.
8468 #ifndef __cplusplus
8470 #error "This is not a C++ compiler"
8472 #elif __cplusplus < 201402L
8474 #error "This is not a C++14 compiler"
8476 #else
8478 namespace cxx14
8481 namespace test_polymorphic_lambdas
8485 test()
8487 const auto lambda = [](auto&&... args){
8488 const auto istiny = [](auto x){
8489 return (sizeof(x) == 1UL) ? 1 : 0;
8491 const int aretiny[] = { istiny(args)... };
8492 return aretiny[0];
8494 return lambda(1, 1L, 1.0f, '1');
8499 namespace test_binary_literals
8502 constexpr auto ivii = 0b0000000000101010;
8503 static_assert(ivii == 42, "wrong value");
8507 namespace test_generalized_constexpr
8510 template < typename CharT >
8511 constexpr unsigned long
8512 strlen_c(const CharT *const s) noexcept
8514 auto length = 0UL;
8515 for (auto p = s; *p; ++p)
8516 ++length;
8517 return length;
8520 static_assert(strlen_c("") == 0UL, "");
8521 static_assert(strlen_c("x") == 1UL, "");
8522 static_assert(strlen_c("test") == 4UL, "");
8523 static_assert(strlen_c("another\0test") == 7UL, "");
8527 namespace test_lambda_init_capture
8531 test()
8533 auto x = 0;
8534 const auto lambda1 = [a = x](int b){ return a + b; };
8535 const auto lambda2 = [a = lambda1(x)](){ return a; };
8536 return lambda2();
8541 namespace test_digit_separators
8544 constexpr auto ten_million = 100'000'000;
8545 static_assert(ten_million == 100000000, "");
8549 namespace test_return_type_deduction
8552 auto f(int& x) { return x; }
8553 decltype(auto) g(int& x) { return x; }
8555 template < typename T1, typename T2 >
8556 struct is_same
8558 static constexpr auto value = false;
8561 template < typename T >
8562 struct is_same<T, T>
8564 static constexpr auto value = true;
8568 test()
8570 auto x = 0;
8571 static_assert(is_same<int, decltype(f(x))>::value, "");
8572 static_assert(is_same<int&, decltype(g(x))>::value, "");
8573 return x;
8578 } // namespace cxx14
8580 #endif // __cplusplus >= 201402L
8584 _ACEOF
8585 if ac_fn_cxx_try_compile "$LINENO"; then :
8586 eval $cachevar=yes
8587 else
8588 eval $cachevar=no
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 CXX="$ac_save_CXX"
8593 eval ac_res=\$$cachevar
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8595 $as_echo "$ac_res" >&6; }
8596 if eval test x\$$cachevar = xyes; then
8597 CXX="$CXX $switch"
8598 if test -n "$CXXCPP" ; then
8599 CXXCPP="$CXXCPP $switch"
8601 ac_success=yes
8602 break
8604 done
8605 if test x$ac_success = xyes; then
8606 break
8608 done
8610 CXX_FOR_BUILD="$CXX"
8611 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8612 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8613 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8614 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8615 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8616 ac_ext=c
8617 ac_cpp='$CPP $CPPFLAGS'
8618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8622 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8623 if test x$ac_success = xno; then
8624 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
8627 if test x$ac_success = xno; then
8628 HAVE_CXX14_FOR_BUILD=0
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
8630 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
8631 else
8632 HAVE_CXX14_FOR_BUILD=1
8634 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8642 # Check whether --enable-pgo-build was given.
8643 if test "${enable_pgo_build+set}" = set; then :
8644 enableval=$enable_pgo_build; enable_pgo_build=$enableval
8645 else
8646 enable_pgo_build=no
8650 # Issue errors and warnings for invalid/strange PGO build combinations.
8651 case "$have_compiler:$host:$target:$enable_pgo_build" in
8652 *:*:*:no) ;;
8654 # Allow the PGO build only if we aren't building a compiler and
8655 # we are in a native configuration.
8656 no:$build:$build:yes | no:$build:$build:lto) ;;
8658 # Disallow the PGO bootstrap if we are building a compiler.
8659 yes:*:*:yes | yes:*:*:lto)
8660 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8663 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
8665 esac
8667 if test "$enable_pgo_build" != "no"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8669 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8670 old_CFLAGS="$CFLAGS"
8671 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
8672 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 int foo;
8677 _ACEOF
8678 if ac_fn_c_try_compile "$LINENO"; then :
8680 else
8681 PGO_BUILD_GEN_CFLAGS=
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 CFLAGS="$old_CFLAGS"
8685 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8687 $as_echo "yes" >&6; }
8688 PGO_BUILD_USE_CFLAGS="-fprofile-use"
8689 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8692 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8695 if test "$enable_pgo_build" = "lto"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8697 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8698 old_CFLAGS="$CFLAGS"
8699 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
8700 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 int foo;
8704 _ACEOF
8705 if ac_fn_c_try_compile "$LINENO"; then :
8707 else
8708 PGO_BUILD_LTO_CFLAGS=
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 CFLAGS="$old_CFLAGS"
8712 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8714 $as_echo "yes" >&6; }
8715 else
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8719 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8727 # Used for setting $lt_cv_objdir
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8729 $as_echo_n "checking for objdir... " >&6; }
8730 if ${lt_cv_objdir+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 rm -f .libs 2>/dev/null
8734 mkdir .libs 2>/dev/null
8735 if test -d .libs; then
8736 lt_cv_objdir=.libs
8737 else
8738 # MS-DOS does not allow filenames that begin with a dot.
8739 lt_cv_objdir=_libs
8741 rmdir .libs 2>/dev/null
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8744 $as_echo "$lt_cv_objdir" >&6; }
8745 objdir=$lt_cv_objdir
8751 cat >>confdefs.h <<_ACEOF
8752 #define LT_OBJDIR "$lt_cv_objdir/"
8753 _ACEOF
8757 # Check for GMP, MPFR and MPC
8758 require_gmp=no
8759 require_mpc=no
8760 if test -d ${srcdir}/gcc ; then
8761 require_gmp=yes
8762 require_mpc=yes
8764 if test -d ${srcdir}/gdb ; then
8765 if test "x$enable_gdb" != xno; then
8766 require_gmp=yes
8770 gmplibs="-lmpfr -lgmp"
8771 if test x"$require_mpc" = "xyes" ; then
8772 gmplibs="-lmpc $gmplibs"
8774 gmpinc=
8775 have_gmp=no
8777 # Specify a location for mpc
8778 # check for this first so it ends up on the link line before mpfr.
8780 # Check whether --with-mpc was given.
8781 if test "${with_mpc+set}" = set; then :
8782 withval=$with_mpc;
8786 # Check whether --with-mpc-include was given.
8787 if test "${with_mpc_include+set}" = set; then :
8788 withval=$with_mpc_include;
8792 # Check whether --with-mpc-lib was given.
8793 if test "${with_mpc_lib+set}" = set; then :
8794 withval=$with_mpc_lib;
8798 if test "x$with_mpc" != x; then
8799 gmplibs="-L$with_mpc/lib $gmplibs"
8800 gmpinc="-I$with_mpc/include $gmpinc"
8802 if test "x$with_mpc_include" != x; then
8803 gmpinc="-I$with_mpc_include $gmpinc"
8805 if test "x$with_mpc_lib" != x; then
8806 gmplibs="-L$with_mpc_lib $gmplibs"
8808 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8809 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8810 gmpinc='-I$$s/mpc/src '"$gmpinc"
8811 # Do not test the mpc version. Assume that it is sufficient, since
8812 # it is in the source tree, and the library has not been built yet
8813 # but it would be included on the link line in the version check below
8814 # hence making the test fail.
8815 have_gmp=yes
8818 # Specify a location for mpfr
8819 # check for this first so it ends up on the link line before gmp.
8821 # Check whether --with-mpfr was given.
8822 if test "${with_mpfr+set}" = set; then :
8823 withval=$with_mpfr;
8827 # Check whether --with-mpfr-include was given.
8828 if test "${with_mpfr_include+set}" = set; then :
8829 withval=$with_mpfr_include;
8833 # Check whether --with-mpfr-lib was given.
8834 if test "${with_mpfr_lib+set}" = set; then :
8835 withval=$with_mpfr_lib;
8839 if test "x$with_mpfr" != x; then
8840 gmplibs="-L$with_mpfr/lib $gmplibs"
8841 gmpinc="-I$with_mpfr/include $gmpinc"
8843 if test "x$with_mpfr_include" != x; then
8844 gmpinc="-I$with_mpfr_include $gmpinc"
8846 if test "x$with_mpfr_lib" != x; then
8847 gmplibs="-L$with_mpfr_lib $gmplibs"
8849 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8850 # MPFR v3.1.0 moved the sources into a src sub-directory.
8851 if ! test -d ${srcdir}/mpfr/src; then
8852 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8854 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8855 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8856 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8857 # Do not test the mpfr version. Assume that it is sufficient, since
8858 # it is in the source tree, and the library has not been built yet
8859 # but it would be included on the link line in the version check below
8860 # hence making the test fail.
8861 have_gmp=yes
8864 # Specify a location for gmp
8866 # Check whether --with-gmp was given.
8867 if test "${with_gmp+set}" = set; then :
8868 withval=$with_gmp;
8872 # Check whether --with-gmp-include was given.
8873 if test "${with_gmp_include+set}" = set; then :
8874 withval=$with_gmp_include;
8878 # Check whether --with-gmp-lib was given.
8879 if test "${with_gmp_lib+set}" = set; then :
8880 withval=$with_gmp_lib;
8885 if test "x$with_gmp" != x; then
8886 gmplibs="-L$with_gmp/lib $gmplibs"
8887 gmpinc="-I$with_gmp/include $gmpinc"
8889 if test "x$with_gmp_include" != x; then
8890 gmpinc="-I$with_gmp_include $gmpinc"
8892 if test "x$with_gmp_lib" != x; then
8893 gmplibs="-L$with_gmp_lib $gmplibs"
8895 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8896 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8897 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8898 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8899 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8900 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8901 # Do not test the gmp version. Assume that it is sufficient, since
8902 # it is in the source tree, and the library has not been built yet
8903 # but it would be included on the link line in the version check below
8904 # hence making the test fail.
8905 have_gmp=yes
8908 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8909 have_gmp=yes
8910 saved_CFLAGS="$CFLAGS"
8911 CFLAGS="$CFLAGS $gmpinc"
8912 # Check for the recommended and required versions of GMP.
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8914 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 #include "gmp.h"
8919 main ()
8922 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8923 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8924 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8925 choke me
8926 #endif
8929 return 0;
8931 _ACEOF
8932 if ac_fn_c_try_compile "$LINENO"; then :
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 #include <gmp.h>
8937 main ()
8940 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8941 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8942 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8943 choke me
8944 #endif
8947 return 0;
8949 _ACEOF
8950 if ac_fn_c_try_compile "$LINENO"; then :
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8952 $as_echo "yes" >&6; }
8953 else
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8955 $as_echo "buggy but acceptable" >&6; }
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 else
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }; have_gmp=no
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 # If we have GMP, check the MPFR version.
8965 if test x"$have_gmp" = xyes; then
8966 # Check for the recommended and required versions of MPFR.
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8968 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 #include <gmp.h>
8972 #include <mpfr.h>
8974 main ()
8977 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8978 choke me
8979 #endif
8982 return 0;
8984 _ACEOF
8985 if ac_fn_c_try_compile "$LINENO"; then :
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #include <gmp.h>
8989 #include <mpfr.h>
8991 main ()
8994 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8995 choke me
8996 #endif
8999 return 0;
9001 _ACEOF
9002 if ac_fn_c_try_compile "$LINENO"; then :
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9004 $as_echo "yes" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9007 $as_echo "buggy but acceptable" >&6; }
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }; have_gmp=no
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 # Check for the MPC header version.
9018 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
9019 # Check for the recommended and required versions of MPC.
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9021 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9024 #include <mpc.h>
9026 main ()
9029 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9030 choke me
9031 #endif
9034 return 0;
9036 _ACEOF
9037 if ac_fn_c_try_compile "$LINENO"; then :
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 #include <mpc.h>
9042 main ()
9045 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9046 choke me
9047 #endif
9050 return 0;
9052 _ACEOF
9053 if ac_fn_c_try_compile "$LINENO"; then :
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9055 $as_echo "yes" >&6; }
9056 else
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9058 $as_echo "buggy but acceptable" >&6; }
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 else
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }; have_gmp=no
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 # Now check the MPFR library.
9069 if test x"$have_gmp" = xyes; then
9070 saved_LIBS="$LIBS"
9071 LIBS="$LIBS $gmplibs"
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9073 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #include <mpfr.h>
9078 main ()
9081 mpfr_t n;
9082 mpfr_t x;
9083 int t;
9084 mpfr_init (n);
9085 mpfr_init (x);
9086 mpfr_atan2 (n, n, x, MPFR_RNDN);
9087 mpfr_erfc (n, x, MPFR_RNDN);
9088 mpfr_subnormalize (x, t, MPFR_RNDN);
9089 mpfr_clear(n);
9090 mpfr_clear(x);
9093 return 0;
9095 _ACEOF
9096 if ac_fn_c_try_link "$LINENO"; then :
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9098 $as_echo "yes" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }; have_gmp=no
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 LIBS="$saved_LIBS"
9108 # Now check the MPC library
9109 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
9110 saved_LIBS="$LIBS"
9111 LIBS="$LIBS $gmplibs"
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9113 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 #include <mpc.h>
9118 main ()
9121 mpc_t c;
9122 mpc_init2 (c, 53);
9123 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9124 mpc_cosh (c, c, MPC_RNDNN);
9125 mpc_pow (c, c, c, MPC_RNDNN);
9126 mpc_acosh (c, c, MPC_RNDNN);
9127 mpc_clear (c);
9130 return 0;
9132 _ACEOF
9133 if ac_fn_c_try_link "$LINENO"; then :
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9135 $as_echo "yes" >&6; }
9136 else
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 $as_echo "no" >&6; }; have_gmp=no
9140 rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 LIBS="$saved_LIBS"
9145 CFLAGS="$saved_CFLAGS"
9147 # The library versions listed in the error message below should match
9148 # the HARD-minimums enforced above.
9149 if test x$have_gmp != xyes; then
9150 if test -d ${srcdir}/gcc ; then
9151 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9152 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9153 their locations. Source code for these libraries can be found at
9154 their respective hosting sites as well as at
9155 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9156 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9157 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9158 make sure that you have installed both the libraries and the header
9159 files. They may be located in separate packages." "$LINENO" 5
9160 else
9161 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9162 Try the --with-gmp and/or --with-mpfr options to specify
9163 their locations. If you obtained GMP and/or MPFR from a vendor
9164 distribution package, make sure that you have installed both the libraries
9165 and the header files. They may be located in separate packages." "$LINENO" 5
9170 # Flags needed for both GMP, MPFR and/or MPC.
9178 # Libraries to use for stage1 or when not bootstrapping.
9180 # Check whether --with-stage1-libs was given.
9181 if test "${with_stage1_libs+set}" = set; then :
9182 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9183 stage1_libs=
9184 else
9185 stage1_libs=$withval
9187 else
9188 stage1_libs=
9193 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9194 # default is yes if gcc is being built; no otherwise. The reason for
9195 # this default is that gdb is sometimes linked against GNU Source
9196 # Highlight, which is a shared library that uses C++ exceptions. In
9197 # this case, -static-libstdc++ will cause crashes.
9199 # Check whether --with-static-standard-libraries was given.
9200 if test "${with_static_standard_libraries+set}" = set; then :
9201 withval=$with_static_standard_libraries;
9202 else
9203 with_static_standard_libraries=auto
9206 if test "$with_static_standard_libraries" = auto; then
9207 with_static_standard_libraries=$have_compiler
9210 # Linker flags to use for stage1 or when not bootstrapping.
9212 # Check whether --with-stage1-ldflags was given.
9213 if test "${with_stage1_ldflags+set}" = set; then :
9214 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9215 stage1_ldflags=
9216 else
9217 stage1_ldflags=$withval
9219 else
9220 stage1_ldflags=
9221 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9222 # if supported. But if the user explicitly specified the libraries to use,
9223 # trust that they are doing what they want.
9224 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9225 -a "$have_static_libs" = yes; then
9226 stage1_ldflags="-static-libstdc++ -static-libgcc"
9232 # Libraries to use for stage2 and later builds.
9234 # Check whether --with-boot-libs was given.
9235 if test "${with_boot_libs+set}" = set; then :
9236 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9237 poststage1_libs=
9238 else
9239 poststage1_libs=$withval
9241 else
9242 poststage1_libs=
9247 # Linker flags to use for stage2 and later builds.
9249 # Check whether --with-boot-ldflags was given.
9250 if test "${with_boot_ldflags+set}" = set; then :
9251 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9252 poststage1_ldflags=
9253 else
9254 poststage1_ldflags=$withval
9256 else
9257 poststage1_ldflags=
9258 # In stages 2 and 3, default to linking libstdc++ and libgcc
9259 # statically. But if the user explicitly specified the libraries to
9260 # use, trust that they are doing what they want.
9261 if test "$poststage1_libs" = ""; then
9262 poststage1_ldflags="-static-libstdc++ -static-libgcc"
9266 case $target in
9267 *-darwin2* | *-darwin1[56789]*)
9268 # For these versions, we default to using embedded rpaths.
9269 if test "x$enable_darwin_at_rpath" != "xno"; then
9270 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9273 *-darwin*)
9274 # For these versions, we only use embedded rpaths on demand.
9275 if test "x$enable_darwin_at_rpath" = "xyes"; then
9276 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9279 esac
9282 # GCC GRAPHITE dependency isl.
9283 # Basic setup is inlined here, actual checks are in config/isl.m4
9286 # Check whether --with-isl was given.
9287 if test "${with_isl+set}" = set; then :
9288 withval=$with_isl;
9292 # Treat --without-isl as a request to disable
9293 # GRAPHITE support and skip all following checks.
9294 if test "x$with_isl" != "xno"; then
9295 # Check for isl
9298 # Check whether --with-isl-include was given.
9299 if test "${with_isl_include+set}" = set; then :
9300 withval=$with_isl_include;
9304 # Check whether --with-isl-lib was given.
9305 if test "${with_isl_lib+set}" = set; then :
9306 withval=$with_isl_lib;
9310 # Check whether --enable-isl-version-check was given.
9311 if test "${enable_isl_version_check+set}" = set; then :
9312 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
9313 else
9314 ENABLE_ISL_CHECK=yes
9318 # Initialize isllibs and islinc.
9319 case $with_isl in
9321 isllibs=
9322 islinc=
9324 "" | yes)
9327 isllibs="-L$with_isl/lib"
9328 islinc="-I$with_isl/include"
9330 esac
9331 if test "x${with_isl_include}" != x ; then
9332 islinc="-I$with_isl_include"
9334 if test "x${with_isl_lib}" != x; then
9335 isllibs="-L$with_isl_lib"
9337 if test "x${islinc}" = x && test "x${isllibs}" = x \
9338 && test -d ${srcdir}/isl; then
9339 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9340 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9341 ENABLE_ISL_CHECK=no
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9343 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9346 isllibs="${isllibs} -lisl"
9350 if test "${ENABLE_ISL_CHECK}" = yes ; then
9351 _isl_saved_CFLAGS=$CFLAGS
9352 _isl_saved_LDFLAGS=$LDFLAGS
9353 _isl_saved_LIBS=$LIBS
9355 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9356 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9357 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9360 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 #include <isl/schedule.h>
9365 main ()
9367 isl_options_set_schedule_serialize_sccs (NULL, 0);
9369 return 0;
9371 _ACEOF
9372 if ac_fn_c_try_link "$LINENO"; then :
9373 gcc_cv_isl=yes
9374 else
9375 gcc_cv_isl=no
9377 rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9380 $as_echo "$gcc_cv_isl" >&6; }
9382 if test "${gcc_cv_isl}" = no ; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9384 $as_echo "required isl version is 0.15 or later" >&6; }
9387 CFLAGS=$_isl_saved_CFLAGS
9388 LDFLAGS=$_isl_saved_LDFLAGS
9389 LIBS=$_isl_saved_LIBS
9397 if test "x${with_isl}" = xno; then
9398 graphite_requested=no
9399 elif test "x${with_isl}" != x \
9400 || test "x${with_isl_include}" != x \
9401 || test "x${with_isl_lib}" != x ; then
9402 graphite_requested=yes
9403 else
9404 graphite_requested=no
9409 if test "${gcc_cv_isl}" = no ; then
9410 isllibs=
9411 islinc=
9414 if test "${graphite_requested}" = yes \
9415 && test "x${isllibs}" = x \
9416 && test "x${islinc}" = x ; then
9418 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
9424 # If the isl check failed, disable builds of in-tree variant of isl
9425 if test "x$with_isl" = xno ||
9426 test "x$gcc_cv_isl" = xno; then
9427 noconfigdirs="$noconfigdirs isl"
9428 islinc=
9434 # Check for LTO support.
9435 # Check whether --enable-lto was given.
9436 if test "${enable_lto+set}" = set; then :
9437 enableval=$enable_lto; enable_lto=$enableval
9438 else
9439 enable_lto=yes; default_enable_lto=yes
9446 target_elf=no
9447 case $target in
9448 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
9449 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9450 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
9451 nvptx-*-none)
9452 target_elf=no
9455 target_elf=yes
9457 esac
9459 if test $target_elf = yes; then :
9460 # ELF platforms build the lto-plugin always.
9461 build_lto_plugin=yes
9463 else
9464 if test x"$default_enable_lto" = x"yes" ; then
9465 case $target in
9466 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
9467 # On other non-ELF platforms, LTO has yet to be validated.
9468 *) enable_lto=no ;;
9469 esac
9470 else
9471 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9472 # It would also be nice to check the binutils support, but we don't
9473 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9474 # warn during gcc/ subconfigure; unless you're bootstrapping with
9475 # -flto it won't be needed until after installation anyway.
9476 case $target in
9477 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9478 *) if test x"$enable_lto" = x"yes"; then
9479 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9482 esac
9484 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9485 # Build it unless LTO was explicitly disabled.
9486 case $target in
9487 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
9488 *) ;;
9489 esac
9494 # Check whether --enable-linker-plugin-configure-flags was given.
9495 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9496 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
9497 else
9498 extra_linker_plugin_configure_flags=
9502 # Check whether --enable-linker-plugin-flags was given.
9503 if test "${enable_linker_plugin_flags+set}" = set; then :
9504 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
9505 else
9506 extra_linker_plugin_flags=
9511 # Handle --enable-host-pie
9512 # If host PIE executables are the default (or must be forced on) for some host,
9513 # we must pass that configuration to the gcc directory.
9514 gcc_host_pie=
9515 # Check whether --enable-host-pie was given.
9516 if test "${enable_host_pie+set}" = set; then :
9517 enableval=$enable_host_pie; host_pie=$enableval
9518 case $host in
9519 *-*-darwin2*)
9520 if test x$host_pie != xyes ; then
9521 # for Darwin20+ this is required.
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9523 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9524 host_pie=yes
9525 gcc_host_pie=--enable-host-pie
9526 fi ;;
9527 *) ;;
9528 esac
9529 else
9530 case $host in
9531 *-*-darwin2*)
9532 # Default to PIE (mandatory for aarch64).
9533 host_pie=yes
9534 gcc_host_pie=--enable-host-pie
9536 *) host_pie=no ;;
9537 esac
9544 # Enable --enable-host-shared.
9545 # Checked early to determine whether jit is an 'all' language
9546 # Check whether --enable-host-shared was given.
9547 if test "${enable_host_shared+set}" = set; then :
9548 enableval=$enable_host_shared; host_shared=$enableval
9549 case $host in
9550 x86_64-*-darwin* | aarch64-*-darwin*)
9551 if test x$host_shared != xyes ; then
9552 # PIC is the default, and actually cannot be switched off.
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9554 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9555 host_shared=yes
9556 fi ;;
9557 *-*-darwin*)
9558 if test x$host_pie = xyes -a x$host_shared != xyes ; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9560 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9561 host_shared=yes
9562 fi ;;
9563 *) ;;
9564 esac
9565 else
9566 case $host in
9567 # 64B x86_64 and Aarch64 Darwin default to PIC.
9568 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
9569 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9570 *-*-darwin*) host_shared=$host_pie ;;
9571 *) host_shared=no;;
9572 esac
9578 if test x$host_shared = xyes; then
9579 case $host in
9580 *-*-darwin*)
9581 # Since host shared is the default for 64b Darwin, and also enabled for
9582 # host_pie, ensure that we present the PIE flag when host_pie is active.
9583 if test x$host_pie = xyes; then
9584 PICFLAG=-fPIE
9588 PICFLAG=-fPIC
9590 esac
9591 elif test x$host_pie = xyes; then
9592 PICFLAG=-fPIE
9593 else
9594 PICFLAG=
9599 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9600 # default, so we check for them here
9601 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9602 # build of the Rust frontend in case a dep is missing.
9603 missing_rust_dynlibs=none
9605 save_LIBS="$LIBS"
9606 LIBS=
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9608 $as_echo_n "checking for library containing dlopen... " >&6; }
9609 if ${ac_cv_search_dlopen+:} false; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9612 ac_func_search_save_LIBS=$LIBS
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9619 #ifdef __cplusplus
9620 extern "C"
9621 #endif
9622 char dlopen ();
9624 main ()
9626 return dlopen ();
9628 return 0;
9630 _ACEOF
9631 for ac_lib in '' dl; do
9632 if test -z "$ac_lib"; then
9633 ac_res="none required"
9634 else
9635 ac_res=-l$ac_lib
9636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9638 if ac_fn_c_try_link "$LINENO"; then :
9639 ac_cv_search_dlopen=$ac_res
9641 rm -f core conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext
9643 if ${ac_cv_search_dlopen+:} false; then :
9644 break
9646 done
9647 if ${ac_cv_search_dlopen+:} false; then :
9649 else
9650 ac_cv_search_dlopen=no
9652 rm conftest.$ac_ext
9653 LIBS=$ac_func_search_save_LIBS
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9656 $as_echo "$ac_cv_search_dlopen" >&6; }
9657 ac_res=$ac_cv_search_dlopen
9658 if test "$ac_res" != no; then :
9659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9664 $as_echo_n "checking for library containing pthread_create... " >&6; }
9665 if ${ac_cv_search_pthread_create+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 ac_func_search_save_LIBS=$LIBS
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9672 /* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 char pthread_create ();
9680 main ()
9682 return pthread_create ();
9684 return 0;
9686 _ACEOF
9687 for ac_lib in '' pthread; do
9688 if test -z "$ac_lib"; then
9689 ac_res="none required"
9690 else
9691 ac_res=-l$ac_lib
9692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9694 if ac_fn_c_try_link "$LINENO"; then :
9695 ac_cv_search_pthread_create=$ac_res
9697 rm -f core conftest.err conftest.$ac_objext \
9698 conftest$ac_exeext
9699 if ${ac_cv_search_pthread_create+:} false; then :
9700 break
9702 done
9703 if ${ac_cv_search_pthread_create+:} false; then :
9705 else
9706 ac_cv_search_pthread_create=no
9708 rm conftest.$ac_ext
9709 LIBS=$ac_func_search_save_LIBS
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9712 $as_echo "$ac_cv_search_pthread_create" >&6; }
9713 ac_res=$ac_cv_search_pthread_create
9714 if test "$ac_res" != no; then :
9715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9719 CRAB1_LIBS="$LIBS"
9720 LIBS="$save_LIBS"
9722 if test "$ac_cv_search_dlopen" = no; then
9723 missing_rust_dynlibs="libdl"
9726 if test "$ac_cv_search_pthread_create" = no; then
9727 missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
9730 CRAB1_LIBS="$CRAB1_LIBS"
9733 # If we are building PIC/PIE host executables, and we are building dependent
9734 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9735 # code.
9736 host_libs_picflag=
9737 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9738 host_libs_picflag='--with-pic'
9742 # By default, C and C++ are the only stage 1 languages.
9743 stage1_languages=,c,
9745 # Target libraries that we bootstrap.
9746 bootstrap_target_libs=,target-libgcc,
9748 # Figure out what language subdirectories are present.
9749 # Look if the user specified --enable-languages="..."; if not, use
9750 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9751 # go away some day.
9752 # NB: embedded tabs in this IF block -- do not untabify
9753 if test -d ${srcdir}/gcc; then
9754 if test x"${enable_languages+set}" != xset; then
9755 if test x"${LANGUAGES+set}" = xset; then
9756 enable_languages="${LANGUAGES}"
9757 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9758 else
9759 enable_languages=default
9761 else
9762 if test x"${enable_languages}" = x ||
9763 test x"${enable_languages}" = xyes;
9764 then
9765 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9766 exit 1
9769 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9771 # 'f95' is the old name for the 'fortran' language. We issue a warning
9772 # and make the substitution.
9773 case ,${enable_languages}, in
9774 *,f95,*)
9775 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
9776 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9778 esac
9780 # If bootstrapping, C++ must be enabled.
9781 case ",$enable_languages,:$enable_bootstrap" in
9782 *,c++,*:*) ;;
9783 *:yes)
9784 if test -f ${srcdir}/gcc/cp/config-lang.in; then
9785 enable_languages="${enable_languages},c++"
9786 else
9787 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
9790 esac
9792 # First scan to see if an enabled language requires some other language.
9793 # We assume that a given config-lang.in will list all the language
9794 # front ends it requires, even if some are required indirectly.
9795 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9796 case ${lang_frag} in
9797 ..) ;;
9798 # The odd quoting in the next line works around
9799 # an apparent bug in bash 1.12 on linux.
9800 ${srcdir}/gcc/[*]/config-lang.in) ;;
9802 # From the config-lang.in, get $language, $lang_requires, and
9803 # $lang_requires_boot_languages.
9804 language=
9805 lang_requires=
9806 lang_requires_boot_languages=
9807 # set srcdir during sourcing lang_frag to the gcc dir.
9808 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9809 # pollutes this shell
9810 saved_srcdir=${srcdir}
9811 srcdir=${srcdir}/gcc . ${lang_frag}
9812 srcdir=${saved_srcdir}
9813 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9814 case ,${enable_languages}, in
9815 *,$other,*) ;;
9816 *,default,*) ;;
9817 *,all,*) ;;
9818 *,$language,*)
9819 echo " \`$other' language required by \`$language'; enabling" 1>&2
9820 enable_languages="${enable_languages},${other}"
9822 esac
9823 done
9824 for other in ${lang_requires_boot_languages} ; do
9825 if test "$other" != "c"; then
9826 case ,${enable_stage1_languages}, in
9827 *,$other,*) ;;
9828 *,default,*) ;;
9829 *,all,*) ;;
9831 case ,${enable_languages}, in
9832 *,$language,*)
9833 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9834 enable_stage1_languages="$enable_stage1_languages,${other}"
9836 esac
9838 esac
9840 done
9842 esac
9843 done
9845 new_enable_languages=,c,
9847 # If LTO is enabled, add the LTO front end.
9848 if test "$enable_lto" = "yes" ; then
9849 case ,${enable_languages}, in
9850 *,lto,*) ;;
9851 *) enable_languages="${enable_languages},lto" ;;
9852 esac
9853 if test "${build_lto_plugin}" = "yes" ; then
9854 configdirs="$configdirs lto-plugin"
9858 # If we're building an offloading compiler, add the LTO front end.
9859 if test x"$enable_as_accelerator_for" != x ; then
9860 case ,${enable_languages}, in
9861 *,lto,*) ;;
9862 *) enable_languages="${enable_languages},lto" ;;
9863 esac
9866 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9867 potential_languages=,c,
9869 enabled_target_libs=
9870 disabled_target_libs=
9872 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9873 case ${lang_frag} in
9874 ..) ;;
9875 # The odd quoting in the next line works around
9876 # an apparent bug in bash 1.12 on linux.
9877 ${srcdir}/gcc/[*]/config-lang.in) ;;
9879 # From the config-lang.in, get $language, $target_libs,
9880 # $lang_dirs, $boot_language, and $build_by_default
9881 language=
9882 target_libs=
9883 lang_dirs=
9884 subdir_requires=
9885 boot_language=no
9886 build_by_default=yes
9887 # set srcdir during sourcing. See above about save & restore
9888 saved_srcdir=${srcdir}
9889 srcdir=${srcdir}/gcc . ${lang_frag}
9890 srcdir=${saved_srcdir}
9891 if test x${language} = x; then
9892 echo "${lang_frag} doesn't set \$language." 1>&2
9893 exit 1
9896 if test "$language" = "c++"; then
9897 boot_language=yes
9900 add_this_lang=no
9901 # C is always enabled, so no need to add it again
9902 if test "$language" != "c"; then
9903 case ,${enable_languages}, in
9904 *,${language},*)
9905 # Language was explicitly selected; include it
9906 add_this_lang=yes
9908 *,all,*)
9909 # All languages are enabled
9910 add_this_lang=all
9912 *,default,*)
9913 # 'default' was selected, select it if it is a default language
9914 add_this_lang=${build_by_default}
9916 esac
9919 # Disable languages that need other directories if these aren't available.
9920 for i in $subdir_requires; do
9921 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9922 case ${add_this_lang} in
9923 yes)
9924 # Specifically requested language; tell them.
9925 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9927 all)
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9929 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9930 add_this_lang=unsupported
9933 # Silently disable.
9934 add_this_lang=unsupported
9936 esac
9937 done
9939 # Disable Ada if no preexisting GNAT is available.
9940 case ${add_this_lang}:${language}:${have_gnat} in
9941 yes:ada:no)
9942 # Specifically requested language; tell them.
9943 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9945 all:ada:no)
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9947 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9948 add_this_lang=unsupported
9950 *:ada:no)
9951 # Silently disable.
9952 add_this_lang=unsupported
9954 esac
9956 # Disable D if no preexisting GDC is available.
9957 case ${add_this_lang}:${language}:${have_gdc} in
9958 yes:d:no)
9959 # Specifically requested language; tell them.
9960 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9962 all:d:no)
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9964 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9965 add_this_lang=unsupported
9967 *:d:no)
9968 # Silently disable.
9969 add_this_lang=unsupported
9971 esac
9973 # Disable Rust if we are missing some required C libraries for the Rust runtime.
9974 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
9975 *:rust:none)
9976 # Nothing to do - we're not missing any C libraries
9978 yes:rust:*)
9979 as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
9980 add_this_lang=unsupported
9982 all:rust:*)
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
9984 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
9985 add_this_lang=unsupported
9987 *:rust:*)
9988 # Silently disable.
9989 add_this_lang=unsupported
9991 esac
9993 # Disable jit if -enable-host-shared not specified
9994 # but not if building for Mingw. All code in Windows
9995 # is position independent code (PIC).
9996 case $target in
9997 *mingw*) ;;
9999 case ${add_this_lang}:${language}:${host_shared} in
10000 yes:jit:no)
10001 # PR jit/64780: explicitly specify --enable-host-shared
10002 as_fn_error $? "
10003 Enabling language \"jit\" requires --enable-host-shared.
10005 --enable-host-shared typically slows the rest of the compiler down by
10006 a few %, so you must explicitly enable it.
10008 If you want to build both the jit and the regular compiler, it is often
10009 best to do this via two separate configure/builds, in separate
10010 directories, to avoid imposing the performance cost of
10011 --enable-host-shared on the regular compiler." "$LINENO" 5
10013 all:jit:no)
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10015 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10016 add_this_lang=unsupported
10018 *:jit:no)
10019 # Silently disable.
10020 add_this_lang=unsupported
10022 esac
10024 esac
10026 # Pre-conditions to consider whether cargo being supported.
10027 if test x"$have_cargo" = xyes \
10028 && test x"$build" != x"$host"; then
10029 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10030 # "'cargo' should build for the host system" is resolved:
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10032 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10033 have_cargo=no
10034 else
10035 # Assume that cargo-produced object files are compatible with what
10036 # we're going to build here.
10039 # Disable Rust if cargo is unavailable.
10040 case ${add_this_lang}:${language}:${have_cargo} in
10041 yes:rust:no)
10042 # Specifically requested language; tell them.
10043 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
10045 all:rust:no)
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10047 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10048 add_this_lang=unsupported
10050 *:rust:no)
10051 # Silently disable.
10052 add_this_lang=unsupported
10054 esac
10057 # Disable a language that is unsupported by the target.
10058 case "${add_this_lang}: $unsupported_languages " in
10059 no:*) ;;
10060 unsupported:*) ;;
10061 *:*" $language "*)
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10063 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10064 add_this_lang=unsupported
10066 esac
10068 case $add_this_lang in
10069 unsupported)
10070 # Remove language-dependent dirs.
10071 disabled_target_libs="$disabled_target_libs $target_libs"
10072 noconfigdirs="$noconfigdirs $lang_dirs"
10075 # Remove language-dependent dirs; still show language as supported.
10076 disabled_target_libs="$disabled_target_libs $target_libs"
10077 noconfigdirs="$noconfigdirs $lang_dirs"
10078 potential_languages="${potential_languages}${language},"
10080 all|yes)
10081 new_enable_languages="${new_enable_languages}${language},"
10082 potential_languages="${potential_languages}${language},"
10083 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
10084 enabled_target_libs="$enabled_target_libs $target_libs"
10085 case "${boot_language}:,$enable_stage1_languages," in
10086 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
10087 # Add to (comma-separated) list of stage 1 languages.
10088 case ",$stage1_languages," in
10089 *,$language,* | ,yes, | ,all,) ;;
10090 *) stage1_languages="${stage1_languages}${language}," ;;
10091 esac
10092 # We need to bootstrap any supporting libraries.
10093 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10095 esac
10097 esac
10099 esac
10100 done
10102 # Add target libraries which are only needed for disabled languages
10103 # to noconfigdirs.
10104 if test -n "$disabled_target_libs"; then
10105 for dir in $disabled_target_libs; do
10106 case " $enabled_target_libs " in
10107 *" ${dir} "*) ;;
10108 *) noconfigdirs="$noconfigdirs $dir" ;;
10109 esac
10110 done
10113 # Check whether --enable-stage1-languages was given.
10114 if test "${enable_stage1_languages+set}" = set; then :
10115 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10116 ,no,|,,)
10117 # Set it to something that will have no effect in the loop below
10118 enable_stage1_languages=c ;;
10119 ,yes,)
10120 enable_stage1_languages=`echo $new_enable_languages | \
10121 sed -e "s/^,//" -e "s/,$//" ` ;;
10122 *,all,*)
10123 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
10124 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10125 esac
10127 # Add "good" languages from enable_stage1_languages to stage1_languages,
10128 # while "bad" languages go in missing_languages. Leave no duplicates.
10129 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10130 case $potential_languages in
10131 *,$i,*)
10132 case $stage1_languages in
10133 *,$i,*) ;;
10134 *) stage1_languages="$stage1_languages$i," ;;
10135 esac ;;
10137 case $missing_languages in
10138 *,$i,*) ;;
10139 *) missing_languages="$missing_languages$i," ;;
10140 esac ;;
10141 esac
10142 done
10146 # Remove leading/trailing commas that were added for simplicity
10147 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10148 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10149 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10150 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10152 if test "x$missing_languages" != x; then
10153 as_fn_error $? "
10154 The following requested languages could not be built: ${missing_languages}
10155 Supported languages are: ${potential_languages}" "$LINENO" 5
10157 if test "x$new_enable_languages" != "x$enable_languages"; then
10158 echo The following languages will be built: ${new_enable_languages}
10159 enable_languages="$new_enable_languages"
10163 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10166 # Handle --disable-<component> generically.
10167 for dir in $configdirs $build_configdirs $target_configdirs ; do
10168 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10169 varname=`echo $dirname | sed -e s/+/_/g`
10170 if eval test x\${enable_${varname}} "=" xno ; then
10171 noconfigdirs="$noconfigdirs $dir"
10173 done
10175 # Check for Boehm's garbage collector
10176 # Check whether --enable-objc-gc was given.
10177 if test "${enable_objc_gc+set}" = set; then :
10178 enableval=$enable_objc_gc;
10182 # Check whether --with-target-bdw-gc was given.
10183 if test "${with_target_bdw_gc+set}" = set; then :
10184 withval=$with_target_bdw_gc;
10188 # Check whether --with-target-bdw-gc-include was given.
10189 if test "${with_target_bdw_gc_include+set}" = set; then :
10190 withval=$with_target_bdw_gc_include;
10194 # Check whether --with-target-bdw-gc-lib was given.
10195 if test "${with_target_bdw_gc_lib+set}" = set; then :
10196 withval=$with_target_bdw_gc_lib;
10200 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10202 $as_echo_n "checking for bdw garbage collector... " >&6; }
10203 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10205 $as_echo "using bdw-gc in default locations" >&6; }
10206 else
10207 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
10208 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10209 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
10210 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10211 else
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10213 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10216 esac
10218 # Disable libitm, libsanitizer, libvtv if we're not building C++
10219 case ,${enable_languages}, in
10220 *,c++,*)
10221 # Disable libitm, libsanitizer if we're not building libstdc++
10222 case "${noconfigdirs}" in
10223 *target-libstdc++-v3*)
10224 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
10226 *) ;;
10227 esac
10230 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10232 esac
10234 case ,${enable_languages}, in
10235 *,rust,*)
10236 case " ${noconfigdirs} " in
10237 *\ target-libstdc++-v3\ *)
10238 # Disable target libgrust if we're not building target libstdc++.
10239 noconfigdirs="$noconfigdirs target-libgrust"
10241 esac
10243 esac
10245 # If gcc/ is not in the source tree then we'll not be building a
10246 # target compiler, assume in that case we don't want to build any
10247 # target libraries or tools.
10249 # This was added primarily for the benefit for binutils-gdb who reuse
10250 # this configure script, but don't always have target tools available.
10251 if test ! -d ${srcdir}/gcc; then
10252 skipdirs="${skipdirs} ${target_configdirs}"
10255 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10256 # $build_configdirs and $target_configdirs.
10257 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10259 notsupp=""
10260 for dir in . $skipdirs $noconfigdirs ; do
10261 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10262 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10263 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10264 if test -r $srcdir/$dirname/configure ; then
10265 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10266 true
10267 else
10268 notsupp="$notsupp $dir"
10272 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10273 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10274 if test -r $srcdir/$dirname/configure ; then
10275 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10276 true
10277 else
10278 notsupp="$notsupp $dir"
10282 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10283 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10284 if test -r $srcdir/$dirname/configure ; then
10285 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10286 true
10287 else
10288 notsupp="$notsupp $dir"
10292 done
10294 # Quietly strip out all directories which aren't configurable in this tree.
10295 # This relies on all configurable subdirectories being autoconfiscated, which
10296 # is now the case.
10297 build_configdirs_all="$build_configdirs"
10298 build_configdirs=
10299 for i in ${build_configdirs_all} ; do
10300 j=`echo $i | sed -e s/build-//g`
10301 if test -f ${srcdir}/$j/configure ; then
10302 build_configdirs="${build_configdirs} $i"
10304 done
10306 configdirs_all="$configdirs"
10307 configdirs=
10308 for i in ${configdirs_all} ; do
10309 if test -f ${srcdir}/$i/configure ; then
10310 configdirs="${configdirs} $i"
10312 done
10314 target_configdirs_all="$target_configdirs"
10315 target_configdirs=
10316 for i in ${target_configdirs_all} ; do
10317 j=`echo $i | sed -e s/target-//g`
10318 if test -f ${srcdir}/$j/configure ; then
10319 target_configdirs="${target_configdirs} $i"
10321 done
10323 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10324 # so we have to add it after the preceding checks.
10325 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10326 then
10327 case " $configdirs " in
10328 *" libiberty "*)
10329 # If we can build libiberty, we can also build libiberty-linker-plugin.
10330 configdirs="$configdirs libiberty-linker-plugin"
10331 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
10332 --with-libiberty=../libiberty-linker-plugin";;
10334 as_fn_error $? "libiberty missing" "$LINENO" 5;;
10335 esac
10338 # Sometimes we have special requirements for the host libiberty.
10339 extra_host_libiberty_configure_flags=
10340 case " $configdirs " in
10341 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
10342 # When these are to be built as shared libraries, the same applies to
10343 # libiberty.
10344 extra_host_libiberty_configure_flags=--enable-shared
10346 esac
10349 # Sometimes we have special requirements for the host zlib.
10350 extra_host_zlib_configure_flags=
10351 case " $configdirs " in
10352 *" bfd "*)
10353 # When bfd is to be built as a shared library, the same applies to
10354 # zlib.
10355 if test "$enable_shared" = "yes"; then
10356 extra_host_zlib_configure_flags=--enable-host-shared
10359 esac
10362 # Produce a warning message for the subdirs we can't configure.
10363 # This isn't especially interesting in the Cygnus tree, but in the individual
10364 # FSF releases, it's important to let people know when their machine isn't
10365 # supported by the one or two programs in a package.
10367 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10368 # If $appdirs is non-empty, at least one of those directories must still
10369 # be configured, or we error out. (E.g., if the gas release supports a
10370 # specified target in some subdirs but not the gas subdir, we shouldn't
10371 # pretend that all is well.)
10372 if test -n "$appdirs" ; then
10373 for dir in $appdirs ; do
10374 if test -r $dir/Makefile.in ; then
10375 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10376 appdirs=""
10377 break
10379 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
10380 appdirs=""
10381 break
10384 done
10385 if test -n "$appdirs" ; then
10386 echo "*** This configuration is not supported by this package." 1>&2
10387 exit 1
10390 # Okay, some application will build, or we don't care to check. Still
10391 # notify of subdirs not getting built.
10392 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10393 echo " ${notsupp}" 1>&2
10394 echo " (Any other directories should still work fine.)" 1>&2
10397 case "$host" in
10398 *msdosdjgpp*)
10399 enable_gdbtk=no ;;
10400 esac
10402 # To find our prefix, in gcc_cv_tool_prefix.
10404 # The user is always right.
10405 if test "${PATH_SEPARATOR+set}" != set; then
10406 echo "#! /bin/sh" >conf$$.sh
10407 echo "exit 0" >>conf$$.sh
10408 chmod +x conf$$.sh
10409 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10410 PATH_SEPARATOR=';'
10411 else
10412 PATH_SEPARATOR=:
10414 rm -f conf$$.sh
10418 get_gcc_base_ver="cat"
10420 # Check whether --with-gcc-major-version-only was given.
10421 if test "${with_gcc_major_version_only+set}" = set; then :
10422 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
10423 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
10433 if test "x$exec_prefix" = xNONE; then
10434 if test "x$prefix" = xNONE; then
10435 gcc_cv_tool_prefix=$ac_default_prefix
10436 else
10437 gcc_cv_tool_prefix=$prefix
10439 else
10440 gcc_cv_tool_prefix=$exec_prefix
10443 # If there is no compiler in the tree, use the PATH only. In any
10444 # case, if there is no compiler in the tree nobody should use
10445 # AS_FOR_TARGET and LD_FOR_TARGET.
10446 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
10447 if test x$with_gcc_major_version_only = xyes ; then
10448 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10449 else
10450 gcc_version=`cat $srcdir/gcc/BASE-VER`
10452 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10453 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10454 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10455 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10456 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10457 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10458 else
10459 gcc_cv_tool_dirs=
10462 if test x$build = x$target && test -n "$md_exec_prefix"; then
10463 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10468 copy_dirs=
10471 # Check whether --with-build-sysroot was given.
10472 if test "${with_build_sysroot+set}" = set; then :
10473 withval=$with_build_sysroot; if test x"$withval" != x ; then
10474 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
10476 else
10477 SYSROOT_CFLAGS_FOR_TARGET=
10483 # Check whether --with-debug-prefix-map was given.
10484 if test "${with_debug_prefix_map+set}" = set; then :
10485 withval=$with_debug_prefix_map; if test x"$withval" != x; then
10486 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10487 for debug_map in $withval; do
10488 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10489 done
10491 else
10492 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10497 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10498 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10499 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10500 # We want to ensure that TARGET libraries (which we know are built with
10501 # gcc) are built with "-O2 -g", so include those options when setting
10502 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10503 if test "x$CFLAGS_FOR_TARGET" = x; then
10504 if test "x${is_cross_compiler}" = xyes; then
10505 CFLAGS_FOR_TARGET="-g -O2"
10506 else
10507 CFLAGS_FOR_TARGET=$CFLAGS
10508 case " $CFLAGS " in
10509 *" -O2 "*) ;;
10510 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
10511 esac
10512 case " $CFLAGS " in
10513 *" -g "* | *" -g3 "*) ;;
10514 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
10515 esac
10520 if test "x$CXXFLAGS_FOR_TARGET" = x; then
10521 if test "x${is_cross_compiler}" = xyes; then
10522 CXXFLAGS_FOR_TARGET="-g -O2"
10523 else
10524 CXXFLAGS_FOR_TARGET=$CXXFLAGS
10525 case " $CXXFLAGS " in
10526 *" -O2 "*) ;;
10527 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
10528 esac
10529 case " $CXXFLAGS " in
10530 *" -g "* | *" -g3 "*) ;;
10531 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
10532 esac
10539 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10540 # the named directory are copied to $(tooldir)/sys-include.
10541 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
10542 if test x${is_cross_compiler} = xno ; then
10543 echo 1>&2 '***' --with-headers is only supported when cross compiling
10544 exit 1
10546 if test x"${with_headers}" != xyes ; then
10547 x=${gcc_cv_tool_prefix}
10548 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10552 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10553 # the name directories are copied to $(tooldir)/lib. Multiple directories
10554 # are permitted.
10555 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
10556 if test x${is_cross_compiler} = xno ; then
10557 echo 1>&2 '***' --with-libs is only supported when cross compiling
10558 exit 1
10560 if test x"${with_libs}" != xyes ; then
10561 # Copy the libraries in reverse order, so that files in the first named
10562 # library override files in subsequent libraries.
10563 x=${gcc_cv_tool_prefix}
10564 for l in ${with_libs}; do
10565 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10566 done
10570 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10572 # This is done by determining whether or not the appropriate directory
10573 # is available, and by checking whether or not specific configurations
10574 # have requested that this magic not happen.
10576 # The command line options always override the explicit settings in
10577 # configure.ac, and the settings in configure.ac override this magic.
10579 # If the default for a toolchain is to use GNU as and ld, and you don't
10580 # want to do that, then you should use the --without-gnu-as and
10581 # --without-gnu-ld options for the configure script. Similarly, if
10582 # the default is to use the included zlib and you don't want to do that,
10583 # you should use the --with-system-zlib option for the configure script.
10585 if test x${use_gnu_as} = x &&
10586 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
10587 with_gnu_as=yes
10588 extra_host_args="$extra_host_args --with-gnu-as"
10591 if test x${use_gnu_ld} = x &&
10592 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
10593 with_gnu_ld=yes
10594 extra_host_args="$extra_host_args --with-gnu-ld"
10597 if test x${use_included_zlib} = x &&
10598 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
10600 else
10601 with_system_zlib=yes
10602 extra_host_args="$extra_host_args --with-system-zlib"
10605 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10606 # can detect this case.
10608 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
10609 with_newlib=yes
10610 extra_host_args="$extra_host_args --with-newlib"
10613 # Handle ${copy_dirs}
10614 set fnord ${copy_dirs}
10615 shift
10616 while test $# != 0 ; do
10617 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
10619 else
10620 echo Copying $1 to $2
10622 # Use the install script to create the directory and all required
10623 # parent directories.
10624 if test -d $2 ; then
10626 else
10627 echo >config.temp
10628 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
10631 # Copy the directory, assuming we have tar.
10632 # FIXME: Should we use B in the second tar? Not all systems support it.
10633 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
10635 # It is the responsibility of the user to correctly adjust all
10636 # symlinks. If somebody can figure out how to handle them correctly
10637 # here, feel free to add the code.
10639 echo $1 > $2/COPIED
10641 shift; shift
10642 done
10644 # Determine a target-dependent exec_prefix that the installed
10645 # gcc will search in. Keep this list sorted by triplet, with
10646 # the *-*-osname triplets last.
10647 md_exec_prefix=
10648 case "${target}" in
10649 i[34567]86-pc-msdosdjgpp*)
10650 md_exec_prefix=/dev/env/DJDIR/bin
10652 *-*-hpux* | \
10653 *-*-nto-qnx* | \
10654 *-*-solaris2*)
10655 md_exec_prefix=/usr/ccs/bin
10657 esac
10659 extra_arflags_for_target=
10660 extra_nmflags_for_target=
10661 extra_ranlibflags_for_target=
10662 target_makefile_frag=/dev/null
10663 case "${target}" in
10664 spu-*-*)
10665 target_makefile_frag="config/mt-spu"
10667 loongarch*-*linux* | loongarch*-*gnu*)
10668 target_makefile_frag="config/mt-loongarch-gnu"
10670 loongarch*-*elf*)
10671 target_makefile_frag="config/mt-loongarch-elf"
10673 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
10674 target_makefile_frag="config/mt-sde"
10676 mipsisa*-*-elfoabi*)
10677 target_makefile_frag="config/mt-mips-elfoabi"
10679 mips*-*-*linux* | mips*-*-gnu*)
10680 target_makefile_frag="config/mt-mips-gnu"
10682 nios2-*-elf*)
10683 target_makefile_frag="config/mt-nios2-elf"
10685 *-*-linux-android*)
10686 target_makefile_frag="config/mt-android"
10688 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
10689 target_makefile_frag="config/mt-gnu"
10691 *-*-aix4.[3456789]* | *-*-aix[56789].*)
10692 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10693 # commands to handle both 32-bit and 64-bit objects. These flags are
10694 # harmless if we're using GNU nm or ar.
10695 extra_arflags_for_target=" -X32_64"
10696 extra_nmflags_for_target=" -B -X32_64"
10698 esac
10700 alphaieee_frag=/dev/null
10701 case $target in
10702 alpha*-*-*)
10703 # This just makes sure to use the -mieee option to build target libs.
10704 # This should probably be set individually by each library.
10705 alphaieee_frag="config/mt-alphaieee"
10707 esac
10709 # If --enable-target-optspace always use -Os instead of -O2 to build
10710 # the target libraries, similarly if it is not specified, use -Os
10711 # on selected platforms.
10712 ospace_frag=/dev/null
10713 case "${enable_target_optspace}:${target}" in
10714 yes:*)
10715 ospace_frag="config/mt-ospace"
10717 :d30v-*)
10718 ospace_frag="config/mt-d30v"
10720 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
10721 ospace_frag="config/mt-ospace"
10723 no:* | :*)
10726 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10728 esac
10730 # Some systems (e.g., one of the i386-aix systems the gas testers are
10731 # using) don't handle "\$" correctly, so don't use it here.
10732 tooldir='${exec_prefix}'/${target_noncanonical}
10733 build_tooldir=${tooldir}
10735 # Create a .gdbinit file which runs the one in srcdir
10736 # and tells GDB to look there for source files.
10738 if test -r ${srcdir}/.gdbinit ; then
10739 case ${srcdir} in
10740 .) ;;
10741 *) cat > ./.gdbinit <<EOF
10742 # ${NO_EDIT}
10743 dir ${srcdir}
10744 dir .
10745 source ${srcdir}/.gdbinit
10748 esac
10751 # Make sure that the compiler is able to generate an executable. If it
10752 # can't, we are probably in trouble. We don't care whether we can run the
10753 # executable--we might be using a cross compiler--we only care whether it
10754 # can be created. At this point the main configure script has set CC.
10755 we_are_ok=no
10756 echo "int main () { return 0; }" > conftest.c
10757 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10758 if test $? = 0 ; then
10759 if test -s conftest || test -s conftest.exe ; then
10760 we_are_ok=yes
10763 case $we_are_ok in
10765 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10766 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10767 rm -f conftest*
10768 exit 1
10770 esac
10771 rm -f conftest*
10773 # Decide which environment variable is used to find dynamic libraries.
10774 case "${host}" in
10775 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
10776 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
10777 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
10778 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
10779 esac
10781 # On systems where the dynamic library environment variable is PATH,
10782 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10783 # built executables to PATH.
10784 if test "$RPATH_ENVVAR" = PATH; then
10785 GCC_SHLIB_SUBDIR=/shlib
10786 else
10787 GCC_SHLIB_SUBDIR=
10790 # Adjust the toplevel makefile according to whether bootstrap was selected.
10791 case $enable_bootstrap in
10792 yes)
10793 bootstrap_suffix=bootstrap
10794 BUILD_CONFIG=bootstrap-debug
10797 bootstrap_suffix=no-bootstrap
10798 BUILD_CONFIG=
10800 esac
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10803 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10806 # Check whether --with-build-config was given.
10807 if test "${with_build_config+set}" = set; then :
10808 withval=$with_build_config; case $with_build_config in
10809 yes) with_build_config= ;;
10810 no) with_build_config= BUILD_CONFIG= ;;
10811 esac
10815 if test "x${with_build_config}" != x; then
10816 BUILD_CONFIG=$with_build_config
10817 else
10818 case $BUILD_CONFIG in
10819 bootstrap-debug)
10820 if echo "int f (void) { return 0; }" > conftest.c &&
10821 ${CC} -c conftest.c &&
10822 mv conftest.o conftest.o.g0 &&
10823 ${CC} -c -g conftest.c &&
10824 mv conftest.o conftest.o.g &&
10825 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
10827 else
10828 BUILD_CONFIG=
10830 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10832 esac
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10835 $as_echo "$BUILD_CONFIG" >&6; }
10838 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10840 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10841 # Check whether --enable-vtable-verify was given.
10842 if test "${enable_vtable_verify+set}" = set; then :
10843 enableval=$enable_vtable_verify; case "$enableval" in
10844 yes) enable_vtable_verify=yes ;;
10845 no) enable_vtable_verify=no ;;
10846 *) enable_vtable_verify=no;;
10847 esac
10848 else
10849 enable_vtable_verify=no
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
10853 $as_echo "$enable_vtable_verify" >&6; }
10855 # Record target_configdirs and the configure arguments for target and
10856 # build configuration in Makefile.
10857 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
10858 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
10859 bootstrap_fixincludes=no
10861 # If we are building libgomp, bootstrap it.
10862 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
10863 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
10866 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
10867 # or bootstrap-ubsan, bootstrap it.
10868 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
10869 case "$BUILD_CONFIG" in
10870 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
10871 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
10872 bootstrap_fixincludes=yes
10874 esac
10877 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10878 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
10879 test "$enable_vtable_verify" != no; then
10880 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
10883 # If we are building libatomic and the list of enabled languages includes the
10884 # D frontend, bootstrap it.
10885 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
10886 case ,${enable_languages}, in
10887 *,d,*)
10888 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
10890 esac
10893 # Determine whether gdb needs tk/tcl or not.
10894 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10895 # and in that case we want gdb to be built without tk. Ugh!
10896 # In fact I believe gdb is the *only* package directly dependent on tk,
10897 # so we should be able to put the 'maybe's in unconditionally and
10898 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10899 # 100% sure that that's safe though.
10901 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10902 case "$enable_gdbtk" in
10904 GDB_TK="" ;;
10905 yes)
10906 GDB_TK="${gdb_tk}" ;;
10908 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10909 # distro. Eventually someone will fix this and move Insight, nee
10910 # gdbtk to a separate directory.
10911 if test -d ${srcdir}/gdb/gdbtk ; then
10912 GDB_TK="${gdb_tk}"
10913 else
10914 GDB_TK=""
10917 esac
10918 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10919 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10921 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10922 # else does, only include them if one of these is built. The Makefile
10923 # provides the ordering, so it's enough here to add to the list.
10924 case " ${configdirs} " in
10925 *\ gdb\ *)
10926 configdirs="${configdirs} gnulib gdbsupport"
10928 *\ gdbserver\ *)
10929 configdirs="${configdirs} gnulib gdbsupport"
10931 *\ sim\ *)
10932 configdirs="${configdirs} gnulib"
10934 esac
10936 # Strip out unwanted targets.
10938 # While at that, we remove Makefiles if we were started for recursive
10939 # configuration, so that the top-level Makefile reconfigures them,
10940 # like we used to do when configure itself was recursive.
10942 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
10943 # but now we're fixing up the Makefile ourselves with the additional
10944 # commands passed to AC_CONFIG_FILES. Use separate variables
10945 # extrasub-{build,host,target} not because there is any reason to split
10946 # the substitutions up that way, but only to remain below the limit of
10947 # 99 commands in a script, for HP-UX sed.
10949 # Do not nest @if/@endif or @unless/@endunless pairs, because
10950 # configure will not warn you at all.
10952 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
10953 yes:yes:*\ gold\ *:*,c++,*) ;;
10954 yes:yes:*\ gold\ *:*)
10955 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
10957 esac
10959 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
10960 # Note C++ is always enabled for stage1 now.
10961 case "$enable_bootstrap:${noconfigdirs}" in
10962 yes:*target-libstdc++-v3*)
10963 as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
10965 esac
10968 extrasub_build=
10969 for module in ${build_configdirs} ; do
10970 if test -z "${no_recursion}" \
10971 && test -f ${build_subdir}/${module}/Makefile; then
10972 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
10973 rm -f ${build_subdir}/${module}/Makefile
10975 extrasub_build="$extrasub_build
10976 /^@if build-$module\$/d
10977 /^@endif build-$module\$/d
10978 /^@unless build-$module\$/,/^@endunless build-$module\$/d
10979 /^@if build-$module-$bootstrap_suffix\$/d
10980 /^@endif build-$module-$bootstrap_suffix\$/d
10981 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
10982 done
10983 extrasub_host=
10984 for module in ${configdirs} ; do
10985 if test -z "${no_recursion}"; then
10986 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
10987 if test -f ${file}; then
10988 echo 1>&2 "*** removing ${file} to force reconfigure"
10989 rm -f ${file}
10991 done
10993 case ${module},${bootstrap_fixincludes} in
10994 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10995 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10996 esac
10997 extrasub_host="$extrasub_host
10998 /^@if $module\$/d
10999 /^@endif $module\$/d
11000 /^@unless $module\$/,/^@endunless $module\$/d
11001 /^@if $module-$host_bootstrap_suffix\$/d
11002 /^@endif $module-$host_bootstrap_suffix\$/d
11003 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11004 done
11005 extrasub_target=
11006 for module in ${target_configdirs} ; do
11007 if test -z "${no_recursion}" \
11008 && test -f ${target_subdir}/${module}/Makefile; then
11009 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11010 rm -f ${target_subdir}/${module}/Makefile
11013 # We only bootstrap target libraries listed in bootstrap_target_libs.
11014 case $bootstrap_target_libs in
11015 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
11016 *) target_bootstrap_suffix=no-bootstrap ;;
11017 esac
11019 extrasub_target="$extrasub_target
11020 /^@if target-$module\$/d
11021 /^@endif target-$module\$/d
11022 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11023 /^@if target-$module-$target_bootstrap_suffix\$/d
11024 /^@endif target-$module-$target_bootstrap_suffix\$/d
11025 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11026 done
11028 # Do the final fixup along with target modules.
11029 extrasub_target="$extrasub_target
11030 /^@if /,/^@endif /d
11031 /^@unless /d
11032 /^@endunless /d"
11034 if test "$enable_pgo_build" != "no"; then
11035 extrasub_build="$extrasub_build
11036 /^@if pgo-build\$/d
11037 /^@endif pgo-build\$/d"
11040 # Create the serialization dependencies. This uses a temporary file.
11042 # Check whether --enable-serial-configure was given.
11043 if test "${enable_serial_configure+set}" = set; then :
11044 enableval=$enable_serial_configure;
11048 case ${enable_serial_configure} in
11049 yes)
11050 enable_serial_build_configure=yes
11051 enable_serial_host_configure=yes
11052 enable_serial_target_configure=yes
11054 esac
11056 # These force 'configure's to be done one at a time, to avoid problems
11057 # with contention over a shared config.cache.
11058 rm -f serdep.tmp
11059 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
11060 echo '# serdep.tmp' > serdep.tmp
11062 olditem=
11063 test "x${enable_serial_build_configure}" = xyes &&
11064 for item in ${build_configdirs} ; do
11065 case ${olditem} in
11066 "") ;;
11067 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
11068 esac
11069 olditem=${item}
11070 done
11071 olditem=
11072 test "x${enable_serial_host_configure}" = xyes &&
11073 for item in ${configdirs} ; do
11074 case ${olditem} in
11075 "") ;;
11076 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
11077 esac
11078 olditem=${item}
11079 done
11080 olditem=
11081 test "x${enable_serial_target_configure}" = xyes &&
11082 for item in ${target_configdirs} ; do
11083 case ${olditem} in
11084 "") ;;
11085 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
11086 esac
11087 olditem=${item}
11088 done
11089 serialization_dependencies=serdep.tmp
11092 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11093 # target, nonopt, and variable assignments. These are the ones we
11094 # might not want to pass down to subconfigures. The exception being
11095 # --cache-file=/dev/null, which is used to turn off the use of cache
11096 # files altogether, and which should be passed on to subconfigures.
11097 # Also strip program-prefix, program-suffix, and program-transform-name,
11098 # so that we can pass down a consistent program-transform-name.
11099 hbaseargs=
11100 bbaseargs=
11101 tbaseargs=
11102 keep_next=no
11103 skip_next=no
11104 eval "set -- $ac_configure_args"
11105 for ac_arg
11107 if test X"$skip_next" = X"yes"; then
11108 skip_next=no
11109 continue
11111 if test X"$keep_next" = X"yes"; then
11112 case $ac_arg in
11113 *\'*)
11114 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11115 esac
11116 hbaseargs="$hbaseargs '$ac_arg'"
11117 bbaseargs="$bbaseargs '$ac_arg'"
11118 tbaseargs="$tbaseargs '$ac_arg'"
11119 keep_next=no
11120 continue
11123 # Handle separated arguments. Based on the logic generated by
11124 # autoconf 2.59.
11125 case $ac_arg in
11126 *=* | --config-cache | -C | -disable-* | --disable-* \
11127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
11128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
11129 | -with-* | --with-* | -without-* | --without-* | --x)
11130 separate_arg=no
11133 separate_arg=yes
11136 separate_arg=no
11138 esac
11140 skip_targ=no
11141 skip_barg=no
11142 case $ac_arg in
11144 --with-* | --without-*)
11145 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11147 case $libopt in
11148 *[-_]include)
11149 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
11151 *[-_]lib)
11152 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
11154 *[-_]prefix)
11155 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11157 *[-_]type)
11158 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
11161 lib=$libopt
11163 esac
11166 case $lib in
11167 mpc | mpfr | gmp | isl)
11168 # If we're processing --with-$lib, --with-$lib-include or
11169 # --with-$lib-lib, for one of the libs above, and target is
11170 # different from host, don't pass the current argument to any
11171 # target library's configure.
11172 if test x$is_cross_compiler = xyes; then
11173 skip_targ=yes
11176 libintl | libiconv)
11177 # We don't want libintl (and co.) in anything but the host arguments.
11178 skip_targ=yes
11179 skip_barg=yes
11181 esac
11183 esac
11185 case "$ac_arg" in
11186 --cache-file=/dev/null | \
11187 -cache-file=/dev/null )
11188 # Handled here to avoid the test to skip args below.
11189 hbaseargs="$hbaseargs '$ac_arg'"
11190 bbaseargs="$bbaseargs '$ac_arg'"
11191 tbaseargs="$tbaseargs '$ac_arg'"
11192 # Assert: $separate_arg should always be no.
11193 keep_next=$separate_arg
11195 --no*)
11196 continue
11198 --c* | \
11199 --sr* | \
11200 --ho* | \
11201 --bu* | \
11202 --t* | \
11203 --program-* | \
11204 -cache_file* | \
11205 -srcdir* | \
11206 -host* | \
11207 -build* | \
11208 -target* | \
11209 -program-prefix* | \
11210 -program-suffix* | \
11211 -program-transform-name* )
11212 skip_next=$separate_arg
11213 continue
11216 # An option. Add it.
11217 case $ac_arg in
11218 *\'*)
11219 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11220 esac
11221 hbaseargs="$hbaseargs '$ac_arg'"
11222 if test X"$skip_barg" = Xno; then
11223 bbaseargs="$bbaseargs '$ac_arg'"
11225 if test X"$skip_targ" = Xno; then
11226 tbaseargs="$tbaseargs '$ac_arg'"
11228 keep_next=$separate_arg
11231 # Either a variable assignment, or a nonopt (triplet). Don't
11232 # pass it down; let the Makefile handle this.
11233 continue
11235 esac
11236 done
11237 # Remove the initial space we just introduced and, as these will be
11238 # expanded by make, quote '$'.
11239 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11240 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11242 # Add in --program-transform-name, after --program-prefix and
11243 # --program-suffix have been applied to it. Autoconf has already
11244 # doubled dollar signs and backslashes in program_transform_name; we want
11245 # the backslashes un-doubled, and then the entire thing wrapped in single
11246 # quotes, because this will be expanded first by make and then by the shell.
11247 # Also, because we want to override the logic in subdir configure scripts to
11248 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11249 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11250 ${program_transform_name}
11251 EOF_SED
11252 gcc_transform_name=`cat conftestsed.out`
11253 rm -f conftestsed.out
11254 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11255 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11256 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11257 if test "$silent" = yes; then
11258 bbaseargs="$bbaseargs --silent"
11259 hbaseargs="$hbaseargs --silent"
11260 tbaseargs="$tbaseargs --silent"
11263 bbaseargs="$bbaseargs --disable-option-checking"
11264 hbaseargs="$hbaseargs --disable-option-checking"
11265 tbaseargs="$tbaseargs --disable-option-checking"
11267 if test "$enable_year2038" = no; then
11268 baseargs="$baseargs --disable-year2038"
11269 tbaseargs="$tbaseargs --disable-year2038"
11272 # Record and document user additions to sub configure arguments.
11277 # For the build-side libraries, we just need to pretend we're native,
11278 # and not use the same cache file. Multilibs are neither needed nor
11279 # desired. We can't even use the same cache file for all build-side
11280 # libraries, as they're compiled differently; some with C, some with
11281 # C++ or with different feature-enabling options.
11282 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11284 # For host modules, accept cache file option, or specification as blank.
11285 case "${cache_file}" in
11286 "") # empty
11287 cache_file_option="" ;;
11288 /* | [A-Za-z]:[\\/]* ) # absolute path
11289 cache_file_option="--cache-file=${cache_file}" ;;
11290 *) # relative path
11291 cache_file_option="--cache-file=../${cache_file}" ;;
11292 esac
11294 # Host dirs don't like to share a cache file either, horribly enough.
11295 # This seems to be due to autoconf 2.5x stupidity.
11296 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11298 target_configargs="$target_configargs ${tbaseargs}"
11300 # Passing a --with-cross-host argument lets the target libraries know
11301 # whether they are being built with a cross-compiler or being built
11302 # native. However, it would be better to use other mechanisms to make the
11303 # sorts of decisions they want to make on this basis. Please consider
11304 # this option to be deprecated. FIXME.
11305 if test x${is_cross_compiler} = xyes ; then
11306 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
11309 # Special user-friendly check for native x86_64-linux build, if
11310 # multilib is not explicitly enabled.
11311 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11312 x86_64-*linux*:yes:$build:$build:)
11313 # Make sure we have a development environment that handles 32-bit
11314 dev64=no
11315 echo "int main () { return 0; }" > conftest.c
11316 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11317 if test $? = 0 ; then
11318 if test -s conftest || test -s conftest.exe ; then
11319 dev64=yes
11322 rm -f conftest*
11323 if test x${dev64} != xyes ; then
11324 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
11327 esac
11329 # Default to --enable-multilib.
11330 if test x${enable_multilib} = x ; then
11331 target_configargs="--enable-multilib ${target_configargs}"
11334 # Pass --with-newlib if appropriate. Note that target_configdirs has
11335 # changed from the earlier setting of with_newlib.
11336 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
11337 target_configargs="--with-newlib ${target_configargs}"
11340 # Different target subdirs use different values of certain variables
11341 # (notably CXX). Worse, multilibs use *lots* of different values.
11342 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11343 # it doesn't automatically accept command-line overrides of them.
11344 # This means it's not safe for target subdirs to share a cache file,
11345 # which is disgusting, but there you have it. Hopefully this can be
11346 # fixed in future. It's still worthwhile to use a cache file for each
11347 # directory. I think.
11349 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11350 # We need to pass --target, as newer autoconf's requires consistency
11351 # for target_alias and gcc doesn't manage it consistently.
11352 target_configargs="--cache-file=./config.cache ${target_configargs}"
11354 FLAGS_FOR_TARGET=
11355 case " $target_configdirs " in
11356 *" newlib "*)
11357 case " $target_configargs " in
11358 *" --with-newlib "*)
11359 case "$target" in
11360 *-cygwin*)
11361 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11363 esac
11365 # If we're not building GCC, don't discard standard headers.
11366 if test -d ${srcdir}/gcc; then
11367 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
11369 if test "${build}" != "${host}"; then
11370 # On Canadian crosses, CC_FOR_TARGET will have already been set
11371 # by `configure', so we won't have an opportunity to add -Bgcc/
11372 # to it. This is right: we don't want to search that directory
11373 # for binaries, but we want the header files in there, so add
11374 # them explicitly.
11375 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11377 # Someone might think of using the pre-installed headers on
11378 # Canadian crosses, in case the installed compiler is not fully
11379 # compatible with the compiler being built. In this case, it
11380 # would be better to flag an error than risking having
11381 # incompatible object files being constructed. We can't
11382 # guarantee that an error will be flagged, but let's hope the
11383 # compiler will do it, when presented with incompatible header
11384 # files.
11388 case "${target}-${is_cross_compiler}" in
11389 i[3456789]86-*-linux*-no)
11390 # Here host == target, so we don't need to build gcc,
11391 # so we don't want to discard standard headers.
11392 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11395 # If we're building newlib, use its generic headers last, but search
11396 # for any libc-related directories first (so make it the last -B
11397 # switch).
11398 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11400 # If we're building libgloss, find the startup file, simulator library
11401 # and linker script.
11402 case " $target_configdirs " in
11403 *" libgloss "*)
11404 # Look for startup file, simulator library and maybe linker script.
11405 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11406 # Look for libnosys.a in case the target needs it.
11407 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11408 # Most targets have the linker script in the source directory.
11409 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11411 esac
11413 esac
11415 esac
11417 esac
11419 case "$target" in
11420 x86_64-*mingw* | *-w64-mingw*)
11421 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11422 # however, use a symlink named 'mingw' in ${prefix} .
11423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11425 *-mingw*)
11426 # MinGW can't be handled as Cygwin above since it does not use newlib.
11427 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'
11429 esac
11431 # Allow the user to override the flags for
11432 # our build compiler if desired.
11433 if test x"${build}" = x"${host}" ; then
11434 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
11435 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11436 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11437 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11440 # On Canadian crosses, we'll be searching the right directories for
11441 # the previously-installed cross compiler, so don't bother to add
11442 # flags for directories within the install tree of the compiler
11443 # being built; programs in there won't even run.
11444 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
11445 # Search for pre-installed headers if nothing else fits.
11446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11449 if test "x${use_gnu_ld}" = x &&
11450 echo " ${configdirs} " | grep " ld " > /dev/null ; then
11451 # Arrange for us to find uninstalled linker scripts.
11452 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11455 # Search for other target-specific linker scripts and such.
11456 case "${target}" in
11457 mep*)
11458 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11460 # The VxWorks support for shared libraries is getting in
11461 # incrementally. Make sure it doesn't get activated implicitly:
11462 *vxworks*)
11463 if test "${enable_shared-unset}" = unset ; then
11464 enable_shared=no
11465 # So the build of libraries knows ...
11466 target_configargs="${target_configargs} --disable-shared"
11467 # So gcc knows ...
11468 host_configargs="${host_configargs} --disable-shared"
11471 esac
11473 # Makefile fragments.
11474 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11476 eval fragval=\$$frag
11477 if test $fragval != /dev/null; then
11478 eval $frag=${srcdir}/$fragval
11480 done
11486 # Miscellanea: directories, flags, etc.
11495 # Build module lists & subconfigure args.
11499 # Host module lists & subconfigure args.
11504 # Target module lists & subconfigure args.
11508 # Build tools.
11529 # Generate default definitions for YACC, M4, LEX and other programs that run
11530 # on the build machine. These are used if the Makefile can't locate these
11531 # programs in objdir.
11532 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11534 for ac_prog in 'bison -y' byacc yacc
11536 # Extract the first word of "$ac_prog", so it can be a program name with args.
11537 set dummy $ac_prog; ac_word=$2
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539 $as_echo_n "checking for $ac_word... " >&6; }
11540 if ${ac_cv_prog_YACC+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 if test -n "$YACC"; then
11544 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11545 else
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553 ac_cv_prog_YACC="$ac_prog"
11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11555 break 2
11557 done
11558 done
11559 IFS=$as_save_IFS
11563 YACC=$ac_cv_prog_YACC
11564 if test -n "$YACC"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11566 $as_echo "$YACC" >&6; }
11567 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11573 test -n "$YACC" && break
11574 done
11575 test -n "$YACC" || YACC="$MISSING bison -y"
11577 case " $build_configdirs " in
11578 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11579 esac
11581 for ac_prog in bison
11583 # Extract the first word of "$ac_prog", so it can be a program name with args.
11584 set dummy $ac_prog; ac_word=$2
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586 $as_echo_n "checking for $ac_word... " >&6; }
11587 if ${ac_cv_prog_BISON+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 if test -n "$BISON"; then
11591 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11592 else
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11600 ac_cv_prog_BISON="$ac_prog"
11601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 break 2
11604 done
11605 done
11606 IFS=$as_save_IFS
11610 BISON=$ac_cv_prog_BISON
11611 if test -n "$BISON"; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11613 $as_echo "$BISON" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11620 test -n "$BISON" && break
11621 done
11622 test -n "$BISON" || BISON="$MISSING bison"
11624 case " $build_configdirs " in
11625 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11626 esac
11628 for ac_prog in gm4 gnum4 m4
11630 # Extract the first word of "$ac_prog", so it can be a program name with args.
11631 set dummy $ac_prog; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if ${ac_cv_prog_M4+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 if test -n "$M4"; then
11638 ac_cv_prog_M4="$M4" # Let the user override the test.
11639 else
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647 ac_cv_prog_M4="$ac_prog"
11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11651 done
11652 done
11653 IFS=$as_save_IFS
11657 M4=$ac_cv_prog_M4
11658 if test -n "$M4"; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
11660 $as_echo "$M4" >&6; }
11661 else
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11667 test -n "$M4" && break
11668 done
11669 test -n "$M4" || M4="$MISSING m4"
11671 case " $build_configdirs " in
11672 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11673 esac
11675 for ac_prog in flex lex
11677 # Extract the first word of "$ac_prog", so it can be a program name with args.
11678 set dummy $ac_prog; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_prog_LEX+:} false; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 if test -n "$LEX"; then
11685 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11686 else
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694 ac_cv_prog_LEX="$ac_prog"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11698 done
11699 done
11700 IFS=$as_save_IFS
11704 LEX=$ac_cv_prog_LEX
11705 if test -n "$LEX"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11707 $as_echo "$LEX" >&6; }
11708 else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11714 test -n "$LEX" && break
11715 done
11716 test -n "$LEX" || LEX="$MISSING flex"
11718 case " $build_configdirs " in
11719 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11720 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11721 esac
11723 for ac_prog in flex
11725 # Extract the first word of "$ac_prog", so it can be a program name with args.
11726 set dummy $ac_prog; ac_word=$2
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728 $as_echo_n "checking for $ac_word... " >&6; }
11729 if ${ac_cv_prog_FLEX+:} false; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 if test -n "$FLEX"; then
11733 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11734 else
11735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 for as_dir in $PATH
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11742 ac_cv_prog_FLEX="$ac_prog"
11743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 break 2
11746 done
11747 done
11748 IFS=$as_save_IFS
11752 FLEX=$ac_cv_prog_FLEX
11753 if test -n "$FLEX"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11755 $as_echo "$FLEX" >&6; }
11756 else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11762 test -n "$FLEX" && break
11763 done
11764 test -n "$FLEX" || FLEX="$MISSING flex"
11766 case " $build_configdirs " in
11767 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11768 esac
11770 for ac_prog in makeinfo
11772 # Extract the first word of "$ac_prog", so it can be a program name with args.
11773 set dummy $ac_prog; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_prog_MAKEINFO+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 if test -n "$MAKEINFO"; then
11780 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11781 else
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11789 ac_cv_prog_MAKEINFO="$ac_prog"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 break 2
11793 done
11794 done
11795 IFS=$as_save_IFS
11799 MAKEINFO=$ac_cv_prog_MAKEINFO
11800 if test -n "$MAKEINFO"; then
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11802 $as_echo "$MAKEINFO" >&6; }
11803 else
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11809 test -n "$MAKEINFO" && break
11810 done
11811 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
11813 case " $build_configdirs " in
11814 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11817 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11818 # higher, else we use the "missing" dummy.
11819 if ${MAKEINFO} --version \
11820 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11822 else
11823 MAKEINFO="$MISSING makeinfo"
11827 esac
11829 # FIXME: expect and dejagnu may become build tools?
11831 for ac_prog in expect
11833 # Extract the first word of "$ac_prog", so it can be a program name with args.
11834 set dummy $ac_prog; ac_word=$2
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11836 $as_echo_n "checking for $ac_word... " >&6; }
11837 if ${ac_cv_prog_EXPECT+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 if test -n "$EXPECT"; then
11841 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
11842 else
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $PATH
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850 ac_cv_prog_EXPECT="$ac_prog"
11851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11854 done
11855 done
11856 IFS=$as_save_IFS
11860 EXPECT=$ac_cv_prog_EXPECT
11861 if test -n "$EXPECT"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
11863 $as_echo "$EXPECT" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11870 test -n "$EXPECT" && break
11871 done
11872 test -n "$EXPECT" || EXPECT="expect"
11874 case " $configdirs " in
11875 *" expect "*)
11876 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
11878 esac
11880 for ac_prog in runtest
11882 # Extract the first word of "$ac_prog", so it can be a program name with args.
11883 set dummy $ac_prog; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_prog_RUNTEST+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 if test -n "$RUNTEST"; then
11890 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899 ac_cv_prog_RUNTEST="$ac_prog"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 break 2
11903 done
11904 done
11905 IFS=$as_save_IFS
11909 RUNTEST=$ac_cv_prog_RUNTEST
11910 if test -n "$RUNTEST"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
11912 $as_echo "$RUNTEST" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11919 test -n "$RUNTEST" && break
11920 done
11921 test -n "$RUNTEST" || RUNTEST="runtest"
11923 case " $configdirs " in
11924 *" dejagnu "*)
11925 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11927 esac
11930 # Host tools.
11931 ncn_tool_prefix=
11932 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11933 ncn_target_tool_prefix=
11934 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
11938 if test -n "$AR"; then
11939 ac_cv_prog_AR=$AR
11940 elif test -n "$ac_cv_prog_AR"; then
11941 AR=$ac_cv_prog_AR
11944 if test -n "$ac_cv_prog_AR"; then
11945 for ncn_progname in ar; do
11946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11947 set dummy ${ncn_progname}; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_prog_AR+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test -n "$AR"; then
11954 ac_cv_prog_AR="$AR" # Let the user override the test.
11955 else
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_AR="${ncn_progname}"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11967 done
11968 done
11969 IFS=$as_save_IFS
11973 AR=$ac_cv_prog_AR
11974 if test -n "$AR"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11976 $as_echo "$AR" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11983 done
11986 for ncn_progname in ar; do
11987 if test -n "$ncn_tool_prefix"; then
11988 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11989 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_prog_AR+:} false; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 if test -n "$AR"; then
11996 ac_cv_prog_AR="$AR" # Let the user override the test.
11997 else
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12001 IFS=$as_save_IFS
12002 test -z "$as_dir" && as_dir=.
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12007 break 2
12009 done
12010 done
12011 IFS=$as_save_IFS
12015 AR=$ac_cv_prog_AR
12016 if test -n "$AR"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12018 $as_echo "$AR" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12026 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12028 set dummy ${ncn_progname}; ac_word=$2
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if ${ac_cv_prog_AR+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 if test -n "$AR"; then
12035 ac_cv_prog_AR="$AR" # Let the user override the test.
12036 else
12037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038 for as_dir in $PATH
12040 IFS=$as_save_IFS
12041 test -z "$as_dir" && as_dir=.
12042 for ac_exec_ext in '' $ac_executable_extensions; do
12043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12044 ac_cv_prog_AR="${ncn_progname}"
12045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12046 break 2
12048 done
12049 done
12050 IFS=$as_save_IFS
12054 AR=$ac_cv_prog_AR
12055 if test -n "$AR"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12057 $as_echo "$AR" >&6; }
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12065 test -n "$ac_cv_prog_AR" && break
12066 done
12068 if test -z "$ac_cv_prog_AR" ; then
12069 set dummy ar
12070 if test $build = $host ; then
12071 AR="$2"
12072 else
12073 AR="${ncn_tool_prefix}$2"
12079 if test -n "$AS"; then
12080 ac_cv_prog_AS=$AS
12081 elif test -n "$ac_cv_prog_AS"; then
12082 AS=$ac_cv_prog_AS
12085 if test -n "$ac_cv_prog_AS"; then
12086 for ncn_progname in as; do
12087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12088 set dummy ${ncn_progname}; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if ${ac_cv_prog_AS+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 if test -n "$AS"; then
12095 ac_cv_prog_AS="$AS" # Let the user override the test.
12096 else
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 ac_cv_prog_AS="${ncn_progname}"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12108 done
12109 done
12110 IFS=$as_save_IFS
12114 AS=$ac_cv_prog_AS
12115 if test -n "$AS"; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12117 $as_echo "$AS" >&6; }
12118 else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12124 done
12127 for ncn_progname in as; do
12128 if test -n "$ncn_tool_prefix"; then
12129 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12130 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if ${ac_cv_prog_AS+:} false; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 if test -n "$AS"; then
12137 ac_cv_prog_AS="$AS" # Let the user override the test.
12138 else
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12146 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 break 2
12150 done
12151 done
12152 IFS=$as_save_IFS
12156 AS=$ac_cv_prog_AS
12157 if test -n "$AS"; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12159 $as_echo "$AS" >&6; }
12160 else
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12167 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12169 set dummy ${ncn_progname}; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if ${ac_cv_prog_AS+:} false; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 if test -n "$AS"; then
12176 ac_cv_prog_AS="$AS" # Let the user override the test.
12177 else
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185 ac_cv_prog_AS="${ncn_progname}"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 break 2
12189 done
12190 done
12191 IFS=$as_save_IFS
12195 AS=$ac_cv_prog_AS
12196 if test -n "$AS"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12198 $as_echo "$AS" >&6; }
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12206 test -n "$ac_cv_prog_AS" && break
12207 done
12209 if test -z "$ac_cv_prog_AS" ; then
12210 set dummy as
12211 if test $build = $host ; then
12212 AS="$2"
12213 else
12214 AS="${ncn_tool_prefix}$2"
12220 if test -n "$DLLTOOL"; then
12221 ac_cv_prog_DLLTOOL=$DLLTOOL
12222 elif test -n "$ac_cv_prog_DLLTOOL"; then
12223 DLLTOOL=$ac_cv_prog_DLLTOOL
12226 if test -n "$ac_cv_prog_DLLTOOL"; then
12227 for ncn_progname in dlltool; do
12228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12229 set dummy ${ncn_progname}; ac_word=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if ${ac_cv_prog_DLLTOOL+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 if test -n "$DLLTOOL"; then
12236 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12237 else
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12245 ac_cv_prog_DLLTOOL="${ncn_progname}"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 break 2
12249 done
12250 done
12251 IFS=$as_save_IFS
12255 DLLTOOL=$ac_cv_prog_DLLTOOL
12256 if test -n "$DLLTOOL"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12258 $as_echo "$DLLTOOL" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12265 done
12268 for ncn_progname in dlltool; do
12269 if test -n "$ncn_tool_prefix"; then
12270 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12271 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_prog_DLLTOOL+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 if test -n "$DLLTOOL"; then
12278 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12279 else
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12291 done
12292 done
12293 IFS=$as_save_IFS
12297 DLLTOOL=$ac_cv_prog_DLLTOOL
12298 if test -n "$DLLTOOL"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12300 $as_echo "$DLLTOOL" >&6; }
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12308 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12310 set dummy ${ncn_progname}; ac_word=$2
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12312 $as_echo_n "checking for $ac_word... " >&6; }
12313 if ${ac_cv_prog_DLLTOOL+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 if test -n "$DLLTOOL"; then
12317 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12318 else
12319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320 for as_dir in $PATH
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
12324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12326 ac_cv_prog_DLLTOOL="${ncn_progname}"
12327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328 break 2
12330 done
12331 done
12332 IFS=$as_save_IFS
12336 DLLTOOL=$ac_cv_prog_DLLTOOL
12337 if test -n "$DLLTOOL"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12339 $as_echo "$DLLTOOL" >&6; }
12340 else
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12347 test -n "$ac_cv_prog_DLLTOOL" && break
12348 done
12350 if test -z "$ac_cv_prog_DLLTOOL" ; then
12351 set dummy dlltool
12352 if test $build = $host ; then
12353 DLLTOOL="$2"
12354 else
12355 DLLTOOL="${ncn_tool_prefix}$2"
12361 if test -n "$DSYMUTIL"; then
12362 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12363 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12364 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12367 if test -n "$ac_cv_prog_DSYMUTIL"; then
12368 for ncn_progname in dsymutil; do
12369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12370 set dummy ${ncn_progname}; ac_word=$2
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372 $as_echo_n "checking for $ac_word... " >&6; }
12373 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 if test -n "$DSYMUTIL"; then
12377 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12378 else
12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
12384 for ac_exec_ext in '' $ac_executable_extensions; do
12385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12386 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 break 2
12390 done
12391 done
12392 IFS=$as_save_IFS
12396 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12397 if test -n "$DSYMUTIL"; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12399 $as_echo "$DSYMUTIL" >&6; }
12400 else
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12406 done
12409 for ncn_progname in dsymutil; do
12410 if test -n "$ncn_tool_prefix"; then
12411 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12412 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 if test -n "$DSYMUTIL"; then
12419 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12420 else
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12428 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 break 2
12432 done
12433 done
12434 IFS=$as_save_IFS
12438 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12439 if test -n "$DSYMUTIL"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12441 $as_echo "$DSYMUTIL" >&6; }
12442 else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12449 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12451 set dummy ${ncn_progname}; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 if test -n "$DSYMUTIL"; then
12458 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12471 done
12472 done
12473 IFS=$as_save_IFS
12477 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12478 if test -n "$DSYMUTIL"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12480 $as_echo "$DSYMUTIL" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12488 test -n "$ac_cv_prog_DSYMUTIL" && break
12489 done
12491 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12492 set dummy dsymutil
12493 if test $build = $host ; then
12494 DSYMUTIL="$2"
12495 else
12496 DSYMUTIL="${ncn_tool_prefix}$2"
12502 if test -n "$LD"; then
12503 ac_cv_prog_LD=$LD
12504 elif test -n "$ac_cv_prog_LD"; then
12505 LD=$ac_cv_prog_LD
12508 if test -n "$ac_cv_prog_LD"; then
12509 for ncn_progname in ld; do
12510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12511 set dummy ${ncn_progname}; ac_word=$2
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513 $as_echo_n "checking for $ac_word... " >&6; }
12514 if ${ac_cv_prog_LD+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 if test -n "$LD"; then
12518 ac_cv_prog_LD="$LD" # Let the user override the test.
12519 else
12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in $PATH
12523 IFS=$as_save_IFS
12524 test -z "$as_dir" && as_dir=.
12525 for ac_exec_ext in '' $ac_executable_extensions; do
12526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12527 ac_cv_prog_LD="${ncn_progname}"
12528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12529 break 2
12531 done
12532 done
12533 IFS=$as_save_IFS
12537 LD=$ac_cv_prog_LD
12538 if test -n "$LD"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12540 $as_echo "$LD" >&6; }
12541 else
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 $as_echo "no" >&6; }
12547 done
12550 for ncn_progname in ld; do
12551 if test -n "$ncn_tool_prefix"; then
12552 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12553 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_prog_LD+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 if test -n "$LD"; then
12560 ac_cv_prog_LD="$LD" # Let the user override the test.
12561 else
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12573 done
12574 done
12575 IFS=$as_save_IFS
12579 LD=$ac_cv_prog_LD
12580 if test -n "$LD"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12582 $as_echo "$LD" >&6; }
12583 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12590 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12592 set dummy ${ncn_progname}; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if ${ac_cv_prog_LD+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 if test -n "$LD"; then
12599 ac_cv_prog_LD="$LD" # Let the user override the test.
12600 else
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12604 IFS=$as_save_IFS
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
12607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12608 ac_cv_prog_LD="${ncn_progname}"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 break 2
12612 done
12613 done
12614 IFS=$as_save_IFS
12618 LD=$ac_cv_prog_LD
12619 if test -n "$LD"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12621 $as_echo "$LD" >&6; }
12622 else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12629 test -n "$ac_cv_prog_LD" && break
12630 done
12632 if test -z "$ac_cv_prog_LD" ; then
12633 set dummy ld
12634 if test $build = $host ; then
12635 LD="$2"
12636 else
12637 LD="${ncn_tool_prefix}$2"
12643 if test -n "$LIPO"; then
12644 ac_cv_prog_LIPO=$LIPO
12645 elif test -n "$ac_cv_prog_LIPO"; then
12646 LIPO=$ac_cv_prog_LIPO
12649 if test -n "$ac_cv_prog_LIPO"; then
12650 for ncn_progname in lipo; do
12651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12652 set dummy ${ncn_progname}; ac_word=$2
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12654 $as_echo_n "checking for $ac_word... " >&6; }
12655 if ${ac_cv_prog_LIPO+:} false; then :
12656 $as_echo_n "(cached) " >&6
12657 else
12658 if test -n "$LIPO"; then
12659 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12660 else
12661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12662 for as_dir in $PATH
12664 IFS=$as_save_IFS
12665 test -z "$as_dir" && as_dir=.
12666 for ac_exec_ext in '' $ac_executable_extensions; do
12667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12668 ac_cv_prog_LIPO="${ncn_progname}"
12669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12670 break 2
12672 done
12673 done
12674 IFS=$as_save_IFS
12678 LIPO=$ac_cv_prog_LIPO
12679 if test -n "$LIPO"; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12681 $as_echo "$LIPO" >&6; }
12682 else
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; }
12688 done
12691 for ncn_progname in lipo; do
12692 if test -n "$ncn_tool_prefix"; then
12693 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12694 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if ${ac_cv_prog_LIPO+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 if test -n "$LIPO"; then
12701 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12702 else
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12710 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12714 done
12715 done
12716 IFS=$as_save_IFS
12720 LIPO=$ac_cv_prog_LIPO
12721 if test -n "$LIPO"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12723 $as_echo "$LIPO" >&6; }
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12731 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12733 set dummy ${ncn_progname}; ac_word=$2
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735 $as_echo_n "checking for $ac_word... " >&6; }
12736 if ${ac_cv_prog_LIPO+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 if test -n "$LIPO"; then
12740 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12741 else
12742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743 for as_dir in $PATH
12745 IFS=$as_save_IFS
12746 test -z "$as_dir" && as_dir=.
12747 for ac_exec_ext in '' $ac_executable_extensions; do
12748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12749 ac_cv_prog_LIPO="${ncn_progname}"
12750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751 break 2
12753 done
12754 done
12755 IFS=$as_save_IFS
12759 LIPO=$ac_cv_prog_LIPO
12760 if test -n "$LIPO"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12762 $as_echo "$LIPO" >&6; }
12763 else
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12770 test -n "$ac_cv_prog_LIPO" && break
12771 done
12773 if test -z "$ac_cv_prog_LIPO" ; then
12774 set dummy lipo
12775 if test $build = $host ; then
12776 LIPO="$2"
12777 else
12778 LIPO="${ncn_tool_prefix}$2"
12784 if test -n "$NM"; then
12785 ac_cv_prog_NM=$NM
12786 elif test -n "$ac_cv_prog_NM"; then
12787 NM=$ac_cv_prog_NM
12790 if test -n "$ac_cv_prog_NM"; then
12791 for ncn_progname in nm; do
12792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12793 set dummy ${ncn_progname}; ac_word=$2
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795 $as_echo_n "checking for $ac_word... " >&6; }
12796 if ${ac_cv_prog_NM+:} false; then :
12797 $as_echo_n "(cached) " >&6
12798 else
12799 if test -n "$NM"; then
12800 ac_cv_prog_NM="$NM" # Let the user override the test.
12801 else
12802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $PATH
12805 IFS=$as_save_IFS
12806 test -z "$as_dir" && as_dir=.
12807 for ac_exec_ext in '' $ac_executable_extensions; do
12808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12809 ac_cv_prog_NM="${ncn_progname}"
12810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12811 break 2
12813 done
12814 done
12815 IFS=$as_save_IFS
12819 NM=$ac_cv_prog_NM
12820 if test -n "$NM"; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12822 $as_echo "$NM" >&6; }
12823 else
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12829 done
12832 for ncn_progname in nm; do
12833 if test -n "$ncn_tool_prefix"; then
12834 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12835 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 $as_echo_n "checking for $ac_word... " >&6; }
12838 if ${ac_cv_prog_NM+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 if test -n "$NM"; then
12842 ac_cv_prog_NM="$NM" # Let the user override the test.
12843 else
12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845 for as_dir in $PATH
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
12849 for ac_exec_ext in '' $ac_executable_extensions; do
12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12851 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 break 2
12855 done
12856 done
12857 IFS=$as_save_IFS
12861 NM=$ac_cv_prog_NM
12862 if test -n "$NM"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12864 $as_echo "$NM" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12872 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_prog_NM+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$NM"; then
12881 ac_cv_prog_NM="$NM" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890 ac_cv_prog_NM="${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12894 done
12895 done
12896 IFS=$as_save_IFS
12900 NM=$ac_cv_prog_NM
12901 if test -n "$NM"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12903 $as_echo "$NM" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12911 test -n "$ac_cv_prog_NM" && break
12912 done
12914 if test -z "$ac_cv_prog_NM" ; then
12915 set dummy nm
12916 if test $build = $host ; then
12917 NM="$2"
12918 else
12919 NM="${ncn_tool_prefix}$2"
12925 if test -n "$RANLIB"; then
12926 ac_cv_prog_RANLIB=$RANLIB
12927 elif test -n "$ac_cv_prog_RANLIB"; then
12928 RANLIB=$ac_cv_prog_RANLIB
12931 if test -n "$ac_cv_prog_RANLIB"; then
12932 for ncn_progname in ranlib; do
12933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12934 set dummy ${ncn_progname}; ac_word=$2
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12936 $as_echo_n "checking for $ac_word... " >&6; }
12937 if ${ac_cv_prog_RANLIB+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 if test -n "$RANLIB"; then
12941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12942 else
12943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944 for as_dir in $PATH
12946 IFS=$as_save_IFS
12947 test -z "$as_dir" && as_dir=.
12948 for ac_exec_ext in '' $ac_executable_extensions; do
12949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12950 ac_cv_prog_RANLIB="${ncn_progname}"
12951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12952 break 2
12954 done
12955 done
12956 IFS=$as_save_IFS
12960 RANLIB=$ac_cv_prog_RANLIB
12961 if test -n "$RANLIB"; then
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12963 $as_echo "$RANLIB" >&6; }
12964 else
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966 $as_echo "no" >&6; }
12970 done
12973 for ncn_progname in ranlib; do
12974 if test -n "$ncn_tool_prefix"; then
12975 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12976 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978 $as_echo_n "checking for $ac_word... " >&6; }
12979 if ${ac_cv_prog_RANLIB+:} false; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 if test -n "$RANLIB"; then
12983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12984 else
12985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986 for as_dir in $PATH
12988 IFS=$as_save_IFS
12989 test -z "$as_dir" && as_dir=.
12990 for ac_exec_ext in '' $ac_executable_extensions; do
12991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12992 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
12993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12994 break 2
12996 done
12997 done
12998 IFS=$as_save_IFS
13002 RANLIB=$ac_cv_prog_RANLIB
13003 if test -n "$RANLIB"; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13005 $as_echo "$RANLIB" >&6; }
13006 else
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008 $as_echo "no" >&6; }
13013 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13015 set dummy ${ncn_progname}; ac_word=$2
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017 $as_echo_n "checking for $ac_word... " >&6; }
13018 if ${ac_cv_prog_RANLIB+:} false; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 if test -n "$RANLIB"; then
13022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13023 else
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13031 ac_cv_prog_RANLIB="${ncn_progname}"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13035 done
13036 done
13037 IFS=$as_save_IFS
13041 RANLIB=$ac_cv_prog_RANLIB
13042 if test -n "$RANLIB"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13044 $as_echo "$RANLIB" >&6; }
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13052 test -n "$ac_cv_prog_RANLIB" && break
13053 done
13055 if test -z "$ac_cv_prog_RANLIB" ; then
13056 RANLIB="true"
13061 if test -n "$STRIP"; then
13062 ac_cv_prog_STRIP=$STRIP
13063 elif test -n "$ac_cv_prog_STRIP"; then
13064 STRIP=$ac_cv_prog_STRIP
13067 if test -n "$ac_cv_prog_STRIP"; then
13068 for ncn_progname in strip; do
13069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13070 set dummy ${ncn_progname}; ac_word=$2
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13072 $as_echo_n "checking for $ac_word... " >&6; }
13073 if ${ac_cv_prog_STRIP+:} false; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 if test -n "$STRIP"; then
13077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13078 else
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080 for as_dir in $PATH
13082 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13086 ac_cv_prog_STRIP="${ncn_progname}"
13087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2
13090 done
13091 done
13092 IFS=$as_save_IFS
13096 STRIP=$ac_cv_prog_STRIP
13097 if test -n "$STRIP"; then
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13099 $as_echo "$STRIP" >&6; }
13100 else
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102 $as_echo "no" >&6; }
13106 done
13109 for ncn_progname in strip; do
13110 if test -n "$ncn_tool_prefix"; then
13111 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13112 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114 $as_echo_n "checking for $ac_word... " >&6; }
13115 if ${ac_cv_prog_STRIP+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 if test -n "$STRIP"; then
13119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13120 else
13121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122 for as_dir in $PATH
13124 IFS=$as_save_IFS
13125 test -z "$as_dir" && as_dir=.
13126 for ac_exec_ext in '' $ac_executable_extensions; do
13127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13128 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13130 break 2
13132 done
13133 done
13134 IFS=$as_save_IFS
13138 STRIP=$ac_cv_prog_STRIP
13139 if test -n "$STRIP"; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13141 $as_echo "$STRIP" >&6; }
13142 else
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13149 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13151 set dummy ${ncn_progname}; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if ${ac_cv_prog_STRIP+:} false; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 if test -n "$STRIP"; then
13158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13163 IFS=$as_save_IFS
13164 test -z "$as_dir" && as_dir=.
13165 for ac_exec_ext in '' $ac_executable_extensions; do
13166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13167 ac_cv_prog_STRIP="${ncn_progname}"
13168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 break 2
13171 done
13172 done
13173 IFS=$as_save_IFS
13177 STRIP=$ac_cv_prog_STRIP
13178 if test -n "$STRIP"; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13180 $as_echo "$STRIP" >&6; }
13181 else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13188 test -n "$ac_cv_prog_STRIP" && break
13189 done
13191 if test -z "$ac_cv_prog_STRIP" ; then
13192 STRIP="true"
13197 if test -n "$WINDRES"; then
13198 ac_cv_prog_WINDRES=$WINDRES
13199 elif test -n "$ac_cv_prog_WINDRES"; then
13200 WINDRES=$ac_cv_prog_WINDRES
13203 if test -n "$ac_cv_prog_WINDRES"; then
13204 for ncn_progname in windres; do
13205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13206 set dummy ${ncn_progname}; ac_word=$2
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208 $as_echo_n "checking for $ac_word... " >&6; }
13209 if ${ac_cv_prog_WINDRES+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211 else
13212 if test -n "$WINDRES"; then
13213 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13214 else
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13222 ac_cv_prog_WINDRES="${ncn_progname}"
13223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 break 2
13226 done
13227 done
13228 IFS=$as_save_IFS
13232 WINDRES=$ac_cv_prog_WINDRES
13233 if test -n "$WINDRES"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13235 $as_echo "$WINDRES" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13242 done
13245 for ncn_progname in windres; do
13246 if test -n "$ncn_tool_prefix"; then
13247 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13248 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250 $as_echo_n "checking for $ac_word... " >&6; }
13251 if ${ac_cv_prog_WINDRES+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 if test -n "$WINDRES"; then
13255 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13256 else
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
13263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13264 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13268 done
13269 done
13270 IFS=$as_save_IFS
13274 WINDRES=$ac_cv_prog_WINDRES
13275 if test -n "$WINDRES"; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13277 $as_echo "$WINDRES" >&6; }
13278 else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280 $as_echo "no" >&6; }
13285 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13287 set dummy ${ncn_progname}; ac_word=$2
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 $as_echo_n "checking for $ac_word... " >&6; }
13290 if ${ac_cv_prog_WINDRES+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 if test -n "$WINDRES"; then
13294 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13295 else
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13303 ac_cv_prog_WINDRES="${ncn_progname}"
13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 break 2
13307 done
13308 done
13309 IFS=$as_save_IFS
13313 WINDRES=$ac_cv_prog_WINDRES
13314 if test -n "$WINDRES"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13316 $as_echo "$WINDRES" >&6; }
13317 else
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13324 test -n "$ac_cv_prog_WINDRES" && break
13325 done
13327 if test -z "$ac_cv_prog_WINDRES" ; then
13328 set dummy windres
13329 if test $build = $host ; then
13330 WINDRES="$2"
13331 else
13332 WINDRES="${ncn_tool_prefix}$2"
13338 if test -n "$WINDMC"; then
13339 ac_cv_prog_WINDMC=$WINDMC
13340 elif test -n "$ac_cv_prog_WINDMC"; then
13341 WINDMC=$ac_cv_prog_WINDMC
13344 if test -n "$ac_cv_prog_WINDMC"; then
13345 for ncn_progname in windmc; do
13346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13347 set dummy ${ncn_progname}; ac_word=$2
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13349 $as_echo_n "checking for $ac_word... " >&6; }
13350 if ${ac_cv_prog_WINDMC+:} false; then :
13351 $as_echo_n "(cached) " >&6
13352 else
13353 if test -n "$WINDMC"; then
13354 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13355 else
13356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13357 for as_dir in $PATH
13359 IFS=$as_save_IFS
13360 test -z "$as_dir" && as_dir=.
13361 for ac_exec_ext in '' $ac_executable_extensions; do
13362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13363 ac_cv_prog_WINDMC="${ncn_progname}"
13364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13365 break 2
13367 done
13368 done
13369 IFS=$as_save_IFS
13373 WINDMC=$ac_cv_prog_WINDMC
13374 if test -n "$WINDMC"; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13376 $as_echo "$WINDMC" >&6; }
13377 else
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13383 done
13386 for ncn_progname in windmc; do
13387 if test -n "$ncn_tool_prefix"; then
13388 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13389 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391 $as_echo_n "checking for $ac_word... " >&6; }
13392 if ${ac_cv_prog_WINDMC+:} false; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 if test -n "$WINDMC"; then
13396 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13397 else
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in $PATH
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13405 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 break 2
13409 done
13410 done
13411 IFS=$as_save_IFS
13415 WINDMC=$ac_cv_prog_WINDMC
13416 if test -n "$WINDMC"; then
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13418 $as_echo "$WINDMC" >&6; }
13419 else
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 $as_echo "no" >&6; }
13426 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13428 set dummy ${ncn_progname}; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if ${ac_cv_prog_WINDMC+:} false; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 if test -n "$WINDMC"; then
13435 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13436 else
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444 ac_cv_prog_WINDMC="${ncn_progname}"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13448 done
13449 done
13450 IFS=$as_save_IFS
13454 WINDMC=$ac_cv_prog_WINDMC
13455 if test -n "$WINDMC"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13457 $as_echo "$WINDMC" >&6; }
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13465 test -n "$ac_cv_prog_WINDMC" && break
13466 done
13468 if test -z "$ac_cv_prog_WINDMC" ; then
13469 set dummy windmc
13470 if test $build = $host ; then
13471 WINDMC="$2"
13472 else
13473 WINDMC="${ncn_tool_prefix}$2"
13479 if test -n "$OBJCOPY"; then
13480 ac_cv_prog_OBJCOPY=$OBJCOPY
13481 elif test -n "$ac_cv_prog_OBJCOPY"; then
13482 OBJCOPY=$ac_cv_prog_OBJCOPY
13485 if test -n "$ac_cv_prog_OBJCOPY"; then
13486 for ncn_progname in objcopy; do
13487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13488 set dummy ${ncn_progname}; ac_word=$2
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490 $as_echo_n "checking for $ac_word... " >&6; }
13491 if ${ac_cv_prog_OBJCOPY+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 if test -n "$OBJCOPY"; then
13495 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13496 else
13497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498 for as_dir in $PATH
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13504 ac_cv_prog_OBJCOPY="${ncn_progname}"
13505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13508 done
13509 done
13510 IFS=$as_save_IFS
13514 OBJCOPY=$ac_cv_prog_OBJCOPY
13515 if test -n "$OBJCOPY"; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13517 $as_echo "$OBJCOPY" >&6; }
13518 else
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13524 done
13527 for ncn_progname in objcopy; do
13528 if test -n "$ncn_tool_prefix"; then
13529 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13530 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if ${ac_cv_prog_OBJCOPY+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 if test -n "$OBJCOPY"; then
13537 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13538 else
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $PATH
13542 IFS=$as_save_IFS
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13546 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 break 2
13550 done
13551 done
13552 IFS=$as_save_IFS
13556 OBJCOPY=$ac_cv_prog_OBJCOPY
13557 if test -n "$OBJCOPY"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13559 $as_echo "$OBJCOPY" >&6; }
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13567 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13569 set dummy ${ncn_progname}; ac_word=$2
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13571 $as_echo_n "checking for $ac_word... " >&6; }
13572 if ${ac_cv_prog_OBJCOPY+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 if test -n "$OBJCOPY"; then
13576 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13577 else
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13585 ac_cv_prog_OBJCOPY="${ncn_progname}"
13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13589 done
13590 done
13591 IFS=$as_save_IFS
13595 OBJCOPY=$ac_cv_prog_OBJCOPY
13596 if test -n "$OBJCOPY"; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13598 $as_echo "$OBJCOPY" >&6; }
13599 else
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13606 test -n "$ac_cv_prog_OBJCOPY" && break
13607 done
13609 if test -z "$ac_cv_prog_OBJCOPY" ; then
13610 set dummy objcopy
13611 if test $build = $host ; then
13612 OBJCOPY="$2"
13613 else
13614 OBJCOPY="${ncn_tool_prefix}$2"
13620 if test -n "$OBJDUMP"; then
13621 ac_cv_prog_OBJDUMP=$OBJDUMP
13622 elif test -n "$ac_cv_prog_OBJDUMP"; then
13623 OBJDUMP=$ac_cv_prog_OBJDUMP
13626 if test -n "$ac_cv_prog_OBJDUMP"; then
13627 for ncn_progname in objdump; do
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_OBJDUMP+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635 if test -n "$OBJDUMP"; then
13636 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13637 else
13638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 for as_dir in $PATH
13641 IFS=$as_save_IFS
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_OBJDUMP="${ncn_progname}"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 break 2
13649 done
13650 done
13651 IFS=$as_save_IFS
13655 OBJDUMP=$ac_cv_prog_OBJDUMP
13656 if test -n "$OBJDUMP"; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13658 $as_echo "$OBJDUMP" >&6; }
13659 else
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661 $as_echo "no" >&6; }
13665 done
13668 for ncn_progname in objdump; do
13669 if test -n "$ncn_tool_prefix"; then
13670 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13671 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13673 $as_echo_n "checking for $ac_word... " >&6; }
13674 if ${ac_cv_prog_OBJDUMP+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 if test -n "$OBJDUMP"; then
13678 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13679 else
13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $PATH
13683 IFS=$as_save_IFS
13684 test -z "$as_dir" && as_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13687 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 break 2
13691 done
13692 done
13693 IFS=$as_save_IFS
13697 OBJDUMP=$ac_cv_prog_OBJDUMP
13698 if test -n "$OBJDUMP"; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13700 $as_echo "$OBJDUMP" >&6; }
13701 else
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703 $as_echo "no" >&6; }
13708 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13710 set dummy ${ncn_progname}; ac_word=$2
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712 $as_echo_n "checking for $ac_word... " >&6; }
13713 if ${ac_cv_prog_OBJDUMP+:} false; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 if test -n "$OBJDUMP"; then
13717 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13718 else
13719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720 for as_dir in $PATH
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
13725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13726 ac_cv_prog_OBJDUMP="${ncn_progname}"
13727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13730 done
13731 done
13732 IFS=$as_save_IFS
13736 OBJDUMP=$ac_cv_prog_OBJDUMP
13737 if test -n "$OBJDUMP"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13739 $as_echo "$OBJDUMP" >&6; }
13740 else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13747 test -n "$ac_cv_prog_OBJDUMP" && break
13748 done
13750 if test -z "$ac_cv_prog_OBJDUMP" ; then
13751 set dummy objdump
13752 if test $build = $host ; then
13753 OBJDUMP="$2"
13754 else
13755 OBJDUMP="${ncn_tool_prefix}$2"
13761 if test -n "$OTOOL"; then
13762 ac_cv_prog_OTOOL=$OTOOL
13763 elif test -n "$ac_cv_prog_OTOOL"; then
13764 OTOOL=$ac_cv_prog_OTOOL
13767 if test -n "$ac_cv_prog_OTOOL"; then
13768 for ncn_progname in otool; do
13769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13770 set dummy ${ncn_progname}; ac_word=$2
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772 $as_echo_n "checking for $ac_word... " >&6; }
13773 if ${ac_cv_prog_OTOOL+:} false; then :
13774 $as_echo_n "(cached) " >&6
13775 else
13776 if test -n "$OTOOL"; then
13777 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13778 else
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786 ac_cv_prog_OTOOL="${ncn_progname}"
13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 break 2
13790 done
13791 done
13792 IFS=$as_save_IFS
13796 OTOOL=$ac_cv_prog_OTOOL
13797 if test -n "$OTOOL"; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13799 $as_echo "$OTOOL" >&6; }
13800 else
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13806 done
13809 for ncn_progname in otool; do
13810 if test -n "$ncn_tool_prefix"; then
13811 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13812 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814 $as_echo_n "checking for $ac_word... " >&6; }
13815 if ${ac_cv_prog_OTOOL+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 if test -n "$OTOOL"; then
13819 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13820 else
13821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822 for as_dir in $PATH
13824 IFS=$as_save_IFS
13825 test -z "$as_dir" && as_dir=.
13826 for ac_exec_ext in '' $ac_executable_extensions; do
13827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830 break 2
13832 done
13833 done
13834 IFS=$as_save_IFS
13838 OTOOL=$ac_cv_prog_OTOOL
13839 if test -n "$OTOOL"; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13841 $as_echo "$OTOOL" >&6; }
13842 else
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844 $as_echo "no" >&6; }
13849 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
13850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13851 set dummy ${ncn_progname}; ac_word=$2
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13853 $as_echo_n "checking for $ac_word... " >&6; }
13854 if ${ac_cv_prog_OTOOL+:} false; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857 if test -n "$OTOOL"; then
13858 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13859 else
13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13863 IFS=$as_save_IFS
13864 test -z "$as_dir" && as_dir=.
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13867 ac_cv_prog_OTOOL="${ncn_progname}"
13868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13869 break 2
13871 done
13872 done
13873 IFS=$as_save_IFS
13877 OTOOL=$ac_cv_prog_OTOOL
13878 if test -n "$OTOOL"; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13880 $as_echo "$OTOOL" >&6; }
13881 else
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13883 $as_echo "no" >&6; }
13888 test -n "$ac_cv_prog_OTOOL" && break
13889 done
13891 if test -z "$ac_cv_prog_OTOOL" ; then
13892 set dummy otool
13893 if test $build = $host ; then
13894 OTOOL="$2"
13895 else
13896 OTOOL="${ncn_tool_prefix}$2"
13902 if test -n "$READELF"; then
13903 ac_cv_prog_READELF=$READELF
13904 elif test -n "$ac_cv_prog_READELF"; then
13905 READELF=$ac_cv_prog_READELF
13908 if test -n "$ac_cv_prog_READELF"; then
13909 for ncn_progname in readelf; do
13910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13911 set dummy ${ncn_progname}; ac_word=$2
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13913 $as_echo_n "checking for $ac_word... " >&6; }
13914 if ${ac_cv_prog_READELF+:} false; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 if test -n "$READELF"; then
13918 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13919 else
13920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13923 IFS=$as_save_IFS
13924 test -z "$as_dir" && as_dir=.
13925 for ac_exec_ext in '' $ac_executable_extensions; do
13926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13927 ac_cv_prog_READELF="${ncn_progname}"
13928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13929 break 2
13931 done
13932 done
13933 IFS=$as_save_IFS
13937 READELF=$ac_cv_prog_READELF
13938 if test -n "$READELF"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13940 $as_echo "$READELF" >&6; }
13941 else
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13947 done
13950 for ncn_progname in readelf; do
13951 if test -n "$ncn_tool_prefix"; then
13952 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13953 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13955 $as_echo_n "checking for $ac_word... " >&6; }
13956 if ${ac_cv_prog_READELF+:} false; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 if test -n "$READELF"; then
13960 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13961 else
13962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963 for as_dir in $PATH
13965 IFS=$as_save_IFS
13966 test -z "$as_dir" && as_dir=.
13967 for ac_exec_ext in '' $ac_executable_extensions; do
13968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13969 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
13970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13971 break 2
13973 done
13974 done
13975 IFS=$as_save_IFS
13979 READELF=$ac_cv_prog_READELF
13980 if test -n "$READELF"; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13982 $as_echo "$READELF" >&6; }
13983 else
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 $as_echo "no" >&6; }
13990 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13992 set dummy ${ncn_progname}; ac_word=$2
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13994 $as_echo_n "checking for $ac_word... " >&6; }
13995 if ${ac_cv_prog_READELF+:} false; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 if test -n "$READELF"; then
13999 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14000 else
14001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002 for as_dir in $PATH
14004 IFS=$as_save_IFS
14005 test -z "$as_dir" && as_dir=.
14006 for ac_exec_ext in '' $ac_executable_extensions; do
14007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14008 ac_cv_prog_READELF="${ncn_progname}"
14009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14010 break 2
14012 done
14013 done
14014 IFS=$as_save_IFS
14018 READELF=$ac_cv_prog_READELF
14019 if test -n "$READELF"; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14021 $as_echo "$READELF" >&6; }
14022 else
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 $as_echo "no" >&6; }
14029 test -n "$ac_cv_prog_READELF" && break
14030 done
14032 if test -z "$ac_cv_prog_READELF" ; then
14033 set dummy readelf
14034 if test $build = $host ; then
14035 READELF="$2"
14036 else
14037 READELF="${ncn_tool_prefix}$2"
14047 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
14051 $as_echo_n "checking for -plugin option... " >&6; }
14053 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14054 plugin_option=
14055 for plugin in $plugin_names; do
14056 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14057 if test x$plugin_so = x$plugin; then
14058 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14060 if test x$plugin_so != x$plugin; then
14061 plugin_option="--plugin $plugin_so"
14062 break
14064 done
14065 if test -n "$ac_tool_prefix"; then
14066 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14067 set dummy ${ac_tool_prefix}ar; ac_word=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069 $as_echo_n "checking for $ac_word... " >&6; }
14070 if ${ac_cv_prog_AR+:} false; then :
14071 $as_echo_n "(cached) " >&6
14072 else
14073 if test -n "$AR"; then
14074 ac_cv_prog_AR="$AR" # Let the user override the test.
14075 else
14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077 for as_dir in $PATH
14079 IFS=$as_save_IFS
14080 test -z "$as_dir" && as_dir=.
14081 for ac_exec_ext in '' $ac_executable_extensions; do
14082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14083 ac_cv_prog_AR="${ac_tool_prefix}ar"
14084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14085 break 2
14087 done
14088 done
14089 IFS=$as_save_IFS
14093 AR=$ac_cv_prog_AR
14094 if test -n "$AR"; then
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14096 $as_echo "$AR" >&6; }
14097 else
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099 $as_echo "no" >&6; }
14104 if test -z "$ac_cv_prog_AR"; then
14105 ac_ct_AR=$AR
14106 # Extract the first word of "ar", so it can be a program name with args.
14107 set dummy ar; ac_word=$2
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109 $as_echo_n "checking for $ac_word... " >&6; }
14110 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 if test -n "$ac_ct_AR"; then
14114 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14115 else
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
14121 for ac_exec_ext in '' $ac_executable_extensions; do
14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_prog_ac_ct_AR="ar"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14125 break 2
14127 done
14128 done
14129 IFS=$as_save_IFS
14133 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14134 if test -n "$ac_ct_AR"; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14136 $as_echo "$ac_ct_AR" >&6; }
14137 else
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139 $as_echo "no" >&6; }
14142 if test "x$ac_ct_AR" = x; then
14143 AR=""
14144 else
14145 case $cross_compiling:$ac_tool_warned in
14146 yes:)
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14149 ac_tool_warned=yes ;;
14150 esac
14151 AR=$ac_ct_AR
14153 else
14154 AR="$ac_cv_prog_AR"
14157 if test "${AR}" = "" ; then
14158 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
14160 touch conftest.c
14161 ${AR} $plugin_option rc conftest.a conftest.c
14162 if test "$?" != 0; then
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
14164 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
14165 plugin_option=
14167 rm -f conftest.*
14168 if test -n "$plugin_option"; then
14169 PLUGIN_OPTION="$plugin_option"
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
14171 $as_echo "$plugin_option" >&6; }
14172 else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14177 AR_PLUGIN_OPTION=
14178 RANLIB_PLUGIN_OPTION=
14179 if test -n "$PLUGIN_OPTION"; then
14180 if $AR --help 2>&1 | grep -q "\--plugin"; then
14181 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14183 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
14184 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14190 # Target tools.
14192 # Check whether --with-build-time-tools was given.
14193 if test "${with_build_time_tools+set}" = set; then :
14194 withval=$with_build_time_tools; case x"$withval" in
14195 x/*) ;;
14197 with_build_time_tools=
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
14199 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
14201 esac
14202 else
14203 with_build_time_tools=
14209 if test -n "$CC_FOR_TARGET"; then
14210 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14211 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14212 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14215 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14216 for ncn_progname in cc gcc; do
14217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14218 set dummy ${ncn_progname}; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 if test -n "$CC_FOR_TARGET"; then
14225 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14226 else
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14230 IFS=$as_save_IFS
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14234 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14236 break 2
14238 done
14239 done
14240 IFS=$as_save_IFS
14244 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14245 if test -n "$CC_FOR_TARGET"; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14247 $as_echo "$CC_FOR_TARGET" >&6; }
14248 else
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250 $as_echo "no" >&6; }
14254 done
14257 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14258 for ncn_progname in cc gcc; do
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14260 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14261 if test -x $with_build_time_tools/${ncn_progname}; then
14262 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14264 $as_echo "yes" >&6; }
14265 break
14266 else
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14270 done
14273 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14274 for ncn_progname in cc gcc; do
14275 if test -n "$ncn_target_tool_prefix"; then
14276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14277 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14279 $as_echo_n "checking for $ac_word... " >&6; }
14280 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14281 $as_echo_n "(cached) " >&6
14282 else
14283 if test -n "$CC_FOR_TARGET"; then
14284 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14285 else
14286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287 for as_dir in $PATH
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
14292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14293 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14297 done
14298 done
14299 IFS=$as_save_IFS
14303 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14304 if test -n "$CC_FOR_TARGET"; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14306 $as_echo "$CC_FOR_TARGET" >&6; }
14307 else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14314 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14316 set dummy ${ncn_progname}; ac_word=$2
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14318 $as_echo_n "checking for $ac_word... " >&6; }
14319 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 if test -n "$CC_FOR_TARGET"; then
14323 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14324 else
14325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14326 for as_dir in $PATH
14328 IFS=$as_save_IFS
14329 test -z "$as_dir" && as_dir=.
14330 for ac_exec_ext in '' $ac_executable_extensions; do
14331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14332 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14334 break 2
14336 done
14337 done
14338 IFS=$as_save_IFS
14342 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14343 if test -n "$CC_FOR_TARGET"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14345 $as_echo "$CC_FOR_TARGET" >&6; }
14346 else
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14353 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14354 done
14357 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14358 set dummy cc gcc
14359 if test $build = $target ; then
14360 CC_FOR_TARGET="$2"
14361 else
14362 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14364 else
14365 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14370 if test -n "$CXX_FOR_TARGET"; then
14371 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14372 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14373 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14376 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14377 for ncn_progname in c++ g++ cxx gxx; do
14378 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14379 set dummy ${ncn_progname}; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 $as_echo_n "checking for $ac_word... " >&6; }
14382 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 if test -n "$CXX_FOR_TARGET"; then
14386 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14387 else
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14391 IFS=$as_save_IFS
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14395 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 break 2
14399 done
14400 done
14401 IFS=$as_save_IFS
14405 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14406 if test -n "$CXX_FOR_TARGET"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14408 $as_echo "$CXX_FOR_TARGET" >&6; }
14409 else
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14415 done
14418 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14419 for ncn_progname in c++ g++ cxx gxx; do
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14421 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14422 if test -x $with_build_time_tools/${ncn_progname}; then
14423 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14425 $as_echo "yes" >&6; }
14426 break
14427 else
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14431 done
14434 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14435 for ncn_progname in c++ g++ cxx gxx; do
14436 if test -n "$ncn_target_tool_prefix"; then
14437 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14438 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14440 $as_echo_n "checking for $ac_word... " >&6; }
14441 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 if test -n "$CXX_FOR_TARGET"; then
14445 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14446 else
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14450 IFS=$as_save_IFS
14451 test -z "$as_dir" && as_dir=.
14452 for ac_exec_ext in '' $ac_executable_extensions; do
14453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14454 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14456 break 2
14458 done
14459 done
14460 IFS=$as_save_IFS
14464 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14465 if test -n "$CXX_FOR_TARGET"; then
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14467 $as_echo "$CXX_FOR_TARGET" >&6; }
14468 else
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14470 $as_echo "no" >&6; }
14475 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14477 set dummy ${ncn_progname}; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 if test -n "$CXX_FOR_TARGET"; then
14484 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14485 else
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14489 IFS=$as_save_IFS
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14493 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14495 break 2
14497 done
14498 done
14499 IFS=$as_save_IFS
14503 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14504 if test -n "$CXX_FOR_TARGET"; then
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14506 $as_echo "$CXX_FOR_TARGET" >&6; }
14507 else
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14514 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14515 done
14518 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14519 set dummy c++ g++ cxx gxx
14520 if test $build = $target ; then
14521 CXX_FOR_TARGET="$2"
14522 else
14523 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14525 else
14526 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14531 if test -n "$GCC_FOR_TARGET"; then
14532 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14533 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14534 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14537 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14538 for ncn_progname in gcc; do
14539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14540 set dummy ${ncn_progname}; ac_word=$2
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14542 $as_echo_n "checking for $ac_word... " >&6; }
14543 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 if test -n "$GCC_FOR_TARGET"; then
14547 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14548 else
14549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14550 for as_dir in $PATH
14552 IFS=$as_save_IFS
14553 test -z "$as_dir" && as_dir=.
14554 for ac_exec_ext in '' $ac_executable_extensions; do
14555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14556 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14558 break 2
14560 done
14561 done
14562 IFS=$as_save_IFS
14566 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14567 if test -n "$GCC_FOR_TARGET"; then
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14569 $as_echo "$GCC_FOR_TARGET" >&6; }
14570 else
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14572 $as_echo "no" >&6; }
14576 done
14579 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14580 for ncn_progname in gcc; do
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14582 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14583 if test -x $with_build_time_tools/${ncn_progname}; then
14584 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14586 $as_echo "yes" >&6; }
14587 break
14588 else
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590 $as_echo "no" >&6; }
14592 done
14595 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14596 for ncn_progname in gcc; do
14597 if test -n "$ncn_target_tool_prefix"; then
14598 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14599 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14601 $as_echo_n "checking for $ac_word... " >&6; }
14602 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14603 $as_echo_n "(cached) " >&6
14604 else
14605 if test -n "$GCC_FOR_TARGET"; then
14606 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14607 else
14608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14609 for as_dir in $PATH
14611 IFS=$as_save_IFS
14612 test -z "$as_dir" && as_dir=.
14613 for ac_exec_ext in '' $ac_executable_extensions; do
14614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14615 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14617 break 2
14619 done
14620 done
14621 IFS=$as_save_IFS
14625 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14626 if test -n "$GCC_FOR_TARGET"; then
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14628 $as_echo "$GCC_FOR_TARGET" >&6; }
14629 else
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14631 $as_echo "no" >&6; }
14636 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14638 set dummy ${ncn_progname}; ac_word=$2
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14640 $as_echo_n "checking for $ac_word... " >&6; }
14641 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14642 $as_echo_n "(cached) " >&6
14643 else
14644 if test -n "$GCC_FOR_TARGET"; then
14645 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14646 else
14647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14648 for as_dir in $PATH
14650 IFS=$as_save_IFS
14651 test -z "$as_dir" && as_dir=.
14652 for ac_exec_ext in '' $ac_executable_extensions; do
14653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14654 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14656 break 2
14658 done
14659 done
14660 IFS=$as_save_IFS
14664 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14665 if test -n "$GCC_FOR_TARGET"; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14667 $as_echo "$GCC_FOR_TARGET" >&6; }
14668 else
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 $as_echo "no" >&6; }
14675 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14676 done
14679 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14680 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14681 else
14682 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14687 if test -n "$GFORTRAN_FOR_TARGET"; then
14688 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14689 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14690 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14693 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14694 for ncn_progname in gfortran; do
14695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14696 set dummy ${ncn_progname}; ac_word=$2
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14698 $as_echo_n "checking for $ac_word... " >&6; }
14699 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14700 $as_echo_n "(cached) " >&6
14701 else
14702 if test -n "$GFORTRAN_FOR_TARGET"; then
14703 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14704 else
14705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706 for as_dir in $PATH
14708 IFS=$as_save_IFS
14709 test -z "$as_dir" && as_dir=.
14710 for ac_exec_ext in '' $ac_executable_extensions; do
14711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14712 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14714 break 2
14716 done
14717 done
14718 IFS=$as_save_IFS
14722 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14723 if test -n "$GFORTRAN_FOR_TARGET"; then
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14725 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14726 else
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728 $as_echo "no" >&6; }
14732 done
14735 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14736 for ncn_progname in gfortran; do
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14738 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14739 if test -x $with_build_time_tools/${ncn_progname}; then
14740 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14742 $as_echo "yes" >&6; }
14743 break
14744 else
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746 $as_echo "no" >&6; }
14748 done
14751 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14752 for ncn_progname in gfortran; do
14753 if test -n "$ncn_target_tool_prefix"; then
14754 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14755 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14757 $as_echo_n "checking for $ac_word... " >&6; }
14758 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14759 $as_echo_n "(cached) " >&6
14760 else
14761 if test -n "$GFORTRAN_FOR_TARGET"; then
14762 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14763 else
14764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14765 for as_dir in $PATH
14767 IFS=$as_save_IFS
14768 test -z "$as_dir" && as_dir=.
14769 for ac_exec_ext in '' $ac_executable_extensions; do
14770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14771 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14773 break 2
14775 done
14776 done
14777 IFS=$as_save_IFS
14781 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14782 if test -n "$GFORTRAN_FOR_TARGET"; then
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14784 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14785 else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 $as_echo "no" >&6; }
14792 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14794 set dummy ${ncn_progname}; ac_word=$2
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14796 $as_echo_n "checking for $ac_word... " >&6; }
14797 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14798 $as_echo_n "(cached) " >&6
14799 else
14800 if test -n "$GFORTRAN_FOR_TARGET"; then
14801 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14802 else
14803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804 for as_dir in $PATH
14806 IFS=$as_save_IFS
14807 test -z "$as_dir" && as_dir=.
14808 for ac_exec_ext in '' $ac_executable_extensions; do
14809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14810 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14812 break 2
14814 done
14815 done
14816 IFS=$as_save_IFS
14820 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14821 if test -n "$GFORTRAN_FOR_TARGET"; then
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14823 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14824 else
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14826 $as_echo "no" >&6; }
14831 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14832 done
14835 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
14836 set dummy gfortran
14837 if test $build = $target ; then
14838 GFORTRAN_FOR_TARGET="$2"
14839 else
14840 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
14842 else
14843 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
14848 if test -n "$GOC_FOR_TARGET"; then
14849 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
14850 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14851 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14854 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14855 for ncn_progname in gccgo; do
14856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14857 set dummy ${ncn_progname}; ac_word=$2
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14859 $as_echo_n "checking for $ac_word... " >&6; }
14860 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 if test -n "$GOC_FOR_TARGET"; then
14864 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14865 else
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14869 IFS=$as_save_IFS
14870 test -z "$as_dir" && as_dir=.
14871 for ac_exec_ext in '' $ac_executable_extensions; do
14872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14873 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14875 break 2
14877 done
14878 done
14879 IFS=$as_save_IFS
14883 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14884 if test -n "$GOC_FOR_TARGET"; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14886 $as_echo "$GOC_FOR_TARGET" >&6; }
14887 else
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 $as_echo "no" >&6; }
14893 done
14896 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14897 for ncn_progname in gccgo; do
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14899 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14900 if test -x $with_build_time_tools/${ncn_progname}; then
14901 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14903 $as_echo "yes" >&6; }
14904 break
14905 else
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907 $as_echo "no" >&6; }
14909 done
14912 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14913 for ncn_progname in gccgo; do
14914 if test -n "$ncn_target_tool_prefix"; then
14915 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14916 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14918 $as_echo_n "checking for $ac_word... " >&6; }
14919 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14920 $as_echo_n "(cached) " >&6
14921 else
14922 if test -n "$GOC_FOR_TARGET"; then
14923 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14924 else
14925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14926 for as_dir in $PATH
14928 IFS=$as_save_IFS
14929 test -z "$as_dir" && as_dir=.
14930 for ac_exec_ext in '' $ac_executable_extensions; do
14931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14932 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14934 break 2
14936 done
14937 done
14938 IFS=$as_save_IFS
14942 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14943 if test -n "$GOC_FOR_TARGET"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14945 $as_echo "$GOC_FOR_TARGET" >&6; }
14946 else
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }
14953 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
14954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14955 set dummy ${ncn_progname}; ac_word=$2
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14957 $as_echo_n "checking for $ac_word... " >&6; }
14958 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14959 $as_echo_n "(cached) " >&6
14960 else
14961 if test -n "$GOC_FOR_TARGET"; then
14962 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14963 else
14964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14965 for as_dir in $PATH
14967 IFS=$as_save_IFS
14968 test -z "$as_dir" && as_dir=.
14969 for ac_exec_ext in '' $ac_executable_extensions; do
14970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14971 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14973 break 2
14975 done
14976 done
14977 IFS=$as_save_IFS
14981 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14982 if test -n "$GOC_FOR_TARGET"; then
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14984 $as_echo "$GOC_FOR_TARGET" >&6; }
14985 else
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14987 $as_echo "no" >&6; }
14992 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
14993 done
14996 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14997 set dummy gccgo
14998 if test $build = $target ; then
14999 GOC_FOR_TARGET="$2"
15000 else
15001 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15003 else
15004 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15009 if test -n "$GDC_FOR_TARGET"; then
15010 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15011 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15012 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15015 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15016 for ncn_progname in gdc; do
15017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15018 set dummy ${ncn_progname}; ac_word=$2
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15020 $as_echo_n "checking for $ac_word... " >&6; }
15021 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 if test -n "$GDC_FOR_TARGET"; then
15025 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15026 else
15027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15028 for as_dir in $PATH
15030 IFS=$as_save_IFS
15031 test -z "$as_dir" && as_dir=.
15032 for ac_exec_ext in '' $ac_executable_extensions; do
15033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15034 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15036 break 2
15038 done
15039 done
15040 IFS=$as_save_IFS
15044 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15045 if test -n "$GDC_FOR_TARGET"; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15047 $as_echo "$GDC_FOR_TARGET" >&6; }
15048 else
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15054 done
15057 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15058 for ncn_progname in gdc; do
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15060 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15061 if test -x $with_build_time_tools/${ncn_progname}; then
15062 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15064 $as_echo "yes" >&6; }
15065 break
15066 else
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15068 $as_echo "no" >&6; }
15070 done
15073 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15074 for ncn_progname in gdc; do
15075 if test -n "$ncn_target_tool_prefix"; then
15076 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15077 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15079 $as_echo_n "checking for $ac_word... " >&6; }
15080 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 if test -n "$GDC_FOR_TARGET"; then
15084 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15085 else
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15089 IFS=$as_save_IFS
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15095 break 2
15097 done
15098 done
15099 IFS=$as_save_IFS
15103 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15104 if test -n "$GDC_FOR_TARGET"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15106 $as_echo "$GDC_FOR_TARGET" >&6; }
15107 else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15109 $as_echo "no" >&6; }
15114 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15116 set dummy ${ncn_progname}; ac_word=$2
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15118 $as_echo_n "checking for $ac_word... " >&6; }
15119 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15120 $as_echo_n "(cached) " >&6
15121 else
15122 if test -n "$GDC_FOR_TARGET"; then
15123 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15124 else
15125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15126 for as_dir in $PATH
15128 IFS=$as_save_IFS
15129 test -z "$as_dir" && as_dir=.
15130 for ac_exec_ext in '' $ac_executable_extensions; do
15131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15132 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15134 break 2
15136 done
15137 done
15138 IFS=$as_save_IFS
15142 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15143 if test -n "$GDC_FOR_TARGET"; then
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15145 $as_echo "$GDC_FOR_TARGET" >&6; }
15146 else
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15148 $as_echo "no" >&6; }
15153 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15154 done
15157 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15158 set dummy gdc
15159 if test $build = $target ; then
15160 GDC_FOR_TARGET="$2"
15161 else
15162 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15164 else
15165 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15170 if test -n "$GM2_FOR_TARGET"; then
15171 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15172 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15173 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15176 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15177 for ncn_progname in gm2; do
15178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15179 set dummy ${ncn_progname}; ac_word=$2
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15181 $as_echo_n "checking for $ac_word... " >&6; }
15182 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 if test -n "$GM2_FOR_TARGET"; then
15186 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15187 else
15188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189 for as_dir in $PATH
15191 IFS=$as_save_IFS
15192 test -z "$as_dir" && as_dir=.
15193 for ac_exec_ext in '' $ac_executable_extensions; do
15194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15197 break 2
15199 done
15200 done
15201 IFS=$as_save_IFS
15205 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15206 if test -n "$GM2_FOR_TARGET"; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15208 $as_echo "$GM2_FOR_TARGET" >&6; }
15209 else
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15211 $as_echo "no" >&6; }
15215 done
15218 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15219 for ncn_progname in gm2; do
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15221 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15222 if test -x $with_build_time_tools/${ncn_progname}; then
15223 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15225 $as_echo "yes" >&6; }
15226 break
15227 else
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15229 $as_echo "no" >&6; }
15231 done
15234 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15235 for ncn_progname in gm2; do
15236 if test -n "$ncn_target_tool_prefix"; then
15237 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15238 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15240 $as_echo_n "checking for $ac_word... " >&6; }
15241 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 if test -n "$GM2_FOR_TARGET"; then
15245 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15246 else
15247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15248 for as_dir in $PATH
15250 IFS=$as_save_IFS
15251 test -z "$as_dir" && as_dir=.
15252 for ac_exec_ext in '' $ac_executable_extensions; do
15253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15254 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15256 break 2
15258 done
15259 done
15260 IFS=$as_save_IFS
15264 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15265 if test -n "$GM2_FOR_TARGET"; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15267 $as_echo "$GM2_FOR_TARGET" >&6; }
15268 else
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270 $as_echo "no" >&6; }
15275 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15277 set dummy ${ncn_progname}; ac_word=$2
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15279 $as_echo_n "checking for $ac_word... " >&6; }
15280 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15281 $as_echo_n "(cached) " >&6
15282 else
15283 if test -n "$GM2_FOR_TARGET"; then
15284 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15285 else
15286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15287 for as_dir in $PATH
15289 IFS=$as_save_IFS
15290 test -z "$as_dir" && as_dir=.
15291 for ac_exec_ext in '' $ac_executable_extensions; do
15292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15293 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15295 break 2
15297 done
15298 done
15299 IFS=$as_save_IFS
15303 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15304 if test -n "$GM2_FOR_TARGET"; then
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15306 $as_echo "$GM2_FOR_TARGET" >&6; }
15307 else
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309 $as_echo "no" >&6; }
15314 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15315 done
15318 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15319 set dummy gm2
15320 if test $build = $target ; then
15321 GM2_FOR_TARGET="$2"
15322 else
15323 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15325 else
15326 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15331 cat > conftest.c << \EOF
15332 #ifdef __GNUC__
15333 gcc_yay;
15334 #endif
15336 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15337 have_gcc_for_target=yes
15338 else
15339 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15340 have_gcc_for_target=no
15342 rm conftest.c
15347 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15348 if test -n "$with_build_time_tools"; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
15350 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
15351 if test -x $with_build_time_tools/ar; then
15352 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15353 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
15355 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15356 else
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15358 $as_echo "no" >&6; }
15360 elif test $build != $host && test $have_gcc_for_target = yes; then
15361 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15362 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15363 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15366 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15367 # Extract the first word of "ar", so it can be a program name with args.
15368 set dummy ar; ac_word=$2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15370 $as_echo_n "checking for $ac_word... " >&6; }
15371 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 case $AR_FOR_TARGET in
15375 [\\/]* | ?:[\\/]*)
15376 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380 for as_dir in $gcc_cv_tool_dirs
15382 IFS=$as_save_IFS
15383 test -z "$as_dir" && as_dir=.
15384 for ac_exec_ext in '' $ac_executable_extensions; do
15385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15386 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15388 break 2
15390 done
15391 done
15392 IFS=$as_save_IFS
15395 esac
15397 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15398 if test -n "$AR_FOR_TARGET"; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15400 $as_echo "$AR_FOR_TARGET" >&6; }
15401 else
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15408 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15411 if test -n "$AR_FOR_TARGET"; then
15412 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15413 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15414 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15417 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15418 for ncn_progname in ar; do
15419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15420 set dummy ${ncn_progname}; ac_word=$2
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15422 $as_echo_n "checking for $ac_word... " >&6; }
15423 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15424 $as_echo_n "(cached) " >&6
15425 else
15426 if test -n "$AR_FOR_TARGET"; then
15427 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15428 else
15429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15430 for as_dir in $PATH
15432 IFS=$as_save_IFS
15433 test -z "$as_dir" && as_dir=.
15434 for ac_exec_ext in '' $ac_executable_extensions; do
15435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15436 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15438 break 2
15440 done
15441 done
15442 IFS=$as_save_IFS
15446 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15447 if test -n "$AR_FOR_TARGET"; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15449 $as_echo "$AR_FOR_TARGET" >&6; }
15450 else
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15452 $as_echo "no" >&6; }
15456 done
15459 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15460 for ncn_progname in ar; do
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15462 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15463 if test -x $with_build_time_tools/${ncn_progname}; then
15464 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15466 $as_echo "yes" >&6; }
15467 break
15468 else
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15470 $as_echo "no" >&6; }
15472 done
15475 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15476 for ncn_progname in ar; do
15477 if test -n "$ncn_target_tool_prefix"; then
15478 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15479 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15481 $as_echo_n "checking for $ac_word... " >&6; }
15482 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15483 $as_echo_n "(cached) " >&6
15484 else
15485 if test -n "$AR_FOR_TARGET"; then
15486 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15487 else
15488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15489 for as_dir in $PATH
15491 IFS=$as_save_IFS
15492 test -z "$as_dir" && as_dir=.
15493 for ac_exec_ext in '' $ac_executable_extensions; do
15494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15495 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15497 break 2
15499 done
15500 done
15501 IFS=$as_save_IFS
15505 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15506 if test -n "$AR_FOR_TARGET"; then
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15508 $as_echo "$AR_FOR_TARGET" >&6; }
15509 else
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15511 $as_echo "no" >&6; }
15516 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15518 set dummy ${ncn_progname}; ac_word=$2
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15520 $as_echo_n "checking for $ac_word... " >&6; }
15521 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15522 $as_echo_n "(cached) " >&6
15523 else
15524 if test -n "$AR_FOR_TARGET"; then
15525 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15526 else
15527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528 for as_dir in $PATH
15530 IFS=$as_save_IFS
15531 test -z "$as_dir" && as_dir=.
15532 for ac_exec_ext in '' $ac_executable_extensions; do
15533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15534 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15536 break 2
15538 done
15539 done
15540 IFS=$as_save_IFS
15544 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15545 if test -n "$AR_FOR_TARGET"; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15547 $as_echo "$AR_FOR_TARGET" >&6; }
15548 else
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550 $as_echo "no" >&6; }
15555 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15556 done
15559 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15560 set dummy ar
15561 if test $build = $target ; then
15562 AR_FOR_TARGET="$2"
15563 else
15564 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15566 else
15567 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15570 else
15571 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15577 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15578 if test -n "$with_build_time_tools"; then
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
15580 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
15581 if test -x $with_build_time_tools/as; then
15582 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15583 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
15585 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15586 else
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588 $as_echo "no" >&6; }
15590 elif test $build != $host && test $have_gcc_for_target = yes; then
15591 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15592 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15593 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15596 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15597 # Extract the first word of "as", so it can be a program name with args.
15598 set dummy as; ac_word=$2
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15600 $as_echo_n "checking for $ac_word... " >&6; }
15601 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 case $AS_FOR_TARGET in
15605 [\\/]* | ?:[\\/]*)
15606 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15610 for as_dir in $gcc_cv_tool_dirs
15612 IFS=$as_save_IFS
15613 test -z "$as_dir" && as_dir=.
15614 for ac_exec_ext in '' $ac_executable_extensions; do
15615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15616 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15618 break 2
15620 done
15621 done
15622 IFS=$as_save_IFS
15625 esac
15627 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15628 if test -n "$AS_FOR_TARGET"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15630 $as_echo "$AS_FOR_TARGET" >&6; }
15631 else
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 $as_echo "no" >&6; }
15638 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15641 if test -n "$AS_FOR_TARGET"; then
15642 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15643 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15644 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15647 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15648 for ncn_progname in as; do
15649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15650 set dummy ${ncn_progname}; ac_word=$2
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15652 $as_echo_n "checking for $ac_word... " >&6; }
15653 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15654 $as_echo_n "(cached) " >&6
15655 else
15656 if test -n "$AS_FOR_TARGET"; then
15657 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15658 else
15659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15660 for as_dir in $PATH
15662 IFS=$as_save_IFS
15663 test -z "$as_dir" && as_dir=.
15664 for ac_exec_ext in '' $ac_executable_extensions; do
15665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15666 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15668 break 2
15670 done
15671 done
15672 IFS=$as_save_IFS
15676 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15677 if test -n "$AS_FOR_TARGET"; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15679 $as_echo "$AS_FOR_TARGET" >&6; }
15680 else
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15686 done
15689 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15690 for ncn_progname in as; do
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15692 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15693 if test -x $with_build_time_tools/${ncn_progname}; then
15694 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15696 $as_echo "yes" >&6; }
15697 break
15698 else
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15700 $as_echo "no" >&6; }
15702 done
15705 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15706 for ncn_progname in as; do
15707 if test -n "$ncn_target_tool_prefix"; then
15708 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15709 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15711 $as_echo_n "checking for $ac_word... " >&6; }
15712 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 if test -n "$AS_FOR_TARGET"; then
15716 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15717 else
15718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15719 for as_dir in $PATH
15721 IFS=$as_save_IFS
15722 test -z "$as_dir" && as_dir=.
15723 for ac_exec_ext in '' $ac_executable_extensions; do
15724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15725 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15727 break 2
15729 done
15730 done
15731 IFS=$as_save_IFS
15735 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15736 if test -n "$AS_FOR_TARGET"; then
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15738 $as_echo "$AS_FOR_TARGET" >&6; }
15739 else
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15746 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15748 set dummy ${ncn_progname}; ac_word=$2
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15750 $as_echo_n "checking for $ac_word... " >&6; }
15751 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15752 $as_echo_n "(cached) " >&6
15753 else
15754 if test -n "$AS_FOR_TARGET"; then
15755 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15756 else
15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
15762 for ac_exec_ext in '' $ac_executable_extensions; do
15763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15764 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15766 break 2
15768 done
15769 done
15770 IFS=$as_save_IFS
15774 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15775 if test -n "$AS_FOR_TARGET"; then
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15777 $as_echo "$AS_FOR_TARGET" >&6; }
15778 else
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15780 $as_echo "no" >&6; }
15785 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15786 done
15789 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15790 set dummy as
15791 if test $build = $target ; then
15792 AS_FOR_TARGET="$2"
15793 else
15794 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15796 else
15797 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15800 else
15801 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15807 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15808 if test -n "$with_build_time_tools"; then
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
15810 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
15811 if test -x $with_build_time_tools/dlltool; then
15812 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15813 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15815 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15816 else
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15818 $as_echo "no" >&6; }
15820 elif test $build != $host && test $have_gcc_for_target = yes; then
15821 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15822 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15823 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15826 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15827 # Extract the first word of "dlltool", so it can be a program name with args.
15828 set dummy dlltool; ac_word=$2
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15830 $as_echo_n "checking for $ac_word... " >&6; }
15831 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 case $DLLTOOL_FOR_TARGET in
15835 [\\/]* | ?:[\\/]*)
15836 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
15839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15840 for as_dir in $gcc_cv_tool_dirs
15842 IFS=$as_save_IFS
15843 test -z "$as_dir" && as_dir=.
15844 for ac_exec_ext in '' $ac_executable_extensions; do
15845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15846 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15848 break 2
15850 done
15851 done
15852 IFS=$as_save_IFS
15855 esac
15857 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15858 if test -n "$DLLTOOL_FOR_TARGET"; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15860 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15861 else
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15863 $as_echo "no" >&6; }
15868 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15871 if test -n "$DLLTOOL_FOR_TARGET"; then
15872 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15873 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15874 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15877 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15878 for ncn_progname in dlltool; do
15879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15880 set dummy ${ncn_progname}; ac_word=$2
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15882 $as_echo_n "checking for $ac_word... " >&6; }
15883 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 if test -n "$DLLTOOL_FOR_TARGET"; then
15887 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15888 else
15889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 for as_dir in $PATH
15892 IFS=$as_save_IFS
15893 test -z "$as_dir" && as_dir=.
15894 for ac_exec_ext in '' $ac_executable_extensions; do
15895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15896 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15898 break 2
15900 done
15901 done
15902 IFS=$as_save_IFS
15906 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15907 if test -n "$DLLTOOL_FOR_TARGET"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15909 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15910 else
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15916 done
15919 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15920 for ncn_progname in dlltool; do
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15922 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15923 if test -x $with_build_time_tools/${ncn_progname}; then
15924 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15926 $as_echo "yes" >&6; }
15927 break
15928 else
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15930 $as_echo "no" >&6; }
15932 done
15935 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15936 for ncn_progname in dlltool; do
15937 if test -n "$ncn_target_tool_prefix"; then
15938 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15939 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15941 $as_echo_n "checking for $ac_word... " >&6; }
15942 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15943 $as_echo_n "(cached) " >&6
15944 else
15945 if test -n "$DLLTOOL_FOR_TARGET"; then
15946 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15947 else
15948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15949 for as_dir in $PATH
15951 IFS=$as_save_IFS
15952 test -z "$as_dir" && as_dir=.
15953 for ac_exec_ext in '' $ac_executable_extensions; do
15954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15955 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15957 break 2
15959 done
15960 done
15961 IFS=$as_save_IFS
15965 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15966 if test -n "$DLLTOOL_FOR_TARGET"; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15968 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15969 else
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15971 $as_echo "no" >&6; }
15976 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15978 set dummy ${ncn_progname}; ac_word=$2
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980 $as_echo_n "checking for $ac_word... " >&6; }
15981 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15982 $as_echo_n "(cached) " >&6
15983 else
15984 if test -n "$DLLTOOL_FOR_TARGET"; then
15985 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15986 else
15987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988 for as_dir in $PATH
15990 IFS=$as_save_IFS
15991 test -z "$as_dir" && as_dir=.
15992 for ac_exec_ext in '' $ac_executable_extensions; do
15993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15994 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15996 break 2
15998 done
15999 done
16000 IFS=$as_save_IFS
16004 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16005 if test -n "$DLLTOOL_FOR_TARGET"; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16007 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16008 else
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010 $as_echo "no" >&6; }
16015 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16016 done
16019 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16020 set dummy dlltool
16021 if test $build = $target ; then
16022 DLLTOOL_FOR_TARGET="$2"
16023 else
16024 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16026 else
16027 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16030 else
16031 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16037 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16038 if test -n "$with_build_time_tools"; then
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
16040 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
16041 if test -x $with_build_time_tools/dsymutil; then
16042 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16043 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16045 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16046 else
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048 $as_echo "no" >&6; }
16050 elif test $build != $host && test $have_gcc_for_target = yes; then
16051 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16052 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16053 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16056 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16057 # Extract the first word of "dsymutil", so it can be a program name with args.
16058 set dummy dsymutil; ac_word=$2
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16060 $as_echo_n "checking for $ac_word... " >&6; }
16061 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16062 $as_echo_n "(cached) " >&6
16063 else
16064 case $DSYMUTIL_FOR_TARGET in
16065 [\\/]* | ?:[\\/]*)
16066 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16070 for as_dir in $gcc_cv_tool_dirs
16072 IFS=$as_save_IFS
16073 test -z "$as_dir" && as_dir=.
16074 for ac_exec_ext in '' $ac_executable_extensions; do
16075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16076 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16078 break 2
16080 done
16081 done
16082 IFS=$as_save_IFS
16085 esac
16087 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16088 if test -n "$DSYMUTIL_FOR_TARGET"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16090 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16091 else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16098 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16101 if test -n "$DSYMUTIL_FOR_TARGET"; then
16102 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16103 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16104 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16107 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16108 for ncn_progname in dsymutil; do
16109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16110 set dummy ${ncn_progname}; ac_word=$2
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16112 $as_echo_n "checking for $ac_word... " >&6; }
16113 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 if test -n "$DSYMUTIL_FOR_TARGET"; then
16117 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16118 else
16119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16120 for as_dir in $PATH
16122 IFS=$as_save_IFS
16123 test -z "$as_dir" && as_dir=.
16124 for ac_exec_ext in '' $ac_executable_extensions; do
16125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16126 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16128 break 2
16130 done
16131 done
16132 IFS=$as_save_IFS
16136 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16137 if test -n "$DSYMUTIL_FOR_TARGET"; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16139 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16140 else
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142 $as_echo "no" >&6; }
16146 done
16149 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16150 for ncn_progname in dsymutil; do
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16152 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16153 if test -x $with_build_time_tools/${ncn_progname}; then
16154 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16156 $as_echo "yes" >&6; }
16157 break
16158 else
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16162 done
16165 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16166 for ncn_progname in dsymutil; do
16167 if test -n "$ncn_target_tool_prefix"; then
16168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16169 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16171 $as_echo_n "checking for $ac_word... " >&6; }
16172 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16173 $as_echo_n "(cached) " >&6
16174 else
16175 if test -n "$DSYMUTIL_FOR_TARGET"; then
16176 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16177 else
16178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16179 for as_dir in $PATH
16181 IFS=$as_save_IFS
16182 test -z "$as_dir" && as_dir=.
16183 for ac_exec_ext in '' $ac_executable_extensions; do
16184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16185 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16187 break 2
16189 done
16190 done
16191 IFS=$as_save_IFS
16195 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16196 if test -n "$DSYMUTIL_FOR_TARGET"; then
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16198 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16199 else
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16201 $as_echo "no" >&6; }
16206 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16208 set dummy ${ncn_progname}; ac_word=$2
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16210 $as_echo_n "checking for $ac_word... " >&6; }
16211 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16212 $as_echo_n "(cached) " >&6
16213 else
16214 if test -n "$DSYMUTIL_FOR_TARGET"; then
16215 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16216 else
16217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16218 for as_dir in $PATH
16220 IFS=$as_save_IFS
16221 test -z "$as_dir" && as_dir=.
16222 for ac_exec_ext in '' $ac_executable_extensions; do
16223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16224 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16226 break 2
16228 done
16229 done
16230 IFS=$as_save_IFS
16234 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16235 if test -n "$DSYMUTIL_FOR_TARGET"; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16237 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16238 else
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16240 $as_echo "no" >&6; }
16245 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16246 done
16249 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16250 set dummy dsymutil
16251 if test $build = $target ; then
16252 DSYMUTIL_FOR_TARGET="$2"
16253 else
16254 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16256 else
16257 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16260 else
16261 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16267 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16268 if test -n "$with_build_time_tools"; then
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
16270 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
16271 if test -x $with_build_time_tools/ld; then
16272 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16273 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
16275 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16276 else
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16278 $as_echo "no" >&6; }
16280 elif test $build != $host && test $have_gcc_for_target = yes; then
16281 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16282 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16283 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16286 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16287 # Extract the first word of "ld", so it can be a program name with args.
16288 set dummy ld; ac_word=$2
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16290 $as_echo_n "checking for $ac_word... " >&6; }
16291 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16292 $as_echo_n "(cached) " >&6
16293 else
16294 case $LD_FOR_TARGET in
16295 [\\/]* | ?:[\\/]*)
16296 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16300 for as_dir in $gcc_cv_tool_dirs
16302 IFS=$as_save_IFS
16303 test -z "$as_dir" && as_dir=.
16304 for ac_exec_ext in '' $ac_executable_extensions; do
16305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16306 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16308 break 2
16310 done
16311 done
16312 IFS=$as_save_IFS
16315 esac
16317 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16318 if test -n "$LD_FOR_TARGET"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16320 $as_echo "$LD_FOR_TARGET" >&6; }
16321 else
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16328 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16331 if test -n "$LD_FOR_TARGET"; then
16332 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16333 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16334 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16337 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16338 for ncn_progname in ld; do
16339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16340 set dummy ${ncn_progname}; ac_word=$2
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16342 $as_echo_n "checking for $ac_word... " >&6; }
16343 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16344 $as_echo_n "(cached) " >&6
16345 else
16346 if test -n "$LD_FOR_TARGET"; then
16347 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16348 else
16349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16350 for as_dir in $PATH
16352 IFS=$as_save_IFS
16353 test -z "$as_dir" && as_dir=.
16354 for ac_exec_ext in '' $ac_executable_extensions; do
16355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16356 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16358 break 2
16360 done
16361 done
16362 IFS=$as_save_IFS
16366 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16367 if test -n "$LD_FOR_TARGET"; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16369 $as_echo "$LD_FOR_TARGET" >&6; }
16370 else
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372 $as_echo "no" >&6; }
16376 done
16379 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16380 for ncn_progname in ld; do
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16382 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16383 if test -x $with_build_time_tools/${ncn_progname}; then
16384 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16386 $as_echo "yes" >&6; }
16387 break
16388 else
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16392 done
16395 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16396 for ncn_progname in ld; do
16397 if test -n "$ncn_target_tool_prefix"; then
16398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16399 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16401 $as_echo_n "checking for $ac_word... " >&6; }
16402 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 if test -n "$LD_FOR_TARGET"; then
16406 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16407 else
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16411 IFS=$as_save_IFS
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16417 break 2
16419 done
16420 done
16421 IFS=$as_save_IFS
16425 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16426 if test -n "$LD_FOR_TARGET"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16428 $as_echo "$LD_FOR_TARGET" >&6; }
16429 else
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431 $as_echo "no" >&6; }
16436 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16438 set dummy ${ncn_progname}; ac_word=$2
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16440 $as_echo_n "checking for $ac_word... " >&6; }
16441 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16442 $as_echo_n "(cached) " >&6
16443 else
16444 if test -n "$LD_FOR_TARGET"; then
16445 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16446 else
16447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16448 for as_dir in $PATH
16450 IFS=$as_save_IFS
16451 test -z "$as_dir" && as_dir=.
16452 for ac_exec_ext in '' $ac_executable_extensions; do
16453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16454 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16456 break 2
16458 done
16459 done
16460 IFS=$as_save_IFS
16464 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16465 if test -n "$LD_FOR_TARGET"; then
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16467 $as_echo "$LD_FOR_TARGET" >&6; }
16468 else
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16470 $as_echo "no" >&6; }
16475 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16476 done
16479 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16480 set dummy ld
16481 if test $build = $target ; then
16482 LD_FOR_TARGET="$2"
16483 else
16484 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16486 else
16487 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16490 else
16491 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16497 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16498 if test -n "$with_build_time_tools"; then
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
16500 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
16501 if test -x $with_build_time_tools/lipo; then
16502 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16503 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
16505 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16506 else
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16508 $as_echo "no" >&6; }
16510 elif test $build != $host && test $have_gcc_for_target = yes; then
16511 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16512 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16513 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16516 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16517 # Extract the first word of "lipo", so it can be a program name with args.
16518 set dummy lipo; ac_word=$2
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16520 $as_echo_n "checking for $ac_word... " >&6; }
16521 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16524 case $LIPO_FOR_TARGET in
16525 [\\/]* | ?:[\\/]*)
16526 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16530 for as_dir in $gcc_cv_tool_dirs
16532 IFS=$as_save_IFS
16533 test -z "$as_dir" && as_dir=.
16534 for ac_exec_ext in '' $ac_executable_extensions; do
16535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16536 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16538 break 2
16540 done
16541 done
16542 IFS=$as_save_IFS
16545 esac
16547 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16548 if test -n "$LIPO_FOR_TARGET"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16550 $as_echo "$LIPO_FOR_TARGET" >&6; }
16551 else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16558 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16561 if test -n "$LIPO_FOR_TARGET"; then
16562 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16563 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16564 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16567 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16568 for ncn_progname in lipo; do
16569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16570 set dummy ${ncn_progname}; ac_word=$2
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16572 $as_echo_n "checking for $ac_word... " >&6; }
16573 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16574 $as_echo_n "(cached) " >&6
16575 else
16576 if test -n "$LIPO_FOR_TARGET"; then
16577 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16578 else
16579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16580 for as_dir in $PATH
16582 IFS=$as_save_IFS
16583 test -z "$as_dir" && as_dir=.
16584 for ac_exec_ext in '' $ac_executable_extensions; do
16585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16586 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16588 break 2
16590 done
16591 done
16592 IFS=$as_save_IFS
16596 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16597 if test -n "$LIPO_FOR_TARGET"; then
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16599 $as_echo "$LIPO_FOR_TARGET" >&6; }
16600 else
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16602 $as_echo "no" >&6; }
16606 done
16609 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16610 for ncn_progname in lipo; do
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16612 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16613 if test -x $with_build_time_tools/${ncn_progname}; then
16614 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16616 $as_echo "yes" >&6; }
16617 break
16618 else
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16620 $as_echo "no" >&6; }
16622 done
16625 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16626 for ncn_progname in lipo; do
16627 if test -n "$ncn_target_tool_prefix"; then
16628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16629 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16631 $as_echo_n "checking for $ac_word... " >&6; }
16632 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16633 $as_echo_n "(cached) " >&6
16634 else
16635 if test -n "$LIPO_FOR_TARGET"; then
16636 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16637 else
16638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16639 for as_dir in $PATH
16641 IFS=$as_save_IFS
16642 test -z "$as_dir" && as_dir=.
16643 for ac_exec_ext in '' $ac_executable_extensions; do
16644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16645 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16647 break 2
16649 done
16650 done
16651 IFS=$as_save_IFS
16655 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16656 if test -n "$LIPO_FOR_TARGET"; then
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16658 $as_echo "$LIPO_FOR_TARGET" >&6; }
16659 else
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16661 $as_echo "no" >&6; }
16666 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16668 set dummy ${ncn_progname}; ac_word=$2
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16670 $as_echo_n "checking for $ac_word... " >&6; }
16671 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16672 $as_echo_n "(cached) " >&6
16673 else
16674 if test -n "$LIPO_FOR_TARGET"; then
16675 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16676 else
16677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16678 for as_dir in $PATH
16680 IFS=$as_save_IFS
16681 test -z "$as_dir" && as_dir=.
16682 for ac_exec_ext in '' $ac_executable_extensions; do
16683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16684 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16686 break 2
16688 done
16689 done
16690 IFS=$as_save_IFS
16694 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16695 if test -n "$LIPO_FOR_TARGET"; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16697 $as_echo "$LIPO_FOR_TARGET" >&6; }
16698 else
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700 $as_echo "no" >&6; }
16705 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16706 done
16709 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16710 set dummy lipo
16711 if test $build = $target ; then
16712 LIPO_FOR_TARGET="$2"
16713 else
16714 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16716 else
16717 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16720 else
16721 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16727 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16728 if test -n "$with_build_time_tools"; then
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
16730 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
16731 if test -x $with_build_time_tools/nm; then
16732 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16733 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
16735 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16736 else
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16738 $as_echo "no" >&6; }
16740 elif test $build != $host && test $have_gcc_for_target = yes; then
16741 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16742 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16743 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16746 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16747 # Extract the first word of "nm", so it can be a program name with args.
16748 set dummy nm; ac_word=$2
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16750 $as_echo_n "checking for $ac_word... " >&6; }
16751 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16752 $as_echo_n "(cached) " >&6
16753 else
16754 case $NM_FOR_TARGET in
16755 [\\/]* | ?:[\\/]*)
16756 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16760 for as_dir in $gcc_cv_tool_dirs
16762 IFS=$as_save_IFS
16763 test -z "$as_dir" && as_dir=.
16764 for ac_exec_ext in '' $ac_executable_extensions; do
16765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16766 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16768 break 2
16770 done
16771 done
16772 IFS=$as_save_IFS
16775 esac
16777 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16778 if test -n "$NM_FOR_TARGET"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16780 $as_echo "$NM_FOR_TARGET" >&6; }
16781 else
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16783 $as_echo "no" >&6; }
16788 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16791 if test -n "$NM_FOR_TARGET"; then
16792 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16793 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16794 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16797 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16798 for ncn_progname in nm; do
16799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16800 set dummy ${ncn_progname}; ac_word=$2
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16802 $as_echo_n "checking for $ac_word... " >&6; }
16803 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16804 $as_echo_n "(cached) " >&6
16805 else
16806 if test -n "$NM_FOR_TARGET"; then
16807 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16808 else
16809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16810 for as_dir in $PATH
16812 IFS=$as_save_IFS
16813 test -z "$as_dir" && as_dir=.
16814 for ac_exec_ext in '' $ac_executable_extensions; do
16815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16816 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16818 break 2
16820 done
16821 done
16822 IFS=$as_save_IFS
16826 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16827 if test -n "$NM_FOR_TARGET"; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16829 $as_echo "$NM_FOR_TARGET" >&6; }
16830 else
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16836 done
16839 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
16840 for ncn_progname in nm; do
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16842 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16843 if test -x $with_build_time_tools/${ncn_progname}; then
16844 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16846 $as_echo "yes" >&6; }
16847 break
16848 else
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16850 $as_echo "no" >&6; }
16852 done
16855 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
16856 for ncn_progname in nm; do
16857 if test -n "$ncn_target_tool_prefix"; then
16858 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16859 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16861 $as_echo_n "checking for $ac_word... " >&6; }
16862 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16863 $as_echo_n "(cached) " >&6
16864 else
16865 if test -n "$NM_FOR_TARGET"; then
16866 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16867 else
16868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16869 for as_dir in $PATH
16871 IFS=$as_save_IFS
16872 test -z "$as_dir" && as_dir=.
16873 for ac_exec_ext in '' $ac_executable_extensions; do
16874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16875 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16877 break 2
16879 done
16880 done
16881 IFS=$as_save_IFS
16885 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16886 if test -n "$NM_FOR_TARGET"; then
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16888 $as_echo "$NM_FOR_TARGET" >&6; }
16889 else
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16891 $as_echo "no" >&6; }
16896 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16898 set dummy ${ncn_progname}; ac_word=$2
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16900 $as_echo_n "checking for $ac_word... " >&6; }
16901 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16902 $as_echo_n "(cached) " >&6
16903 else
16904 if test -n "$NM_FOR_TARGET"; then
16905 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16906 else
16907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16908 for as_dir in $PATH
16910 IFS=$as_save_IFS
16911 test -z "$as_dir" && as_dir=.
16912 for ac_exec_ext in '' $ac_executable_extensions; do
16913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16914 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16916 break 2
16918 done
16919 done
16920 IFS=$as_save_IFS
16924 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16925 if test -n "$NM_FOR_TARGET"; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16927 $as_echo "$NM_FOR_TARGET" >&6; }
16928 else
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16930 $as_echo "no" >&6; }
16935 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
16936 done
16939 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
16940 set dummy nm
16941 if test $build = $target ; then
16942 NM_FOR_TARGET="$2"
16943 else
16944 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
16946 else
16947 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
16950 else
16951 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16957 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16958 if test -n "$with_build_time_tools"; then
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
16960 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
16961 if test -x $with_build_time_tools/objcopy; then
16962 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
16963 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
16965 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
16966 else
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16968 $as_echo "no" >&6; }
16970 elif test $build != $host && test $have_gcc_for_target = yes; then
16971 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
16972 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
16973 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16976 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16977 # Extract the first word of "objcopy", so it can be a program name with args.
16978 set dummy objcopy; ac_word=$2
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16980 $as_echo_n "checking for $ac_word... " >&6; }
16981 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
16982 $as_echo_n "(cached) " >&6
16983 else
16984 case $OBJCOPY_FOR_TARGET in
16985 [\\/]* | ?:[\\/]*)
16986 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16990 for as_dir in $gcc_cv_tool_dirs
16992 IFS=$as_save_IFS
16993 test -z "$as_dir" && as_dir=.
16994 for ac_exec_ext in '' $ac_executable_extensions; do
16995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16996 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16998 break 2
17000 done
17001 done
17002 IFS=$as_save_IFS
17005 esac
17007 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17008 if test -n "$OBJCOPY_FOR_TARGET"; then
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17010 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17011 else
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17013 $as_echo "no" >&6; }
17018 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17021 if test -n "$OBJCOPY_FOR_TARGET"; then
17022 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17023 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17024 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17027 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17028 for ncn_progname in objcopy; do
17029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17030 set dummy ${ncn_progname}; ac_word=$2
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17032 $as_echo_n "checking for $ac_word... " >&6; }
17033 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17034 $as_echo_n "(cached) " >&6
17035 else
17036 if test -n "$OBJCOPY_FOR_TARGET"; then
17037 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17038 else
17039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17040 for as_dir in $PATH
17042 IFS=$as_save_IFS
17043 test -z "$as_dir" && as_dir=.
17044 for ac_exec_ext in '' $ac_executable_extensions; do
17045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17046 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17048 break 2
17050 done
17051 done
17052 IFS=$as_save_IFS
17056 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17057 if test -n "$OBJCOPY_FOR_TARGET"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17059 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17060 else
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17062 $as_echo "no" >&6; }
17066 done
17069 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17070 for ncn_progname in objcopy; do
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17072 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17073 if test -x $with_build_time_tools/${ncn_progname}; then
17074 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17076 $as_echo "yes" >&6; }
17077 break
17078 else
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080 $as_echo "no" >&6; }
17082 done
17085 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17086 for ncn_progname in objcopy; do
17087 if test -n "$ncn_target_tool_prefix"; then
17088 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17089 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17091 $as_echo_n "checking for $ac_word... " >&6; }
17092 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17093 $as_echo_n "(cached) " >&6
17094 else
17095 if test -n "$OBJCOPY_FOR_TARGET"; then
17096 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17097 else
17098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17099 for as_dir in $PATH
17101 IFS=$as_save_IFS
17102 test -z "$as_dir" && as_dir=.
17103 for ac_exec_ext in '' $ac_executable_extensions; do
17104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17105 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17107 break 2
17109 done
17110 done
17111 IFS=$as_save_IFS
17115 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17116 if test -n "$OBJCOPY_FOR_TARGET"; then
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17118 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17119 else
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17121 $as_echo "no" >&6; }
17126 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17128 set dummy ${ncn_progname}; ac_word=$2
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17130 $as_echo_n "checking for $ac_word... " >&6; }
17131 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17132 $as_echo_n "(cached) " >&6
17133 else
17134 if test -n "$OBJCOPY_FOR_TARGET"; then
17135 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17136 else
17137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17138 for as_dir in $PATH
17140 IFS=$as_save_IFS
17141 test -z "$as_dir" && as_dir=.
17142 for ac_exec_ext in '' $ac_executable_extensions; do
17143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17144 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17146 break 2
17148 done
17149 done
17150 IFS=$as_save_IFS
17154 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17155 if test -n "$OBJCOPY_FOR_TARGET"; then
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17157 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17158 else
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17160 $as_echo "no" >&6; }
17165 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17166 done
17169 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17170 set dummy objcopy
17171 if test $build = $target ; then
17172 OBJCOPY_FOR_TARGET="$2"
17173 else
17174 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17176 else
17177 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17180 else
17181 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17187 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17188 if test -n "$with_build_time_tools"; then
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
17190 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
17191 if test -x $with_build_time_tools/objdump; then
17192 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17193 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17195 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17196 else
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17198 $as_echo "no" >&6; }
17200 elif test $build != $host && test $have_gcc_for_target = yes; then
17201 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17202 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17203 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17206 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17207 # Extract the first word of "objdump", so it can be a program name with args.
17208 set dummy objdump; ac_word=$2
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17210 $as_echo_n "checking for $ac_word... " >&6; }
17211 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17212 $as_echo_n "(cached) " >&6
17213 else
17214 case $OBJDUMP_FOR_TARGET in
17215 [\\/]* | ?:[\\/]*)
17216 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17220 for as_dir in $gcc_cv_tool_dirs
17222 IFS=$as_save_IFS
17223 test -z "$as_dir" && as_dir=.
17224 for ac_exec_ext in '' $ac_executable_extensions; do
17225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17226 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17228 break 2
17230 done
17231 done
17232 IFS=$as_save_IFS
17235 esac
17237 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17238 if test -n "$OBJDUMP_FOR_TARGET"; then
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17240 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17241 else
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17243 $as_echo "no" >&6; }
17248 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17251 if test -n "$OBJDUMP_FOR_TARGET"; then
17252 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17253 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17254 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17257 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17258 for ncn_progname in objdump; do
17259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17260 set dummy ${ncn_progname}; ac_word=$2
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17262 $as_echo_n "checking for $ac_word... " >&6; }
17263 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17264 $as_echo_n "(cached) " >&6
17265 else
17266 if test -n "$OBJDUMP_FOR_TARGET"; then
17267 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17268 else
17269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17270 for as_dir in $PATH
17272 IFS=$as_save_IFS
17273 test -z "$as_dir" && as_dir=.
17274 for ac_exec_ext in '' $ac_executable_extensions; do
17275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17276 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17278 break 2
17280 done
17281 done
17282 IFS=$as_save_IFS
17286 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17287 if test -n "$OBJDUMP_FOR_TARGET"; then
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17289 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17290 else
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17292 $as_echo "no" >&6; }
17296 done
17299 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17300 for ncn_progname in objdump; do
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17302 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17303 if test -x $with_build_time_tools/${ncn_progname}; then
17304 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17306 $as_echo "yes" >&6; }
17307 break
17308 else
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17310 $as_echo "no" >&6; }
17312 done
17315 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17316 for ncn_progname in objdump; do
17317 if test -n "$ncn_target_tool_prefix"; then
17318 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17319 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17321 $as_echo_n "checking for $ac_word... " >&6; }
17322 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17323 $as_echo_n "(cached) " >&6
17324 else
17325 if test -n "$OBJDUMP_FOR_TARGET"; then
17326 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17327 else
17328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17329 for as_dir in $PATH
17331 IFS=$as_save_IFS
17332 test -z "$as_dir" && as_dir=.
17333 for ac_exec_ext in '' $ac_executable_extensions; do
17334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17335 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17337 break 2
17339 done
17340 done
17341 IFS=$as_save_IFS
17345 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17346 if test -n "$OBJDUMP_FOR_TARGET"; then
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17348 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17349 else
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17351 $as_echo "no" >&6; }
17356 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17358 set dummy ${ncn_progname}; ac_word=$2
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17360 $as_echo_n "checking for $ac_word... " >&6; }
17361 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17362 $as_echo_n "(cached) " >&6
17363 else
17364 if test -n "$OBJDUMP_FOR_TARGET"; then
17365 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17366 else
17367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17368 for as_dir in $PATH
17370 IFS=$as_save_IFS
17371 test -z "$as_dir" && as_dir=.
17372 for ac_exec_ext in '' $ac_executable_extensions; do
17373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17374 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17376 break 2
17378 done
17379 done
17380 IFS=$as_save_IFS
17384 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17385 if test -n "$OBJDUMP_FOR_TARGET"; then
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17387 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17388 else
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17390 $as_echo "no" >&6; }
17395 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17396 done
17399 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17400 set dummy objdump
17401 if test $build = $target ; then
17402 OBJDUMP_FOR_TARGET="$2"
17403 else
17404 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17406 else
17407 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17410 else
17411 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17417 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17418 if test -n "$with_build_time_tools"; then
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
17420 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
17421 if test -x $with_build_time_tools/otool; then
17422 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17423 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17425 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17426 else
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17428 $as_echo "no" >&6; }
17430 elif test $build != $host && test $have_gcc_for_target = yes; then
17431 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17432 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17433 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17436 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17437 # Extract the first word of "otool", so it can be a program name with args.
17438 set dummy otool; ac_word=$2
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17440 $as_echo_n "checking for $ac_word... " >&6; }
17441 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17442 $as_echo_n "(cached) " >&6
17443 else
17444 case $OTOOL_FOR_TARGET in
17445 [\\/]* | ?:[\\/]*)
17446 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17450 for as_dir in $gcc_cv_tool_dirs
17452 IFS=$as_save_IFS
17453 test -z "$as_dir" && as_dir=.
17454 for ac_exec_ext in '' $ac_executable_extensions; do
17455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17456 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17458 break 2
17460 done
17461 done
17462 IFS=$as_save_IFS
17465 esac
17467 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17468 if test -n "$OTOOL_FOR_TARGET"; then
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17470 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17471 else
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17473 $as_echo "no" >&6; }
17478 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17481 if test -n "$OTOOL_FOR_TARGET"; then
17482 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17483 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17484 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17487 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17488 for ncn_progname in otool; do
17489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17490 set dummy ${ncn_progname}; ac_word=$2
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17492 $as_echo_n "checking for $ac_word... " >&6; }
17493 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17494 $as_echo_n "(cached) " >&6
17495 else
17496 if test -n "$OTOOL_FOR_TARGET"; then
17497 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17498 else
17499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17500 for as_dir in $PATH
17502 IFS=$as_save_IFS
17503 test -z "$as_dir" && as_dir=.
17504 for ac_exec_ext in '' $ac_executable_extensions; do
17505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17506 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17508 break 2
17510 done
17511 done
17512 IFS=$as_save_IFS
17516 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17517 if test -n "$OTOOL_FOR_TARGET"; then
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17519 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17520 else
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17522 $as_echo "no" >&6; }
17526 done
17529 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17530 for ncn_progname in otool; do
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17532 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17533 if test -x $with_build_time_tools/${ncn_progname}; then
17534 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17536 $as_echo "yes" >&6; }
17537 break
17538 else
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17540 $as_echo "no" >&6; }
17542 done
17545 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17546 for ncn_progname in otool; do
17547 if test -n "$ncn_target_tool_prefix"; then
17548 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17549 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17551 $as_echo_n "checking for $ac_word... " >&6; }
17552 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17553 $as_echo_n "(cached) " >&6
17554 else
17555 if test -n "$OTOOL_FOR_TARGET"; then
17556 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17557 else
17558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17559 for as_dir in $PATH
17561 IFS=$as_save_IFS
17562 test -z "$as_dir" && as_dir=.
17563 for ac_exec_ext in '' $ac_executable_extensions; do
17564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17565 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17567 break 2
17569 done
17570 done
17571 IFS=$as_save_IFS
17575 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17576 if test -n "$OTOOL_FOR_TARGET"; then
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17578 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17579 else
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17581 $as_echo "no" >&6; }
17586 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17588 set dummy ${ncn_progname}; ac_word=$2
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17590 $as_echo_n "checking for $ac_word... " >&6; }
17591 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17592 $as_echo_n "(cached) " >&6
17593 else
17594 if test -n "$OTOOL_FOR_TARGET"; then
17595 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17596 else
17597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17598 for as_dir in $PATH
17600 IFS=$as_save_IFS
17601 test -z "$as_dir" && as_dir=.
17602 for ac_exec_ext in '' $ac_executable_extensions; do
17603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17604 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17606 break 2
17608 done
17609 done
17610 IFS=$as_save_IFS
17614 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17615 if test -n "$OTOOL_FOR_TARGET"; then
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17617 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17618 else
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620 $as_echo "no" >&6; }
17625 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17626 done
17629 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17630 set dummy otool
17631 if test $build = $target ; then
17632 OTOOL_FOR_TARGET="$2"
17633 else
17634 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17636 else
17637 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17640 else
17641 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17647 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17648 if test -n "$with_build_time_tools"; then
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
17650 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
17651 if test -x $with_build_time_tools/ranlib; then
17652 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17653 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17655 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17656 else
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17658 $as_echo "no" >&6; }
17660 elif test $build != $host && test $have_gcc_for_target = yes; then
17661 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17662 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17663 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17666 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17667 # Extract the first word of "ranlib", so it can be a program name with args.
17668 set dummy ranlib; ac_word=$2
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17670 $as_echo_n "checking for $ac_word... " >&6; }
17671 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17672 $as_echo_n "(cached) " >&6
17673 else
17674 case $RANLIB_FOR_TARGET in
17675 [\\/]* | ?:[\\/]*)
17676 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17680 for as_dir in $gcc_cv_tool_dirs
17682 IFS=$as_save_IFS
17683 test -z "$as_dir" && as_dir=.
17684 for ac_exec_ext in '' $ac_executable_extensions; do
17685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17686 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17688 break 2
17690 done
17691 done
17692 IFS=$as_save_IFS
17695 esac
17697 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17698 if test -n "$RANLIB_FOR_TARGET"; then
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17700 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17701 else
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 $as_echo "no" >&6; }
17708 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17711 if test -n "$RANLIB_FOR_TARGET"; then
17712 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17713 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17714 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17717 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17718 for ncn_progname in ranlib; do
17719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17720 set dummy ${ncn_progname}; ac_word=$2
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17722 $as_echo_n "checking for $ac_word... " >&6; }
17723 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17724 $as_echo_n "(cached) " >&6
17725 else
17726 if test -n "$RANLIB_FOR_TARGET"; then
17727 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17728 else
17729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17730 for as_dir in $PATH
17732 IFS=$as_save_IFS
17733 test -z "$as_dir" && as_dir=.
17734 for ac_exec_ext in '' $ac_executable_extensions; do
17735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17736 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17738 break 2
17740 done
17741 done
17742 IFS=$as_save_IFS
17746 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17747 if test -n "$RANLIB_FOR_TARGET"; then
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17749 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17750 else
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17752 $as_echo "no" >&6; }
17756 done
17759 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17760 for ncn_progname in ranlib; do
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17762 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17763 if test -x $with_build_time_tools/${ncn_progname}; then
17764 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17766 $as_echo "yes" >&6; }
17767 break
17768 else
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17770 $as_echo "no" >&6; }
17772 done
17775 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17776 for ncn_progname in ranlib; do
17777 if test -n "$ncn_target_tool_prefix"; then
17778 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17779 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17781 $as_echo_n "checking for $ac_word... " >&6; }
17782 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17783 $as_echo_n "(cached) " >&6
17784 else
17785 if test -n "$RANLIB_FOR_TARGET"; then
17786 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17787 else
17788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17789 for as_dir in $PATH
17791 IFS=$as_save_IFS
17792 test -z "$as_dir" && as_dir=.
17793 for ac_exec_ext in '' $ac_executable_extensions; do
17794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17795 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17797 break 2
17799 done
17800 done
17801 IFS=$as_save_IFS
17805 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17806 if test -n "$RANLIB_FOR_TARGET"; then
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17808 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17809 else
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17811 $as_echo "no" >&6; }
17816 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17818 set dummy ${ncn_progname}; ac_word=$2
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17820 $as_echo_n "checking for $ac_word... " >&6; }
17821 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17822 $as_echo_n "(cached) " >&6
17823 else
17824 if test -n "$RANLIB_FOR_TARGET"; then
17825 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17826 else
17827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17828 for as_dir in $PATH
17830 IFS=$as_save_IFS
17831 test -z "$as_dir" && as_dir=.
17832 for ac_exec_ext in '' $ac_executable_extensions; do
17833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17834 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17836 break 2
17838 done
17839 done
17840 IFS=$as_save_IFS
17844 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17845 if test -n "$RANLIB_FOR_TARGET"; then
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17847 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17848 else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17850 $as_echo "no" >&6; }
17855 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
17856 done
17859 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
17860 set dummy ranlib
17861 if test $build = $target ; then
17862 RANLIB_FOR_TARGET="$2"
17863 else
17864 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
17866 else
17867 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
17870 else
17871 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17877 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17878 if test -n "$with_build_time_tools"; then
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
17880 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
17881 if test -x $with_build_time_tools/readelf; then
17882 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
17883 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
17885 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17886 else
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17888 $as_echo "no" >&6; }
17890 elif test $build != $host && test $have_gcc_for_target = yes; then
17891 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17892 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17893 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17896 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17897 # Extract the first word of "readelf", so it can be a program name with args.
17898 set dummy readelf; ac_word=$2
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17900 $as_echo_n "checking for $ac_word... " >&6; }
17901 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17902 $as_echo_n "(cached) " >&6
17903 else
17904 case $READELF_FOR_TARGET in
17905 [\\/]* | ?:[\\/]*)
17906 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17910 for as_dir in $gcc_cv_tool_dirs
17912 IFS=$as_save_IFS
17913 test -z "$as_dir" && as_dir=.
17914 for ac_exec_ext in '' $ac_executable_extensions; do
17915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17916 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17918 break 2
17920 done
17921 done
17922 IFS=$as_save_IFS
17925 esac
17927 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17928 if test -n "$READELF_FOR_TARGET"; then
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17930 $as_echo "$READELF_FOR_TARGET" >&6; }
17931 else
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17933 $as_echo "no" >&6; }
17938 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17941 if test -n "$READELF_FOR_TARGET"; then
17942 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
17943 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17944 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17947 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17948 for ncn_progname in readelf; do
17949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17950 set dummy ${ncn_progname}; ac_word=$2
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17952 $as_echo_n "checking for $ac_word... " >&6; }
17953 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17954 $as_echo_n "(cached) " >&6
17955 else
17956 if test -n "$READELF_FOR_TARGET"; then
17957 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17958 else
17959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17960 for as_dir in $PATH
17962 IFS=$as_save_IFS
17963 test -z "$as_dir" && as_dir=.
17964 for ac_exec_ext in '' $ac_executable_extensions; do
17965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17966 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17968 break 2
17970 done
17971 done
17972 IFS=$as_save_IFS
17976 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17977 if test -n "$READELF_FOR_TARGET"; then
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17979 $as_echo "$READELF_FOR_TARGET" >&6; }
17980 else
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17982 $as_echo "no" >&6; }
17986 done
17989 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17990 for ncn_progname in readelf; do
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17992 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17993 if test -x $with_build_time_tools/${ncn_progname}; then
17994 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17996 $as_echo "yes" >&6; }
17997 break
17998 else
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18000 $as_echo "no" >&6; }
18002 done
18005 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18006 for ncn_progname in readelf; do
18007 if test -n "$ncn_target_tool_prefix"; then
18008 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18009 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18011 $as_echo_n "checking for $ac_word... " >&6; }
18012 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015 if test -n "$READELF_FOR_TARGET"; then
18016 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18017 else
18018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18019 for as_dir in $PATH
18021 IFS=$as_save_IFS
18022 test -z "$as_dir" && as_dir=.
18023 for ac_exec_ext in '' $ac_executable_extensions; do
18024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18025 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18027 break 2
18029 done
18030 done
18031 IFS=$as_save_IFS
18035 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18036 if test -n "$READELF_FOR_TARGET"; then
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18038 $as_echo "$READELF_FOR_TARGET" >&6; }
18039 else
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18041 $as_echo "no" >&6; }
18046 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18048 set dummy ${ncn_progname}; ac_word=$2
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18050 $as_echo_n "checking for $ac_word... " >&6; }
18051 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18052 $as_echo_n "(cached) " >&6
18053 else
18054 if test -n "$READELF_FOR_TARGET"; then
18055 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18056 else
18057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18058 for as_dir in $PATH
18060 IFS=$as_save_IFS
18061 test -z "$as_dir" && as_dir=.
18062 for ac_exec_ext in '' $ac_executable_extensions; do
18063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18064 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18066 break 2
18068 done
18069 done
18070 IFS=$as_save_IFS
18074 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18075 if test -n "$READELF_FOR_TARGET"; then
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18077 $as_echo "$READELF_FOR_TARGET" >&6; }
18078 else
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080 $as_echo "no" >&6; }
18085 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18086 done
18089 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18090 set dummy readelf
18091 if test $build = $target ; then
18092 READELF_FOR_TARGET="$2"
18093 else
18094 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18096 else
18097 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18100 else
18101 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18107 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18108 if test -n "$with_build_time_tools"; then
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
18110 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
18111 if test -x $with_build_time_tools/strip; then
18112 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18113 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
18115 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18116 else
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18118 $as_echo "no" >&6; }
18120 elif test $build != $host && test $have_gcc_for_target = yes; then
18121 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18122 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18123 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18126 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18127 # Extract the first word of "strip", so it can be a program name with args.
18128 set dummy strip; ac_word=$2
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18130 $as_echo_n "checking for $ac_word... " >&6; }
18131 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18132 $as_echo_n "(cached) " >&6
18133 else
18134 case $STRIP_FOR_TARGET in
18135 [\\/]* | ?:[\\/]*)
18136 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18140 for as_dir in $gcc_cv_tool_dirs
18142 IFS=$as_save_IFS
18143 test -z "$as_dir" && as_dir=.
18144 for ac_exec_ext in '' $ac_executable_extensions; do
18145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18146 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18148 break 2
18150 done
18151 done
18152 IFS=$as_save_IFS
18155 esac
18157 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18158 if test -n "$STRIP_FOR_TARGET"; then
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18160 $as_echo "$STRIP_FOR_TARGET" >&6; }
18161 else
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18163 $as_echo "no" >&6; }
18168 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18171 if test -n "$STRIP_FOR_TARGET"; then
18172 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18173 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18174 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18177 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18178 for ncn_progname in strip; do
18179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18180 set dummy ${ncn_progname}; ac_word=$2
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18182 $as_echo_n "checking for $ac_word... " >&6; }
18183 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18184 $as_echo_n "(cached) " >&6
18185 else
18186 if test -n "$STRIP_FOR_TARGET"; then
18187 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18188 else
18189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18190 for as_dir in $PATH
18192 IFS=$as_save_IFS
18193 test -z "$as_dir" && as_dir=.
18194 for ac_exec_ext in '' $ac_executable_extensions; do
18195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18196 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18198 break 2
18200 done
18201 done
18202 IFS=$as_save_IFS
18206 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18207 if test -n "$STRIP_FOR_TARGET"; then
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18209 $as_echo "$STRIP_FOR_TARGET" >&6; }
18210 else
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18212 $as_echo "no" >&6; }
18216 done
18219 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18220 for ncn_progname in strip; do
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18222 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18223 if test -x $with_build_time_tools/${ncn_progname}; then
18224 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18226 $as_echo "yes" >&6; }
18227 break
18228 else
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18230 $as_echo "no" >&6; }
18232 done
18235 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18236 for ncn_progname in strip; do
18237 if test -n "$ncn_target_tool_prefix"; then
18238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18241 $as_echo_n "checking for $ac_word... " >&6; }
18242 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18243 $as_echo_n "(cached) " >&6
18244 else
18245 if test -n "$STRIP_FOR_TARGET"; then
18246 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18247 else
18248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18249 for as_dir in $PATH
18251 IFS=$as_save_IFS
18252 test -z "$as_dir" && as_dir=.
18253 for ac_exec_ext in '' $ac_executable_extensions; do
18254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18255 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18257 break 2
18259 done
18260 done
18261 IFS=$as_save_IFS
18265 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18266 if test -n "$STRIP_FOR_TARGET"; then
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18268 $as_echo "$STRIP_FOR_TARGET" >&6; }
18269 else
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18271 $as_echo "no" >&6; }
18276 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18278 set dummy ${ncn_progname}; ac_word=$2
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18280 $as_echo_n "checking for $ac_word... " >&6; }
18281 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18282 $as_echo_n "(cached) " >&6
18283 else
18284 if test -n "$STRIP_FOR_TARGET"; then
18285 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18286 else
18287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18288 for as_dir in $PATH
18290 IFS=$as_save_IFS
18291 test -z "$as_dir" && as_dir=.
18292 for ac_exec_ext in '' $ac_executable_extensions; do
18293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18294 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18296 break 2
18298 done
18299 done
18300 IFS=$as_save_IFS
18304 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18305 if test -n "$STRIP_FOR_TARGET"; then
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18307 $as_echo "$STRIP_FOR_TARGET" >&6; }
18308 else
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 $as_echo "no" >&6; }
18315 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18316 done
18319 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18320 set dummy strip
18321 if test $build = $target ; then
18322 STRIP_FOR_TARGET="$2"
18323 else
18324 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18326 else
18327 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18330 else
18331 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18337 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18338 if test -n "$with_build_time_tools"; then
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
18340 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
18341 if test -x $with_build_time_tools/windres; then
18342 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18343 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18345 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18346 else
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 $as_echo "no" >&6; }
18350 elif test $build != $host && test $have_gcc_for_target = yes; then
18351 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18352 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18353 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18356 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18357 # Extract the first word of "windres", so it can be a program name with args.
18358 set dummy windres; ac_word=$2
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18360 $as_echo_n "checking for $ac_word... " >&6; }
18361 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18362 $as_echo_n "(cached) " >&6
18363 else
18364 case $WINDRES_FOR_TARGET in
18365 [\\/]* | ?:[\\/]*)
18366 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18370 for as_dir in $gcc_cv_tool_dirs
18372 IFS=$as_save_IFS
18373 test -z "$as_dir" && as_dir=.
18374 for ac_exec_ext in '' $ac_executable_extensions; do
18375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18376 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18378 break 2
18380 done
18381 done
18382 IFS=$as_save_IFS
18385 esac
18387 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18388 if test -n "$WINDRES_FOR_TARGET"; then
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18390 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18391 else
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18393 $as_echo "no" >&6; }
18398 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18401 if test -n "$WINDRES_FOR_TARGET"; then
18402 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18403 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18404 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18407 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18408 for ncn_progname in windres; do
18409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18410 set dummy ${ncn_progname}; ac_word=$2
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18412 $as_echo_n "checking for $ac_word... " >&6; }
18413 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18414 $as_echo_n "(cached) " >&6
18415 else
18416 if test -n "$WINDRES_FOR_TARGET"; then
18417 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18418 else
18419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18420 for as_dir in $PATH
18422 IFS=$as_save_IFS
18423 test -z "$as_dir" && as_dir=.
18424 for ac_exec_ext in '' $ac_executable_extensions; do
18425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18426 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18428 break 2
18430 done
18431 done
18432 IFS=$as_save_IFS
18436 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18437 if test -n "$WINDRES_FOR_TARGET"; then
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18439 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18440 else
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18442 $as_echo "no" >&6; }
18446 done
18449 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18450 for ncn_progname in windres; do
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18452 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18453 if test -x $with_build_time_tools/${ncn_progname}; then
18454 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18456 $as_echo "yes" >&6; }
18457 break
18458 else
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18460 $as_echo "no" >&6; }
18462 done
18465 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18466 for ncn_progname in windres; do
18467 if test -n "$ncn_target_tool_prefix"; then
18468 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18469 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18471 $as_echo_n "checking for $ac_word... " >&6; }
18472 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18473 $as_echo_n "(cached) " >&6
18474 else
18475 if test -n "$WINDRES_FOR_TARGET"; then
18476 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18477 else
18478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18479 for as_dir in $PATH
18481 IFS=$as_save_IFS
18482 test -z "$as_dir" && as_dir=.
18483 for ac_exec_ext in '' $ac_executable_extensions; do
18484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18485 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18487 break 2
18489 done
18490 done
18491 IFS=$as_save_IFS
18495 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18496 if test -n "$WINDRES_FOR_TARGET"; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18498 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18499 else
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501 $as_echo "no" >&6; }
18506 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18508 set dummy ${ncn_progname}; ac_word=$2
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18510 $as_echo_n "checking for $ac_word... " >&6; }
18511 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18512 $as_echo_n "(cached) " >&6
18513 else
18514 if test -n "$WINDRES_FOR_TARGET"; then
18515 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18516 else
18517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18520 IFS=$as_save_IFS
18521 test -z "$as_dir" && as_dir=.
18522 for ac_exec_ext in '' $ac_executable_extensions; do
18523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18524 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18526 break 2
18528 done
18529 done
18530 IFS=$as_save_IFS
18534 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18535 if test -n "$WINDRES_FOR_TARGET"; then
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18537 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18538 else
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18540 $as_echo "no" >&6; }
18545 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18546 done
18549 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18550 set dummy windres
18551 if test $build = $target ; then
18552 WINDRES_FOR_TARGET="$2"
18553 else
18554 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18556 else
18557 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18560 else
18561 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18567 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18568 if test -n "$with_build_time_tools"; then
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
18570 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
18571 if test -x $with_build_time_tools/windmc; then
18572 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18573 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18575 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18576 else
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18578 $as_echo "no" >&6; }
18580 elif test $build != $host && test $have_gcc_for_target = yes; then
18581 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18582 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18583 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18586 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18587 # Extract the first word of "windmc", so it can be a program name with args.
18588 set dummy windmc; ac_word=$2
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18590 $as_echo_n "checking for $ac_word... " >&6; }
18591 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18592 $as_echo_n "(cached) " >&6
18593 else
18594 case $WINDMC_FOR_TARGET in
18595 [\\/]* | ?:[\\/]*)
18596 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18600 for as_dir in $gcc_cv_tool_dirs
18602 IFS=$as_save_IFS
18603 test -z "$as_dir" && as_dir=.
18604 for ac_exec_ext in '' $ac_executable_extensions; do
18605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18606 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18608 break 2
18610 done
18611 done
18612 IFS=$as_save_IFS
18615 esac
18617 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18618 if test -n "$WINDMC_FOR_TARGET"; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18620 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18621 else
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18623 $as_echo "no" >&6; }
18628 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18631 if test -n "$WINDMC_FOR_TARGET"; then
18632 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18633 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18634 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18637 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18638 for ncn_progname in windmc; do
18639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18640 set dummy ${ncn_progname}; ac_word=$2
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18642 $as_echo_n "checking for $ac_word... " >&6; }
18643 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18644 $as_echo_n "(cached) " >&6
18645 else
18646 if test -n "$WINDMC_FOR_TARGET"; then
18647 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18648 else
18649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in $PATH
18652 IFS=$as_save_IFS
18653 test -z "$as_dir" && as_dir=.
18654 for ac_exec_ext in '' $ac_executable_extensions; do
18655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18658 break 2
18660 done
18661 done
18662 IFS=$as_save_IFS
18666 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18667 if test -n "$WINDMC_FOR_TARGET"; then
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18669 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18670 else
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18672 $as_echo "no" >&6; }
18676 done
18679 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18680 for ncn_progname in windmc; do
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18682 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18683 if test -x $with_build_time_tools/${ncn_progname}; then
18684 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18687 break
18688 else
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18690 $as_echo "no" >&6; }
18692 done
18695 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18696 for ncn_progname in windmc; do
18697 if test -n "$ncn_target_tool_prefix"; then
18698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18699 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18701 $as_echo_n "checking for $ac_word... " >&6; }
18702 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18703 $as_echo_n "(cached) " >&6
18704 else
18705 if test -n "$WINDMC_FOR_TARGET"; then
18706 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18707 else
18708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18709 for as_dir in $PATH
18711 IFS=$as_save_IFS
18712 test -z "$as_dir" && as_dir=.
18713 for ac_exec_ext in '' $ac_executable_extensions; do
18714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18715 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18717 break 2
18719 done
18720 done
18721 IFS=$as_save_IFS
18725 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18726 if test -n "$WINDMC_FOR_TARGET"; then
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18728 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18729 else
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731 $as_echo "no" >&6; }
18736 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18738 set dummy ${ncn_progname}; ac_word=$2
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18740 $as_echo_n "checking for $ac_word... " >&6; }
18741 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18742 $as_echo_n "(cached) " >&6
18743 else
18744 if test -n "$WINDMC_FOR_TARGET"; then
18745 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18746 else
18747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748 for as_dir in $PATH
18750 IFS=$as_save_IFS
18751 test -z "$as_dir" && as_dir=.
18752 for ac_exec_ext in '' $ac_executable_extensions; do
18753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18754 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18756 break 2
18758 done
18759 done
18760 IFS=$as_save_IFS
18764 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18765 if test -n "$WINDMC_FOR_TARGET"; then
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18767 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18768 else
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18775 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18776 done
18779 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18780 set dummy windmc
18781 if test $build = $target ; then
18782 WINDMC_FOR_TARGET="$2"
18783 else
18784 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18786 else
18787 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18790 else
18791 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18795 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
18798 $as_echo_n "checking where to find the target ar... " >&6; }
18799 if test "x${build}" != "x${host}" ; then
18800 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18801 # We already found the complete path
18802 ac_dir=`dirname $AR_FOR_TARGET`
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18804 $as_echo "pre-installed in $ac_dir" >&6; }
18805 else
18806 # Canadian cross, just use what we found
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18808 $as_echo "pre-installed" >&6; }
18810 else
18811 ok=yes
18812 case " ${configdirs} " in
18813 *" binutils "*) ;;
18814 *) ok=no ;;
18815 esac
18817 if test $ok = yes; then
18818 # An in-tree tool is available and we can use it
18819 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18821 $as_echo "just compiled" >&6; }
18822 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18823 # We already found the complete path
18824 ac_dir=`dirname $AR_FOR_TARGET`
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18826 $as_echo "pre-installed in $ac_dir" >&6; }
18827 elif test "x$target" = "x$host"; then
18828 # We can use an host tool
18829 AR_FOR_TARGET='$(AR)'
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18831 $as_echo "host tool" >&6; }
18832 else
18833 # We need a cross tool
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18835 $as_echo "pre-installed" >&6; }
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
18840 $as_echo_n "checking where to find the target as... " >&6; }
18841 if test "x${build}" != "x${host}" ; then
18842 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18843 # We already found the complete path
18844 ac_dir=`dirname $AS_FOR_TARGET`
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18846 $as_echo "pre-installed in $ac_dir" >&6; }
18847 else
18848 # Canadian cross, just use what we found
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18850 $as_echo "pre-installed" >&6; }
18852 else
18853 ok=yes
18854 case " ${configdirs} " in
18855 *" gas "*) ;;
18856 *) ok=no ;;
18857 esac
18859 if test $ok = yes; then
18860 # An in-tree tool is available and we can use it
18861 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18863 $as_echo "just compiled" >&6; }
18864 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18865 # We already found the complete path
18866 ac_dir=`dirname $AS_FOR_TARGET`
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18868 $as_echo "pre-installed in $ac_dir" >&6; }
18869 elif test "x$target" = "x$host"; then
18870 # We can use an host tool
18871 AS_FOR_TARGET='$(AS)'
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18873 $as_echo "host tool" >&6; }
18874 else
18875 # We need a cross tool
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18877 $as_echo "pre-installed" >&6; }
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
18882 $as_echo_n "checking where to find the target cc... " >&6; }
18883 if test "x${build}" != "x${host}" ; then
18884 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18885 # We already found the complete path
18886 ac_dir=`dirname $CC_FOR_TARGET`
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18888 $as_echo "pre-installed in $ac_dir" >&6; }
18889 else
18890 # Canadian cross, just use what we found
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18892 $as_echo "pre-installed" >&6; }
18894 else
18895 ok=yes
18896 case " ${configdirs} " in
18897 *" gcc "*) ;;
18898 *) ok=no ;;
18899 esac
18901 if test $ok = yes; then
18902 # An in-tree tool is available and we can use it
18903 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18905 $as_echo "just compiled" >&6; }
18906 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18907 # We already found the complete path
18908 ac_dir=`dirname $CC_FOR_TARGET`
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18910 $as_echo "pre-installed in $ac_dir" >&6; }
18911 elif test "x$target" = "x$host"; then
18912 # We can use an host tool
18913 CC_FOR_TARGET='$(CC)'
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18915 $as_echo "host tool" >&6; }
18916 else
18917 # We need a cross tool
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18919 $as_echo "pre-installed" >&6; }
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
18924 $as_echo_n "checking where to find the target c++... " >&6; }
18925 if test "x${build}" != "x${host}" ; then
18926 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18927 # We already found the complete path
18928 ac_dir=`dirname $CXX_FOR_TARGET`
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18930 $as_echo "pre-installed in $ac_dir" >&6; }
18931 else
18932 # Canadian cross, just use what we found
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18934 $as_echo "pre-installed" >&6; }
18936 else
18937 ok=yes
18938 case " ${configdirs} " in
18939 *" gcc "*) ;;
18940 *) ok=no ;;
18941 esac
18942 case ,${enable_languages}, in
18943 *,c++,*) ;;
18944 *) ok=no ;;
18945 esac
18946 if test $ok = yes; then
18947 # An in-tree tool is available and we can use it
18948 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'
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18950 $as_echo "just compiled" >&6; }
18951 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18952 # We already found the complete path
18953 ac_dir=`dirname $CXX_FOR_TARGET`
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18955 $as_echo "pre-installed in $ac_dir" >&6; }
18956 elif test "x$target" = "x$host"; then
18957 # We can use an host tool
18958 CXX_FOR_TARGET='$(CXX)'
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18960 $as_echo "host tool" >&6; }
18961 else
18962 # We need a cross tool
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18964 $as_echo "pre-installed" >&6; }
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
18969 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
18970 if test "x${build}" != "x${host}" ; then
18971 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18972 # We already found the complete path
18973 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18975 $as_echo "pre-installed in $ac_dir" >&6; }
18976 else
18977 # Canadian cross, just use what we found
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18979 $as_echo "pre-installed" >&6; }
18981 else
18982 ok=yes
18983 case " ${configdirs} " in
18984 *" gcc "*) ;;
18985 *) ok=no ;;
18986 esac
18987 case ,${enable_languages}, in
18988 *,c++,*) ;;
18989 *) ok=no ;;
18990 esac
18991 if test $ok = yes; then
18992 # An in-tree tool is available and we can use it
18993 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'
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18995 $as_echo "just compiled" >&6; }
18996 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18997 # We already found the complete path
18998 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19000 $as_echo "pre-installed in $ac_dir" >&6; }
19001 elif test "x$target" = "x$host"; then
19002 # We can use an host tool
19003 RAW_CXX_FOR_TARGET='$(CXX)'
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19005 $as_echo "host tool" >&6; }
19006 else
19007 # We need a cross tool
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19009 $as_echo "pre-installed" >&6; }
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
19014 $as_echo_n "checking where to find the target dlltool... " >&6; }
19015 if test "x${build}" != "x${host}" ; then
19016 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19017 # We already found the complete path
19018 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19020 $as_echo "pre-installed in $ac_dir" >&6; }
19021 else
19022 # Canadian cross, just use what we found
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19024 $as_echo "pre-installed" >&6; }
19026 else
19027 ok=yes
19028 case " ${configdirs} " in
19029 *" binutils "*) ;;
19030 *) ok=no ;;
19031 esac
19033 if test $ok = yes; then
19034 # An in-tree tool is available and we can use it
19035 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19037 $as_echo "just compiled" >&6; }
19038 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19039 # We already found the complete path
19040 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19042 $as_echo "pre-installed in $ac_dir" >&6; }
19043 elif test "x$target" = "x$host"; then
19044 # We can use an host tool
19045 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19047 $as_echo "host tool" >&6; }
19048 else
19049 # We need a cross tool
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19051 $as_echo "pre-installed" >&6; }
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
19056 $as_echo_n "checking where to find the target dsymutil... " >&6; }
19057 if test "x${build}" != "x${host}" ; then
19058 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19059 # We already found the complete path
19060 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19062 $as_echo "pre-installed in $ac_dir" >&6; }
19063 else
19064 # Canadian cross, just use what we found
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19066 $as_echo "pre-installed" >&6; }
19068 else
19069 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19070 # We already found the complete path
19071 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19073 $as_echo "pre-installed in $ac_dir" >&6; }
19074 elif test "x$target" = "x$host"; then
19075 # We can use an host tool
19076 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19078 $as_echo "host tool" >&6; }
19079 else
19080 # We need a cross tool
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19082 $as_echo "pre-installed" >&6; }
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
19087 $as_echo_n "checking where to find the target gcc... " >&6; }
19088 if test "x${build}" != "x${host}" ; then
19089 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19090 # We already found the complete path
19091 ac_dir=`dirname $GCC_FOR_TARGET`
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19093 $as_echo "pre-installed in $ac_dir" >&6; }
19094 else
19095 # Canadian cross, just use what we found
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19097 $as_echo "pre-installed" >&6; }
19099 else
19100 ok=yes
19101 case " ${configdirs} " in
19102 *" gcc "*) ;;
19103 *) ok=no ;;
19104 esac
19106 if test $ok = yes; then
19107 # An in-tree tool is available and we can use it
19108 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19110 $as_echo "just compiled" >&6; }
19111 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19112 # We already found the complete path
19113 ac_dir=`dirname $GCC_FOR_TARGET`
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19115 $as_echo "pre-installed in $ac_dir" >&6; }
19116 elif test "x$target" = "x$host"; then
19117 # We can use an host tool
19118 GCC_FOR_TARGET='$()'
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19120 $as_echo "host tool" >&6; }
19121 else
19122 # We need a cross tool
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19124 $as_echo "pre-installed" >&6; }
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
19129 $as_echo_n "checking where to find the target gfortran... " >&6; }
19130 if test "x${build}" != "x${host}" ; then
19131 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19132 # We already found the complete path
19133 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19135 $as_echo "pre-installed in $ac_dir" >&6; }
19136 else
19137 # Canadian cross, just use what we found
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19139 $as_echo "pre-installed" >&6; }
19141 else
19142 ok=yes
19143 case " ${configdirs} " in
19144 *" gcc "*) ;;
19145 *) ok=no ;;
19146 esac
19147 case ,${enable_languages}, in
19148 *,fortran,*) ;;
19149 *) ok=no ;;
19150 esac
19151 if test $ok = yes; then
19152 # An in-tree tool is available and we can use it
19153 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19155 $as_echo "just compiled" >&6; }
19156 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19157 # We already found the complete path
19158 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19160 $as_echo "pre-installed in $ac_dir" >&6; }
19161 elif test "x$target" = "x$host"; then
19162 # We can use an host tool
19163 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19165 $as_echo "host tool" >&6; }
19166 else
19167 # We need a cross tool
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19169 $as_echo "pre-installed" >&6; }
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
19174 $as_echo_n "checking where to find the target gccgo... " >&6; }
19175 if test "x${build}" != "x${host}" ; then
19176 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19177 # We already found the complete path
19178 ac_dir=`dirname $GOC_FOR_TARGET`
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19180 $as_echo "pre-installed in $ac_dir" >&6; }
19181 else
19182 # Canadian cross, just use what we found
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19184 $as_echo "pre-installed" >&6; }
19186 else
19187 ok=yes
19188 case " ${configdirs} " in
19189 *" gcc "*) ;;
19190 *) ok=no ;;
19191 esac
19192 case ,${enable_languages}, in
19193 *,go,*) ;;
19194 *) ok=no ;;
19195 esac
19196 if test $ok = yes; then
19197 # An in-tree tool is available and we can use it
19198 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19200 $as_echo "just compiled" >&6; }
19201 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19202 # We already found the complete path
19203 ac_dir=`dirname $GOC_FOR_TARGET`
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19205 $as_echo "pre-installed in $ac_dir" >&6; }
19206 elif test "x$target" = "x$host"; then
19207 # We can use an host tool
19208 GOC_FOR_TARGET='$(GOC)'
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19210 $as_echo "host tool" >&6; }
19211 else
19212 # We need a cross tool
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19214 $as_echo "pre-installed" >&6; }
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
19219 $as_echo_n "checking where to find the target gdc... " >&6; }
19220 if test "x${build}" != "x${host}" ; then
19221 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19222 # We already found the complete path
19223 ac_dir=`dirname $GDC_FOR_TARGET`
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19225 $as_echo "pre-installed in $ac_dir" >&6; }
19226 else
19227 # Canadian cross, just use what we found
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19229 $as_echo "pre-installed" >&6; }
19231 else
19232 ok=yes
19233 case " ${configdirs} " in
19234 *" gcc "*) ;;
19235 *) ok=no ;;
19236 esac
19237 case ,${enable_languages}, in
19238 *,d,*) ;;
19239 *) ok=no ;;
19240 esac
19241 if test $ok = yes; then
19242 # An in-tree tool is available and we can use it
19243 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19245 $as_echo "just compiled" >&6; }
19246 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19247 # We already found the complete path
19248 ac_dir=`dirname $GDC_FOR_TARGET`
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19250 $as_echo "pre-installed in $ac_dir" >&6; }
19251 elif test "x$target" = "x$host"; then
19252 # We can use an host tool
19253 GDC_FOR_TARGET='$(GDC)'
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19255 $as_echo "host tool" >&6; }
19256 else
19257 # We need a cross tool
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19259 $as_echo "pre-installed" >&6; }
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
19264 $as_echo_n "checking where to find the target gm2... " >&6; }
19265 if test "x${build}" != "x${host}" ; then
19266 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19267 # We already found the complete path
19268 ac_dir=`dirname $GM2_FOR_TARGET`
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19270 $as_echo "pre-installed in $ac_dir" >&6; }
19271 else
19272 # Canadian cross, just use what we found
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19274 $as_echo "pre-installed" >&6; }
19276 else
19277 ok=yes
19278 case " ${configdirs} " in
19279 *" gcc "*) ;;
19280 *) ok=no ;;
19281 esac
19282 case ,${enable_languages}, in
19283 *,m2,*) ;;
19284 *) ok=no ;;
19285 esac
19286 if test $ok = yes; then
19287 # An in-tree tool is available and we can use it
19288 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19290 $as_echo "just compiled" >&6; }
19291 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19292 # We already found the complete path
19293 ac_dir=`dirname $GM2_FOR_TARGET`
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19295 $as_echo "pre-installed in $ac_dir" >&6; }
19296 elif test "x$target" = "x$host"; then
19297 # We can use an host tool
19298 GM2_FOR_TARGET='$(GM2)'
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19300 $as_echo "host tool" >&6; }
19301 else
19302 # We need a cross tool
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19304 $as_echo "pre-installed" >&6; }
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
19309 $as_echo_n "checking where to find the target ld... " >&6; }
19310 if test "x${build}" != "x${host}" ; then
19311 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19312 # We already found the complete path
19313 ac_dir=`dirname $LD_FOR_TARGET`
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19315 $as_echo "pre-installed in $ac_dir" >&6; }
19316 else
19317 # Canadian cross, just use what we found
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19319 $as_echo "pre-installed" >&6; }
19321 else
19322 ok=yes
19323 case " ${configdirs} " in
19324 *" ld "*) ;;
19325 *) ok=no ;;
19326 esac
19328 if test $ok = yes; then
19329 # An in-tree tool is available and we can use it
19330 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19332 $as_echo "just compiled" >&6; }
19333 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19334 # We already found the complete path
19335 ac_dir=`dirname $LD_FOR_TARGET`
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19337 $as_echo "pre-installed in $ac_dir" >&6; }
19338 elif test "x$target" = "x$host"; then
19339 # We can use an host tool
19340 LD_FOR_TARGET='$(LD)'
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19342 $as_echo "host tool" >&6; }
19343 else
19344 # We need a cross tool
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19346 $as_echo "pre-installed" >&6; }
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
19351 $as_echo_n "checking where to find the target lipo... " >&6; }
19352 if test "x${build}" != "x${host}" ; then
19353 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19354 # We already found the complete path
19355 ac_dir=`dirname $LIPO_FOR_TARGET`
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19357 $as_echo "pre-installed in $ac_dir" >&6; }
19358 else
19359 # Canadian cross, just use what we found
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19361 $as_echo "pre-installed" >&6; }
19363 else
19364 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19365 # We already found the complete path
19366 ac_dir=`dirname $LIPO_FOR_TARGET`
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19368 $as_echo "pre-installed in $ac_dir" >&6; }
19369 elif test "x$target" = "x$host"; then
19370 # We can use an host tool
19371 LIPO_FOR_TARGET='$(LIPO)'
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19373 $as_echo "host tool" >&6; }
19374 else
19375 # We need a cross tool
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19377 $as_echo "pre-installed" >&6; }
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
19382 $as_echo_n "checking where to find the target nm... " >&6; }
19383 if test "x${build}" != "x${host}" ; then
19384 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19385 # We already found the complete path
19386 ac_dir=`dirname $NM_FOR_TARGET`
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19388 $as_echo "pre-installed in $ac_dir" >&6; }
19389 else
19390 # Canadian cross, just use what we found
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19392 $as_echo "pre-installed" >&6; }
19394 else
19395 ok=yes
19396 case " ${configdirs} " in
19397 *" binutils "*) ;;
19398 *) ok=no ;;
19399 esac
19401 if test $ok = yes; then
19402 # An in-tree tool is available and we can use it
19403 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19405 $as_echo "just compiled" >&6; }
19406 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19407 # We already found the complete path
19408 ac_dir=`dirname $NM_FOR_TARGET`
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19410 $as_echo "pre-installed in $ac_dir" >&6; }
19411 elif test "x$target" = "x$host"; then
19412 # We can use an host tool
19413 NM_FOR_TARGET='$(NM)'
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19415 $as_echo "host tool" >&6; }
19416 else
19417 # We need a cross tool
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19419 $as_echo "pre-installed" >&6; }
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
19424 $as_echo_n "checking where to find the target objcopy... " >&6; }
19425 if test "x${build}" != "x${host}" ; then
19426 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19427 # We already found the complete path
19428 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19430 $as_echo "pre-installed in $ac_dir" >&6; }
19431 else
19432 # Canadian cross, just use what we found
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19434 $as_echo "pre-installed" >&6; }
19436 else
19437 ok=yes
19438 case " ${configdirs} " in
19439 *" binutils "*) ;;
19440 *) ok=no ;;
19441 esac
19443 if test $ok = yes; then
19444 # An in-tree tool is available and we can use it
19445 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19447 $as_echo "just compiled" >&6; }
19448 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19449 # We already found the complete path
19450 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19452 $as_echo "pre-installed in $ac_dir" >&6; }
19453 elif test "x$target" = "x$host"; then
19454 # We can use an host tool
19455 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19457 $as_echo "host tool" >&6; }
19458 else
19459 # We need a cross tool
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19461 $as_echo "pre-installed" >&6; }
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
19466 $as_echo_n "checking where to find the target objdump... " >&6; }
19467 if test "x${build}" != "x${host}" ; then
19468 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19469 # We already found the complete path
19470 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19472 $as_echo "pre-installed in $ac_dir" >&6; }
19473 else
19474 # Canadian cross, just use what we found
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19476 $as_echo "pre-installed" >&6; }
19478 else
19479 ok=yes
19480 case " ${configdirs} " in
19481 *" binutils "*) ;;
19482 *) ok=no ;;
19483 esac
19485 if test $ok = yes; then
19486 # An in-tree tool is available and we can use it
19487 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19489 $as_echo "just compiled" >&6; }
19490 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19491 # We already found the complete path
19492 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19494 $as_echo "pre-installed in $ac_dir" >&6; }
19495 elif test "x$target" = "x$host"; then
19496 # We can use an host tool
19497 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19499 $as_echo "host tool" >&6; }
19500 else
19501 # We need a cross tool
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19503 $as_echo "pre-installed" >&6; }
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
19508 $as_echo_n "checking where to find the target otool... " >&6; }
19509 if test "x${build}" != "x${host}" ; then
19510 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19511 # We already found the complete path
19512 ac_dir=`dirname $OTOOL_FOR_TARGET`
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19514 $as_echo "pre-installed in $ac_dir" >&6; }
19515 else
19516 # Canadian cross, just use what we found
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19518 $as_echo "pre-installed" >&6; }
19520 else
19521 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19522 # We already found the complete path
19523 ac_dir=`dirname $OTOOL_FOR_TARGET`
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19525 $as_echo "pre-installed in $ac_dir" >&6; }
19526 elif test "x$target" = "x$host"; then
19527 # We can use an host tool
19528 OTOOL_FOR_TARGET='$(OTOOL)'
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19530 $as_echo "host tool" >&6; }
19531 else
19532 # We need a cross tool
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19534 $as_echo "pre-installed" >&6; }
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
19539 $as_echo_n "checking where to find the target ranlib... " >&6; }
19540 if test "x${build}" != "x${host}" ; then
19541 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19542 # We already found the complete path
19543 ac_dir=`dirname $RANLIB_FOR_TARGET`
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19545 $as_echo "pre-installed in $ac_dir" >&6; }
19546 else
19547 # Canadian cross, just use what we found
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19549 $as_echo "pre-installed" >&6; }
19551 else
19552 ok=yes
19553 case " ${configdirs} " in
19554 *" binutils "*) ;;
19555 *) ok=no ;;
19556 esac
19558 if test $ok = yes; then
19559 # An in-tree tool is available and we can use it
19560 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19562 $as_echo "just compiled" >&6; }
19563 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19564 # We already found the complete path
19565 ac_dir=`dirname $RANLIB_FOR_TARGET`
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19567 $as_echo "pre-installed in $ac_dir" >&6; }
19568 elif test "x$target" = "x$host"; then
19569 # We can use an host tool
19570 RANLIB_FOR_TARGET='$(RANLIB)'
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19572 $as_echo "host tool" >&6; }
19573 else
19574 # We need a cross tool
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19576 $as_echo "pre-installed" >&6; }
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
19581 $as_echo_n "checking where to find the target readelf... " >&6; }
19582 if test "x${build}" != "x${host}" ; then
19583 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19584 # We already found the complete path
19585 ac_dir=`dirname $READELF_FOR_TARGET`
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19587 $as_echo "pre-installed in $ac_dir" >&6; }
19588 else
19589 # Canadian cross, just use what we found
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19591 $as_echo "pre-installed" >&6; }
19593 else
19594 ok=yes
19595 case " ${configdirs} " in
19596 *" binutils "*) ;;
19597 *) ok=no ;;
19598 esac
19600 if test $ok = yes; then
19601 # An in-tree tool is available and we can use it
19602 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19604 $as_echo "just compiled" >&6; }
19605 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19606 # We already found the complete path
19607 ac_dir=`dirname $READELF_FOR_TARGET`
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19609 $as_echo "pre-installed in $ac_dir" >&6; }
19610 elif test "x$target" = "x$host"; then
19611 # We can use an host tool
19612 READELF_FOR_TARGET='$(READELF)'
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19614 $as_echo "host tool" >&6; }
19615 else
19616 # We need a cross tool
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19618 $as_echo "pre-installed" >&6; }
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
19623 $as_echo_n "checking where to find the target strip... " >&6; }
19624 if test "x${build}" != "x${host}" ; then
19625 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19626 # We already found the complete path
19627 ac_dir=`dirname $STRIP_FOR_TARGET`
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19629 $as_echo "pre-installed in $ac_dir" >&6; }
19630 else
19631 # Canadian cross, just use what we found
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19633 $as_echo "pre-installed" >&6; }
19635 else
19636 ok=yes
19637 case " ${configdirs} " in
19638 *" binutils "*) ;;
19639 *) ok=no ;;
19640 esac
19642 if test $ok = yes; then
19643 # An in-tree tool is available and we can use it
19644 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19646 $as_echo "just compiled" >&6; }
19647 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19648 # We already found the complete path
19649 ac_dir=`dirname $STRIP_FOR_TARGET`
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19651 $as_echo "pre-installed in $ac_dir" >&6; }
19652 elif test "x$target" = "x$host"; then
19653 # We can use an host tool
19654 STRIP_FOR_TARGET='$(STRIP)'
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19656 $as_echo "host tool" >&6; }
19657 else
19658 # We need a cross tool
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19660 $as_echo "pre-installed" >&6; }
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
19665 $as_echo_n "checking where to find the target windres... " >&6; }
19666 if test "x${build}" != "x${host}" ; then
19667 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19668 # We already found the complete path
19669 ac_dir=`dirname $WINDRES_FOR_TARGET`
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19671 $as_echo "pre-installed in $ac_dir" >&6; }
19672 else
19673 # Canadian cross, just use what we found
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19675 $as_echo "pre-installed" >&6; }
19677 else
19678 ok=yes
19679 case " ${configdirs} " in
19680 *" binutils "*) ;;
19681 *) ok=no ;;
19682 esac
19684 if test $ok = yes; then
19685 # An in-tree tool is available and we can use it
19686 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19688 $as_echo "just compiled" >&6; }
19689 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19690 # We already found the complete path
19691 ac_dir=`dirname $WINDRES_FOR_TARGET`
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19693 $as_echo "pre-installed in $ac_dir" >&6; }
19694 elif test "x$target" = "x$host"; then
19695 # We can use an host tool
19696 WINDRES_FOR_TARGET='$(WINDRES)'
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19698 $as_echo "host tool" >&6; }
19699 else
19700 # We need a cross tool
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19702 $as_echo "pre-installed" >&6; }
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
19707 $as_echo_n "checking where to find the target windmc... " >&6; }
19708 if test "x${build}" != "x${host}" ; then
19709 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19710 # We already found the complete path
19711 ac_dir=`dirname $WINDMC_FOR_TARGET`
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19713 $as_echo "pre-installed in $ac_dir" >&6; }
19714 else
19715 # Canadian cross, just use what we found
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19717 $as_echo "pre-installed" >&6; }
19719 else
19720 ok=yes
19721 case " ${configdirs} " in
19722 *" binutils "*) ;;
19723 *) ok=no ;;
19724 esac
19726 if test $ok = yes; then
19727 # An in-tree tool is available and we can use it
19728 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19730 $as_echo "just compiled" >&6; }
19731 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19732 # We already found the complete path
19733 ac_dir=`dirname $WINDMC_FOR_TARGET`
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19735 $as_echo "pre-installed in $ac_dir" >&6; }
19736 elif test "x$target" = "x$host"; then
19737 # We can use an host tool
19738 WINDMC_FOR_TARGET='$(WINDMC)'
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19740 $as_echo "host tool" >&6; }
19741 else
19742 # We need a cross tool
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19744 $as_echo "pre-installed" >&6; }
19752 # Certain tools may need extra flags.
19753 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
19754 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
19755 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
19757 # When building target libraries, except in a Canadian cross, we use
19758 # the same toolchain as the compiler we just built.
19759 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
19760 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
19761 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
19762 if test $host = $build; then
19763 case " $configdirs " in
19764 *" gcc "*)
19765 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
19766 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
19767 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
19769 esac
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
19777 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19778 # Check whether --enable-maintainer-mode was given.
19779 if test "${enable_maintainer_mode+set}" = set; then :
19780 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19781 else
19782 USE_MAINTAINER_MODE=no
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
19786 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19789 if test "$USE_MAINTAINER_MODE" = yes; then
19790 MAINTAINER_MODE_TRUE=
19791 MAINTAINER_MODE_FALSE='#'
19792 else
19793 MAINTAINER_MODE_TRUE='#'
19794 MAINTAINER_MODE_FALSE=
19796 MAINT=$MAINTAINER_MODE_TRUE
19798 # ---------------------
19799 # GCC bootstrap support
19800 # ---------------------
19802 # Stage specific cflags for build.
19803 stage1_cflags="-g"
19804 case $build in
19805 vax-*-*)
19806 case ${GCC} in
19807 yes) stage1_cflags="-g -Wa,-J" ;;
19808 *) stage1_cflags="-g -J" ;;
19809 esac ;;
19810 esac
19814 # Enable --enable-checking in stage1 of the compiler.
19815 # Check whether --enable-stage1-checking was given.
19816 if test "${enable_stage1_checking+set}" = set; then :
19817 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
19818 else
19819 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
19820 # For --disable-checking or implicit --enable-checking=release, avoid
19821 # setting --enable-checking=gc in the default stage1 checking for LTO
19822 # bootstraps. See PR62077.
19823 case $BUILD_CONFIG in
19824 *lto*)
19825 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
19827 stage1_checking=--enable-checking=yes,types;;
19828 esac
19829 if test "x$enable_checking" = x && \
19830 test -d ${srcdir}/gcc && \
19831 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
19832 stage1_checking=--enable-checking=yes,types,extra
19834 else
19835 stage1_checking=--enable-checking=$enable_checking,types
19841 # Enable -Werror in bootstrap stage2 and later.
19842 # Check whether --enable-werror was given.
19843 if test "${enable_werror+set}" = set; then :
19844 enableval=$enable_werror;
19845 case ${enable_werror} in
19846 yes) stage2_werror_flag="--enable-werror-always" ;;
19847 *) stage2_werror_flag="" ;;
19848 esac
19850 else
19852 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
19853 case $BUILD_CONFIG in
19854 bootstrap-debug)
19855 stage2_werror_flag="--enable-werror-always" ;;
19857 stage2_werror_flag="--enable-werror-always" ;;
19858 esac
19866 # Specify what files to not compare during bootstrap.
19868 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
19869 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
19870 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
19871 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
19872 case "$target" in
19873 hppa*64*-*-hpux*) ;;
19874 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
19875 esac
19878 ac_config_files="$ac_config_files Makefile"
19880 cat >confcache <<\_ACEOF
19881 # This file is a shell script that caches the results of configure
19882 # tests run on this system so they can be shared between configure
19883 # scripts and configure runs, see configure's option --config-cache.
19884 # It is not useful on other systems. If it contains results you don't
19885 # want to keep, you may remove or edit it.
19887 # config.status only pays attention to the cache file if you give it
19888 # the --recheck option to rerun configure.
19890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19892 # following values.
19894 _ACEOF
19896 # The following way of writing the cache mishandles newlines in values,
19897 # but we know of no workaround that is simple, portable, and efficient.
19898 # So, we kill variables containing newlines.
19899 # Ultrix sh set writes to stderr and can't be redirected directly,
19900 # and sets the high bit in the cache file unless we assign to the vars.
19902 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19903 eval ac_val=\$$ac_var
19904 case $ac_val in #(
19905 *${as_nl}*)
19906 case $ac_var in #(
19907 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19908 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19909 esac
19910 case $ac_var in #(
19911 _ | IFS | as_nl) ;; #(
19912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19913 *) { eval $ac_var=; unset $ac_var;} ;;
19914 esac ;;
19915 esac
19916 done
19918 (set) 2>&1 |
19919 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19920 *${as_nl}ac_space=\ *)
19921 # `set' does not quote correctly, so add quotes: double-quote
19922 # substitution turns \\\\ into \\, and sed turns \\ into \.
19923 sed -n \
19924 "s/'/'\\\\''/g;
19925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19926 ;; #(
19928 # `set' quotes correctly as required by POSIX, so do not add quotes.
19929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19931 esac |
19932 sort
19934 sed '
19935 /^ac_cv_env_/b end
19936 t clear
19937 :clear
19938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19939 t end
19940 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19941 :end' >>confcache
19942 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19943 if test -w "$cache_file"; then
19944 if test "x$cache_file" != "x/dev/null"; then
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19946 $as_echo "$as_me: updating cache $cache_file" >&6;}
19947 if test ! -f "$cache_file" || test -h "$cache_file"; then
19948 cat confcache >"$cache_file"
19949 else
19950 case $cache_file in #(
19951 */* | ?:*)
19952 mv -f confcache "$cache_file"$$ &&
19953 mv -f "$cache_file"$$ "$cache_file" ;; #(
19955 mv -f confcache "$cache_file" ;;
19956 esac
19959 else
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19961 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19964 rm -f confcache
19966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19967 # Let make expand exec_prefix.
19968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19970 # Transform confdefs.h into DEFS.
19971 # Protect against shell expansion while executing Makefile rules.
19972 # Protect against Makefile macro expansion.
19974 # If the first sed substitution is executed (which looks for macros that
19975 # take arguments), then branch to the quote section. Otherwise,
19976 # look for a macro that doesn't take arguments.
19977 ac_script='
19978 :mline
19979 /\\$/{
19981 s,\\\n,,
19982 b mline
19984 t clear
19985 :clear
19986 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19987 t quote
19988 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19989 t quote
19990 b any
19991 :quote
19992 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19993 s/\[/\\&/g
19994 s/\]/\\&/g
19995 s/\$/$$/g
19997 :any
20000 s/^\n//
20001 s/\n/ /g
20005 DEFS=`sed -n "$ac_script" confdefs.h`
20008 ac_libobjs=
20009 ac_ltlibobjs=
20011 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20012 # 1. Remove the extension, and $U if already installed.
20013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20014 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20016 # will be set to the directory where LIBOBJS objects are built.
20017 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20018 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20019 done
20020 LIBOBJS=$ac_libobjs
20022 LTLIBOBJS=$ac_ltlibobjs
20026 : "${CONFIG_STATUS=./config.status}"
20027 ac_write_fail=0
20028 ac_clean_files_save=$ac_clean_files
20029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20031 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20032 as_write_fail=0
20033 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20034 #! $SHELL
20035 # Generated by $as_me.
20036 # Run this file to recreate the current configuration.
20037 # Compiler output produced by configure, useful for debugging
20038 # configure, is in config.log if it exists.
20040 debug=false
20041 ac_cs_recheck=false
20042 ac_cs_silent=false
20044 SHELL=\${CONFIG_SHELL-$SHELL}
20045 export SHELL
20046 _ASEOF
20047 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20048 ## -------------------- ##
20049 ## M4sh Initialization. ##
20050 ## -------------------- ##
20052 # Be more Bourne compatible
20053 DUALCASE=1; export DUALCASE # for MKS sh
20054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20055 emulate sh
20056 NULLCMD=:
20057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20058 # is contrary to our usage. Disable this feature.
20059 alias -g '${1+"$@"}'='"$@"'
20060 setopt NO_GLOB_SUBST
20061 else
20062 case `(set -o) 2>/dev/null` in #(
20063 *posix*) :
20064 set -o posix ;; #(
20065 *) :
20067 esac
20071 as_nl='
20073 export as_nl
20074 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20075 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20077 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20078 # Prefer a ksh shell builtin over an external printf program on Solaris,
20079 # but without wasting forks for bash or zsh.
20080 if test -z "$BASH_VERSION$ZSH_VERSION" \
20081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20082 as_echo='print -r --'
20083 as_echo_n='print -rn --'
20084 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20085 as_echo='printf %s\n'
20086 as_echo_n='printf %s'
20087 else
20088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20089 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20090 as_echo_n='/usr/ucb/echo -n'
20091 else
20092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20093 as_echo_n_body='eval
20094 arg=$1;
20095 case $arg in #(
20096 *"$as_nl"*)
20097 expr "X$arg" : "X\\(.*\\)$as_nl";
20098 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20099 esac;
20100 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20102 export as_echo_n_body
20103 as_echo_n='sh -c $as_echo_n_body as_echo'
20105 export as_echo_body
20106 as_echo='sh -c $as_echo_body as_echo'
20109 # The user is always right.
20110 if test "${PATH_SEPARATOR+set}" != set; then
20111 PATH_SEPARATOR=:
20112 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20113 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20114 PATH_SEPARATOR=';'
20119 # IFS
20120 # We need space, tab and new line, in precisely that order. Quoting is
20121 # there to prevent editors from complaining about space-tab.
20122 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20123 # splitting by setting IFS to empty value.)
20124 IFS=" "" $as_nl"
20126 # Find who we are. Look in the path if we contain no directory separator.
20127 as_myself=
20128 case $0 in #((
20129 *[\\/]* ) as_myself=$0 ;;
20130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20131 for as_dir in $PATH
20133 IFS=$as_save_IFS
20134 test -z "$as_dir" && as_dir=.
20135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20136 done
20137 IFS=$as_save_IFS
20140 esac
20141 # We did not find ourselves, most probably we were run as `sh COMMAND'
20142 # in which case we are not to be found in the path.
20143 if test "x$as_myself" = x; then
20144 as_myself=$0
20146 if test ! -f "$as_myself"; then
20147 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20148 exit 1
20151 # Unset variables that we do not need and which cause bugs (e.g. in
20152 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20153 # suppresses any "Segmentation fault" message there. '((' could
20154 # trigger a bug in pdksh 5.2.14.
20155 for as_var in BASH_ENV ENV MAIL MAILPATH
20156 do eval test x\${$as_var+set} = xset \
20157 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20158 done
20159 PS1='$ '
20160 PS2='> '
20161 PS4='+ '
20163 # NLS nuisances.
20164 LC_ALL=C
20165 export LC_ALL
20166 LANGUAGE=C
20167 export LANGUAGE
20169 # CDPATH.
20170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20173 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20174 # ----------------------------------------
20175 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20176 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20177 # script with STATUS, using 1 if that was 0.
20178 as_fn_error ()
20180 as_status=$1; test $as_status -eq 0 && as_status=1
20181 if test "$4"; then
20182 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20183 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20185 $as_echo "$as_me: error: $2" >&2
20186 as_fn_exit $as_status
20187 } # as_fn_error
20190 # as_fn_set_status STATUS
20191 # -----------------------
20192 # Set $? to STATUS, without forking.
20193 as_fn_set_status ()
20195 return $1
20196 } # as_fn_set_status
20198 # as_fn_exit STATUS
20199 # -----------------
20200 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20201 as_fn_exit ()
20203 set +e
20204 as_fn_set_status $1
20205 exit $1
20206 } # as_fn_exit
20208 # as_fn_unset VAR
20209 # ---------------
20210 # Portably unset VAR.
20211 as_fn_unset ()
20213 { eval $1=; unset $1;}
20215 as_unset=as_fn_unset
20216 # as_fn_append VAR VALUE
20217 # ----------------------
20218 # Append the text in VALUE to the end of the definition contained in VAR. Take
20219 # advantage of any shell optimizations that allow amortized linear growth over
20220 # repeated appends, instead of the typical quadratic growth present in naive
20221 # implementations.
20222 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20223 eval 'as_fn_append ()
20225 eval $1+=\$2
20227 else
20228 as_fn_append ()
20230 eval $1=\$$1\$2
20232 fi # as_fn_append
20234 # as_fn_arith ARG...
20235 # ------------------
20236 # Perform arithmetic evaluation on the ARGs, and store the result in the
20237 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20238 # must be portable across $(()) and expr.
20239 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20240 eval 'as_fn_arith ()
20242 as_val=$(( $* ))
20244 else
20245 as_fn_arith ()
20247 as_val=`expr "$@" || test $? -eq 1`
20249 fi # as_fn_arith
20252 if expr a : '\(a\)' >/dev/null 2>&1 &&
20253 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20254 as_expr=expr
20255 else
20256 as_expr=false
20259 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20260 as_basename=basename
20261 else
20262 as_basename=false
20265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20266 as_dirname=dirname
20267 else
20268 as_dirname=false
20271 as_me=`$as_basename -- "$0" ||
20272 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20273 X"$0" : 'X\(//\)$' \| \
20274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20275 $as_echo X/"$0" |
20276 sed '/^.*\/\([^/][^/]*\)\/*$/{
20277 s//\1/
20280 /^X\/\(\/\/\)$/{
20281 s//\1/
20284 /^X\/\(\/\).*/{
20285 s//\1/
20288 s/.*/./; q'`
20290 # Avoid depending upon Character Ranges.
20291 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20292 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20293 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20294 as_cr_digits='0123456789'
20295 as_cr_alnum=$as_cr_Letters$as_cr_digits
20297 ECHO_C= ECHO_N= ECHO_T=
20298 case `echo -n x` in #(((((
20299 -n*)
20300 case `echo 'xy\c'` in
20301 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20302 xy) ECHO_C='\c';;
20303 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20304 ECHO_T=' ';;
20305 esac;;
20307 ECHO_N='-n';;
20308 esac
20310 rm -f conf$$ conf$$.exe conf$$.file
20311 if test -d conf$$.dir; then
20312 rm -f conf$$.dir/conf$$.file
20313 else
20314 rm -f conf$$.dir
20315 mkdir conf$$.dir 2>/dev/null
20317 if (echo >conf$$.file) 2>/dev/null; then
20318 if ln -s conf$$.file conf$$ 2>/dev/null; then
20319 as_ln_s='ln -s'
20320 # ... but there are two gotchas:
20321 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20322 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20323 # In both cases, we have to default to `cp -pR'.
20324 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20325 as_ln_s='cp -pR'
20326 elif ln conf$$.file conf$$ 2>/dev/null; then
20327 as_ln_s=ln
20328 else
20329 as_ln_s='cp -pR'
20331 else
20332 as_ln_s='cp -pR'
20334 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20335 rmdir conf$$.dir 2>/dev/null
20338 # as_fn_mkdir_p
20339 # -------------
20340 # Create "$as_dir" as a directory, including parents if necessary.
20341 as_fn_mkdir_p ()
20344 case $as_dir in #(
20345 -*) as_dir=./$as_dir;;
20346 esac
20347 test -d "$as_dir" || eval $as_mkdir_p || {
20348 as_dirs=
20349 while :; do
20350 case $as_dir in #(
20351 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20352 *) as_qdir=$as_dir;;
20353 esac
20354 as_dirs="'$as_qdir' $as_dirs"
20355 as_dir=`$as_dirname -- "$as_dir" ||
20356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20357 X"$as_dir" : 'X\(//\)[^/]' \| \
20358 X"$as_dir" : 'X\(//\)$' \| \
20359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20360 $as_echo X"$as_dir" |
20361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20362 s//\1/
20365 /^X\(\/\/\)[^/].*/{
20366 s//\1/
20369 /^X\(\/\/\)$/{
20370 s//\1/
20373 /^X\(\/\).*/{
20374 s//\1/
20377 s/.*/./; q'`
20378 test -d "$as_dir" && break
20379 done
20380 test -z "$as_dirs" || eval "mkdir $as_dirs"
20381 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20384 } # as_fn_mkdir_p
20385 if mkdir -p . 2>/dev/null; then
20386 as_mkdir_p='mkdir -p "$as_dir"'
20387 else
20388 test -d ./-p && rmdir ./-p
20389 as_mkdir_p=false
20393 # as_fn_executable_p FILE
20394 # -----------------------
20395 # Test if FILE is an executable regular file.
20396 as_fn_executable_p ()
20398 test -f "$1" && test -x "$1"
20399 } # as_fn_executable_p
20400 as_test_x='test -x'
20401 as_executable_p=as_fn_executable_p
20403 # Sed expression to map a string onto a valid CPP name.
20404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20406 # Sed expression to map a string onto a valid variable name.
20407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20410 exec 6>&1
20411 ## ----------------------------------- ##
20412 ## Main body of $CONFIG_STATUS script. ##
20413 ## ----------------------------------- ##
20414 _ASEOF
20415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20418 # Save the log message, to keep $0 and so on meaningful, and to
20419 # report actual input values of CONFIG_FILES etc. instead of their
20420 # values after options handling.
20421 ac_log="
20422 This file was extended by $as_me, which was
20423 generated by GNU Autoconf 2.69. Invocation command line was
20425 CONFIG_FILES = $CONFIG_FILES
20426 CONFIG_HEADERS = $CONFIG_HEADERS
20427 CONFIG_LINKS = $CONFIG_LINKS
20428 CONFIG_COMMANDS = $CONFIG_COMMANDS
20429 $ $0 $@
20431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20434 _ACEOF
20436 case $ac_config_files in *"
20437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20438 esac
20442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20443 # Files that config.status was made for.
20444 config_files="$ac_config_files"
20446 _ACEOF
20448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20449 ac_cs_usage="\
20450 \`$as_me' instantiates files and other configuration actions
20451 from templates according to the current configuration. Unless the files
20452 and actions are specified as TAGs, all are instantiated by default.
20454 Usage: $0 [OPTION]... [TAG]...
20456 -h, --help print this help, then exit
20457 -V, --version print version number and configuration settings, then exit
20458 --config print configuration, then exit
20459 -q, --quiet, --silent
20460 do not print progress messages
20461 -d, --debug don't remove temporary files
20462 --recheck update $as_me by reconfiguring in the same conditions
20463 --file=FILE[:TEMPLATE]
20464 instantiate the configuration file FILE
20466 Configuration files:
20467 $config_files
20469 Report bugs to the package provider."
20471 _ACEOF
20472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20473 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20474 ac_cs_version="\\
20475 config.status
20476 configured by $0, generated by GNU Autoconf 2.69,
20477 with options \\"\$ac_cs_config\\"
20479 Copyright (C) 2012 Free Software Foundation, Inc.
20480 This config.status script is free software; the Free Software Foundation
20481 gives unlimited permission to copy, distribute and modify it."
20483 ac_pwd='$ac_pwd'
20484 srcdir='$srcdir'
20485 INSTALL='$INSTALL'
20486 AWK='$AWK'
20487 test -n "\$AWK" || AWK=awk
20488 _ACEOF
20490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20491 # The default lists apply if the user does not specify any file.
20492 ac_need_defaults=:
20493 while test $# != 0
20495 case $1 in
20496 --*=?*)
20497 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20498 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20499 ac_shift=:
20501 --*=)
20502 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20503 ac_optarg=
20504 ac_shift=:
20507 ac_option=$1
20508 ac_optarg=$2
20509 ac_shift=shift
20511 esac
20513 case $ac_option in
20514 # Handling of the options.
20515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20516 ac_cs_recheck=: ;;
20517 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20518 $as_echo "$ac_cs_version"; exit ;;
20519 --config | --confi | --conf | --con | --co | --c )
20520 $as_echo "$ac_cs_config"; exit ;;
20521 --debug | --debu | --deb | --de | --d | -d )
20522 debug=: ;;
20523 --file | --fil | --fi | --f )
20524 $ac_shift
20525 case $ac_optarg in
20526 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20527 '') as_fn_error $? "missing file argument" ;;
20528 esac
20529 as_fn_append CONFIG_FILES " '$ac_optarg'"
20530 ac_need_defaults=false;;
20531 --he | --h | --help | --hel | -h )
20532 $as_echo "$ac_cs_usage"; exit ;;
20533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20534 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20535 ac_cs_silent=: ;;
20537 # This is an error.
20538 -*) as_fn_error $? "unrecognized option: \`$1'
20539 Try \`$0 --help' for more information." ;;
20541 *) as_fn_append ac_config_targets " $1"
20542 ac_need_defaults=false ;;
20544 esac
20545 shift
20546 done
20548 ac_configure_extra_args=
20550 if $ac_cs_silent; then
20551 exec 6>/dev/null
20552 ac_configure_extra_args="$ac_configure_extra_args --silent"
20555 _ACEOF
20556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20557 if \$ac_cs_recheck; then
20558 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20559 shift
20560 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20561 CONFIG_SHELL='$SHELL'
20562 export CONFIG_SHELL
20563 exec "\$@"
20566 _ACEOF
20567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20568 exec 5>>config.log
20570 echo
20571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20572 ## Running $as_me. ##
20573 _ASBOX
20574 $as_echo "$ac_log"
20575 } >&5
20577 _ACEOF
20578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20580 # INIT-COMMANDS
20582 extrasub_build="$extrasub_build"
20583 extrasub_host="$extrasub_host"
20584 extrasub_target="$extrasub_target"
20586 _ACEOF
20588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20590 # Handling of arguments.
20591 for ac_config_target in $ac_config_targets
20593 case $ac_config_target in
20594 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20596 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20597 esac
20598 done
20601 # If the user did not use the arguments to specify the items to instantiate,
20602 # then the envvar interface is used. Set only those that are not.
20603 # We use the long form for the default assignment because of an extremely
20604 # bizarre bug on SunOS 4.1.3.
20605 if $ac_need_defaults; then
20606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20609 # Have a temporary directory for convenience. Make it in the build tree
20610 # simply because there is no reason against having it here, and in addition,
20611 # creating and moving files from /tmp can sometimes cause problems.
20612 # Hook for its removal unless debugging.
20613 # Note that there is a small window in which the directory will not be cleaned:
20614 # after its creation but before its name has been assigned to `$tmp'.
20615 $debug ||
20617 tmp= ac_tmp=
20618 trap 'exit_status=$?
20619 : "${ac_tmp:=$tmp}"
20620 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20622 trap 'as_fn_exit 1' 1 2 13 15
20624 # Create a (secure) tmp directory for tmp files.
20627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20628 test -d "$tmp"
20629 } ||
20631 tmp=./conf$$-$RANDOM
20632 (umask 077 && mkdir "$tmp")
20633 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20634 ac_tmp=$tmp
20636 # Set up the scripts for CONFIG_FILES section.
20637 # No need to generate them if there are no CONFIG_FILES.
20638 # This happens for instance with `./config.status config.h'.
20639 if test -n "$CONFIG_FILES"; then
20641 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20642 ac_cs_awk_getline=:
20643 ac_cs_awk_pipe_init=
20644 ac_cs_awk_read_file='
20645 while ((getline aline < (F[key])) > 0)
20646 print(aline)
20647 close(F[key])'
20648 ac_cs_awk_pipe_fini=
20649 else
20650 ac_cs_awk_getline=false
20651 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20652 ac_cs_awk_read_file='
20653 print "|#_!!_#|"
20654 print "cat " F[key] " &&"
20655 '$ac_cs_awk_pipe_init
20656 # The final `:' finishes the AND list.
20657 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20659 ac_cr=`echo X | tr X '\015'`
20660 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20661 # But we know of no other shell where ac_cr would be empty at this
20662 # point, so we can use a bashism as a fallback.
20663 if test "x$ac_cr" = x; then
20664 eval ac_cr=\$\'\\r\'
20666 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20667 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20668 ac_cs_awk_cr='\\r'
20669 else
20670 ac_cs_awk_cr=$ac_cr
20673 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20674 _ACEOF
20676 # Create commands to substitute file output variables.
20678 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20679 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20680 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20681 echo "_ACAWK" &&
20682 echo "_ACEOF"
20683 } >conf$$files.sh &&
20684 . ./conf$$files.sh ||
20685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20686 rm -f conf$$files.sh
20689 echo "cat >conf$$subs.awk <<_ACEOF" &&
20690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20691 echo "_ACEOF"
20692 } >conf$$subs.sh ||
20693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20694 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20695 ac_delim='%!_!# '
20696 for ac_last_try in false false false false false :; do
20697 . ./conf$$subs.sh ||
20698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20701 if test $ac_delim_n = $ac_delim_num; then
20702 break
20703 elif $ac_last_try; then
20704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20705 else
20706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20708 done
20709 rm -f conf$$subs.sh
20711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20712 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20713 _ACEOF
20714 sed -n '
20716 s/^/S["/; s/!.*/"]=/
20719 s/^[^!]*!//
20720 :repl
20721 t repl
20722 s/'"$ac_delim"'$//
20723 t delim
20726 s/\(.\{148\}\)..*/\1/
20727 t more1
20728 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20731 b repl
20732 :more1
20733 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20736 s/.\{148\}//
20737 t nl
20738 :delim
20740 s/\(.\{148\}\)..*/\1/
20741 t more2
20742 s/["\\]/\\&/g; s/^/"/; s/$/"/
20745 :more2
20746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20749 s/.\{148\}//
20750 t delim
20751 ' <conf$$subs.awk | sed '
20752 /^[^""]/{
20754 s/\n//
20756 ' >>$CONFIG_STATUS || ac_write_fail=1
20757 rm -f conf$$subs.awk
20758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20759 _ACAWK
20760 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20761 for (key in S) S_is_set[key] = 1
20762 FS = "\a"
20763 \$ac_cs_awk_pipe_init
20766 line = $ 0
20767 nfields = split(line, field, "@")
20768 substed = 0
20769 len = length(field[1])
20770 for (i = 2; i < nfields; i++) {
20771 key = field[i]
20772 keylen = length(key)
20773 if (S_is_set[key]) {
20774 value = S[key]
20775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20776 len += length(value) + length(field[++i])
20777 substed = 1
20778 } else
20779 len += 1 + keylen
20781 if (nfields == 3 && !substed) {
20782 key = field[2]
20783 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20784 \$ac_cs_awk_read_file
20785 next
20788 print line
20790 \$ac_cs_awk_pipe_fini
20791 _ACAWK
20792 _ACEOF
20793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20794 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20795 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20796 else
20798 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20799 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20800 _ACEOF
20802 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20803 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20804 # trailing colons and then remove the whole line if VPATH becomes empty
20805 # (actually we leave an empty line to preserve line numbers).
20806 if test "x$srcdir" = x.; then
20807 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20809 s///
20810 s/^/:/
20811 s/[ ]*$/:/
20812 s/:\$(srcdir):/:/g
20813 s/:\${srcdir}:/:/g
20814 s/:@srcdir@:/:/g
20815 s/^:*//
20816 s/:*$//
20818 s/\(=[ ]*\).*/\1/
20820 s/\n//
20821 s/^[^=]*=[ ]*$//
20825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20826 fi # test -n "$CONFIG_FILES"
20829 eval set X " :F $CONFIG_FILES "
20830 shift
20831 for ac_tag
20833 case $ac_tag in
20834 :[FHLC]) ac_mode=$ac_tag; continue;;
20835 esac
20836 case $ac_mode$ac_tag in
20837 :[FHL]*:*);;
20838 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20839 :[FH]-) ac_tag=-:-;;
20840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20841 esac
20842 ac_save_IFS=$IFS
20843 IFS=:
20844 set x $ac_tag
20845 IFS=$ac_save_IFS
20846 shift
20847 ac_file=$1
20848 shift
20850 case $ac_mode in
20851 :L) ac_source=$1;;
20852 :[FH])
20853 ac_file_inputs=
20854 for ac_f
20856 case $ac_f in
20857 -) ac_f="$ac_tmp/stdin";;
20858 *) # Look for the file first in the build tree, then in the source tree
20859 # (if the path is not absolute). The absolute path cannot be DOS-style,
20860 # because $ac_f cannot contain `:'.
20861 test -f "$ac_f" ||
20862 case $ac_f in
20863 [\\/$]*) false;;
20864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20865 esac ||
20866 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20867 esac
20868 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20869 as_fn_append ac_file_inputs " '$ac_f'"
20870 done
20872 # Let's still pretend it is `configure' which instantiates (i.e., don't
20873 # use $as_me), people would be surprised to read:
20874 # /* config.h. Generated by config.status. */
20875 configure_input='Generated from '`
20876 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20877 `' by configure.'
20878 if test x"$ac_file" != x-; then
20879 configure_input="$ac_file. $configure_input"
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20881 $as_echo "$as_me: creating $ac_file" >&6;}
20883 # Neutralize special characters interpreted by sed in replacement strings.
20884 case $configure_input in #(
20885 *\&* | *\|* | *\\* )
20886 ac_sed_conf_input=`$as_echo "$configure_input" |
20887 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20888 *) ac_sed_conf_input=$configure_input;;
20889 esac
20891 case $ac_tag in
20892 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20894 esac
20896 esac
20898 ac_dir=`$as_dirname -- "$ac_file" ||
20899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20900 X"$ac_file" : 'X\(//\)[^/]' \| \
20901 X"$ac_file" : 'X\(//\)$' \| \
20902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20903 $as_echo X"$ac_file" |
20904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20905 s//\1/
20908 /^X\(\/\/\)[^/].*/{
20909 s//\1/
20912 /^X\(\/\/\)$/{
20913 s//\1/
20916 /^X\(\/\).*/{
20917 s//\1/
20920 s/.*/./; q'`
20921 as_dir="$ac_dir"; as_fn_mkdir_p
20922 ac_builddir=.
20924 case "$ac_dir" in
20925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20928 # A ".." for each directory in $ac_dir_suffix.
20929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20930 case $ac_top_builddir_sub in
20931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20933 esac ;;
20934 esac
20935 ac_abs_top_builddir=$ac_pwd
20936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20937 # for backward compatibility:
20938 ac_top_builddir=$ac_top_build_prefix
20940 case $srcdir in
20941 .) # We are building in place.
20942 ac_srcdir=.
20943 ac_top_srcdir=$ac_top_builddir_sub
20944 ac_abs_top_srcdir=$ac_pwd ;;
20945 [\\/]* | ?:[\\/]* ) # Absolute name.
20946 ac_srcdir=$srcdir$ac_dir_suffix;
20947 ac_top_srcdir=$srcdir
20948 ac_abs_top_srcdir=$srcdir ;;
20949 *) # Relative name.
20950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20951 ac_top_srcdir=$ac_top_build_prefix$srcdir
20952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20953 esac
20954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20957 case $ac_mode in
20960 # CONFIG_FILE
20963 case $INSTALL in
20964 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20965 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20966 esac
20967 _ACEOF
20969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20970 # If the template does not know about datarootdir, expand it.
20971 # FIXME: This hack should be removed a few years after 2.60.
20972 ac_datarootdir_hack=; ac_datarootdir_seen=
20973 ac_sed_dataroot='
20974 /datarootdir/ {
20978 /@datadir@/p
20979 /@docdir@/p
20980 /@infodir@/p
20981 /@localedir@/p
20982 /@mandir@/p'
20983 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20984 *datarootdir*) ac_datarootdir_seen=yes;;
20985 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20987 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20988 _ACEOF
20989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20990 ac_datarootdir_hack='
20991 s&@datadir@&$datadir&g
20992 s&@docdir@&$docdir&g
20993 s&@infodir@&$infodir&g
20994 s&@localedir@&$localedir&g
20995 s&@mandir@&$mandir&g
20996 s&\\\${datarootdir}&$datarootdir&g' ;;
20997 esac
20998 _ACEOF
21000 # Neutralize VPATH when `$srcdir' = `.'.
21001 # Shell code in configure.ac might set extrasub.
21002 # FIXME: do we really want to maintain this feature?
21003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21004 ac_sed_extra="$ac_vpsub
21005 $extrasub
21006 _ACEOF
21007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21010 s|@configure_input@|$ac_sed_conf_input|;t t
21011 s&@top_builddir@&$ac_top_builddir_sub&;t t
21012 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21013 s&@srcdir@&$ac_srcdir&;t t
21014 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21015 s&@top_srcdir@&$ac_top_srcdir&;t t
21016 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21017 s&@builddir@&$ac_builddir&;t t
21018 s&@abs_builddir@&$ac_abs_builddir&;t t
21019 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21020 s&@INSTALL@&$ac_INSTALL&;t t
21021 $ac_datarootdir_hack
21023 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21024 if $ac_cs_awk_getline; then
21025 $AWK -f "$ac_tmp/subs.awk"
21026 else
21027 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21028 fi \
21029 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21032 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21034 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21036 which seems to be undefined. Please make sure it is defined" >&5
21037 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21038 which seems to be undefined. Please make sure it is defined" >&2;}
21040 rm -f "$ac_tmp/stdin"
21041 case $ac_file in
21042 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21043 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21044 esac \
21045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21050 esac
21053 case $ac_file$ac_mode in
21054 "Makefile":F) sed "$extrasub_build" Makefile |
21055 sed "$extrasub_host" |
21056 sed "$extrasub_target" > mf$$
21057 mv -f mf$$ Makefile ;;
21059 esac
21060 done # for ac_tag
21063 as_fn_exit 0
21064 _ACEOF
21065 ac_clean_files=$ac_clean_files_save
21067 test $ac_write_fail = 0 ||
21068 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21071 # configure is writing to config.log, and then calls config.status.
21072 # config.status does its own redirection, appending to config.log.
21073 # Unfortunately, on DOS this fails, as config.log is still kept open
21074 # by configure, so config.status won't be able to write to it; its
21075 # output is simply discarded. So we exec the FD to /dev/null,
21076 # effectively closing config.log, so it can be properly (re)opened and
21077 # appended to by config.status. When coming back to configure, we
21078 # need to make the FD available again.
21079 if test "$no_create" != yes; then
21080 ac_cs_success=:
21081 ac_config_status_args=
21082 test "$silent" = yes &&
21083 ac_config_status_args="$ac_config_status_args --quiet"
21084 exec 5>/dev/null
21085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21086 exec 5>>config.log
21087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21088 # would make configure fail if this is the last instruction.
21089 $ac_cs_success || as_fn_exit 1
21091 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21093 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}