libgo: bump major version
[official-gcc.git] / configure
blob6815216cf49b8d505b9338871f9c8e3de215df58
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 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 GDCFLAGS
623 READELF
624 OTOOL
625 OBJDUMP
626 OBJCOPY
627 WINDMC
628 WINDRES
629 STRIP
630 RANLIB
632 LIPO
634 DSYMUTIL
635 DLLTOOL
638 RUNTEST
639 EXPECT
640 MAKEINFO
641 FLEX
644 BISON
645 YACC
646 WINDRES_FOR_BUILD
647 WINDMC_FOR_BUILD
648 RANLIB_FOR_BUILD
649 NM_FOR_BUILD
650 LD_FOR_BUILD
651 LDFLAGS_FOR_BUILD
652 GDC_FOR_BUILD
653 GOC_FOR_BUILD
654 GFORTRAN_FOR_BUILD
655 DSYMUTIL_FOR_BUILD
656 DLLTOOL_FOR_BUILD
657 CXX_FOR_BUILD
658 CXXFLAGS_FOR_BUILD
659 CPPFLAGS_FOR_BUILD
660 CPP_FOR_BUILD
661 CFLAGS_FOR_BUILD
662 CC_FOR_BUILD
663 AS_FOR_BUILD
664 AR_FOR_BUILD
665 target_configdirs
666 configdirs
667 build_configdirs
668 INSTALL_GDB_TK
669 GDB_TK
670 CONFIGURE_GDB_TK
671 build_tooldir
672 tooldir
673 GCC_SHLIB_SUBDIR
674 RPATH_ENVVAR
675 target_configargs
676 host_configargs
677 build_configargs
678 BUILD_CONFIG
679 LDFLAGS_FOR_TARGET
680 CXXFLAGS_FOR_TARGET
681 CFLAGS_FOR_TARGET
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
684 get_gcc_base_ver
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
687 stage1_languages
688 host_libs_picflag
689 host_shared
690 extra_linker_plugin_flags
691 extra_linker_plugin_configure_flags
692 islinc
693 isllibs
694 poststage1_ldflags
695 poststage1_libs
696 stage1_ldflags
697 stage1_libs
698 extra_isl_gmp_configure_flags
699 extra_mpc_mpfr_configure_flags
700 extra_mpc_gmp_configure_flags
701 extra_mpfr_configure_flags
702 gmpinc
703 gmplibs
704 PGO_BUILD_LTO_CFLAGS
705 PGO_BUILD_USE_CFLAGS
706 PGO_BUILD_GEN_CFLAGS
707 HAVE_CXX11_FOR_BUILD
708 HAVE_CXX11
709 do_compare
711 GNATMAKE
712 GNATBIND
713 ac_ct_CXX
714 CXXFLAGS
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
723 target_subdir
724 host_subdir
725 build_subdir
726 build_libsubdir
729 LN_S
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 target_noncanonical
743 host_noncanonical
744 build_noncanonical
745 build_os
746 build_vendor
747 build_cpu
748 build
749 TOPLEVEL_CONFIGURE_ARGUMENTS
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='serialization_dependencies
789 host_makefile_frag
790 target_makefile_frag
791 alphaieee_frag
792 ospace_frag'
793 ac_user_opts='
794 enable_option_checking
795 with_build_libsubdir
796 with_system_zlib
797 enable_as_accelerator_for
798 enable_offload_targets
799 enable_offload_defaulted
800 enable_gold
801 enable_ld
802 enable_compressed_debug_sections
803 enable_libquadmath
804 enable_libquadmath_support
805 enable_libada
806 enable_libssp
807 enable_libstdcxx
808 enable_bootstrap
809 enable_pgo_build
810 with_mpc
811 with_mpc_include
812 with_mpc_lib
813 with_mpfr
814 with_mpfr_include
815 with_mpfr_lib
816 with_gmp
817 with_gmp_include
818 with_gmp_lib
819 with_stage1_libs
820 with_static_standard_libraries
821 with_stage1_ldflags
822 with_boot_libs
823 with_boot_ldflags
824 with_isl
825 with_isl_include
826 with_isl_lib
827 enable_isl_version_check
828 enable_lto
829 enable_linker_plugin_configure_flags
830 enable_linker_plugin_flags
831 enable_host_shared
832 enable_stage1_languages
833 enable_objc_gc
834 with_target_bdw_gc
835 with_target_bdw_gc_include
836 with_target_bdw_gc_lib
837 with_gcc_major_version_only
838 with_build_sysroot
839 with_debug_prefix_map
840 with_build_config
841 enable_vtable_verify
842 enable_serial_configure
843 with_build_time_tools
844 enable_maintainer_mode
845 enable_stage1_checking
846 enable_werror
848 ac_precious_vars='build_alias
849 host_alias
850 target_alias
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
857 CXXFLAGS
859 build_configargs
860 host_configargs
861 target_configargs
864 DLLTOOL
865 DSYMUTIL
867 LIPO
869 RANLIB
870 STRIP
871 WINDRES
872 WINDMC
873 OBJCOPY
874 OBJDUMP
875 OTOOL
876 READELF
877 CC_FOR_TARGET
878 CXX_FOR_TARGET
879 GCC_FOR_TARGET
880 GFORTRAN_FOR_TARGET
881 GOC_FOR_TARGET
882 GDC_FOR_TARGET
883 AR_FOR_TARGET
884 AS_FOR_TARGET
885 DLLTOOL_FOR_TARGET
886 DSYMUTIL_FOR_TARGET
887 LD_FOR_TARGET
888 LIPO_FOR_TARGET
889 NM_FOR_TARGET
890 OBJCOPY_FOR_TARGET
891 OBJDUMP_FOR_TARGET
892 OTOOL_FOR_TARGET
893 RANLIB_FOR_TARGET
894 READELF_FOR_TARGET
895 STRIP_FOR_TARGET
896 WINDRES_FOR_TARGET
897 WINDMC_FOR_TARGET'
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 ac_unrecognized_opts=
904 ac_unrecognized_sep=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
948 ac_prev=
949 ac_dashdash=
950 for ac_option
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
959 case $ac_option in
960 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *=) ac_optarg= ;;
962 *) ac_optarg=yes ;;
963 esac
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
969 ac_dashdash=yes ;;
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 bindir=$ac_optarg ;;
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
988 --config-cache | -C)
989 cache_file=config.cache ;;
991 -datadir | --datadir | --datadi | --datad)
992 ac_prev=datadir ;;
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1003 -disable-* | --disable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1013 "*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=no ;;
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1029 -enable-* | --enable-*)
1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error $? "invalid feature name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_$ac_useropt"
1039 "*) ;;
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1042 esac
1043 eval enable_$ac_useropt=\$ac_optarg ;;
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1056 with_gas=yes ;;
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 ac_prev=htmldir ;;
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 | --ht=*)
1074 htmldir=$ac_optarg ;;
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 ac_prev=infodir ;;
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1088 -libdir | --libdir | --libdi | --libd)
1089 ac_prev=libdir ;;
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 ac_prev=mandir ;;
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1119 with_fp=no ;;
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1123 no_create=yes ;;
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 no_recursion=yes ;;
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 ac_prev=prefix ;;
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 ac_prev=pdfdir ;;
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1179 -psdir | --psdir | --psdi | --psd | --ps)
1180 ac_prev=psdir ;;
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 psdir=$ac_optarg ;;
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1186 silent=yes ;;
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 ac_prev=sbindir ;;
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 | --sbi=* | --sb=*)
1192 sbindir=$ac_optarg ;;
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1197 | --sha | --sh)
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 | --sha=* | --sh=*)
1203 sharedstatedir=$ac_optarg ;;
1205 -site | --site | --sit)
1206 ac_prev=site ;;
1207 -site=* | --site=* | --sit=*)
1208 site=$ac_optarg ;;
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 ac_prev=srcdir ;;
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 verbose=yes ;;
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1233 -with-* | --with-*)
1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid package name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1242 "with_$ac_useropt"
1243 "*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=\$ac_optarg ;;
1249 -without-* | --without-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=no ;;
1265 --x)
1266 # Obsolete; use --with-x.
1267 with_x=yes ;;
1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270 | --x-incl | --x-inc | --x-in | --x-i)
1271 ac_prev=x_includes ;;
1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274 x_includes=$ac_optarg ;;
1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278 ac_prev=x_libraries ;;
1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281 x_libraries=$ac_optarg ;;
1283 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1287 *=*)
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 case $ac_envvar in #(
1291 '' | [0-9]* | *[!_$as_cr_alnum]* )
1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1293 esac
1294 eval $ac_envvar=\$ac_optarg
1295 export $ac_envvar ;;
1298 # FIXME: should be removed in autoconf 3.0.
1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305 esac
1306 done
1308 if test -n "$ac_prev"; then
1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310 as_fn_error $? "missing argument to $ac_option"
1313 if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1315 no) ;;
1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318 esac
1321 # Check all directory arguments for consistency.
1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val=\$$ac_var
1328 # Remove trailing slashes.
1329 case $ac_val in
1330 */ )
1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\$ac_val;;
1333 esac
1334 # Be sure to have absolute directory names.
1335 case $ac_val in
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338 esac
1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1340 done
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1345 build=$build_alias
1346 host=$host_alias
1347 target=$target_alias
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
1353 elif test "x$build_alias" != "x$host_alias"; then
1354 cross_compiling=yes
1358 ac_tool_prefix=
1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361 test "$silent" = yes && exec 6>/dev/null
1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di=`ls -di .` &&
1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367 as_fn_error $? "working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369 as_fn_error $? "pwd does not report name of working directory"
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 s//\1/
1386 /^X\(\/\/\)[^/].*/{
1387 s//\1/
1390 /^X\(\/\/\)$/{
1391 s//\1/
1394 /^X\(\/\).*/{
1395 s//\1/
1398 s/.*/./; q'`
1399 srcdir=$ac_confdir
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 srcdir=..
1403 else
1404 ac_srcdir_defaulted=no
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1413 pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 case $srcdir in
1425 *" "*)
1426 as_fn_error $? "path to source, $srcdir, contains spaces"
1428 esac
1429 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1431 for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 done
1439 # Report the --help message.
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1444 cat <<_ACEOF
1445 \`configure' configures this package to adapt to many kinds of systems.
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1452 Defaults for the options are specified in brackets.
1454 Configuration:
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking ...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 [PREFIX]
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1476 For better control, use the options below.
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498 _ACEOF
1500 cat <<\_ACEOF
1502 Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1507 System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 --target=TARGET configure for building compilers for TARGET [HOST]
1511 _ACEOF
1514 if test -n "$ac_init_help"; then
1516 cat <<\_ACEOF
1518 Optional Features:
1519 --disable-option-checking ignore unrecognized --enable/--with options
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1522 --enable-as-accelerator-for=ARG
1523 build as offload target compiler. Specify offload
1524 host triple by ARG
1525 --enable-offload-targets=LIST
1526 enable offloading to devices from comma-separated
1527 LIST of TARGET[=DIR]. Use optional path to find
1528 offload target compiler during the build
1529 --enable-offload-defaulted
1530 If enabled, configured but not installed offload compilers and
1531 libgomp plugins are silently ignored. Useful for distribution
1532 compilers where those are in separate optional packages.
1534 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1535 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1536 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1537 Enable compressed debug sections for gas, gold or ld
1538 by default
1539 --disable-libquadmath do not build libquadmath directory
1540 --disable-libquadmath-support
1541 disable libquadmath support for Fortran
1542 --enable-libada build libada directory
1543 --enable-libssp build libssp directory
1544 --disable-libstdcxx do not build libstdc++-v3 directory
1545 --enable-bootstrap enable bootstrapping [yes if native build]
1546 --enable-pgo-build[=lto]
1547 enable the PGO build
1548 --disable-isl-version-check
1549 disable check for isl version
1550 --enable-lto enable link time optimization support
1551 --enable-linker-plugin-configure-flags=FLAGS
1552 additional flags for configuring linker plugins
1553 [none]
1554 --enable-linker-plugin-flags=FLAGS
1555 additional flags for configuring and building linker
1556 plugins [none]
1557 --enable-host-shared build host code as shared libraries
1558 --enable-stage1-languages[=all]
1559 choose additional languages to build during stage1.
1560 Mostly useful for compiler development
1561 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1562 Objective-C runtime
1563 --enable-vtable-verify Enable vtable verification feature
1564 --enable-serial-[{host,target,build}-]configure
1565 force sequential configuration of sub-packages for
1566 the host, target or build machine, or all
1567 sub-packages
1568 --enable-maintainer-mode
1569 enable make rules and dependencies not useful (and
1570 sometimes confusing) to the casual installer
1571 --enable-stage1-checking[=all]
1572 choose additional checking for stage1 of the
1573 compiler
1574 --enable-werror enable -Werror in bootstrap stage2 and later
1576 Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-build-libsubdir=DIR Directory where to find libraries for build system
1580 --with-system-zlib use installed libz
1581 --with-mpc=PATH specify prefix directory for installed MPC package.
1582 Equivalent to --with-mpc-include=PATH/include plus
1583 --with-mpc-lib=PATH/lib
1584 --with-mpc-include=PATH specify directory for installed MPC include files
1585 --with-mpc-lib=PATH specify directory for the installed MPC library
1586 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1587 Equivalent to --with-mpfr-include=PATH/include plus
1588 --with-mpfr-lib=PATH/lib
1589 --with-mpfr-include=PATH
1590 specify directory for installed MPFR include files
1591 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1592 --with-gmp=PATH specify prefix directory for the installed GMP
1593 package. Equivalent to
1594 --with-gmp-include=PATH/include plus
1595 --with-gmp-lib=PATH/lib
1596 --with-gmp-include=PATH specify directory for installed GMP include files
1597 --with-gmp-lib=PATH specify directory for the installed GMP library
1598 --with-stage1-libs=LIBS libraries for stage1
1599 --with-static-standard-libraries
1600 use -static-libstdc++ and -static-libgcc
1601 (default=auto)
1602 --with-stage1-ldflags=FLAGS
1603 linker flags for stage1
1604 --with-boot-libs=LIBS libraries for stage2 and later
1605 --with-boot-ldflags=FLAGS
1606 linker flags for stage2 and later
1607 --with-isl=PATH Specify prefix directory for the installed isl
1608 package. Equivalent to
1609 --with-isl-include=PATH/include plus
1610 --with-isl-lib=PATH/lib
1611 --with-isl-include=PATH Specify directory for installed isl include files
1612 --with-isl-lib=PATH Specify the directory for the installed isl library
1613 --with-target-bdw-gc=PATHLIST
1614 specify prefix directory for installed bdw-gc
1615 package. Equivalent to
1616 --with-target-bdw-gc-include=PATH/include plus
1617 --with-target-bdw-gc-lib=PATH/lib
1618 --with-target-bdw-gc-include=PATHLIST
1619 specify directories for installed bdw-gc include
1620 files
1621 --with-target-bdw-gc-lib=PATHLIST
1622 specify directories for installed bdw-gc library
1623 --with-gcc-major-version-only
1624 use only GCC major number in filesystem paths
1625 --with-build-sysroot=SYSROOT
1626 use sysroot as the system root during the build
1627 --with-debug-prefix-map='A=B C=D ...'
1628 map A to B, C to D ... in debug information
1629 --with-build-config='NAME NAME2...'
1630 use config/NAME.mk build configuration
1631 --with-build-time-tools=PATH
1632 use given path to find target tools during the build
1634 Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
1642 CXX C++ compiler command
1643 CXXFLAGS C++ compiler flags
1644 build_configargs
1645 additional configure arguments for build directories
1646 host_configargs
1647 additional configure arguments for host directories
1648 target_configargs
1649 additional configure arguments for target directories
1650 AR AR for the host
1651 AS AS for the host
1652 DLLTOOL DLLTOOL for the host
1653 DSYMUTIL DSYMUTIL for the host
1654 LD LD for the host
1655 LIPO LIPO for the host
1656 NM NM for the host
1657 RANLIB RANLIB for the host
1658 STRIP STRIP for the host
1659 WINDRES WINDRES for the host
1660 WINDMC WINDMC for the host
1661 OBJCOPY OBJCOPY for the host
1662 OBJDUMP OBJDUMP for the host
1663 OTOOL OTOOL for the host
1664 READELF READELF for the host
1665 CC_FOR_TARGET
1666 CC for the target
1667 CXX_FOR_TARGET
1668 CXX for the target
1669 GCC_FOR_TARGET
1670 GCC for the target
1671 GFORTRAN_FOR_TARGET
1672 GFORTRAN for the target
1673 GOC_FOR_TARGET
1674 GOC for the target
1675 GDC_FOR_TARGET
1676 GDC for the target
1677 AR_FOR_TARGET
1678 AR for the target
1679 AS_FOR_TARGET
1680 AS for the target
1681 DLLTOOL_FOR_TARGET
1682 DLLTOOL for the target
1683 DSYMUTIL_FOR_TARGET
1684 DSYMUTIL for the target
1685 LD_FOR_TARGET
1686 LD for the target
1687 LIPO_FOR_TARGET
1688 LIPO for the target
1689 NM_FOR_TARGET
1690 NM for the target
1691 OBJCOPY_FOR_TARGET
1692 OBJCOPY for the target
1693 OBJDUMP_FOR_TARGET
1694 OBJDUMP for the target
1695 OTOOL_FOR_TARGET
1696 OTOOL for the target
1697 RANLIB_FOR_TARGET
1698 RANLIB for the target
1699 READELF_FOR_TARGET
1700 READELF for the target
1701 STRIP_FOR_TARGET
1702 STRIP for the target
1703 WINDRES_FOR_TARGET
1704 WINDRES for the target
1705 WINDMC_FOR_TARGET
1706 WINDMC for the target
1708 Use these variables to override the choices made by `configure' or to help
1709 it to find libraries and programs with nonstandard names/locations.
1711 Report bugs to the package provider.
1712 _ACEOF
1713 ac_status=$?
1716 if test "$ac_init_help" = "recursive"; then
1717 # If there are subdirs, report their specific --help.
1718 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1719 test -d "$ac_dir" ||
1720 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1721 continue
1722 ac_builddir=.
1724 case "$ac_dir" in
1725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1728 # A ".." for each directory in $ac_dir_suffix.
1729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1730 case $ac_top_builddir_sub in
1731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1733 esac ;;
1734 esac
1735 ac_abs_top_builddir=$ac_pwd
1736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1737 # for backward compatibility:
1738 ac_top_builddir=$ac_top_build_prefix
1740 case $srcdir in
1741 .) # We are building in place.
1742 ac_srcdir=.
1743 ac_top_srcdir=$ac_top_builddir_sub
1744 ac_abs_top_srcdir=$ac_pwd ;;
1745 [\\/]* | ?:[\\/]* ) # Absolute name.
1746 ac_srcdir=$srcdir$ac_dir_suffix;
1747 ac_top_srcdir=$srcdir
1748 ac_abs_top_srcdir=$srcdir ;;
1749 *) # Relative name.
1750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751 ac_top_srcdir=$ac_top_build_prefix$srcdir
1752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 esac
1754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1756 cd "$ac_dir" || { ac_status=$?; continue; }
1757 # Check for guested configure.
1758 if test -f "$ac_srcdir/configure.gnu"; then
1759 echo &&
1760 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1761 elif test -f "$ac_srcdir/configure"; then
1762 echo &&
1763 $SHELL "$ac_srcdir/configure" --help=recursive
1764 else
1765 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1766 fi || ac_status=$?
1767 cd "$ac_pwd" || { ac_status=$?; break; }
1768 done
1771 test -n "$ac_init_help" && exit $ac_status
1772 if $ac_init_version; then
1773 cat <<\_ACEOF
1774 configure
1775 generated by GNU Autoconf 2.69
1777 Copyright (C) 2012 Free Software Foundation, Inc.
1778 This configure script is free software; the Free Software Foundation
1779 gives unlimited permission to copy, distribute and modify it.
1780 _ACEOF
1781 exit
1784 ## ------------------------ ##
1785 ## Autoconf initialization. ##
1786 ## ------------------------ ##
1788 # ac_fn_c_try_compile LINENO
1789 # --------------------------
1790 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_compile ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext
1795 if { { ac_try="$ac_compile"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_compile") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest.$ac_objext; then :
1814 ac_retval=0
1815 else
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1819 ac_retval=1
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1824 } # ac_fn_c_try_compile
1826 # ac_fn_cxx_try_compile LINENO
1827 # ----------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_cxx_try_compile ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext
1833 if { { ac_try="$ac_compile"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_compile") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_cxx_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest.$ac_objext; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 ac_retval=1
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1862 } # ac_fn_cxx_try_compile
1864 # ac_fn_cxx_try_link LINENO
1865 # -------------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_cxx_try_link ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext conftest$ac_exeext
1871 if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1879 ac_status=$?
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_cxx_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
1891 test -x conftest$ac_exeext
1892 }; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=1
1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902 # interfere with the next link command; also delete a directory that is
1903 # left behind by Apple's compiler. We do this before executing the actions.
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1908 } # ac_fn_cxx_try_link
1910 # ac_fn_c_try_link LINENO
1911 # -----------------------
1912 # Try to link conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_c_try_link ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext conftest$ac_exeext
1917 if { { ac_try="$ac_link"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest$ac_exeext && {
1936 test "$cross_compiling" = yes ||
1937 test -x conftest$ac_exeext
1938 }; then :
1939 ac_retval=0
1940 else
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1944 ac_retval=1
1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948 # interfere with the next link command; also delete a directory that is
1949 # left behind by Apple's compiler. We do this before executing the actions.
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1954 } # ac_fn_c_try_link
1955 cat >config.log <<_ACEOF
1956 This file contains any messages produced by compilers while
1957 running configure, to aid debugging if configure makes a mistake.
1959 It was created by $as_me, which was
1960 generated by GNU Autoconf 2.69. Invocation command line was
1962 $ $0 $@
1964 _ACEOF
1965 exec 5>>config.log
1967 cat <<_ASUNAME
1968 ## --------- ##
1969 ## Platform. ##
1970 ## --------- ##
1972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1981 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1982 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1985 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1986 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1987 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1989 _ASUNAME
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 $as_echo "PATH: $as_dir"
1997 done
1998 IFS=$as_save_IFS
2000 } >&5
2002 cat >&5 <<_ACEOF
2005 ## ----------- ##
2006 ## Core tests. ##
2007 ## ----------- ##
2009 _ACEOF
2012 # Keep a trace of the command line.
2013 # Strip out --no-create and --no-recursion so they do not pile up.
2014 # Strip out --silent because we don't want to record it for future runs.
2015 # Also quote any args containing shell meta-characters.
2016 # Make two passes to allow for proper duplicate-argument suppression.
2017 ac_configure_args=
2018 ac_configure_args0=
2019 ac_configure_args1=
2020 ac_must_keep_next=false
2021 for ac_pass in 1 2
2023 for ac_arg
2025 case $ac_arg in
2026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028 | -silent | --silent | --silen | --sile | --sil)
2029 continue ;;
2030 *\'*)
2031 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 esac
2033 case $ac_pass in
2034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2036 as_fn_append ac_configure_args1 " '$ac_arg'"
2037 if test $ac_must_keep_next = true; then
2038 ac_must_keep_next=false # Got value, back to normal.
2039 else
2040 case $ac_arg in
2041 *=* | --config-cache | -C | -disable-* | --disable-* \
2042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044 | -with-* | --with-* | -without-* | --without-* | --x)
2045 case "$ac_configure_args0 " in
2046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047 esac
2049 -* ) ac_must_keep_next=true ;;
2050 esac
2052 as_fn_append ac_configure_args " '$ac_arg'"
2054 esac
2055 done
2056 done
2057 { ac_configure_args0=; unset ac_configure_args0;}
2058 { ac_configure_args1=; unset ac_configure_args1;}
2060 # When interrupted or exit'd, cleanup temporary files, and complete
2061 # config.log. We remove comments because anyway the quotes in there
2062 # would cause problems or look ugly.
2063 # WARNING: Use '\'' to represent an apostrophe within the trap.
2064 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2065 trap 'exit_status=$?
2066 # Save into config.log some information that might help in debugging.
2068 echo
2070 $as_echo "## ---------------- ##
2071 ## Cache variables. ##
2072 ## ---------------- ##"
2073 echo
2074 # The following way of writing the cache mishandles newlines in values,
2076 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in #(
2079 *${as_nl}*)
2080 case $ac_var in #(
2081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083 esac
2084 case $ac_var in #(
2085 _ | IFS | as_nl) ;; #(
2086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087 *) { eval $ac_var=; unset $ac_var;} ;;
2088 esac ;;
2089 esac
2090 done
2091 (set) 2>&1 |
2092 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093 *${as_nl}ac_space=\ *)
2094 sed -n \
2095 "s/'\''/'\''\\\\'\'''\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 ;; #(
2099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2101 esac |
2102 sort
2104 echo
2106 $as_echo "## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##"
2109 echo
2110 for ac_var in $ac_subst_vars
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 $as_echo "$ac_var='\''$ac_val'\''"
2117 done | sort
2118 echo
2120 if test -n "$ac_subst_files"; then
2121 $as_echo "## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##"
2124 echo
2125 for ac_var in $ac_subst_files
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2136 if test -s confdefs.h; then
2137 $as_echo "## ----------- ##
2138 ## confdefs.h. ##
2139 ## ----------- ##"
2140 echo
2141 cat confdefs.h
2142 echo
2144 test "$ac_signal" != 0 &&
2145 $as_echo "$as_me: caught signal $ac_signal"
2146 $as_echo "$as_me: exit $exit_status"
2147 } >&5
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150 exit $exit_status
2152 for ac_signal in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 done
2155 ac_signal=0
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2160 $as_echo "/* confdefs.h */" > confdefs.h
2162 # Predefined preprocessor variables.
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2166 _ACEOF
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170 _ACEOF
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2174 _ACEOF
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2178 _ACEOF
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182 _ACEOF
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_URL "$PACKAGE_URL"
2186 _ACEOF
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2191 ac_site_file1=NONE
2192 ac_site_file2=NONE
2193 if test -n "$CONFIG_SITE"; then
2194 # We do not want a PATH search for config.site.
2195 case $CONFIG_SITE in #((
2196 -*) ac_site_file1=./$CONFIG_SITE;;
2197 */*) ac_site_file1=$CONFIG_SITE;;
2198 *) ac_site_file1=./$CONFIG_SITE;;
2199 esac
2200 elif test "x$prefix" != xNONE; then
2201 ac_site_file1=$prefix/share/config.site
2202 ac_site_file2=$prefix/etc/config.site
2203 else
2204 ac_site_file1=$ac_default_prefix/share/config.site
2205 ac_site_file2=$ac_default_prefix/etc/config.site
2207 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2209 test "x$ac_site_file" = xNONE && continue
2210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2213 sed 's/^/| /' "$ac_site_file" >&5
2214 . "$ac_site_file" \
2215 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 as_fn_error $? "failed to load site script $ac_site_file
2218 See \`config.log' for more details" "$LINENO" 5; }
2220 done
2222 if test -r "$cache_file"; then
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227 $as_echo "$as_me: loading cache $cache_file" >&6;}
2228 case $cache_file in
2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
2231 esac
2233 else
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235 $as_echo "$as_me: creating cache $cache_file" >&6;}
2236 >$cache_file
2239 # Check that the precious variables saved in the cache have kept the same
2240 # value.
2241 ac_cache_corrupted=false
2242 for ac_var in $ac_precious_vars; do
2243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244 eval ac_new_set=\$ac_env_${ac_var}_set
2245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246 eval ac_new_val=\$ac_env_${ac_var}_value
2247 case $ac_old_set,$ac_new_set in
2248 set,)
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2252 ,set)
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255 ac_cache_corrupted=: ;;
2256 ,);;
2258 if test "x$ac_old_val" != "x$ac_new_val"; then
2259 # differences in whitespace do not lead to failure.
2260 ac_old_val_w=`echo x $ac_old_val`
2261 ac_new_val_w=`echo x $ac_new_val`
2262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265 ac_cache_corrupted=:
2266 else
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269 eval $ac_var=\$ac_old_val
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2272 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2275 fi;;
2276 esac
2277 # Pass precious variables to config.status.
2278 if test "$ac_new_set" = set; then
2279 case $ac_new_val in
2280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281 *) ac_arg=$ac_var=$ac_new_val ;;
2282 esac
2283 case " $ac_configure_args " in
2284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2286 esac
2288 done
2289 if $ac_cache_corrupted; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2296 ## -------------------- ##
2297 ## Main body of script. ##
2298 ## -------------------- ##
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313 progname=$0
2314 # if PWD already has a value, it is probably wrong.
2315 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2317 # Export original configure arguments for use by sub-configures.
2318 # Quote arguments with shell meta charatcers.
2319 TOPLEVEL_CONFIGURE_ARGUMENTS=
2320 set -- "$progname" "$@"
2321 for ac_arg
2323 case "$ac_arg" in
2324 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2325 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2326 # if the argument is of the form -foo=baz, quote the baz part only
2327 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2328 *) ;;
2329 esac
2330 # Add the quoted argument to the list.
2331 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2332 done
2333 if test "$silent" = yes; then
2334 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2336 # Remove the initial space we just introduced and, as these will be
2337 # expanded by make, quote '$'.
2338 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2341 # Find the build, host, and target systems.
2342 ac_aux_dir=
2343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2344 if test -f "$ac_dir/install-sh"; then
2345 ac_aux_dir=$ac_dir
2346 ac_install_sh="$ac_aux_dir/install-sh -c"
2347 break
2348 elif test -f "$ac_dir/install.sh"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/install.sh -c"
2351 break
2352 elif test -f "$ac_dir/shtool"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/shtool install -c"
2355 break
2357 done
2358 if test -z "$ac_aux_dir"; then
2359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2362 # These three variables are undocumented and unsupported,
2363 # and are intended to be withdrawn in a future Autoconf release.
2364 # They can cause serious problems if a builder's source tree is in a directory
2365 # whose full name contains unusual characters.
2366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2371 # Make sure we can run config.sub.
2372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2376 $as_echo_n "checking build system type... " >&6; }
2377 if ${ac_cv_build+:} false; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 ac_build_alias=$build_alias
2381 test "x$ac_build_alias" = x &&
2382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2383 test "x$ac_build_alias" = x &&
2384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2390 $as_echo "$ac_cv_build" >&6; }
2391 case $ac_cv_build in
2392 *-*-*) ;;
2393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2394 esac
2395 build=$ac_cv_build
2396 ac_save_IFS=$IFS; IFS='-'
2397 set x $ac_cv_build
2398 shift
2399 build_cpu=$1
2400 build_vendor=$2
2401 shift; shift
2402 # Remember, the first character of IFS is used to create $*,
2403 # except with old shells:
2404 build_os=$*
2405 IFS=$ac_save_IFS
2406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2409 case ${build_alias} in
2410 "") build_noncanonical=${build} ;;
2411 *) build_noncanonical=${build_alias} ;;
2412 esac
2416 case ${host_alias} in
2417 "") host_noncanonical=${build_noncanonical} ;;
2418 *) host_noncanonical=${host_alias} ;;
2419 esac
2423 case ${target_alias} in
2424 "") target_noncanonical=${host_noncanonical} ;;
2425 *) target_noncanonical=${target_alias} ;;
2426 esac
2431 test "$host_noncanonical" = "$target_noncanonical" &&
2432 test "$program_prefix$program_suffix$program_transform_name" = \
2433 NONENONEs,x,x, &&
2434 program_transform_name=s,y,y,
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2437 $as_echo_n "checking host system type... " >&6; }
2438 if ${ac_cv_host+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test "x$host_alias" = x; then
2442 ac_cv_host=$ac_cv_build
2443 else
2444 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2445 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2450 $as_echo "$ac_cv_host" >&6; }
2451 case $ac_cv_host in
2452 *-*-*) ;;
2453 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2454 esac
2455 host=$ac_cv_host
2456 ac_save_IFS=$IFS; IFS='-'
2457 set x $ac_cv_host
2458 shift
2459 host_cpu=$1
2460 host_vendor=$2
2461 shift; shift
2462 # Remember, the first character of IFS is used to create $*,
2463 # except with old shells:
2464 host_os=$*
2465 IFS=$ac_save_IFS
2466 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2470 $as_echo_n "checking target system type... " >&6; }
2471 if ${ac_cv_target+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test "x$target_alias" = x; then
2475 ac_cv_target=$ac_cv_host
2476 else
2477 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2483 $as_echo "$ac_cv_target" >&6; }
2484 case $ac_cv_target in
2485 *-*-*) ;;
2486 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2487 esac
2488 target=$ac_cv_target
2489 ac_save_IFS=$IFS; IFS='-'
2490 set x $ac_cv_target
2491 shift
2492 target_cpu=$1
2493 target_vendor=$2
2494 shift; shift
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2497 target_os=$*
2498 IFS=$ac_save_IFS
2499 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2502 # The aliases save the names the user supplied, while $host etc.
2503 # will get canonicalized.
2504 test -n "$target_alias" &&
2505 test "$program_prefix$program_suffix$program_transform_name" = \
2506 NONENONEs,x,x, &&
2507 program_prefix=${target_alias}-
2509 test "$program_prefix" != NONE &&
2510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511 # Use a double $ so make ignores it.
2512 test "$program_suffix" != NONE &&
2513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514 # Double any \ or $.
2515 # By default was `s,x,x', remove it if useless.
2516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521 # Get 'install' or 'install-sh' and its variants.
2522 # Find a good install program. We prefer a C program (faster),
2523 # so one script is as good as another. But avoid the broken or
2524 # incompatible versions:
2525 # SysV /etc/install, /usr/sbin/install
2526 # SunOS /usr/etc/install
2527 # IRIX /sbin/install
2528 # AIX /bin/install
2529 # AmigaOS /C/install, which installs bootblocks on floppy discs
2530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2533 # OS/2's system install, which has a completely different semantic
2534 # ./install, which can be erroneously created by make from ./install.sh.
2535 # Reject install programs that cannot install multiple files.
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2537 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2538 if test -z "$INSTALL"; then
2539 if ${ac_cv_path_install+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 # Account for people who put trailing slashes in PATH elements.
2548 case $as_dir/ in #((
2549 ./ | .// | /[cC]/* | \
2550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2551 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2552 /usr/ucb/* ) ;;
2554 # OSF1 and SCO ODT 3.0 have their own names for install.
2555 # Don't use installbsd from OSF since it installs stuff as root
2556 # by default.
2557 for ac_prog in ginstall scoinst install; do
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2560 if test $ac_prog = install &&
2561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562 # AIX install. It has an incompatible calling convention.
2564 elif test $ac_prog = install &&
2565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566 # program-specific install script used by HP pwplus--don't use.
2568 else
2569 rm -rf conftest.one conftest.two conftest.dir
2570 echo one > conftest.one
2571 echo two > conftest.two
2572 mkdir conftest.dir
2573 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2574 test -s conftest.one && test -s conftest.two &&
2575 test -s conftest.dir/conftest.one &&
2576 test -s conftest.dir/conftest.two
2577 then
2578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2579 break 3
2583 done
2584 done
2586 esac
2588 done
2589 IFS=$as_save_IFS
2591 rm -rf conftest.one conftest.two conftest.dir
2594 if test "${ac_cv_path_install+set}" = set; then
2595 INSTALL=$ac_cv_path_install
2596 else
2597 # As a last resort, use the slow shell script. Don't cache a
2598 # value for INSTALL within a source directory, because that will
2599 # break other packages using the cache if that directory is
2600 # removed, or if the value is a relative name.
2601 INSTALL=$ac_install_sh
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2605 $as_echo "$INSTALL" >&6; }
2607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608 # It thinks the first close brace ends the variable substitution.
2609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2616 $as_echo_n "checking whether ln works... " >&6; }
2617 if ${acx_cv_prog_LN+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 rm -f conftestdata_t
2621 echo >conftestdata_f
2622 if ln conftestdata_f conftestdata_t 2>/dev/null
2623 then
2624 acx_cv_prog_LN=ln
2625 else
2626 acx_cv_prog_LN=no
2628 rm -f conftestdata_f conftestdata_t
2631 if test $acx_cv_prog_LN = no; then
2632 LN="cp"
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2634 $as_echo "no, using $LN" >&6; }
2635 else
2636 LN="$acx_cv_prog_LN"
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2638 $as_echo "yes" >&6; }
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2642 $as_echo_n "checking whether ln -s works... " >&6; }
2643 LN_S=$as_ln_s
2644 if test "$LN_S" = "ln -s"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2647 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2649 $as_echo "no, using $LN_S" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2653 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2654 if ${ac_cv_path_SED+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2658 for ac_i in 1 2 3 4 5 6 7; do
2659 ac_script="$ac_script$as_nl$ac_script"
2660 done
2661 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2662 { ac_script=; unset ac_script;}
2663 if test -z "$SED"; then
2664 ac_path_SED_found=false
2665 # Loop through the user's path and test for each of PROGNAME-LIST
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_prog in sed gsed; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2674 as_fn_executable_p "$ac_path_SED" || continue
2675 # Check for GNU ac_path_SED and select it if it is found.
2676 # Check for GNU $ac_path_SED
2677 case `"$ac_path_SED" --version 2>&1` in
2678 *GNU*)
2679 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2681 ac_count=0
2682 $as_echo_n 0123456789 >"conftest.in"
2683 while :
2685 cat "conftest.in" "conftest.in" >"conftest.tmp"
2686 mv "conftest.tmp" "conftest.in"
2687 cp "conftest.in" "conftest.nl"
2688 $as_echo '' >> "conftest.nl"
2689 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2691 as_fn_arith $ac_count + 1 && ac_count=$as_val
2692 if test $ac_count -gt ${ac_path_SED_max-0}; then
2693 # Best one so far, save it but keep looking for a better one
2694 ac_cv_path_SED="$ac_path_SED"
2695 ac_path_SED_max=$ac_count
2697 # 10*(2^10) chars as input seems more than enough
2698 test $ac_count -gt 10 && break
2699 done
2700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2701 esac
2703 $ac_path_SED_found && break 3
2704 done
2705 done
2706 done
2707 IFS=$as_save_IFS
2708 if test -z "$ac_cv_path_SED"; then
2709 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2711 else
2712 ac_cv_path_SED=$SED
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2717 $as_echo "$ac_cv_path_SED" >&6; }
2718 SED="$ac_cv_path_SED"
2719 rm -f conftest.sed
2721 for ac_prog in gawk mawk nawk awk
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724 set dummy $ac_prog; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_AWK+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 if test -n "$AWK"; then
2731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_AWK="$ac_prog"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2744 done
2745 done
2746 IFS=$as_save_IFS
2750 AWK=$ac_cv_prog_AWK
2751 if test -n "$AWK"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2753 $as_echo "$AWK" >&6; }
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2760 test -n "$AWK" && break
2761 done
2764 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2766 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2767 # a relative path.
2768 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2769 INSTALL="${srcpwd}/install-sh -c"
2772 # Set srcdir to "." if that's what it is.
2773 # This is important for multilib support.
2774 pwd=`${PWDCMD-pwd}`
2775 if test "${pwd}" = "${srcpwd}" ; then
2776 srcdir=.
2779 topsrcdir=$srcpwd
2781 extra_host_args=
2783 ### To add a new directory to the tree, first choose whether it is a target
2784 ### or a host dependent tool. Then put it into the appropriate list
2785 ### (library or tools, host or target), doing a dependency sort.
2787 # Subdirs will be configured in the order listed in build_configdirs,
2788 # configdirs, or target_configdirs; see the serialization section below.
2790 # Dependency sorting is only needed when *configuration* must be done in
2791 # a particular order. In all cases a dependency should be specified in
2792 # the Makefile, whether or not it's implicitly specified here.
2794 # Double entries in build_configdirs, configdirs, or target_configdirs may
2795 # cause circular dependencies and break everything horribly.
2797 # these library is used by various programs built for the build
2798 # environment
2800 build_libs="build-libiberty build-libcpp"
2802 # these tools are built for the build environment
2803 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2805 # these libraries are used by various programs built for the host environment
2807 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2809 # these tools are built for the host environment
2810 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2811 # know that we are building the simulator.
2812 # binutils, gas and ld appear in that order because it makes sense to run
2813 # "make check" in that particular order.
2814 # If --enable-gold is used, "gold" may replace "ld".
2815 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2817 # these libraries are built for the target environment, and are built after
2818 # the host libraries and the host tools (which may be a cross compiler)
2819 # Note that libiberty is not a target library.
2820 target_libraries="target-libgcc \
2821 target-libbacktrace \
2822 target-libgloss \
2823 target-newlib \
2824 target-libgomp \
2825 target-libatomic \
2826 target-libitm \
2827 target-libstdc++-v3 \
2828 target-libsanitizer \
2829 target-libvtv \
2830 target-libssp \
2831 target-libquadmath \
2832 target-libgfortran \
2833 target-libffi \
2834 target-libobjc \
2835 target-libada \
2836 target-libgo \
2837 target-libphobos \
2838 target-zlib"
2840 # these tools are built using the target libraries, and are intended to
2841 # run only in the target environment
2843 # note: any program that *uses* libraries that are in the "target_libraries"
2844 # list belongs in this list.
2846 target_tools="target-rda"
2848 ################################################################################
2850 ## All tools belong in one of the four categories, and are assigned above
2851 ## We assign ${configdirs} this way to remove all embedded newlines. This
2852 ## is important because configure will choke if they ever get through.
2853 ## ${configdirs} is directories we build using the host tools.
2854 ## ${target_configdirs} is directories we build using the target tools.
2855 configdirs=`echo ${host_libs} ${host_tools}`
2856 target_configdirs=`echo ${target_libraries} ${target_tools}`
2857 build_configdirs=`echo ${build_libs} ${build_tools}`
2861 ################################################################################
2863 srcname="gnu development package"
2865 # This gets set non-empty for some net releases of packages.
2866 appdirs=""
2868 # Define is_cross_compiler to save on calls to 'test'.
2869 is_cross_compiler=
2870 if test x"${host}" = x"${target}" ; then
2871 is_cross_compiler=no
2872 else
2873 is_cross_compiler=yes
2876 # Find the build and target subdir names.
2878 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2879 # have matching libraries, they should use host libraries: Makefile.tpl
2880 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2881 # However, they still use the build modules, because the corresponding
2882 # host modules (e.g. bison) are only built for the host when bootstrap
2883 # finishes. So:
2884 # - build_subdir is where we find build modules, and never changes.
2885 # - build_libsubdir is where we find build libraries, and can be overridden.
2887 # Prefix 'build-' so this never conflicts with target_subdir.
2888 build_subdir="build-${build_noncanonical}"
2890 # Check whether --with-build-libsubdir was given.
2891 if test "${with_build_libsubdir+set}" = set; then :
2892 withval=$with_build_libsubdir; build_libsubdir="$withval"
2893 else
2894 build_libsubdir="$build_subdir"
2897 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2898 if ( test $srcdir = . && test -d gcc ) \
2899 || test -d $srcdir/../host-${host_noncanonical}; then
2900 host_subdir="host-${host_noncanonical}"
2901 else
2902 host_subdir=.
2904 # No prefix.
2905 target_subdir=${target_noncanonical}
2907 # Be sure to cover against remnants of an in-tree build.
2908 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2909 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2910 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2913 # Skipdirs are removed silently.
2914 skipdirs=
2915 # Noconfigdirs are removed loudly.
2916 noconfigdirs=""
2918 use_gnu_ld=
2919 # Make sure we don't let GNU ld be added if we didn't want it.
2920 if test x$with_gnu_ld = xno ; then
2921 use_gnu_ld=no
2922 noconfigdirs="$noconfigdirs ld gold"
2925 use_gnu_as=
2926 # Make sure we don't let GNU as be added if we didn't want it.
2927 if test x$with_gnu_as = xno ; then
2928 use_gnu_as=no
2929 noconfigdirs="$noconfigdirs gas"
2932 use_included_zlib=
2934 # Check whether --with-system-zlib was given.
2935 if test "${with_system_zlib+set}" = set; then :
2936 withval=$with_system_zlib;
2939 # Make sure we don't let ZLIB be added if we didn't want it.
2940 if test x$with_system_zlib = xyes ; then
2941 use_included_zlib=no
2942 noconfigdirs="$noconfigdirs zlib"
2945 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2946 # is provided.
2947 if test x$with_system_readline = xyes ; then
2948 noconfigdirs="$noconfigdirs readline"
2951 # some tools are so dependent upon X11 that if we're not building with X,
2952 # it's not even worth trying to configure, much less build, that tool.
2954 case ${with_x} in
2955 yes | "") ;; # the default value for this tree is that X11 is available
2957 skipdirs="${skipdirs} tk itcl libgui"
2958 # We won't be able to build gdbtk without X.
2959 enable_gdbtk=no
2961 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2962 esac
2964 # Some are only suitable for cross toolchains.
2965 # Remove these if host=target.
2966 cross_only="target-libgloss target-newlib target-opcodes"
2968 case $is_cross_compiler in
2969 no) skipdirs="${skipdirs} ${cross_only}" ;;
2970 esac
2972 # If both --with-headers and --with-libs are specified, default to
2973 # --without-newlib.
2974 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2975 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2976 if test x"${with_newlib}" = x ; then
2977 with_newlib=no
2981 # Recognize --with-newlib/--without-newlib.
2982 case ${with_newlib} in
2983 no) skipdirs="${skipdirs} target-newlib" ;;
2984 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2985 esac
2987 # Check whether --enable-as-accelerator-for was given.
2988 if test "${enable_as_accelerator_for+set}" = set; then :
2989 enableval=$enable_as_accelerator_for;
2993 # Check whether --enable-offload-targets was given.
2994 if test "${enable_offload_targets+set}" = set; then :
2995 enableval=$enable_offload_targets;
2996 if test x"$enable_offload_targets" = x; then
2997 as_fn_error $? "no offload targets specified" "$LINENO" 5
3000 else
3001 enable_offload_targets=
3005 # Check whether --enable-offload-defaulted was given.
3006 if test "${enable_offload_defaulted+set}" = set; then :
3007 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3008 else
3009 enable_offload_defaulted=
3013 # Handle --enable-gold, --enable-ld.
3014 # --disable-gold [--enable-ld]
3015 # Build only ld. Default option.
3016 # --enable-gold [--enable-ld]
3017 # Build both gold and ld. Install gold as "ld.gold", install ld
3018 # as "ld.bfd" and "ld".
3019 # --enable-gold=default [--enable-ld]
3020 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3021 # install ld as "ld.bfd".
3022 # --enable-gold[=default] --disable-ld
3023 # Build only gold, which is then installed as both "ld.gold" and "ld".
3024 # --enable-gold --enable-ld=default
3025 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3026 # and ld.bfd).
3027 # In other words, ld is default
3028 # --enable-gold=default --enable-ld=default
3029 # Error.
3031 default_ld=
3032 # Check whether --enable-gold was given.
3033 if test "${enable_gold+set}" = set; then :
3034 enableval=$enable_gold; ENABLE_GOLD=$enableval
3035 else
3036 ENABLE_GOLD=no
3039 case "${ENABLE_GOLD}" in
3040 yes|default)
3041 # Check for ELF target.
3042 is_elf=no
3043 case "${target}" in
3044 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3045 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3046 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3047 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3048 case "${target}" in
3049 *-*-linux*aout* | *-*-linux*oldld*)
3052 is_elf=yes
3054 esac
3055 esac
3057 if test "$is_elf" = "yes"; then
3058 # Check for target supported by gold.
3059 case "${target}" in
3060 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3061 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3062 configdirs="$configdirs gold"
3063 if test x${ENABLE_GOLD} = xdefault; then
3064 default_ld=gold
3066 ENABLE_GOLD=yes
3068 esac
3074 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3076 esac
3078 # Check whether --enable-ld was given.
3079 if test "${enable_ld+set}" = set; then :
3080 enableval=$enable_ld; ENABLE_LD=$enableval
3081 else
3082 ENABLE_LD=yes
3086 case "${ENABLE_LD}" in
3087 default)
3088 if test x${default_ld} != x; then
3089 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3092 yes)
3095 if test x${ENABLE_GOLD} != xyes; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3097 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3099 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3102 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3104 esac
3106 # PR gas/19109
3107 # Decide the default method for compressing debug sections.
3108 # Provide a configure time option to override our default.
3109 # Check whether --enable-compressed_debug_sections was given.
3110 if test "${enable_compressed_debug_sections+set}" = set; then :
3111 enableval=$enable_compressed_debug_sections;
3112 if test x"$enable_compressed_debug_sections" = xyes; then
3113 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3116 else
3117 enable_compressed_debug_sections=
3121 # Configure extra directories which are host specific
3123 case "${host}" in
3124 *-cygwin*)
3125 configdirs="$configdirs libtermcap" ;;
3126 esac
3128 # A target can indicate whether a language isn't supported for some reason.
3129 # Only spaces may be used in this macro; not newlines or tabs.
3130 unsupported_languages=
3132 # Remove more programs from consideration, based on the host or
3133 # target this usually means that a port of the program doesn't
3134 # exist yet.
3136 case "${host}" in
3137 i[3456789]86-*-msdosdjgpp*)
3138 noconfigdirs="$noconfigdirs tcl tk itcl"
3140 esac
3143 # Check whether --enable-libquadmath was given.
3144 if test "${enable_libquadmath+set}" = set; then :
3145 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3146 else
3147 ENABLE_LIBQUADMATH=yes
3150 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3151 noconfigdirs="$noconfigdirs target-libquadmath"
3155 # Check whether --enable-libquadmath-support was given.
3156 if test "${enable_libquadmath_support+set}" = set; then :
3157 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3158 else
3159 ENABLE_LIBQUADMATH_SUPPORT=yes
3162 enable_libquadmath_support=
3163 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3164 enable_libquadmath_support=no
3168 # Check whether --enable-libada was given.
3169 if test "${enable_libada+set}" = set; then :
3170 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3171 else
3172 ENABLE_LIBADA=yes
3175 if test "${ENABLE_LIBADA}" != "yes" ; then
3176 noconfigdirs="$noconfigdirs gnattools"
3179 # Check whether --enable-libssp was given.
3180 if test "${enable_libssp+set}" = set; then :
3181 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3182 else
3183 ENABLE_LIBSSP=yes
3187 # Check whether --enable-libstdcxx was given.
3188 if test "${enable_libstdcxx+set}" = set; then :
3189 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3190 else
3191 ENABLE_LIBSTDCXX=default
3194 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3195 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3198 # Enable libgomp by default on hosted POSIX systems, and a few others.
3199 if test x$enable_libgomp = x ; then
3200 case "${target}" in
3201 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3203 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3205 *-*-solaris2* | *-*-hpux11*)
3207 *-*-darwin* | *-*-aix*)
3209 nvptx*-*-* | amdgcn*-*-*)
3212 noconfigdirs="$noconfigdirs target-libgomp"
3214 esac
3217 # Disable libatomic on unsupported systems.
3218 if test -d ${srcdir}/libatomic; then
3219 if test x$enable_libatomic = x; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3221 $as_echo_n "checking for libatomic support... " >&6; }
3222 if (srcdir=${srcdir}/libatomic; \
3223 . ${srcdir}/configure.tgt; \
3224 test -n "$UNSUPPORTED")
3225 then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 noconfigdirs="$noconfigdirs target-libatomic"
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231 $as_echo "yes" >&6; }
3236 # Disable libitm on unsupported systems.
3237 if test -d ${srcdir}/libitm; then
3238 if test x$enable_libitm = x; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3240 $as_echo_n "checking for libitm support... " >&6; }
3241 if (srcdir=${srcdir}/libitm; \
3242 . ${srcdir}/configure.tgt; \
3243 test -n "$UNSUPPORTED")
3244 then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 noconfigdirs="$noconfigdirs target-libitm"
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3255 # Disable libsanitizer on unsupported systems.
3256 if test -d ${srcdir}/libsanitizer; then
3257 if test x$enable_libsanitizer = x; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3259 $as_echo_n "checking for libsanitizer support... " >&6; }
3260 if (srcdir=${srcdir}/libsanitizer; \
3261 . ${srcdir}/configure.tgt; \
3262 test -n "$UNSUPPORTED")
3263 then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 noconfigdirs="$noconfigdirs target-libsanitizer"
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3269 $as_echo "yes" >&6; }
3274 # Disable libvtv on unsupported systems.
3275 if test -d ${srcdir}/libvtv; then
3276 if test x$enable_libvtv = x; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3278 $as_echo_n "checking for libvtv support... " >&6; }
3279 if (srcdir=${srcdir}/libvtv; \
3280 . ${srcdir}/configure.tgt; \
3281 test "$VTV_SUPPORTED" != "yes")
3282 then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 noconfigdirs="$noconfigdirs target-libvtv"
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3293 # Disable libquadmath for some systems.
3294 case "${target}" in
3295 avr-*-*)
3296 noconfigdirs="$noconfigdirs target-libquadmath"
3298 # libquadmath is unused on AIX and libquadmath build process use of
3299 # LD_LIBRARY_PATH can break AIX bootstrap.
3300 powerpc-*-aix* | rs6000-*-aix*)
3301 noconfigdirs="$noconfigdirs target-libquadmath"
3303 esac
3305 # Disable libssp for some systems.
3306 case "${target}" in
3307 avr-*-*)
3308 # No hosted I/O support.
3309 noconfigdirs="$noconfigdirs target-libssp"
3311 bpf-*-*)
3312 noconfigdirs="$noconfigdirs target-libssp"
3314 powerpc-*-aix* | rs6000-*-aix*)
3315 noconfigdirs="$noconfigdirs target-libssp"
3317 pru-*-*)
3318 # No hosted I/O support.
3319 noconfigdirs="$noconfigdirs target-libssp"
3321 rl78-*-*)
3322 # libssp uses a misaligned load to trigger a fault, but the RL78
3323 # doesn't fault for those - instead, it gives a build-time error
3324 # for explicit misaligned loads.
3325 noconfigdirs="$noconfigdirs target-libssp"
3327 visium-*-*)
3328 # No hosted I/O support.
3329 noconfigdirs="$noconfigdirs target-libssp"
3331 esac
3333 # Disable libstdc++-v3 for some systems.
3334 # Allow user to override this if they pass --enable-libstdcxx
3335 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3336 case "${target}" in
3337 *-*-vxworks*)
3338 # VxWorks uses the Dinkumware C++ library.
3339 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3341 amdgcn*-*-*)
3342 # Not ported/fails to build when using newlib.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3352 bpf-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3355 ft32-*-*)
3356 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3358 esac
3361 # Disable C++ on systems where it is known to not work.
3362 # For testing, you can override this with --enable-languages=c++.
3363 case ,${enable_languages}, in
3364 *,c++,*)
3367 case "${target}" in
3368 bpf-*-*)
3369 unsupported_languages="$unsupported_languages c++"
3371 esac
3373 esac
3375 # Disable Objc on systems where it is known to not work.
3376 # For testing, you can override this with --enable-languages=objc.
3377 case ,${enable_languages}, in
3378 *,objc,*)
3381 case "${target}" in
3382 bpf-*-*)
3383 unsupported_languages="$unsupported_languages objc"
3385 esac
3387 esac
3389 # Disable D on systems where it is known to not work.
3390 # For testing, you can override this with --enable-languages=d.
3391 case ,${enable_languages}, in
3392 *,d,*)
3395 case "${target}" in
3396 bpf-*-*)
3397 unsupported_languages="$unsupported_languages d"
3399 esac
3401 esac
3403 # Disable libphobos on unsupported systems.
3404 # For testing, you can override this with --enable-libphobos.
3405 if test -d ${srcdir}/libphobos; then
3406 if test x$enable_libphobos = x; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3408 $as_echo_n "checking for libphobos support... " >&6; }
3409 if (srcdir=${srcdir}/libphobos; \
3410 . ${srcdir}/configure.tgt; \
3411 test "$LIBPHOBOS_SUPPORTED" != "yes")
3412 then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3415 noconfigdirs="$noconfigdirs target-libphobos"
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418 $as_echo "yes" >&6; }
3423 # Disable Fortran for some systems.
3424 case "${target}" in
3425 mmix-*-*)
3426 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3427 unsupported_languages="$unsupported_languages fortran"
3429 bpf-*-*)
3430 unsupported_languages="$unsupported_languages fortran"
3432 esac
3434 # Disable libffi for some systems.
3435 case "${target}" in
3436 powerpc-*-darwin*)
3438 i[3456789]86-*-darwin*)
3440 x86_64-*-darwin[912]*)
3442 *-*-darwin*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3445 *-*-netware*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3448 *-*-phoenix*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3451 *-*-rtems*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3454 *-*-tpf*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3457 *-*-uclinux*)
3458 noconfigdirs="$noconfigdirs target-libffi"
3460 *-*-vxworks*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3463 aarch64*-*-freebsd*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3466 alpha*-*-*vms*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3469 arm*-*-freebsd*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3472 arm-wince-pe)
3473 noconfigdirs="$noconfigdirs target-libffi"
3475 arm*-*-symbianelf*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3478 bpf-*-*)
3479 noconfigdirs="$noconfigdirs target-libffi"
3481 cris-*-* | crisv32-*-*)
3482 case "${target}" in
3483 *-*-linux*)
3485 *) # See PR46792 regarding target-libffi.
3486 noconfigdirs="$noconfigdirs target-libffi";;
3487 esac
3489 hppa*64*-*-hpux*)
3490 noconfigdirs="$noconfigdirs target-libffi"
3492 ia64*-*-*vms*)
3493 noconfigdirs="$noconfigdirs target-libffi"
3495 i[3456789]86-w64-mingw*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3498 i[3456789]86-*-mingw*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3501 x86_64-*-mingw*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3504 mmix-*-*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3507 powerpc-*-aix*)
3509 rs6000-*-aix*)
3511 ft32-*-*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3514 *-*-lynxos*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3517 esac
3519 # Disable the go frontend on systems where it is known to not work. Please keep
3520 # this in sync with contrib/config-list.mk.
3521 case "${target}" in
3522 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3523 unsupported_languages="$unsupported_languages go"
3525 esac
3527 # Only allow gdbserver on some systems.
3528 if test -d ${srcdir}/gdbserver; then
3529 if test x$enable_gdbserver = x; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3531 $as_echo_n "checking for gdbserver support... " >&6; }
3532 if (srcdir=${srcdir}/gdbserver; \
3533 . ${srcdir}/configure.srv; \
3534 test -n "$UNSUPPORTED")
3535 then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538 noconfigdirs="$noconfigdirs gdbserver"
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541 $as_echo "yes" >&6; }
3546 # Disable libgo for some systems where it is known to not work.
3547 # For testing, you can easily override this with --enable-libgo.
3548 if test x$enable_libgo = x; then
3549 case "${target}" in
3550 *-*-darwin*)
3551 # PR 46986
3552 noconfigdirs="$noconfigdirs target-libgo"
3554 *-*-cygwin* | *-*-mingw*)
3555 noconfigdirs="$noconfigdirs target-libgo"
3557 bpf-*-*)
3558 noconfigdirs="$noconfigdirs target-libgo"
3560 esac
3563 # Default libgloss CPU subdirectory.
3564 libgloss_dir="$target_cpu"
3566 case "${target}" in
3567 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3568 libgloss_dir=wince
3570 aarch64*-*-* )
3571 libgloss_dir=aarch64
3573 arm*-*-*)
3574 libgloss_dir=arm
3576 cris-*-* | crisv32-*-*)
3577 libgloss_dir=cris
3579 hppa*-*-*)
3580 libgloss_dir=pa
3582 i[3456789]86-*-*)
3583 libgloss_dir=i386
3585 loongarch*-*-*)
3586 libgloss_dir=loongarch
3588 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3589 libgloss_dir=m68hc11
3591 m68*-*-* | fido-*-*)
3592 libgloss_dir=m68k
3594 mips*-*-*)
3595 libgloss_dir=mips
3597 powerpc*-*-*)
3598 libgloss_dir=rs6000
3600 pru-*-*)
3601 libgloss_dir=pru
3603 sparc*-*-*)
3604 libgloss_dir=sparc
3606 esac
3608 # Disable newlib and libgloss for various target OSes.
3609 case "${target}" in
3610 alpha*-dec-osf*)
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 i[3456789]86-*-linux*)
3614 # This section makes it possible to build newlib natively on linux.
3615 # If we are using a cross compiler then don't configure newlib.
3616 if test x${is_cross_compiler} != xno ; then
3617 noconfigdirs="$noconfigdirs target-newlib"
3619 noconfigdirs="$noconfigdirs target-libgloss"
3620 # If we are not using a cross compiler, do configure newlib.
3621 # Note however, that newlib will only be configured in this situation
3622 # if the --with-newlib option has been given, because otherwise
3623 # 'target-newlib' will appear in skipdirs.
3625 i[3456789]86-*-rdos*)
3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3628 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 sparc-*-sunos4*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 bpf-*-*)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 *-*-aix*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 *-*-beos*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 *-*-chorusos)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 *-*-dragonfly*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 *-*-freebsd*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 *-*-lynxos*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 *-*-mingw*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 *-*-netbsd*)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 *-*-netware*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 *-*-tpf*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 *-*-uclinux*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 *-*-vxworks*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 esac
3678 case "${target}" in
3679 *-*-chorusos)
3681 aarch64-*-darwin*)
3682 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3683 noconfigdirs="$noconfigdirs sim target-rda"
3685 amdgcn*-*-*)
3687 arm-*-darwin*)
3688 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3689 noconfigdirs="$noconfigdirs sim target-rda"
3691 powerpc-*-darwin*)
3692 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3693 noconfigdirs="$noconfigdirs sim target-rda"
3695 i[3456789]86-*-darwin*)
3696 noconfigdirs="$noconfigdirs ld gprof"
3697 noconfigdirs="$noconfigdirs sim target-rda"
3699 x86_64-*-darwin[912]*)
3700 noconfigdirs="$noconfigdirs ld gas gprof"
3701 noconfigdirs="$noconfigdirs sim target-rda"
3703 *-*-darwin*)
3704 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3705 noconfigdirs="$noconfigdirs sim target-rda"
3707 *-*-dragonfly*)
3709 *-*-freebsd*)
3710 if test "x$with_gmp" = x \
3711 && ! test -d ${srcdir}/gmp \
3712 && test -f /usr/local/include/gmp.h; then
3713 with_gmp=/usr/local
3716 *-*-kaos*)
3717 # Remove unsupported stuff on all kaOS configurations.
3718 noconfigdirs="$noconfigdirs target-libgloss"
3720 *-*-netbsd*)
3722 *-*-netware*)
3724 *-*-phoenix*)
3725 noconfigdirs="$noconfigdirs target-libgloss"
3727 *-*-rtems*)
3728 noconfigdirs="$noconfigdirs target-libgloss"
3730 # The tpf target doesn't support gdb yet.
3731 *-*-tpf*)
3732 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3734 *-*-uclinux*)
3735 noconfigdirs="$noconfigdirs target-rda"
3737 *-*-vxworks*)
3739 alpha*-dec-osf*)
3740 # ld works, but does not support shared libraries.
3741 # gas doesn't generate exception information.
3742 noconfigdirs="$noconfigdirs gas ld"
3744 alpha*-*-*vms*)
3745 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3747 alpha*-*-*)
3748 # newlib is not 64 bit ready
3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3751 bpf-*-*)
3752 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3754 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3755 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3757 arc*-*-*)
3758 noconfigdirs="$noconfigdirs sim"
3760 arm-*-pe*)
3761 noconfigdirs="$noconfigdirs target-libgloss"
3763 arm-*-riscix*)
3764 noconfigdirs="$noconfigdirs ld target-libgloss"
3766 avr-*-*)
3767 if test x${with_avrlibc} != xno; then
3768 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3771 c4x-*-* | tic4x-*-*)
3772 noconfigdirs="$noconfigdirs target-libgloss"
3774 tic54x-*-*)
3775 noconfigdirs="$noconfigdirs target-libgloss gdb"
3777 d10v-*-*)
3778 noconfigdirs="$noconfigdirs target-libgloss"
3780 d30v-*-*)
3781 noconfigdirs="$noconfigdirs gdb"
3783 fr30-*-elf*)
3784 noconfigdirs="$noconfigdirs gdb"
3786 ft32-*-*)
3787 noconfigdirs="$noconfigdirs target-rda gprof"
3789 moxie-*-*)
3790 noconfigdirs="$noconfigdirs"
3792 h8300*-*-*)
3793 noconfigdirs="$noconfigdirs target-libgloss"
3795 h8500-*-*)
3796 noconfigdirs="$noconfigdirs target-libgloss"
3798 hppa*64*-*-hpux*)
3799 noconfigdirs="$noconfigdirs gdb"
3801 hppa*64*-*-linux*)
3803 hppa*-*-linux*)
3805 hppa*-*-*elf* | \
3806 hppa*-*-lites* | \
3807 hppa*-*-openbsd* | \
3808 hppa*64*-*-*)
3810 hppa*-*-pro*)
3812 hppa*-*-*)
3813 noconfigdirs="$noconfigdirs ld"
3815 i960-*-*)
3816 noconfigdirs="$noconfigdirs gdb"
3818 ia64*-*-elf*)
3819 # No gdb support yet.
3820 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3822 ia64*-**-hpux*)
3823 # No ld support yet.
3824 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3826 ia64*-*-*vms*)
3827 # No ld support yet.
3828 noconfigdirs="$noconfigdirs libgui itcl ld"
3830 i[3456789]86-w64-mingw*)
3832 i[3456789]86-*-mingw*)
3833 target_configdirs="$target_configdirs target-winsup"
3835 *-*-cygwin*)
3836 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3837 noconfigdirs="$noconfigdirs target-libgloss"
3838 # always build newlib if winsup directory is present.
3839 if test -d "$srcdir/winsup/cygwin"; then
3840 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3841 elif test -d "$srcdir/newlib"; then
3842 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3845 i[3456789]86-*-pe)
3846 noconfigdirs="$noconfigdirs target-libgloss"
3848 i[3456789]86-*-sco3.2v5*)
3849 # The linker does not yet know about weak symbols in COFF,
3850 # and is not configured to handle mixed ELF and COFF.
3851 noconfigdirs="$noconfigdirs ld target-libgloss"
3853 i[3456789]86-*-sco*)
3854 noconfigdirs="$noconfigdirs gprof target-libgloss"
3856 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3857 noconfigdirs="$noconfigdirs target-libgloss"
3859 i[3456789]86-*-sysv4*)
3860 noconfigdirs="$noconfigdirs target-libgloss"
3862 i[3456789]86-*-beos*)
3863 noconfigdirs="$noconfigdirs gdb"
3865 i[3456789]86-*-rdos*)
3866 noconfigdirs="$noconfigdirs gdb"
3868 mmix-*-*)
3869 noconfigdirs="$noconfigdirs gdb"
3871 mt-*-*)
3872 noconfigdirs="$noconfigdirs sim"
3874 nfp-*-*)
3875 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3876 noconfigdirs="$noconfigdirs $target_libraries"
3878 pdp11-*-*)
3879 noconfigdirs="$noconfigdirs gdb gprof"
3881 powerpc-*-aix*)
3882 # copied from rs6000-*-* entry
3883 noconfigdirs="$noconfigdirs gprof"
3885 powerpc*-*-winnt* | powerpc*-*-pe*)
3886 target_configdirs="$target_configdirs target-winsup"
3887 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3888 # always build newlib.
3889 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3891 # This is temporary until we can link against shared libraries
3892 powerpcle-*-solaris*)
3893 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3895 powerpc-*-beos*)
3896 noconfigdirs="$noconfigdirs gdb"
3898 rs6000-*-lynxos*)
3899 noconfigdirs="$noconfigdirs gprof"
3901 rs6000-*-aix*)
3902 noconfigdirs="$noconfigdirs gprof"
3904 rs6000-*-*)
3905 noconfigdirs="$noconfigdirs gprof"
3907 m68k-apollo-*)
3908 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3910 microblaze*)
3911 noconfigdirs="$noconfigdirs gprof"
3913 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3914 if test x$with_newlib = xyes; then
3915 noconfigdirs="$noconfigdirs gprof"
3918 mips*-*-irix5*)
3919 noconfigdirs="$noconfigdirs gprof target-libgloss"
3921 mips*-*-irix6*)
3922 noconfigdirs="$noconfigdirs gprof target-libgloss"
3924 mips*-*-bsd*)
3925 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3927 mips*-*-linux*)
3929 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3930 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3931 noconfigdirs="$noconfigdirs ld gas gprof"
3933 mips*-*-*)
3934 noconfigdirs="$noconfigdirs gprof"
3936 nvptx*-*-*)
3937 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3939 sh-*-*)
3940 case "${target}" in
3941 sh*-*-elf)
3944 noconfigdirs="$noconfigdirs target-libgloss" ;;
3945 esac
3947 sparc-*-sunos4*)
3948 if test x${is_cross_compiler} = xno ; then
3949 use_gnu_ld=no
3952 tic6x-*-*)
3953 noconfigdirs="$noconfigdirs sim"
3955 v810-*-*)
3956 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3958 vax-*-*)
3959 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3961 wasm32-*-*)
3962 noconfigdirs="$noconfigdirs ld"
3964 loongarch*-*-linux*)
3966 loongarch*-*-*)
3967 noconfigdirs="$noconfigdirs gprof"
3969 esac
3971 # If we aren't building newlib, then don't build libgloss, since libgloss
3972 # depends upon some newlib header files.
3973 case "${noconfigdirs}" in
3974 *target-libgloss*) ;;
3975 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3976 esac
3978 # Work in distributions that contain no compiler tools, like Autoconf.
3979 host_makefile_frag=/dev/null
3980 if test -d ${srcdir}/config ; then
3981 case "${host}" in
3982 i[3456789]86-*-msdosdjgpp*)
3983 host_makefile_frag="config/mh-djgpp"
3985 *-cygwin*)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3988 $as_echo_n "checking to see if cat works as expected... " >&6; }
3989 echo a >cygwin-cat-check
3990 if test `cat cygwin-cat-check` = a ; then
3991 rm cygwin-cat-check
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993 $as_echo "yes" >&6; }
3994 else
3995 rm cygwin-cat-check
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 as_fn_error $? "The cat command does not ignore carriage return characters.
3999 Please either mount the build directory in binary mode or run the following
4000 commands before running any configure script:
4001 set -o igncr
4002 export SHELLOPTS
4003 " "$LINENO" 5
4006 host_makefile_frag="config/mh-cygwin"
4008 *-mingw*)
4009 host_makefile_frag="config/mh-mingw"
4011 alpha*-linux*)
4012 host_makefile_frag="config/mh-alpha-linux"
4014 hppa*-hp-hpux*)
4015 host_makefile_frag="config/mh-pa"
4017 hppa*-*)
4018 host_makefile_frag="config/mh-pa"
4020 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4021 host_makefile_frag="config/mh-darwin"
4023 powerpc-*-aix*)
4024 host_makefile_frag="config/mh-ppc-aix"
4026 rs6000-*-aix*)
4027 host_makefile_frag="config/mh-ppc-aix"
4029 esac
4032 if test "${build}" != "${host}" ; then
4033 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4034 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4035 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4036 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4037 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4038 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4039 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4040 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4041 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4042 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4043 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4044 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4045 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4046 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4047 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4048 else
4049 AR_FOR_BUILD="\$(AR)"
4050 AS_FOR_BUILD="\$(AS)"
4051 CC_FOR_BUILD="\$(CC)"
4052 CXX_FOR_BUILD="\$(CXX)"
4053 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4054 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4055 GOC_FOR_BUILD="\$(GOC)"
4056 GDC_FOR_BUILD="\$(GDC)"
4057 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4058 LD_FOR_BUILD="\$(LD)"
4059 NM_FOR_BUILD="\$(NM)"
4060 RANLIB_FOR_BUILD="\$(RANLIB)"
4061 WINDRES_FOR_BUILD="\$(WINDRES)"
4062 WINDMC_FOR_BUILD="\$(WINDMC)"
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_CC+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4092 done
4093 done
4094 IFS=$as_save_IFS
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4102 else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4109 if test -z "$ac_cv_prog_CC"; then
4110 ac_ct_CC=$CC
4111 # Extract the first word of "gcc", so it can be a program name with args.
4112 set dummy gcc; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if test -n "$ac_ct_CC"; then
4119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_CC="gcc"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 break 2
4132 done
4133 done
4134 IFS=$as_save_IFS
4138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139 if test -n "$ac_ct_CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4141 $as_echo "$ac_ct_CC" >&6; }
4142 else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4147 if test "x$ac_ct_CC" = x; then
4148 CC=""
4149 else
4150 case $cross_compiling:$ac_tool_warned in
4151 yes:)
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned=yes ;;
4155 esac
4156 CC=$ac_ct_CC
4158 else
4159 CC="$ac_cv_prog_CC"
4162 if test -z "$CC"; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}cc; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_CC+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_CC="${ac_tool_prefix}cc"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4185 done
4186 done
4187 IFS=$as_save_IFS
4191 CC=$ac_cv_prog_CC
4192 if test -n "$CC"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194 $as_echo "$CC" >&6; }
4195 else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4203 if test -z "$CC"; then
4204 # Extract the first word of "cc", so it can be a program name with args.
4205 set dummy cc; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if ${ac_cv_prog_CC+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213 else
4214 ac_prog_rejected=no
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223 ac_prog_rejected=yes
4224 continue
4226 ac_cv_prog_CC="cc"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4230 done
4231 done
4232 IFS=$as_save_IFS
4234 if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy $ac_cv_prog_CC
4237 shift
4238 if test $# != 0; then
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set CC to just the basename; use the full file name.
4242 shift
4243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4248 CC=$ac_cv_prog_CC
4249 if test -n "$CC"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251 $as_echo "$CC" >&6; }
4252 else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4259 if test -z "$CC"; then
4260 if test -n "$ac_tool_prefix"; then
4261 for ac_prog in cl.exe
4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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; }
4300 test -n "$CC" && break
4301 done
4303 if test -z "$CC"; then
4304 ac_ct_CC=$CC
4305 for ac_prog in cl.exe
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy $ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_ac_ct_CC="$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335 if test -n "$ac_ct_CC"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4337 $as_echo "$ac_ct_CC" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 test -n "$ac_ct_CC" && break
4345 done
4347 if test "x$ac_ct_CC" = x; then
4348 CC=""
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351 yes:)
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354 ac_tool_warned=yes ;;
4355 esac
4356 CC=$ac_ct_CC
4363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error $? "no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details" "$LINENO" 5; }
4368 # Provide some information about the compiler.
4369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4370 set X $ac_compile
4371 ac_compiler=$2
4372 for ac_option in --version -v -V -qversion; do
4373 { { ac_try="$ac_compiler $ac_option >&5"
4374 case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4381 ac_status=$?
4382 if test -s conftest.err; then
4383 sed '10a\
4384 ... rest of stderr output deleted ...
4385 10q' conftest.err >conftest.er1
4386 cat conftest.er1 >&5
4388 rm -f conftest.er1 conftest.err
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4391 done
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4397 main ()
4401 return 0;
4403 _ACEOF
4404 ac_clean_files_save=$ac_clean_files
4405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4406 # Try to create an executable without -o first, disregard a.out.
4407 # It will help us diagnose broken compilers, and finding out an intuition
4408 # of exeext.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4410 $as_echo_n "checking whether the C compiler works... " >&6; }
4411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4413 # The possible output files:
4414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4416 ac_rmfiles=
4417 for ac_file in $ac_files
4419 case $ac_file in
4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4422 esac
4423 done
4424 rm -f $ac_rmfiles
4426 if { { ac_try="$ac_link_default"
4427 case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_link_default") 2>&5
4434 ac_status=$?
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then :
4437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4440 # so that the user can short-circuit this test for compilers unknown to
4441 # Autoconf.
4442 for ac_file in $ac_files ''
4444 test -f "$ac_file" || continue
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4448 [ab].out )
4449 # We found the default executable, but exeext='' is most
4450 # certainly right.
4451 break;;
4452 *.* )
4453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4454 then :; else
4455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4457 # We set ac_cv_exeext here because the later test for it is not
4458 # safe: cross compilers may not add the suffix if given an `-o'
4459 # argument, so we may need to know it at that point already.
4460 # Even if this section looks crufty: it has the advantage of
4461 # actually working.
4462 break;;
4464 break;;
4465 esac
4466 done
4467 test "$ac_cv_exeext" = no && ac_cv_exeext=
4469 else
4470 ac_file=''
4472 if test -z "$ac_file"; then :
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 as_fn_error 77 "C compiler cannot create executables
4481 See \`config.log' for more details" "$LINENO" 5; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484 $as_echo "yes" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4487 $as_echo_n "checking for C compiler default output file name... " >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4489 $as_echo "$ac_file" >&6; }
4490 ac_exeext=$ac_cv_exeext
4492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4493 ac_clean_files=$ac_clean_files_save
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4495 $as_echo_n "checking for suffix of executables... " >&6; }
4496 if { { ac_try="$ac_link"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_link") 2>&5
4504 ac_status=$?
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
4507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4509 # work properly (i.e., refer to `conftest.exe'), while it won't with
4510 # `rm'.
4511 for ac_file in conftest.exe conftest conftest.*; do
4512 test -f "$ac_file" || continue
4513 case $ac_file in
4514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4516 break;;
4517 * ) break;;
4518 esac
4519 done
4520 else
4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4524 See \`config.log' for more details" "$LINENO" 5; }
4526 rm -f conftest conftest$ac_cv_exeext
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4528 $as_echo "$ac_cv_exeext" >&6; }
4530 rm -f conftest.$ac_ext
4531 EXEEXT=$ac_cv_exeext
4532 ac_exeext=$EXEEXT
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <stdio.h>
4537 main ()
4539 FILE *f = fopen ("conftest.out", "w");
4540 return ferror (f) || fclose (f) != 0;
4543 return 0;
4545 _ACEOF
4546 ac_clean_files="$ac_clean_files conftest.out"
4547 # Check that the compiler produces executables we can run. If not, either
4548 # the compiler is broken, or we cross compile.
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4550 $as_echo_n "checking whether we are cross compiling... " >&6; }
4551 if test "$cross_compiling" != yes; then
4552 { { ac_try="$ac_link"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_link") 2>&5
4560 ac_status=$?
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }
4563 if { ac_try='./conftest$ac_cv_exeext'
4564 { { case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; }; then
4574 cross_compiling=no
4575 else
4576 if test "$cross_compiling" = maybe; then
4577 cross_compiling=yes
4578 else
4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581 as_fn_error $? "cannot run C compiled programs.
4582 If you meant to cross compile, use \`--host'.
4583 See \`config.log' for more details" "$LINENO" 5; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4588 $as_echo "$cross_compiling" >&6; }
4590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4591 ac_clean_files=$ac_clean_files_save
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4593 $as_echo_n "checking for suffix of object files... " >&6; }
4594 if ${ac_cv_objext+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4601 main ()
4605 return 0;
4607 _ACEOF
4608 rm -f conftest.o conftest.obj
4609 if { { ac_try="$ac_compile"
4610 case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613 esac
4614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615 $as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_compile") 2>&5
4617 ac_status=$?
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }; then :
4620 for ac_file in conftest.o conftest.obj conftest.*; do
4621 test -f "$ac_file" || continue;
4622 case $ac_file in
4623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4625 break;;
4626 esac
4627 done
4628 else
4629 $as_echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4634 as_fn_error $? "cannot compute suffix of object files: cannot compile
4635 See \`config.log' for more details" "$LINENO" 5; }
4637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4640 $as_echo "$ac_cv_objext" >&6; }
4641 OBJEXT=$ac_cv_objext
4642 ac_objext=$OBJEXT
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4645 if ${ac_cv_c_compiler_gnu+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4652 main ()
4654 #ifndef __GNUC__
4655 choke me
4656 #endif
4659 return 0;
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_compiler_gnu=yes
4664 else
4665 ac_compiler_gnu=no
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4673 if test $ac_compiler_gnu = yes; then
4674 GCC=yes
4675 else
4676 GCC=
4678 ac_test_CFLAGS=${CFLAGS+set}
4679 ac_save_CFLAGS=$CFLAGS
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4682 if ${ac_cv_prog_cc_g+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 ac_save_c_werror_flag=$ac_c_werror_flag
4686 ac_c_werror_flag=yes
4687 ac_cv_prog_cc_g=no
4688 CFLAGS="-g"
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4693 main ()
4697 return 0;
4699 _ACEOF
4700 if ac_fn_c_try_compile "$LINENO"; then :
4701 ac_cv_prog_cc_g=yes
4702 else
4703 CFLAGS=""
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4708 main ()
4712 return 0;
4714 _ACEOF
4715 if ac_fn_c_try_compile "$LINENO"; then :
4717 else
4718 ac_c_werror_flag=$ac_save_c_werror_flag
4719 CFLAGS="-g"
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4724 main ()
4728 return 0;
4730 _ACEOF
4731 if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_cv_prog_cc_g=yes
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 ac_c_werror_flag=$ac_save_c_werror_flag
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4742 $as_echo "$ac_cv_prog_cc_g" >&6; }
4743 if test "$ac_test_CFLAGS" = set; then
4744 CFLAGS=$ac_save_CFLAGS
4745 elif test $ac_cv_prog_cc_g = yes; then
4746 if test "$GCC" = yes; then
4747 CFLAGS="-g -O2"
4748 else
4749 CFLAGS="-g"
4751 else
4752 if test "$GCC" = yes; then
4753 CFLAGS="-O2"
4754 else
4755 CFLAGS=
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4760 if ${ac_cv_prog_cc_c89+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 ac_cv_prog_cc_c89=no
4764 ac_save_CC=$CC
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 #include <stdarg.h>
4768 #include <stdio.h>
4769 struct stat;
4770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4771 struct buf { int x; };
4772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4773 static char *e (p, i)
4774 char **p;
4775 int i;
4777 return p[i];
4779 static char *f (char * (*g) (char **, int), char **p, ...)
4781 char *s;
4782 va_list v;
4783 va_start (v,p);
4784 s = g (p, va_arg (v,int));
4785 va_end (v);
4786 return s;
4789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4790 function prototypes and stuff, but not '\xHH' hex character constants.
4791 These don't provoke an error unfortunately, instead are silently treated
4792 as 'x'. The following induces an error, until -std is added to get
4793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4794 array size at least. It's necessary to write '\x00'==0 to get something
4795 that's true only with -std. */
4796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4799 inside strings and character constants. */
4800 #define FOO(x) 'x'
4801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4803 int test (int i, double x);
4804 struct s1 {int (*f) (int a);};
4805 struct s2 {int (*f) (double a);};
4806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4807 int argc;
4808 char **argv;
4810 main ()
4812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4814 return 0;
4816 _ACEOF
4817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4820 CC="$ac_save_CC $ac_arg"
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_cv_prog_cc_c89=$ac_arg
4824 rm -f core conftest.err conftest.$ac_objext
4825 test "x$ac_cv_prog_cc_c89" != "xno" && break
4826 done
4827 rm -f conftest.$ac_ext
4828 CC=$ac_save_CC
4831 # AC_CACHE_VAL
4832 case "x$ac_cv_prog_cc_c89" in
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4835 $as_echo "none needed" >&6; } ;;
4836 xno)
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4838 $as_echo "unsupported" >&6; } ;;
4840 CC="$CC $ac_cv_prog_cc_c89"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4843 esac
4844 if test "x$ac_cv_prog_cc_c89" != xno; then :
4848 ac_ext=c
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4855 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4856 if ${ac_cv_prog_cc_c99+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 ac_cv_prog_cc_c99=no
4860 ac_save_CC=$CC
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 #include <stdarg.h>
4864 #include <stdbool.h>
4865 #include <stdlib.h>
4866 #include <wchar.h>
4867 #include <stdio.h>
4869 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4870 #define debug(...) fprintf (stderr, __VA_ARGS__)
4871 #define showlist(...) puts (#__VA_ARGS__)
4872 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4873 static void
4874 test_varargs_macros (void)
4876 int x = 1234;
4877 int y = 5678;
4878 debug ("Flag");
4879 debug ("X = %d\n", x);
4880 showlist (The first, second, and third items.);
4881 report (x>y, "x is %d but y is %d", x, y);
4884 // Check long long types.
4885 #define BIG64 18446744073709551615ull
4886 #define BIG32 4294967295ul
4887 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4888 #if !BIG_OK
4889 your preprocessor is broken;
4890 #endif
4891 #if BIG_OK
4892 #else
4893 your preprocessor is broken;
4894 #endif
4895 static long long int bignum = -9223372036854775807LL;
4896 static unsigned long long int ubignum = BIG64;
4898 struct incomplete_array
4900 int datasize;
4901 double data[];
4904 struct named_init {
4905 int number;
4906 const wchar_t *name;
4907 double average;
4910 typedef const char *ccp;
4912 static inline int
4913 test_restrict (ccp restrict text)
4915 // See if C++-style comments work.
4916 // Iterate through items via the restricted pointer.
4917 // Also check for declarations in for loops.
4918 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4919 continue;
4920 return 0;
4923 // Check varargs and va_copy.
4924 static void
4925 test_varargs (const char *format, ...)
4927 va_list args;
4928 va_start (args, format);
4929 va_list args_copy;
4930 va_copy (args_copy, args);
4932 const char *str;
4933 int number;
4934 float fnumber;
4936 while (*format)
4938 switch (*format++)
4940 case 's': // string
4941 str = va_arg (args_copy, const char *);
4942 break;
4943 case 'd': // int
4944 number = va_arg (args_copy, int);
4945 break;
4946 case 'f': // float
4947 fnumber = va_arg (args_copy, double);
4948 break;
4949 default:
4950 break;
4953 va_end (args_copy);
4954 va_end (args);
4958 main ()
4961 // Check bool.
4962 _Bool success = false;
4964 // Check restrict.
4965 if (test_restrict ("String literal") == 0)
4966 success = true;
4967 char *restrict newvar = "Another string";
4969 // Check varargs.
4970 test_varargs ("s, d' f .", "string", 65, 34.234);
4971 test_varargs_macros ();
4973 // Check flexible array members.
4974 struct incomplete_array *ia =
4975 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4976 ia->datasize = 10;
4977 for (int i = 0; i < ia->datasize; ++i)
4978 ia->data[i] = i * 1.234;
4980 // Check named initializers.
4981 struct named_init ni = {
4982 .number = 34,
4983 .name = L"Test wide string",
4984 .average = 543.34343,
4987 ni.number = 58;
4989 int dynamic_array[ni.number];
4990 dynamic_array[ni.number - 1] = 543;
4992 // work around unused variable warnings
4993 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4994 || dynamic_array[ni.number - 1] != 543);
4997 return 0;
4999 _ACEOF
5000 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5002 CC="$ac_save_CC $ac_arg"
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004 ac_cv_prog_cc_c99=$ac_arg
5006 rm -f core conftest.err conftest.$ac_objext
5007 test "x$ac_cv_prog_cc_c99" != "xno" && break
5008 done
5009 rm -f conftest.$ac_ext
5010 CC=$ac_save_CC
5013 # AC_CACHE_VAL
5014 case "x$ac_cv_prog_cc_c99" in
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5017 $as_echo "none needed" >&6; } ;;
5018 xno)
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5020 $as_echo "unsupported" >&6; } ;;
5022 CC="$CC $ac_cv_prog_cc_c99"
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5024 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5025 esac
5026 if test "x$ac_cv_prog_cc_c99" != xno; then :
5031 ac_ext=cpp
5032 ac_cpp='$CXXCPP $CPPFLAGS'
5033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5036 if test -z "$CXX"; then
5037 if test -n "$CCC"; then
5038 CXX=$CCC
5039 else
5040 if test -n "$ac_tool_prefix"; then
5041 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_CXX+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if test -n "$CXX"; then
5051 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5064 done
5065 done
5066 IFS=$as_save_IFS
5070 CXX=$ac_cv_prog_CXX
5071 if test -n "$CXX"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5073 $as_echo "$CXX" >&6; }
5074 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5080 test -n "$CXX" && break
5081 done
5083 if test -z "$CXX"; then
5084 ac_ct_CXX=$CXX
5085 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$ac_ct_CXX"; then
5095 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_ac_ct_CXX="$ac_prog"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5110 IFS=$as_save_IFS
5114 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5115 if test -n "$ac_ct_CXX"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5117 $as_echo "$ac_ct_CXX" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5124 test -n "$ac_ct_CXX" && break
5125 done
5127 if test "x$ac_ct_CXX" = x; then
5128 CXX="g++"
5129 else
5130 case $cross_compiling:$ac_tool_warned in
5131 yes:)
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134 ac_tool_warned=yes ;;
5135 esac
5136 CXX=$ac_ct_CXX
5142 # Provide some information about the compiler.
5143 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5144 set X $ac_compile
5145 ac_compiler=$2
5146 for ac_option in --version -v -V -qversion; do
5147 { { ac_try="$ac_compiler $ac_option >&5"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5153 $as_echo "$ac_try_echo"; } >&5
5154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5155 ac_status=$?
5156 if test -s conftest.err; then
5157 sed '10a\
5158 ... rest of stderr output deleted ...
5159 10q' conftest.err >conftest.er1
5160 cat conftest.er1 >&5
5162 rm -f conftest.er1 conftest.err
5163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5164 test $ac_status = 0; }
5165 done
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5168 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5169 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5176 main ()
5178 #ifndef __GNUC__
5179 choke me
5180 #endif
5183 return 0;
5185 _ACEOF
5186 if ac_fn_cxx_try_compile "$LINENO"; then :
5187 ac_compiler_gnu=yes
5188 else
5189 ac_compiler_gnu=no
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5196 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5197 if test $ac_compiler_gnu = yes; then
5198 GXX=yes
5199 else
5200 GXX=
5202 ac_test_CXXFLAGS=${CXXFLAGS+set}
5203 ac_save_CXXFLAGS=$CXXFLAGS
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5205 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5206 if ${ac_cv_prog_cxx_g+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5210 ac_cxx_werror_flag=yes
5211 ac_cv_prog_cxx_g=no
5212 CXXFLAGS="-g"
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5217 main ()
5221 return 0;
5223 _ACEOF
5224 if ac_fn_cxx_try_compile "$LINENO"; then :
5225 ac_cv_prog_cxx_g=yes
5226 else
5227 CXXFLAGS=""
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5232 main ()
5236 return 0;
5238 _ACEOF
5239 if ac_fn_cxx_try_compile "$LINENO"; then :
5241 else
5242 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5243 CXXFLAGS="-g"
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5248 main ()
5252 return 0;
5254 _ACEOF
5255 if ac_fn_cxx_try_compile "$LINENO"; then :
5256 ac_cv_prog_cxx_g=yes
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5266 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5267 if test "$ac_test_CXXFLAGS" = set; then
5268 CXXFLAGS=$ac_save_CXXFLAGS
5269 elif test $ac_cv_prog_cxx_g = yes; then
5270 if test "$GXX" = yes; then
5271 CXXFLAGS="-g -O2"
5272 else
5273 CXXFLAGS="-g"
5275 else
5276 if test "$GXX" = yes; then
5277 CXXFLAGS="-O2"
5278 else
5279 CXXFLAGS=
5282 ac_ext=c
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5289 # We must set the default linker to the linker used by gcc for the correct
5290 # operation of libtool. If LD is not defined and we are using gcc, try to
5291 # set the LD default to the ld used by gcc.
5292 if test -z "$LD"; then
5293 if test "$GCC" = yes; then
5294 case $build in
5295 *-*-mingw*)
5296 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5298 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5299 esac
5300 case $gcc_prog_ld in
5301 # Accept absolute paths.
5302 [\\/]* | [A-Za-z]:[\\/]*)
5303 LD="$gcc_prog_ld" ;;
5304 esac
5308 # Check whether -static-libstdc++ -static-libgcc is supported.
5309 have_static_libs=no
5310 if test "$GCC" = yes; then
5311 saved_LDFLAGS="$LDFLAGS"
5313 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5315 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5316 ac_ext=cpp
5317 ac_cpp='$CXXCPP $CPPFLAGS'
5318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5326 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5327 #error -static-libstdc++ not implemented
5328 #endif
5329 int main() {}
5330 _ACEOF
5331 if ac_fn_cxx_try_link "$LINENO"; then :
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5333 $as_echo "yes" >&6; }; have_static_libs=yes
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5338 rm -f core conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5340 ac_ext=c
5341 ac_cpp='$CPP $CPPFLAGS'
5342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347 LDFLAGS="$saved_LDFLAGS"
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_prog_GNATBIND+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -n "$GNATBIND"; then
5362 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5375 done
5376 done
5377 IFS=$as_save_IFS
5381 GNATBIND=$ac_cv_prog_GNATBIND
5382 if test -n "$GNATBIND"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5384 $as_echo "$GNATBIND" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5392 if test -z "$ac_cv_prog_GNATBIND"; then
5393 ac_ct_GNATBIND=$GNATBIND
5394 # Extract the first word of "gnatbind", so it can be a program name with args.
5395 set dummy gnatbind; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -n "$ac_ct_GNATBIND"; then
5402 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5417 IFS=$as_save_IFS
5421 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5422 if test -n "$ac_ct_GNATBIND"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5424 $as_echo "$ac_ct_GNATBIND" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5430 if test "x$ac_ct_GNATBIND" = x; then
5431 GNATBIND="no"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 GNATBIND=$ac_ct_GNATBIND
5441 else
5442 GNATBIND="$ac_cv_prog_GNATBIND"
5445 if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5447 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_GNATMAKE+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$GNATMAKE"; then
5454 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5467 done
5468 done
5469 IFS=$as_save_IFS
5473 GNATMAKE=$ac_cv_prog_GNATMAKE
5474 if test -n "$GNATMAKE"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5476 $as_echo "$GNATMAKE" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5484 if test -z "$ac_cv_prog_GNATMAKE"; then
5485 ac_ct_GNATMAKE=$GNATMAKE
5486 # Extract the first word of "gnatmake", so it can be a program name with args.
5487 set dummy gnatmake; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$ac_ct_GNATMAKE"; then
5494 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5507 done
5508 done
5509 IFS=$as_save_IFS
5513 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5514 if test -n "$ac_ct_GNATMAKE"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5516 $as_echo "$ac_ct_GNATMAKE" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5522 if test "x$ac_ct_GNATMAKE" = x; then
5523 GNATMAKE="no"
5524 else
5525 case $cross_compiling:$ac_tool_warned in
5526 yes:)
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529 ac_tool_warned=yes ;;
5530 esac
5531 GNATMAKE=$ac_ct_GNATMAKE
5533 else
5534 GNATMAKE="$ac_cv_prog_GNATMAKE"
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5538 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5539 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 cat >conftest.adb <<EOF
5543 pragma Warnings (Off);
5544 with System.CRTL;
5545 pragma Warnings (On);
5546 use type System.CRTL.int64;
5547 procedure conftest is begin null; end conftest;
5549 acx_cv_cc_gcc_supports_ada=no
5550 # There is a bug in old released versions of GCC which causes the
5551 # driver to exit successfully when the appropriate language module
5552 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5553 # Therefore we must check for the error message as well as an
5554 # unsuccessful exit.
5555 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5556 # given a .adb file, but produce no object file. So we must check
5557 # if an object file was really produced to guard against this.
5558 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5559 if test x"$errors" = x && test -f conftest.$ac_objext; then
5560 acx_cv_cc_gcc_supports_ada=yes
5562 rm -f conftest.*
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5565 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5567 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5568 have_gnat=yes
5569 else
5570 have_gnat=no
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5577 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_GDC+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 if test -n "$GDC"; then
5584 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5597 done
5598 done
5599 IFS=$as_save_IFS
5603 GDC=$ac_cv_prog_GDC
5604 if test -n "$GDC"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5606 $as_echo "$GDC" >&6; }
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5614 if test -z "$ac_cv_prog_GDC"; then
5615 ac_ct_GDC=$GDC
5616 # Extract the first word of "gdc", so it can be a program name with args.
5617 set dummy gdc; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$ac_ct_GDC"; then
5624 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_ac_ct_GDC="gdc"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5637 done
5638 done
5639 IFS=$as_save_IFS
5643 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5644 if test -n "$ac_ct_GDC"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5646 $as_echo "$ac_ct_GDC" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5652 if test "x$ac_ct_GDC" = x; then
5653 GDC="no"
5654 else
5655 case $cross_compiling:$ac_tool_warned in
5656 yes:)
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659 ac_tool_warned=yes ;;
5660 esac
5661 GDC=$ac_ct_GDC
5663 else
5664 GDC="$ac_cv_prog_GDC"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5668 $as_echo_n "checking whether the D compiler works... " >&6; }
5669 if ${acx_cv_d_compiler_works+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat >conftest.d <<EOF
5673 module conftest; int main() { return 0; }
5675 acx_cv_d_compiler_works=no
5676 if test "x$GDC" != xno; then
5677 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5678 if test x"$errors" = x && test -f conftest.$ac_objext; then
5679 acx_cv_d_compiler_works=yes
5681 rm -f conftest.*
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5685 $as_echo "$acx_cv_d_compiler_works" >&6; }
5686 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5687 have_gdc=yes
5688 else
5689 have_gdc=no
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5693 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5694 if ${gcc_cv_prog_cmp_skip+:} false; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 echo abfoo >t1
5698 echo cdfoo >t2
5699 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5700 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5701 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5703 else
5704 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5707 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5708 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5710 else
5711 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5714 rm t1 t2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5718 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5719 do_compare="$gcc_cv_prog_cmp_skip"
5723 # Check whether --enable-bootstrap was given.
5724 if test "${enable_bootstrap+set}" = set; then :
5725 enableval=$enable_bootstrap;
5726 else
5727 enable_bootstrap=default
5731 # Issue errors and warnings for invalid/strange bootstrap combinations.
5732 if test -r $srcdir/gcc/configure; then
5733 have_compiler=yes
5734 else
5735 have_compiler=no
5738 case "$have_compiler:$host:$target:$enable_bootstrap" in
5739 *:*:*:no) ;;
5741 # Default behavior. Enable bootstrap if we have a compiler
5742 # and we are in a native configuration.
5743 yes:$build:$build:default)
5744 enable_bootstrap=yes ;;
5746 *:*:*:default)
5747 enable_bootstrap=no ;;
5749 # We have a compiler and we are in a native configuration, bootstrap is ok
5750 yes:$build:$build:yes)
5753 # Other configurations, but we have a compiler. Assume the user knows
5754 # what he's doing.
5755 yes:*:*:yes)
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5757 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5760 # No compiler: if they passed --enable-bootstrap explicitly, fail
5761 no:*:*:yes)
5762 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5764 # Fail if wrong command line
5766 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5768 esac
5770 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5771 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5772 # require C++11 (or higher).
5773 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5774 CXX="$CXX -std=c++11"
5775 elif test "$have_compiler" = yes; then
5776 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5777 ac_ext=cpp
5778 ac_cpp='$CXXCPP $CPPFLAGS'
5779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5782 ac_success=no
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5785 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5786 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5793 // If the compiler admits that it is not ready for C++11, why torture it?
5794 // Hopefully, this will speed up the test.
5796 #ifndef __cplusplus
5798 #error "This is not a C++ compiler"
5800 #elif __cplusplus < 201103L
5802 #error "This is not a C++11 compiler"
5804 #else
5806 namespace cxx11
5809 namespace test_static_assert
5812 template <typename T>
5813 struct check
5815 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5820 namespace test_final_override
5823 struct Base
5825 virtual ~Base() {}
5826 virtual void f() {}
5829 struct Derived : public Base
5831 virtual ~Derived() override {}
5832 virtual void f() override {}
5837 namespace test_double_right_angle_brackets
5840 template < typename T >
5841 struct check {};
5843 typedef check<void> single_type;
5844 typedef check<check<void>> double_type;
5845 typedef check<check<check<void>>> triple_type;
5846 typedef check<check<check<check<void>>>> quadruple_type;
5850 namespace test_decltype
5856 int a = 1;
5857 decltype(a) b = 2;
5858 return a + b;
5863 namespace test_type_deduction
5866 template < typename T1, typename T2 >
5867 struct is_same
5869 static const bool value = false;
5872 template < typename T >
5873 struct is_same<T, T>
5875 static const bool value = true;
5878 template < typename T1, typename T2 >
5879 auto
5880 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5882 return a1 + a2;
5886 test(const int c, volatile int v)
5888 static_assert(is_same<int, decltype(0)>::value == true, "");
5889 static_assert(is_same<int, decltype(c)>::value == false, "");
5890 static_assert(is_same<int, decltype(v)>::value == false, "");
5891 auto ac = c;
5892 auto av = v;
5893 auto sumi = ac + av + 'x';
5894 auto sumf = ac + av + 1.0;
5895 static_assert(is_same<int, decltype(ac)>::value == true, "");
5896 static_assert(is_same<int, decltype(av)>::value == true, "");
5897 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5898 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5899 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5900 return (sumf > 0.0) ? sumi : add(c, v);
5905 namespace test_noexcept
5908 int f() { return 0; }
5909 int g() noexcept { return 0; }
5911 static_assert(noexcept(f()) == false, "");
5912 static_assert(noexcept(g()) == true, "");
5916 namespace test_constexpr
5919 template < typename CharT >
5920 unsigned long constexpr
5921 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5923 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5926 template < typename CharT >
5927 unsigned long constexpr
5928 strlen_c(const CharT *const s) noexcept
5930 return strlen_c_r(s, 0UL);
5933 static_assert(strlen_c("") == 0UL, "");
5934 static_assert(strlen_c("1") == 1UL, "");
5935 static_assert(strlen_c("example") == 7UL, "");
5936 static_assert(strlen_c("another\0example") == 7UL, "");
5940 namespace test_rvalue_references
5943 template < int N >
5944 struct answer
5946 static constexpr int value = N;
5949 answer<1> f(int&) { return answer<1>(); }
5950 answer<2> f(const int&) { return answer<2>(); }
5951 answer<3> f(int&&) { return answer<3>(); }
5953 void
5954 test()
5956 int i = 0;
5957 const int c = 0;
5958 static_assert(decltype(f(i))::value == 1, "");
5959 static_assert(decltype(f(c))::value == 2, "");
5960 static_assert(decltype(f(0))::value == 3, "");
5965 namespace test_uniform_initialization
5968 struct test
5970 static const int zero {};
5971 static const int one {1};
5974 static_assert(test::zero == 0, "");
5975 static_assert(test::one == 1, "");
5979 namespace test_lambdas
5982 void
5983 test1()
5985 auto lambda1 = [](){};
5986 auto lambda2 = lambda1;
5987 lambda1();
5988 lambda2();
5992 test2()
5994 auto a = [](int i, int j){ return i + j; }(1, 2);
5995 auto b = []() -> int { return '0'; }();
5996 auto c = [=](){ return a + b; }();
5997 auto d = [&](){ return c; }();
5998 auto e = [a, &b](int x) mutable {
5999 const auto identity = [](int y){ return y; };
6000 for (auto i = 0; i < a; ++i)
6001 a += b--;
6002 return x + identity(a + b);
6003 }(0);
6004 return a + b + c + d + e;
6008 test3()
6010 const auto nullary = [](){ return 0; };
6011 const auto unary = [](int x){ return x; };
6012 using nullary_t = decltype(nullary);
6013 using unary_t = decltype(unary);
6014 const auto higher1st = [](nullary_t f){ return f(); };
6015 const auto higher2nd = [unary](nullary_t f1){
6016 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6018 return higher1st(nullary) + higher2nd(nullary)(unary);
6023 namespace test_variadic_templates
6026 template <int...>
6027 struct sum;
6029 template <int N0, int... N1toN>
6030 struct sum<N0, N1toN...>
6032 static constexpr auto value = N0 + sum<N1toN...>::value;
6035 template <>
6036 struct sum<>
6038 static constexpr auto value = 0;
6041 static_assert(sum<>::value == 0, "");
6042 static_assert(sum<1>::value == 1, "");
6043 static_assert(sum<23>::value == 23, "");
6044 static_assert(sum<1, 2>::value == 3, "");
6045 static_assert(sum<5, 5, 11>::value == 21, "");
6046 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6050 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6051 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6052 // because of this.
6053 namespace test_template_alias_sfinae
6056 struct foo {};
6058 template<typename T>
6059 using member = typename T::member_type;
6061 template<typename T>
6062 void func(...) {}
6064 template<typename T>
6065 void func(member<T>*) {}
6067 void test();
6069 void test() { func<foo>(0); }
6073 } // namespace cxx11
6075 #endif // __cplusplus >= 201103L
6079 _ACEOF
6080 if ac_fn_cxx_try_compile "$LINENO"; then :
6081 ax_cv_cxx_compile_cxx11=yes
6082 else
6083 ax_cv_cxx_compile_cxx11=no
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6088 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6089 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6090 ac_success=yes
6093 if test x$ac_success = xno; then
6094 for alternative in ${ax_cxx_compile_alternatives}; do
6095 switch="-std=gnu++${alternative}"
6096 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6098 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6099 if eval \${$cachevar+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 ac_save_CXX="$CXX"
6103 CXX="$CXX $switch"
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6108 // If the compiler admits that it is not ready for C++11, why torture it?
6109 // Hopefully, this will speed up the test.
6111 #ifndef __cplusplus
6113 #error "This is not a C++ compiler"
6115 #elif __cplusplus < 201103L
6117 #error "This is not a C++11 compiler"
6119 #else
6121 namespace cxx11
6124 namespace test_static_assert
6127 template <typename T>
6128 struct check
6130 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6135 namespace test_final_override
6138 struct Base
6140 virtual ~Base() {}
6141 virtual void f() {}
6144 struct Derived : public Base
6146 virtual ~Derived() override {}
6147 virtual void f() override {}
6152 namespace test_double_right_angle_brackets
6155 template < typename T >
6156 struct check {};
6158 typedef check<void> single_type;
6159 typedef check<check<void>> double_type;
6160 typedef check<check<check<void>>> triple_type;
6161 typedef check<check<check<check<void>>>> quadruple_type;
6165 namespace test_decltype
6171 int a = 1;
6172 decltype(a) b = 2;
6173 return a + b;
6178 namespace test_type_deduction
6181 template < typename T1, typename T2 >
6182 struct is_same
6184 static const bool value = false;
6187 template < typename T >
6188 struct is_same<T, T>
6190 static const bool value = true;
6193 template < typename T1, typename T2 >
6194 auto
6195 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6197 return a1 + a2;
6201 test(const int c, volatile int v)
6203 static_assert(is_same<int, decltype(0)>::value == true, "");
6204 static_assert(is_same<int, decltype(c)>::value == false, "");
6205 static_assert(is_same<int, decltype(v)>::value == false, "");
6206 auto ac = c;
6207 auto av = v;
6208 auto sumi = ac + av + 'x';
6209 auto sumf = ac + av + 1.0;
6210 static_assert(is_same<int, decltype(ac)>::value == true, "");
6211 static_assert(is_same<int, decltype(av)>::value == true, "");
6212 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6213 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6214 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6215 return (sumf > 0.0) ? sumi : add(c, v);
6220 namespace test_noexcept
6223 int f() { return 0; }
6224 int g() noexcept { return 0; }
6226 static_assert(noexcept(f()) == false, "");
6227 static_assert(noexcept(g()) == true, "");
6231 namespace test_constexpr
6234 template < typename CharT >
6235 unsigned long constexpr
6236 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6238 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6241 template < typename CharT >
6242 unsigned long constexpr
6243 strlen_c(const CharT *const s) noexcept
6245 return strlen_c_r(s, 0UL);
6248 static_assert(strlen_c("") == 0UL, "");
6249 static_assert(strlen_c("1") == 1UL, "");
6250 static_assert(strlen_c("example") == 7UL, "");
6251 static_assert(strlen_c("another\0example") == 7UL, "");
6255 namespace test_rvalue_references
6258 template < int N >
6259 struct answer
6261 static constexpr int value = N;
6264 answer<1> f(int&) { return answer<1>(); }
6265 answer<2> f(const int&) { return answer<2>(); }
6266 answer<3> f(int&&) { return answer<3>(); }
6268 void
6269 test()
6271 int i = 0;
6272 const int c = 0;
6273 static_assert(decltype(f(i))::value == 1, "");
6274 static_assert(decltype(f(c))::value == 2, "");
6275 static_assert(decltype(f(0))::value == 3, "");
6280 namespace test_uniform_initialization
6283 struct test
6285 static const int zero {};
6286 static const int one {1};
6289 static_assert(test::zero == 0, "");
6290 static_assert(test::one == 1, "");
6294 namespace test_lambdas
6297 void
6298 test1()
6300 auto lambda1 = [](){};
6301 auto lambda2 = lambda1;
6302 lambda1();
6303 lambda2();
6307 test2()
6309 auto a = [](int i, int j){ return i + j; }(1, 2);
6310 auto b = []() -> int { return '0'; }();
6311 auto c = [=](){ return a + b; }();
6312 auto d = [&](){ return c; }();
6313 auto e = [a, &b](int x) mutable {
6314 const auto identity = [](int y){ return y; };
6315 for (auto i = 0; i < a; ++i)
6316 a += b--;
6317 return x + identity(a + b);
6318 }(0);
6319 return a + b + c + d + e;
6323 test3()
6325 const auto nullary = [](){ return 0; };
6326 const auto unary = [](int x){ return x; };
6327 using nullary_t = decltype(nullary);
6328 using unary_t = decltype(unary);
6329 const auto higher1st = [](nullary_t f){ return f(); };
6330 const auto higher2nd = [unary](nullary_t f1){
6331 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6333 return higher1st(nullary) + higher2nd(nullary)(unary);
6338 namespace test_variadic_templates
6341 template <int...>
6342 struct sum;
6344 template <int N0, int... N1toN>
6345 struct sum<N0, N1toN...>
6347 static constexpr auto value = N0 + sum<N1toN...>::value;
6350 template <>
6351 struct sum<>
6353 static constexpr auto value = 0;
6356 static_assert(sum<>::value == 0, "");
6357 static_assert(sum<1>::value == 1, "");
6358 static_assert(sum<23>::value == 23, "");
6359 static_assert(sum<1, 2>::value == 3, "");
6360 static_assert(sum<5, 5, 11>::value == 21, "");
6361 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6365 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6366 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6367 // because of this.
6368 namespace test_template_alias_sfinae
6371 struct foo {};
6373 template<typename T>
6374 using member = typename T::member_type;
6376 template<typename T>
6377 void func(...) {}
6379 template<typename T>
6380 void func(member<T>*) {}
6382 void test();
6384 void test() { func<foo>(0); }
6388 } // namespace cxx11
6390 #endif // __cplusplus >= 201103L
6394 _ACEOF
6395 if ac_fn_cxx_try_compile "$LINENO"; then :
6396 eval $cachevar=yes
6397 else
6398 eval $cachevar=no
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 CXX="$ac_save_CXX"
6403 eval ac_res=\$$cachevar
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6405 $as_echo "$ac_res" >&6; }
6406 if eval test x\$$cachevar = xyes; then
6407 CXX="$CXX $switch"
6408 if test -n "$CXXCPP" ; then
6409 CXXCPP="$CXXCPP $switch"
6411 ac_success=yes
6412 break
6414 done
6417 if test x$ac_success = xno; then
6418 for alternative in ${ax_cxx_compile_alternatives}; do
6419 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6420 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6422 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6423 if eval \${$cachevar+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 ac_save_CXX="$CXX"
6427 CXX="$CXX $switch"
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6432 // If the compiler admits that it is not ready for C++11, why torture it?
6433 // Hopefully, this will speed up the test.
6435 #ifndef __cplusplus
6437 #error "This is not a C++ compiler"
6439 #elif __cplusplus < 201103L
6441 #error "This is not a C++11 compiler"
6443 #else
6445 namespace cxx11
6448 namespace test_static_assert
6451 template <typename T>
6452 struct check
6454 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6459 namespace test_final_override
6462 struct Base
6464 virtual ~Base() {}
6465 virtual void f() {}
6468 struct Derived : public Base
6470 virtual ~Derived() override {}
6471 virtual void f() override {}
6476 namespace test_double_right_angle_brackets
6479 template < typename T >
6480 struct check {};
6482 typedef check<void> single_type;
6483 typedef check<check<void>> double_type;
6484 typedef check<check<check<void>>> triple_type;
6485 typedef check<check<check<check<void>>>> quadruple_type;
6489 namespace test_decltype
6495 int a = 1;
6496 decltype(a) b = 2;
6497 return a + b;
6502 namespace test_type_deduction
6505 template < typename T1, typename T2 >
6506 struct is_same
6508 static const bool value = false;
6511 template < typename T >
6512 struct is_same<T, T>
6514 static const bool value = true;
6517 template < typename T1, typename T2 >
6518 auto
6519 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6521 return a1 + a2;
6525 test(const int c, volatile int v)
6527 static_assert(is_same<int, decltype(0)>::value == true, "");
6528 static_assert(is_same<int, decltype(c)>::value == false, "");
6529 static_assert(is_same<int, decltype(v)>::value == false, "");
6530 auto ac = c;
6531 auto av = v;
6532 auto sumi = ac + av + 'x';
6533 auto sumf = ac + av + 1.0;
6534 static_assert(is_same<int, decltype(ac)>::value == true, "");
6535 static_assert(is_same<int, decltype(av)>::value == true, "");
6536 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6537 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6538 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6539 return (sumf > 0.0) ? sumi : add(c, v);
6544 namespace test_noexcept
6547 int f() { return 0; }
6548 int g() noexcept { return 0; }
6550 static_assert(noexcept(f()) == false, "");
6551 static_assert(noexcept(g()) == true, "");
6555 namespace test_constexpr
6558 template < typename CharT >
6559 unsigned long constexpr
6560 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6562 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6565 template < typename CharT >
6566 unsigned long constexpr
6567 strlen_c(const CharT *const s) noexcept
6569 return strlen_c_r(s, 0UL);
6572 static_assert(strlen_c("") == 0UL, "");
6573 static_assert(strlen_c("1") == 1UL, "");
6574 static_assert(strlen_c("example") == 7UL, "");
6575 static_assert(strlen_c("another\0example") == 7UL, "");
6579 namespace test_rvalue_references
6582 template < int N >
6583 struct answer
6585 static constexpr int value = N;
6588 answer<1> f(int&) { return answer<1>(); }
6589 answer<2> f(const int&) { return answer<2>(); }
6590 answer<3> f(int&&) { return answer<3>(); }
6592 void
6593 test()
6595 int i = 0;
6596 const int c = 0;
6597 static_assert(decltype(f(i))::value == 1, "");
6598 static_assert(decltype(f(c))::value == 2, "");
6599 static_assert(decltype(f(0))::value == 3, "");
6604 namespace test_uniform_initialization
6607 struct test
6609 static const int zero {};
6610 static const int one {1};
6613 static_assert(test::zero == 0, "");
6614 static_assert(test::one == 1, "");
6618 namespace test_lambdas
6621 void
6622 test1()
6624 auto lambda1 = [](){};
6625 auto lambda2 = lambda1;
6626 lambda1();
6627 lambda2();
6631 test2()
6633 auto a = [](int i, int j){ return i + j; }(1, 2);
6634 auto b = []() -> int { return '0'; }();
6635 auto c = [=](){ return a + b; }();
6636 auto d = [&](){ return c; }();
6637 auto e = [a, &b](int x) mutable {
6638 const auto identity = [](int y){ return y; };
6639 for (auto i = 0; i < a; ++i)
6640 a += b--;
6641 return x + identity(a + b);
6642 }(0);
6643 return a + b + c + d + e;
6647 test3()
6649 const auto nullary = [](){ return 0; };
6650 const auto unary = [](int x){ return x; };
6651 using nullary_t = decltype(nullary);
6652 using unary_t = decltype(unary);
6653 const auto higher1st = [](nullary_t f){ return f(); };
6654 const auto higher2nd = [unary](nullary_t f1){
6655 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6657 return higher1st(nullary) + higher2nd(nullary)(unary);
6662 namespace test_variadic_templates
6665 template <int...>
6666 struct sum;
6668 template <int N0, int... N1toN>
6669 struct sum<N0, N1toN...>
6671 static constexpr auto value = N0 + sum<N1toN...>::value;
6674 template <>
6675 struct sum<>
6677 static constexpr auto value = 0;
6680 static_assert(sum<>::value == 0, "");
6681 static_assert(sum<1>::value == 1, "");
6682 static_assert(sum<23>::value == 23, "");
6683 static_assert(sum<1, 2>::value == 3, "");
6684 static_assert(sum<5, 5, 11>::value == 21, "");
6685 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6689 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6690 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6691 // because of this.
6692 namespace test_template_alias_sfinae
6695 struct foo {};
6697 template<typename T>
6698 using member = typename T::member_type;
6700 template<typename T>
6701 void func(...) {}
6703 template<typename T>
6704 void func(member<T>*) {}
6706 void test();
6708 void test() { func<foo>(0); }
6712 } // namespace cxx11
6714 #endif // __cplusplus >= 201103L
6718 _ACEOF
6719 if ac_fn_cxx_try_compile "$LINENO"; then :
6720 eval $cachevar=yes
6721 else
6722 eval $cachevar=no
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 CXX="$ac_save_CXX"
6727 eval ac_res=\$$cachevar
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6729 $as_echo "$ac_res" >&6; }
6730 if eval test x\$$cachevar = xyes; then
6731 CXX="$CXX $switch"
6732 if test -n "$CXXCPP" ; then
6733 CXXCPP="$CXXCPP $switch"
6735 ac_success=yes
6736 break
6738 done
6739 if test x$ac_success = xyes; then
6740 break
6742 done
6745 ac_ext=c
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6751 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6752 if test x$ac_success = xno; then
6753 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6756 if test x$ac_success = xno; then
6757 HAVE_CXX11=0
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6759 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6760 else
6761 HAVE_CXX11=1
6763 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6769 if test "${build}" != "${host}"; then
6770 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6771 ac_ext=cpp
6772 ac_cpp='$CXXCPP $CPPFLAGS'
6773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6776 ac_success=no
6777 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6778 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6779 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6780 CXX="$CXX_FOR_BUILD"
6781 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6782 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6784 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6785 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6792 // If the compiler admits that it is not ready for C++11, why torture it?
6793 // Hopefully, this will speed up the test.
6795 #ifndef __cplusplus
6797 #error "This is not a C++ compiler"
6799 #elif __cplusplus < 201103L
6801 #error "This is not a C++11 compiler"
6803 #else
6805 namespace cxx11
6808 namespace test_static_assert
6811 template <typename T>
6812 struct check
6814 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6819 namespace test_final_override
6822 struct Base
6824 virtual ~Base() {}
6825 virtual void f() {}
6828 struct Derived : public Base
6830 virtual ~Derived() override {}
6831 virtual void f() override {}
6836 namespace test_double_right_angle_brackets
6839 template < typename T >
6840 struct check {};
6842 typedef check<void> single_type;
6843 typedef check<check<void>> double_type;
6844 typedef check<check<check<void>>> triple_type;
6845 typedef check<check<check<check<void>>>> quadruple_type;
6849 namespace test_decltype
6855 int a = 1;
6856 decltype(a) b = 2;
6857 return a + b;
6862 namespace test_type_deduction
6865 template < typename T1, typename T2 >
6866 struct is_same
6868 static const bool value = false;
6871 template < typename T >
6872 struct is_same<T, T>
6874 static const bool value = true;
6877 template < typename T1, typename T2 >
6878 auto
6879 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6881 return a1 + a2;
6885 test(const int c, volatile int v)
6887 static_assert(is_same<int, decltype(0)>::value == true, "");
6888 static_assert(is_same<int, decltype(c)>::value == false, "");
6889 static_assert(is_same<int, decltype(v)>::value == false, "");
6890 auto ac = c;
6891 auto av = v;
6892 auto sumi = ac + av + 'x';
6893 auto sumf = ac + av + 1.0;
6894 static_assert(is_same<int, decltype(ac)>::value == true, "");
6895 static_assert(is_same<int, decltype(av)>::value == true, "");
6896 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6897 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6898 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6899 return (sumf > 0.0) ? sumi : add(c, v);
6904 namespace test_noexcept
6907 int f() { return 0; }
6908 int g() noexcept { return 0; }
6910 static_assert(noexcept(f()) == false, "");
6911 static_assert(noexcept(g()) == true, "");
6915 namespace test_constexpr
6918 template < typename CharT >
6919 unsigned long constexpr
6920 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6922 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6925 template < typename CharT >
6926 unsigned long constexpr
6927 strlen_c(const CharT *const s) noexcept
6929 return strlen_c_r(s, 0UL);
6932 static_assert(strlen_c("") == 0UL, "");
6933 static_assert(strlen_c("1") == 1UL, "");
6934 static_assert(strlen_c("example") == 7UL, "");
6935 static_assert(strlen_c("another\0example") == 7UL, "");
6939 namespace test_rvalue_references
6942 template < int N >
6943 struct answer
6945 static constexpr int value = N;
6948 answer<1> f(int&) { return answer<1>(); }
6949 answer<2> f(const int&) { return answer<2>(); }
6950 answer<3> f(int&&) { return answer<3>(); }
6952 void
6953 test()
6955 int i = 0;
6956 const int c = 0;
6957 static_assert(decltype(f(i))::value == 1, "");
6958 static_assert(decltype(f(c))::value == 2, "");
6959 static_assert(decltype(f(0))::value == 3, "");
6964 namespace test_uniform_initialization
6967 struct test
6969 static const int zero {};
6970 static const int one {1};
6973 static_assert(test::zero == 0, "");
6974 static_assert(test::one == 1, "");
6978 namespace test_lambdas
6981 void
6982 test1()
6984 auto lambda1 = [](){};
6985 auto lambda2 = lambda1;
6986 lambda1();
6987 lambda2();
6991 test2()
6993 auto a = [](int i, int j){ return i + j; }(1, 2);
6994 auto b = []() -> int { return '0'; }();
6995 auto c = [=](){ return a + b; }();
6996 auto d = [&](){ return c; }();
6997 auto e = [a, &b](int x) mutable {
6998 const auto identity = [](int y){ return y; };
6999 for (auto i = 0; i < a; ++i)
7000 a += b--;
7001 return x + identity(a + b);
7002 }(0);
7003 return a + b + c + d + e;
7007 test3()
7009 const auto nullary = [](){ return 0; };
7010 const auto unary = [](int x){ return x; };
7011 using nullary_t = decltype(nullary);
7012 using unary_t = decltype(unary);
7013 const auto higher1st = [](nullary_t f){ return f(); };
7014 const auto higher2nd = [unary](nullary_t f1){
7015 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7017 return higher1st(nullary) + higher2nd(nullary)(unary);
7022 namespace test_variadic_templates
7025 template <int...>
7026 struct sum;
7028 template <int N0, int... N1toN>
7029 struct sum<N0, N1toN...>
7031 static constexpr auto value = N0 + sum<N1toN...>::value;
7034 template <>
7035 struct sum<>
7037 static constexpr auto value = 0;
7040 static_assert(sum<>::value == 0, "");
7041 static_assert(sum<1>::value == 1, "");
7042 static_assert(sum<23>::value == 23, "");
7043 static_assert(sum<1, 2>::value == 3, "");
7044 static_assert(sum<5, 5, 11>::value == 21, "");
7045 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7049 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7050 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7051 // because of this.
7052 namespace test_template_alias_sfinae
7055 struct foo {};
7057 template<typename T>
7058 using member = typename T::member_type;
7060 template<typename T>
7061 void func(...) {}
7063 template<typename T>
7064 void func(member<T>*) {}
7066 void test();
7068 void test() { func<foo>(0); }
7072 } // namespace cxx11
7074 #endif // __cplusplus >= 201103L
7078 _ACEOF
7079 if ac_fn_cxx_try_compile "$LINENO"; then :
7080 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7081 else
7082 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7087 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7088 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7089 ac_success=yes
7092 if test x$ac_success = xno; then
7093 for alternative in ${ax_cxx_compile_alternatives}; do
7094 switch="-std=gnu++${alternative}"
7095 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7097 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7098 if eval \${$cachevar+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 ac_save_CXX="$CXX"
7102 CXX="$CXX $switch"
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7107 // If the compiler admits that it is not ready for C++11, why torture it?
7108 // Hopefully, this will speed up the test.
7110 #ifndef __cplusplus
7112 #error "This is not a C++ compiler"
7114 #elif __cplusplus < 201103L
7116 #error "This is not a C++11 compiler"
7118 #else
7120 namespace cxx11
7123 namespace test_static_assert
7126 template <typename T>
7127 struct check
7129 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7134 namespace test_final_override
7137 struct Base
7139 virtual ~Base() {}
7140 virtual void f() {}
7143 struct Derived : public Base
7145 virtual ~Derived() override {}
7146 virtual void f() override {}
7151 namespace test_double_right_angle_brackets
7154 template < typename T >
7155 struct check {};
7157 typedef check<void> single_type;
7158 typedef check<check<void>> double_type;
7159 typedef check<check<check<void>>> triple_type;
7160 typedef check<check<check<check<void>>>> quadruple_type;
7164 namespace test_decltype
7170 int a = 1;
7171 decltype(a) b = 2;
7172 return a + b;
7177 namespace test_type_deduction
7180 template < typename T1, typename T2 >
7181 struct is_same
7183 static const bool value = false;
7186 template < typename T >
7187 struct is_same<T, T>
7189 static const bool value = true;
7192 template < typename T1, typename T2 >
7193 auto
7194 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7196 return a1 + a2;
7200 test(const int c, volatile int v)
7202 static_assert(is_same<int, decltype(0)>::value == true, "");
7203 static_assert(is_same<int, decltype(c)>::value == false, "");
7204 static_assert(is_same<int, decltype(v)>::value == false, "");
7205 auto ac = c;
7206 auto av = v;
7207 auto sumi = ac + av + 'x';
7208 auto sumf = ac + av + 1.0;
7209 static_assert(is_same<int, decltype(ac)>::value == true, "");
7210 static_assert(is_same<int, decltype(av)>::value == true, "");
7211 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7212 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7213 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7214 return (sumf > 0.0) ? sumi : add(c, v);
7219 namespace test_noexcept
7222 int f() { return 0; }
7223 int g() noexcept { return 0; }
7225 static_assert(noexcept(f()) == false, "");
7226 static_assert(noexcept(g()) == true, "");
7230 namespace test_constexpr
7233 template < typename CharT >
7234 unsigned long constexpr
7235 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7237 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7240 template < typename CharT >
7241 unsigned long constexpr
7242 strlen_c(const CharT *const s) noexcept
7244 return strlen_c_r(s, 0UL);
7247 static_assert(strlen_c("") == 0UL, "");
7248 static_assert(strlen_c("1") == 1UL, "");
7249 static_assert(strlen_c("example") == 7UL, "");
7250 static_assert(strlen_c("another\0example") == 7UL, "");
7254 namespace test_rvalue_references
7257 template < int N >
7258 struct answer
7260 static constexpr int value = N;
7263 answer<1> f(int&) { return answer<1>(); }
7264 answer<2> f(const int&) { return answer<2>(); }
7265 answer<3> f(int&&) { return answer<3>(); }
7267 void
7268 test()
7270 int i = 0;
7271 const int c = 0;
7272 static_assert(decltype(f(i))::value == 1, "");
7273 static_assert(decltype(f(c))::value == 2, "");
7274 static_assert(decltype(f(0))::value == 3, "");
7279 namespace test_uniform_initialization
7282 struct test
7284 static const int zero {};
7285 static const int one {1};
7288 static_assert(test::zero == 0, "");
7289 static_assert(test::one == 1, "");
7293 namespace test_lambdas
7296 void
7297 test1()
7299 auto lambda1 = [](){};
7300 auto lambda2 = lambda1;
7301 lambda1();
7302 lambda2();
7306 test2()
7308 auto a = [](int i, int j){ return i + j; }(1, 2);
7309 auto b = []() -> int { return '0'; }();
7310 auto c = [=](){ return a + b; }();
7311 auto d = [&](){ return c; }();
7312 auto e = [a, &b](int x) mutable {
7313 const auto identity = [](int y){ return y; };
7314 for (auto i = 0; i < a; ++i)
7315 a += b--;
7316 return x + identity(a + b);
7317 }(0);
7318 return a + b + c + d + e;
7322 test3()
7324 const auto nullary = [](){ return 0; };
7325 const auto unary = [](int x){ return x; };
7326 using nullary_t = decltype(nullary);
7327 using unary_t = decltype(unary);
7328 const auto higher1st = [](nullary_t f){ return f(); };
7329 const auto higher2nd = [unary](nullary_t f1){
7330 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7332 return higher1st(nullary) + higher2nd(nullary)(unary);
7337 namespace test_variadic_templates
7340 template <int...>
7341 struct sum;
7343 template <int N0, int... N1toN>
7344 struct sum<N0, N1toN...>
7346 static constexpr auto value = N0 + sum<N1toN...>::value;
7349 template <>
7350 struct sum<>
7352 static constexpr auto value = 0;
7355 static_assert(sum<>::value == 0, "");
7356 static_assert(sum<1>::value == 1, "");
7357 static_assert(sum<23>::value == 23, "");
7358 static_assert(sum<1, 2>::value == 3, "");
7359 static_assert(sum<5, 5, 11>::value == 21, "");
7360 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7364 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7365 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7366 // because of this.
7367 namespace test_template_alias_sfinae
7370 struct foo {};
7372 template<typename T>
7373 using member = typename T::member_type;
7375 template<typename T>
7376 void func(...) {}
7378 template<typename T>
7379 void func(member<T>*) {}
7381 void test();
7383 void test() { func<foo>(0); }
7387 } // namespace cxx11
7389 #endif // __cplusplus >= 201103L
7393 _ACEOF
7394 if ac_fn_cxx_try_compile "$LINENO"; then :
7395 eval $cachevar=yes
7396 else
7397 eval $cachevar=no
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 CXX="$ac_save_CXX"
7402 eval ac_res=\$$cachevar
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7404 $as_echo "$ac_res" >&6; }
7405 if eval test x\$$cachevar = xyes; then
7406 CXX="$CXX $switch"
7407 if test -n "$CXXCPP" ; then
7408 CXXCPP="$CXXCPP $switch"
7410 ac_success=yes
7411 break
7413 done
7416 if test x$ac_success = xno; then
7417 for alternative in ${ax_cxx_compile_alternatives}; do
7418 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7419 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7421 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7422 if eval \${$cachevar+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 ac_save_CXX="$CXX"
7426 CXX="$CXX $switch"
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7431 // If the compiler admits that it is not ready for C++11, why torture it?
7432 // Hopefully, this will speed up the test.
7434 #ifndef __cplusplus
7436 #error "This is not a C++ compiler"
7438 #elif __cplusplus < 201103L
7440 #error "This is not a C++11 compiler"
7442 #else
7444 namespace cxx11
7447 namespace test_static_assert
7450 template <typename T>
7451 struct check
7453 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7458 namespace test_final_override
7461 struct Base
7463 virtual ~Base() {}
7464 virtual void f() {}
7467 struct Derived : public Base
7469 virtual ~Derived() override {}
7470 virtual void f() override {}
7475 namespace test_double_right_angle_brackets
7478 template < typename T >
7479 struct check {};
7481 typedef check<void> single_type;
7482 typedef check<check<void>> double_type;
7483 typedef check<check<check<void>>> triple_type;
7484 typedef check<check<check<check<void>>>> quadruple_type;
7488 namespace test_decltype
7494 int a = 1;
7495 decltype(a) b = 2;
7496 return a + b;
7501 namespace test_type_deduction
7504 template < typename T1, typename T2 >
7505 struct is_same
7507 static const bool value = false;
7510 template < typename T >
7511 struct is_same<T, T>
7513 static const bool value = true;
7516 template < typename T1, typename T2 >
7517 auto
7518 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7520 return a1 + a2;
7524 test(const int c, volatile int v)
7526 static_assert(is_same<int, decltype(0)>::value == true, "");
7527 static_assert(is_same<int, decltype(c)>::value == false, "");
7528 static_assert(is_same<int, decltype(v)>::value == false, "");
7529 auto ac = c;
7530 auto av = v;
7531 auto sumi = ac + av + 'x';
7532 auto sumf = ac + av + 1.0;
7533 static_assert(is_same<int, decltype(ac)>::value == true, "");
7534 static_assert(is_same<int, decltype(av)>::value == true, "");
7535 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7536 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7537 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7538 return (sumf > 0.0) ? sumi : add(c, v);
7543 namespace test_noexcept
7546 int f() { return 0; }
7547 int g() noexcept { return 0; }
7549 static_assert(noexcept(f()) == false, "");
7550 static_assert(noexcept(g()) == true, "");
7554 namespace test_constexpr
7557 template < typename CharT >
7558 unsigned long constexpr
7559 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7561 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7564 template < typename CharT >
7565 unsigned long constexpr
7566 strlen_c(const CharT *const s) noexcept
7568 return strlen_c_r(s, 0UL);
7571 static_assert(strlen_c("") == 0UL, "");
7572 static_assert(strlen_c("1") == 1UL, "");
7573 static_assert(strlen_c("example") == 7UL, "");
7574 static_assert(strlen_c("another\0example") == 7UL, "");
7578 namespace test_rvalue_references
7581 template < int N >
7582 struct answer
7584 static constexpr int value = N;
7587 answer<1> f(int&) { return answer<1>(); }
7588 answer<2> f(const int&) { return answer<2>(); }
7589 answer<3> f(int&&) { return answer<3>(); }
7591 void
7592 test()
7594 int i = 0;
7595 const int c = 0;
7596 static_assert(decltype(f(i))::value == 1, "");
7597 static_assert(decltype(f(c))::value == 2, "");
7598 static_assert(decltype(f(0))::value == 3, "");
7603 namespace test_uniform_initialization
7606 struct test
7608 static const int zero {};
7609 static const int one {1};
7612 static_assert(test::zero == 0, "");
7613 static_assert(test::one == 1, "");
7617 namespace test_lambdas
7620 void
7621 test1()
7623 auto lambda1 = [](){};
7624 auto lambda2 = lambda1;
7625 lambda1();
7626 lambda2();
7630 test2()
7632 auto a = [](int i, int j){ return i + j; }(1, 2);
7633 auto b = []() -> int { return '0'; }();
7634 auto c = [=](){ return a + b; }();
7635 auto d = [&](){ return c; }();
7636 auto e = [a, &b](int x) mutable {
7637 const auto identity = [](int y){ return y; };
7638 for (auto i = 0; i < a; ++i)
7639 a += b--;
7640 return x + identity(a + b);
7641 }(0);
7642 return a + b + c + d + e;
7646 test3()
7648 const auto nullary = [](){ return 0; };
7649 const auto unary = [](int x){ return x; };
7650 using nullary_t = decltype(nullary);
7651 using unary_t = decltype(unary);
7652 const auto higher1st = [](nullary_t f){ return f(); };
7653 const auto higher2nd = [unary](nullary_t f1){
7654 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7656 return higher1st(nullary) + higher2nd(nullary)(unary);
7661 namespace test_variadic_templates
7664 template <int...>
7665 struct sum;
7667 template <int N0, int... N1toN>
7668 struct sum<N0, N1toN...>
7670 static constexpr auto value = N0 + sum<N1toN...>::value;
7673 template <>
7674 struct sum<>
7676 static constexpr auto value = 0;
7679 static_assert(sum<>::value == 0, "");
7680 static_assert(sum<1>::value == 1, "");
7681 static_assert(sum<23>::value == 23, "");
7682 static_assert(sum<1, 2>::value == 3, "");
7683 static_assert(sum<5, 5, 11>::value == 21, "");
7684 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7688 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7689 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7690 // because of this.
7691 namespace test_template_alias_sfinae
7694 struct foo {};
7696 template<typename T>
7697 using member = typename T::member_type;
7699 template<typename T>
7700 void func(...) {}
7702 template<typename T>
7703 void func(member<T>*) {}
7705 void test();
7707 void test() { func<foo>(0); }
7711 } // namespace cxx11
7713 #endif // __cplusplus >= 201103L
7717 _ACEOF
7718 if ac_fn_cxx_try_compile "$LINENO"; then :
7719 eval $cachevar=yes
7720 else
7721 eval $cachevar=no
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 CXX="$ac_save_CXX"
7726 eval ac_res=\$$cachevar
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7728 $as_echo "$ac_res" >&6; }
7729 if eval test x\$$cachevar = xyes; then
7730 CXX="$CXX $switch"
7731 if test -n "$CXXCPP" ; then
7732 CXXCPP="$CXXCPP $switch"
7734 ac_success=yes
7735 break
7737 done
7738 if test x$ac_success = xyes; then
7739 break
7741 done
7743 CXX_FOR_BUILD="$CXX"
7744 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7745 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7746 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7747 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7748 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7749 ac_ext=c
7750 ac_cpp='$CPP $CPPFLAGS'
7751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7756 if test x$ac_success = xno; then
7757 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7760 if test x$ac_success = xno; then
7761 HAVE_CXX11_FOR_BUILD=0
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7763 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7764 else
7765 HAVE_CXX11_FOR_BUILD=1
7767 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7775 # Check whether --enable-pgo-build was given.
7776 if test "${enable_pgo_build+set}" = set; then :
7777 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7778 else
7779 enable_pgo_build=no
7783 # Issue errors and warnings for invalid/strange PGO build combinations.
7784 case "$have_compiler:$host:$target:$enable_pgo_build" in
7785 *:*:*:no) ;;
7787 # Allow the PGO build only if we aren't building a compiler and
7788 # we are in a native configuration.
7789 no:$build:$build:yes | no:$build:$build:lto) ;;
7791 # Disallow the PGO bootstrap if we are building a compiler.
7792 yes:*:*:yes | yes:*:*:lto)
7793 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7796 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7798 esac
7800 if test "$enable_pgo_build" != "no"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7802 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7803 old_CFLAGS="$CFLAGS"
7804 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7805 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 int foo;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7813 else
7814 PGO_BUILD_GEN_CFLAGS=
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 CFLAGS="$old_CFLAGS"
7818 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7820 $as_echo "yes" >&6; }
7821 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7828 if test "$enable_pgo_build" = "lto"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7830 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7831 old_CFLAGS="$CFLAGS"
7832 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7833 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 int foo;
7837 _ACEOF
7838 if ac_fn_c_try_compile "$LINENO"; then :
7840 else
7841 PGO_BUILD_LTO_CFLAGS=
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 CFLAGS="$old_CFLAGS"
7845 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7852 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7860 # Used for setting $lt_cv_objdir
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7862 $as_echo_n "checking for objdir... " >&6; }
7863 if ${lt_cv_objdir+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 rm -f .libs 2>/dev/null
7867 mkdir .libs 2>/dev/null
7868 if test -d .libs; then
7869 lt_cv_objdir=.libs
7870 else
7871 # MS-DOS does not allow filenames that begin with a dot.
7872 lt_cv_objdir=_libs
7874 rmdir .libs 2>/dev/null
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7877 $as_echo "$lt_cv_objdir" >&6; }
7878 objdir=$lt_cv_objdir
7884 cat >>confdefs.h <<_ACEOF
7885 #define LT_OBJDIR "$lt_cv_objdir/"
7886 _ACEOF
7890 # Check for GMP, MPFR and MPC
7891 gmplibs="-lmpc -lmpfr -lgmp"
7892 gmpinc=
7893 have_gmp=no
7895 # Specify a location for mpc
7896 # check for this first so it ends up on the link line before mpfr.
7898 # Check whether --with-mpc was given.
7899 if test "${with_mpc+set}" = set; then :
7900 withval=$with_mpc;
7904 # Check whether --with-mpc-include was given.
7905 if test "${with_mpc_include+set}" = set; then :
7906 withval=$with_mpc_include;
7910 # Check whether --with-mpc-lib was given.
7911 if test "${with_mpc_lib+set}" = set; then :
7912 withval=$with_mpc_lib;
7916 if test "x$with_mpc" != x; then
7917 gmplibs="-L$with_mpc/lib $gmplibs"
7918 gmpinc="-I$with_mpc/include $gmpinc"
7920 if test "x$with_mpc_include" != x; then
7921 gmpinc="-I$with_mpc_include $gmpinc"
7923 if test "x$with_mpc_lib" != x; then
7924 gmplibs="-L$with_mpc_lib $gmplibs"
7926 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7927 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7928 gmpinc='-I$$s/mpc/src '"$gmpinc"
7929 # Do not test the mpc version. Assume that it is sufficient, since
7930 # it is in the source tree, and the library has not been built yet
7931 # but it would be included on the link line in the version check below
7932 # hence making the test fail.
7933 have_gmp=yes
7936 # Specify a location for mpfr
7937 # check for this first so it ends up on the link line before gmp.
7939 # Check whether --with-mpfr was given.
7940 if test "${with_mpfr+set}" = set; then :
7941 withval=$with_mpfr;
7945 # Check whether --with-mpfr-include was given.
7946 if test "${with_mpfr_include+set}" = set; then :
7947 withval=$with_mpfr_include;
7951 # Check whether --with-mpfr-lib was given.
7952 if test "${with_mpfr_lib+set}" = set; then :
7953 withval=$with_mpfr_lib;
7957 if test "x$with_mpfr" != x; then
7958 gmplibs="-L$with_mpfr/lib $gmplibs"
7959 gmpinc="-I$with_mpfr/include $gmpinc"
7961 if test "x$with_mpfr_include" != x; then
7962 gmpinc="-I$with_mpfr_include $gmpinc"
7964 if test "x$with_mpfr_lib" != x; then
7965 gmplibs="-L$with_mpfr_lib $gmplibs"
7967 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7968 # MPFR v3.1.0 moved the sources into a src sub-directory.
7969 if ! test -d ${srcdir}/mpfr/src; then
7970 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7972 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7973 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7974 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7975 # Do not test the mpfr version. Assume that it is sufficient, since
7976 # it is in the source tree, and the library has not been built yet
7977 # but it would be included on the link line in the version check below
7978 # hence making the test fail.
7979 have_gmp=yes
7982 # Specify a location for gmp
7984 # Check whether --with-gmp was given.
7985 if test "${with_gmp+set}" = set; then :
7986 withval=$with_gmp;
7990 # Check whether --with-gmp-include was given.
7991 if test "${with_gmp_include+set}" = set; then :
7992 withval=$with_gmp_include;
7996 # Check whether --with-gmp-lib was given.
7997 if test "${with_gmp_lib+set}" = set; then :
7998 withval=$with_gmp_lib;
8003 if test "x$with_gmp" != x; then
8004 gmplibs="-L$with_gmp/lib $gmplibs"
8005 gmpinc="-I$with_gmp/include $gmpinc"
8007 if test "x$with_gmp_include" != x; then
8008 gmpinc="-I$with_gmp_include $gmpinc"
8010 if test "x$with_gmp_lib" != x; then
8011 gmplibs="-L$with_gmp_lib $gmplibs"
8013 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8014 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8015 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8016 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8017 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8018 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8019 # Do not test the gmp version. Assume that it is sufficient, since
8020 # it is in the source tree, and the library has not been built yet
8021 # but it would be included on the link line in the version check below
8022 # hence making the test fail.
8023 have_gmp=yes
8026 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8027 have_gmp=yes
8028 saved_CFLAGS="$CFLAGS"
8029 CFLAGS="$CFLAGS $gmpinc"
8030 # Check for the recommended and required versions of GMP.
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8032 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8035 #include "gmp.h"
8037 main ()
8040 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8041 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8042 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8043 choke me
8044 #endif
8047 return 0;
8049 _ACEOF
8050 if ac_fn_c_try_compile "$LINENO"; then :
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8053 #include <gmp.h>
8055 main ()
8058 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8059 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8060 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8061 choke me
8062 #endif
8065 return 0;
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8070 $as_echo "yes" >&6; }
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8073 $as_echo "buggy but acceptable" >&6; }
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 else
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 $as_echo "no" >&6; }; have_gmp=no
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082 # If we have GMP, check the MPFR version.
8083 if test x"$have_gmp" = xyes; then
8084 # Check for the recommended and required versions of MPFR.
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8086 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 #include <gmp.h>
8090 #include <mpfr.h>
8092 main ()
8095 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8096 choke me
8097 #endif
8100 return 0;
8102 _ACEOF
8103 if ac_fn_c_try_compile "$LINENO"; then :
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 #include <gmp.h>
8107 #include <mpfr.h>
8109 main ()
8112 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8113 choke me
8114 #endif
8117 return 0;
8119 _ACEOF
8120 if ac_fn_c_try_compile "$LINENO"; then :
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8122 $as_echo "yes" >&6; }
8123 else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8125 $as_echo "buggy but acceptable" >&6; }
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }; have_gmp=no
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 # Check for the MPC header version.
8136 if test x"$have_gmp" = xyes ; then
8137 # Check for the recommended and required versions of MPC.
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8139 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142 #include <mpc.h>
8144 main ()
8147 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8148 choke me
8149 #endif
8152 return 0;
8154 _ACEOF
8155 if ac_fn_c_try_compile "$LINENO"; then :
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158 #include <mpc.h>
8160 main ()
8163 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8164 choke me
8165 #endif
8168 return 0;
8170 _ACEOF
8171 if ac_fn_c_try_compile "$LINENO"; then :
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8173 $as_echo "yes" >&6; }
8174 else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8176 $as_echo "buggy but acceptable" >&6; }
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }; have_gmp=no
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 # Now check the MPFR library.
8187 if test x"$have_gmp" = xyes; then
8188 saved_LIBS="$LIBS"
8189 LIBS="$LIBS $gmplibs"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8191 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 #include <mpc.h>
8196 main ()
8199 mpfr_t n;
8200 mpfr_t x;
8201 mpc_t c;
8202 int t;
8203 mpfr_init (n);
8204 mpfr_init (x);
8205 mpfr_atan2 (n, n, x, MPFR_RNDN);
8206 mpfr_erfc (n, x, MPFR_RNDN);
8207 mpfr_subnormalize (x, t, MPFR_RNDN);
8208 mpfr_clear(n);
8209 mpfr_clear(x);
8210 mpc_init2 (c, 53);
8211 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8212 mpc_cosh (c, c, MPC_RNDNN);
8213 mpc_pow (c, c, c, MPC_RNDNN);
8214 mpc_acosh (c, c, MPC_RNDNN);
8215 mpc_clear (c);
8218 return 0;
8220 _ACEOF
8221 if ac_fn_c_try_link "$LINENO"; then :
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8223 $as_echo "yes" >&6; }
8224 else
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }; have_gmp=no
8228 rm -f core conftest.err conftest.$ac_objext \
8229 conftest$ac_exeext conftest.$ac_ext
8230 LIBS="$saved_LIBS"
8233 CFLAGS="$saved_CFLAGS"
8235 # The library versions listed in the error message below should match
8236 # the HARD-minimums enforced above.
8237 if test x$have_gmp != xyes; then
8238 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8239 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8240 their locations. Source code for these libraries can be found at
8241 their respective hosting sites as well as at
8242 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8243 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8244 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8245 make sure that you have installed both the libraries and the header
8246 files. They may be located in separate packages." "$LINENO" 5
8250 # Flags needed for both GMP, MPFR and/or MPC.
8258 # Libraries to use for stage1 or when not bootstrapping.
8260 # Check whether --with-stage1-libs was given.
8261 if test "${with_stage1_libs+set}" = set; then :
8262 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8263 stage1_libs=
8264 else
8265 stage1_libs=$withval
8267 else
8268 stage1_libs=
8273 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8274 # default is yes if gcc is being built; no otherwise. The reason for
8275 # this default is that gdb is sometimes linked against GNU Source
8276 # Highlight, which is a shared library that uses C++ exceptions. In
8277 # this case, -static-libstdc++ will cause crashes.
8279 # Check whether --with-static-standard-libraries was given.
8280 if test "${with_static_standard_libraries+set}" = set; then :
8281 withval=$with_static_standard_libraries;
8282 else
8283 with_static_standard_libraries=auto
8286 if test "$with_static_standard_libraries" = auto; then
8287 with_static_standard_libraries=$have_compiler
8290 # Linker flags to use for stage1 or when not bootstrapping.
8292 # Check whether --with-stage1-ldflags was given.
8293 if test "${with_stage1_ldflags+set}" = set; then :
8294 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8295 stage1_ldflags=
8296 else
8297 stage1_ldflags=$withval
8299 else
8300 stage1_ldflags=
8301 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8302 # if supported. But if the user explicitly specified the libraries to use,
8303 # trust that they are doing what they want.
8304 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8305 -a "$have_static_libs" = yes; then
8306 stage1_ldflags="-static-libstdc++ -static-libgcc"
8312 # Libraries to use for stage2 and later builds.
8314 # Check whether --with-boot-libs was given.
8315 if test "${with_boot_libs+set}" = set; then :
8316 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8317 poststage1_libs=
8318 else
8319 poststage1_libs=$withval
8321 else
8322 poststage1_libs=
8327 # Linker flags to use for stage2 and later builds.
8329 # Check whether --with-boot-ldflags was given.
8330 if test "${with_boot_ldflags+set}" = set; then :
8331 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8332 poststage1_ldflags=
8333 else
8334 poststage1_ldflags=$withval
8336 else
8337 poststage1_ldflags=
8338 # In stages 2 and 3, default to linking libstdc++ and libgcc
8339 # statically. But if the user explicitly specified the libraries to
8340 # use, trust that they are doing what they want.
8341 if test "$poststage1_libs" = ""; then
8342 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8348 # GCC GRAPHITE dependency isl.
8349 # Basic setup is inlined here, actual checks are in config/isl.m4
8352 # Check whether --with-isl was given.
8353 if test "${with_isl+set}" = set; then :
8354 withval=$with_isl;
8358 # Treat --without-isl as a request to disable
8359 # GRAPHITE support and skip all following checks.
8360 if test "x$with_isl" != "xno"; then
8361 # Check for isl
8364 # Check whether --with-isl-include was given.
8365 if test "${with_isl_include+set}" = set; then :
8366 withval=$with_isl_include;
8370 # Check whether --with-isl-lib was given.
8371 if test "${with_isl_lib+set}" = set; then :
8372 withval=$with_isl_lib;
8376 # Check whether --enable-isl-version-check was given.
8377 if test "${enable_isl_version_check+set}" = set; then :
8378 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8379 else
8380 ENABLE_ISL_CHECK=yes
8384 # Initialize isllibs and islinc.
8385 case $with_isl in
8387 isllibs=
8388 islinc=
8390 "" | yes)
8393 isllibs="-L$with_isl/lib"
8394 islinc="-I$with_isl/include"
8396 esac
8397 if test "x${with_isl_include}" != x ; then
8398 islinc="-I$with_isl_include"
8400 if test "x${with_isl_lib}" != x; then
8401 isllibs="-L$with_isl_lib"
8403 if test "x${islinc}" = x && test "x${isllibs}" = x \
8404 && test -d ${srcdir}/isl; then
8405 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8406 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8407 ENABLE_ISL_CHECK=no
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8409 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8412 isllibs="${isllibs} -lisl"
8416 if test "${ENABLE_ISL_CHECK}" = yes ; then
8417 _isl_saved_CFLAGS=$CFLAGS
8418 _isl_saved_LDFLAGS=$LDFLAGS
8419 _isl_saved_LIBS=$LIBS
8421 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8422 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8423 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8426 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 #include <isl/schedule.h>
8431 main ()
8433 isl_options_set_schedule_serialize_sccs (NULL, 0);
8435 return 0;
8437 _ACEOF
8438 if ac_fn_c_try_link "$LINENO"; then :
8439 gcc_cv_isl=yes
8440 else
8441 gcc_cv_isl=no
8443 rm -f core conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8446 $as_echo "$gcc_cv_isl" >&6; }
8448 if test "${gcc_cv_isl}" = no ; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8450 $as_echo "required isl version is 0.15 or later" >&6; }
8453 CFLAGS=$_isl_saved_CFLAGS
8454 LDFLAGS=$_isl_saved_LDFLAGS
8455 LIBS=$_isl_saved_LIBS
8463 if test "x${with_isl}" = xno; then
8464 graphite_requested=no
8465 elif test "x${with_isl}" != x \
8466 || test "x${with_isl_include}" != x \
8467 || test "x${with_isl_lib}" != x ; then
8468 graphite_requested=yes
8469 else
8470 graphite_requested=no
8475 if test "${gcc_cv_isl}" = no ; then
8476 isllibs=
8477 islinc=
8480 if test "${graphite_requested}" = yes \
8481 && test "x${isllibs}" = x \
8482 && test "x${islinc}" = x ; then
8484 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8490 # If the isl check failed, disable builds of in-tree variant of isl
8491 if test "x$with_isl" = xno ||
8492 test "x$gcc_cv_isl" = xno; then
8493 noconfigdirs="$noconfigdirs isl"
8494 islinc=
8500 # Check for LTO support.
8501 # Check whether --enable-lto was given.
8502 if test "${enable_lto+set}" = set; then :
8503 enableval=$enable_lto; enable_lto=$enableval
8504 else
8505 enable_lto=yes; default_enable_lto=yes
8512 target_elf=no
8513 case $target in
8514 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8515 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8516 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8517 nvptx-*-none)
8518 target_elf=no
8521 target_elf=yes
8523 esac
8525 if test $target_elf = yes; then :
8526 # ELF platforms build the lto-plugin always.
8527 build_lto_plugin=yes
8529 else
8530 if test x"$default_enable_lto" = x"yes" ; then
8531 case $target in
8532 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8533 # On other non-ELF platforms, LTO has yet to be validated.
8534 *) enable_lto=no ;;
8535 esac
8536 else
8537 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8538 # It would also be nice to check the binutils support, but we don't
8539 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8540 # warn during gcc/ subconfigure; unless you're bootstrapping with
8541 # -flto it won't be needed until after installation anyway.
8542 case $target in
8543 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8544 *) if test x"$enable_lto" = x"yes"; then
8545 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8548 esac
8550 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8551 # Build it unless LTO was explicitly disabled.
8552 case $target in
8553 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8554 *) ;;
8555 esac
8560 # Check whether --enable-linker-plugin-configure-flags was given.
8561 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8562 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8563 else
8564 extra_linker_plugin_configure_flags=
8568 # Check whether --enable-linker-plugin-flags was given.
8569 if test "${enable_linker_plugin_flags+set}" = set; then :
8570 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8571 else
8572 extra_linker_plugin_flags=
8577 # Enable --enable-host-shared.
8578 # Checked early to determine whether jit is an 'all' language
8579 # Check whether --enable-host-shared was given.
8580 if test "${enable_host_shared+set}" = set; then :
8581 enableval=$enable_host_shared; host_shared=$enableval
8582 case $host in
8583 x86_64-*-darwin* | aarch64-*-darwin*)
8584 if test x$host_shared != xyes ; then
8585 # PIC is the default, and actually cannot be switched off.
8586 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8587 host_shared=yes
8588 fi ;;
8589 *) ;;
8590 esac
8591 else
8592 case $host in
8593 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8594 *) host_shared=no ;;
8595 esac
8601 # If we are building PIC/PIE host executables, and we are building dependent
8602 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8603 # code.
8604 host_libs_picflag=
8605 if test "$host_shared" = "yes";then
8606 host_libs_picflag='--with-pic'
8610 # By default, C and C++ are the only stage 1 languages.
8611 stage1_languages=,c,
8613 # Target libraries that we bootstrap.
8614 bootstrap_target_libs=,target-libgcc,
8616 # Figure out what language subdirectories are present.
8617 # Look if the user specified --enable-languages="..."; if not, use
8618 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8619 # go away some day.
8620 # NB: embedded tabs in this IF block -- do not untabify
8621 if test -d ${srcdir}/gcc; then
8622 if test x"${enable_languages+set}" != xset; then
8623 if test x"${LANGUAGES+set}" = xset; then
8624 enable_languages="${LANGUAGES}"
8625 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8626 else
8627 enable_languages=default
8629 else
8630 if test x"${enable_languages}" = x ||
8631 test x"${enable_languages}" = xyes;
8632 then
8633 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8634 exit 1
8637 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8639 # 'f95' is the old name for the 'fortran' language. We issue a warning
8640 # and make the substitution.
8641 case ,${enable_languages}, in
8642 *,f95,*)
8643 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8644 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8646 esac
8648 # If bootstrapping, C++ must be enabled.
8649 case ",$enable_languages,:$enable_bootstrap" in
8650 *,c++,*:*) ;;
8651 *:yes)
8652 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8653 enable_languages="${enable_languages},c++"
8654 else
8655 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8658 esac
8660 # First scan to see if an enabled language requires some other language.
8661 # We assume that a given config-lang.in will list all the language
8662 # front ends it requires, even if some are required indirectly.
8663 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8664 case ${lang_frag} in
8665 ..) ;;
8666 # The odd quoting in the next line works around
8667 # an apparent bug in bash 1.12 on linux.
8668 ${srcdir}/gcc/[*]/config-lang.in) ;;
8670 # From the config-lang.in, get $language, $lang_requires, and
8671 # $lang_requires_boot_languages.
8672 language=
8673 lang_requires=
8674 lang_requires_boot_languages=
8675 # set srcdir during sourcing lang_frag to the gcc dir.
8676 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8677 # polutes this shell
8678 saved_srcdir=${srcdir}
8679 srcdir=${srcdir}/gcc . ${lang_frag}
8680 srcdir=${saved_srcdir}
8681 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8682 case ,${enable_languages}, in
8683 *,$other,*) ;;
8684 *,default,*) ;;
8685 *,all,*) ;;
8686 *,$language,*)
8687 echo " \`$other' language required by \`$language'; enabling" 1>&2
8688 enable_languages="${enable_languages},${other}"
8690 esac
8691 done
8692 for other in ${lang_requires_boot_languages} ; do
8693 if test "$other" != "c"; then
8694 case ,${enable_stage1_languages}, in
8695 *,$other,*) ;;
8696 *,default,*) ;;
8697 *,all,*) ;;
8699 case ,${enable_languages}, in
8700 *,$language,*)
8701 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8702 enable_stage1_languages="$enable_stage1_languages,${other}"
8704 esac
8706 esac
8708 done
8710 esac
8711 done
8713 new_enable_languages=,c,
8715 # If LTO is enabled, add the LTO front end.
8716 if test "$enable_lto" = "yes" ; then
8717 case ,${enable_languages}, in
8718 *,lto,*) ;;
8719 *) enable_languages="${enable_languages},lto" ;;
8720 esac
8721 if test "${build_lto_plugin}" = "yes" ; then
8722 configdirs="$configdirs lto-plugin"
8726 # If we're building an offloading compiler, add the LTO front end.
8727 if test x"$enable_as_accelerator_for" != x ; then
8728 case ,${enable_languages}, in
8729 *,lto,*) ;;
8730 *) enable_languages="${enable_languages},lto" ;;
8731 esac
8734 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8735 potential_languages=,c,
8737 enabled_target_libs=
8738 disabled_target_libs=
8740 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8741 case ${lang_frag} in
8742 ..) ;;
8743 # The odd quoting in the next line works around
8744 # an apparent bug in bash 1.12 on linux.
8745 ${srcdir}/gcc/[*]/config-lang.in) ;;
8747 # From the config-lang.in, get $language, $target_libs,
8748 # $lang_dirs, $boot_language, and $build_by_default
8749 language=
8750 target_libs=
8751 lang_dirs=
8752 subdir_requires=
8753 boot_language=no
8754 build_by_default=yes
8755 # set srcdir during sourcing. See above about save & restore
8756 saved_srcdir=${srcdir}
8757 srcdir=${srcdir}/gcc . ${lang_frag}
8758 srcdir=${saved_srcdir}
8759 if test x${language} = x; then
8760 echo "${lang_frag} doesn't set \$language." 1>&2
8761 exit 1
8764 if test "$language" = "c++"; then
8765 boot_language=yes
8768 add_this_lang=no
8769 # C is always enabled, so no need to add it again
8770 if test "$language" != "c"; then
8771 case ,${enable_languages}, in
8772 *,${language},*)
8773 # Language was explicitly selected; include it
8774 add_this_lang=yes
8776 *,all,*)
8777 # All languages are enabled
8778 add_this_lang=all
8780 *,default,*)
8781 # 'default' was selected, select it if it is a default language
8782 add_this_lang=${build_by_default}
8784 esac
8787 # Disable languages that need other directories if these aren't available.
8788 for i in $subdir_requires; do
8789 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8790 case ${add_this_lang} in
8791 yes)
8792 # Specifically requested language; tell them.
8793 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8795 all)
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8797 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8798 add_this_lang=unsupported
8801 # Silently disable.
8802 add_this_lang=unsupported
8804 esac
8805 done
8807 # Disable Ada if no preexisting GNAT is available.
8808 case ${add_this_lang}:${language}:${have_gnat} in
8809 yes:ada:no)
8810 # Specifically requested language; tell them.
8811 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8813 all:ada:no)
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8815 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8816 add_this_lang=unsupported
8818 *:ada:no)
8819 # Silently disable.
8820 add_this_lang=unsupported
8822 esac
8824 # Disable D if no preexisting GDC is available.
8825 case ${add_this_lang}:${language}:${have_gdc} in
8826 yes:d:no)
8827 # Specifically requested language; tell them.
8828 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8830 all:d:no)
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8832 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8833 add_this_lang=unsupported
8835 *:d:no)
8836 # Silently disable.
8837 add_this_lang=unsupported
8839 esac
8841 # Disable jit if -enable-host-shared not specified
8842 # but not if building for Mingw. All code in Windows
8843 # is position independent code (PIC).
8844 case $target in
8845 *mingw*) ;;
8847 case ${add_this_lang}:${language}:${host_shared} in
8848 yes:jit:no)
8849 # PR jit/64780: explicitly specify --enable-host-shared
8850 as_fn_error $? "
8851 Enabling language \"jit\" requires --enable-host-shared.
8853 --enable-host-shared typically slows the rest of the compiler down by
8854 a few %, so you must explicitly enable it.
8856 If you want to build both the jit and the regular compiler, it is often
8857 best to do this via two separate configure/builds, in separate
8858 directories, to avoid imposing the performance cost of
8859 --enable-host-shared on the regular compiler." "$LINENO" 5
8861 all:jit:no)
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8863 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8864 add_this_lang=unsupported
8866 *:jit:no)
8867 # Silently disable.
8868 add_this_lang=unsupported
8870 esac
8872 esac
8874 # Disable a language that is unsupported by the target.
8875 case "${add_this_lang}: $unsupported_languages " in
8876 no:*) ;;
8877 unsupported:*) ;;
8878 *:*" $language "*)
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8880 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8881 add_this_lang=unsupported
8883 esac
8885 case $add_this_lang in
8886 unsupported)
8887 # Remove language-dependent dirs.
8888 disabled_target_libs="$disabled_target_libs $target_libs"
8889 noconfigdirs="$noconfigdirs $lang_dirs"
8892 # Remove language-dependent dirs; still show language as supported.
8893 disabled_target_libs="$disabled_target_libs $target_libs"
8894 noconfigdirs="$noconfigdirs $lang_dirs"
8895 potential_languages="${potential_languages}${language},"
8897 all|yes)
8898 new_enable_languages="${new_enable_languages}${language},"
8899 potential_languages="${potential_languages}${language},"
8900 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8901 enabled_target_libs="$enabled_target_libs $target_libs"
8902 case "${boot_language}:,$enable_stage1_languages," in
8903 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8904 # Add to (comma-separated) list of stage 1 languages.
8905 case ",$stage1_languages," in
8906 *,$language,* | ,yes, | ,all,) ;;
8907 *) stage1_languages="${stage1_languages}${language}," ;;
8908 esac
8909 # We need to bootstrap any supporting libraries.
8910 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8912 esac
8914 esac
8916 esac
8917 done
8919 # Add target libraries which are only needed for disabled languages
8920 # to noconfigdirs.
8921 if test -n "$disabled_target_libs"; then
8922 for dir in $disabled_target_libs; do
8923 case " $enabled_target_libs " in
8924 *" ${dir} "*) ;;
8925 *) noconfigdirs="$noconfigdirs $dir" ;;
8926 esac
8927 done
8930 # Check whether --enable-stage1-languages was given.
8931 if test "${enable_stage1_languages+set}" = set; then :
8932 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8933 ,no,|,,)
8934 # Set it to something that will have no effect in the loop below
8935 enable_stage1_languages=c ;;
8936 ,yes,)
8937 enable_stage1_languages=`echo $new_enable_languages | \
8938 sed -e "s/^,//" -e "s/,$//" ` ;;
8939 *,all,*)
8940 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8941 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8942 esac
8944 # Add "good" languages from enable_stage1_languages to stage1_languages,
8945 # while "bad" languages go in missing_languages. Leave no duplicates.
8946 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8947 case $potential_languages in
8948 *,$i,*)
8949 case $stage1_languages in
8950 *,$i,*) ;;
8951 *) stage1_languages="$stage1_languages$i," ;;
8952 esac ;;
8954 case $missing_languages in
8955 *,$i,*) ;;
8956 *) missing_languages="$missing_languages$i," ;;
8957 esac ;;
8958 esac
8959 done
8963 # Remove leading/trailing commas that were added for simplicity
8964 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8965 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8966 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8967 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8969 if test "x$missing_languages" != x; then
8970 as_fn_error $? "
8971 The following requested languages could not be built: ${missing_languages}
8972 Supported languages are: ${potential_languages}" "$LINENO" 5
8974 if test "x$new_enable_languages" != "x$enable_languages"; then
8975 echo The following languages will be built: ${new_enable_languages}
8976 enable_languages="$new_enable_languages"
8980 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8983 # Handle --disable-<component> generically.
8984 for dir in $configdirs $build_configdirs $target_configdirs ; do
8985 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8986 varname=`echo $dirname | sed -e s/+/_/g`
8987 if eval test x\${enable_${varname}} "=" xno ; then
8988 noconfigdirs="$noconfigdirs $dir"
8990 done
8992 # Check for Boehm's garbage collector
8993 # Check whether --enable-objc-gc was given.
8994 if test "${enable_objc_gc+set}" = set; then :
8995 enableval=$enable_objc_gc;
8999 # Check whether --with-target-bdw-gc was given.
9000 if test "${with_target_bdw_gc+set}" = set; then :
9001 withval=$with_target_bdw_gc;
9005 # Check whether --with-target-bdw-gc-include was given.
9006 if test "${with_target_bdw_gc_include+set}" = set; then :
9007 withval=$with_target_bdw_gc_include;
9011 # Check whether --with-target-bdw-gc-lib was given.
9012 if test "${with_target_bdw_gc_lib+set}" = set; then :
9013 withval=$with_target_bdw_gc_lib;
9017 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9019 $as_echo_n "checking for bdw garbage collector... " >&6; }
9020 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9022 $as_echo "using bdw-gc in default locations" >&6; }
9023 else
9024 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9025 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9026 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9027 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9028 else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9030 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9033 esac
9035 # Disable libitm, libsanitizer, libvtv if we're not building C++
9036 case ,${enable_languages}, in
9037 *,c++,*)
9038 # Disable libitm, libsanitizer if we're not building libstdc++
9039 case "${noconfigdirs}" in
9040 *target-libstdc++-v3*)
9041 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9043 *) ;;
9044 esac
9047 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9049 esac
9051 # If gcc/ is not in the source tree then we'll not be building a
9052 # target compiler, assume in that case we don't want to build any
9053 # target libraries or tools.
9055 # This was added primarily for the benefit for binutils-gdb who reuse
9056 # this configure script, but don't always have target tools available.
9057 if test ! -d ${srcdir}/gcc; then
9058 skipdirs="${skipdirs} ${target_configdirs}"
9061 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9062 # $build_configdirs and $target_configdirs.
9063 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9065 notsupp=""
9066 for dir in . $skipdirs $noconfigdirs ; do
9067 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9068 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9069 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9070 if test -r $srcdir/$dirname/configure ; then
9071 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9072 true
9073 else
9074 notsupp="$notsupp $dir"
9078 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9079 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9080 if test -r $srcdir/$dirname/configure ; then
9081 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9082 true
9083 else
9084 notsupp="$notsupp $dir"
9088 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9089 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9090 if test -r $srcdir/$dirname/configure ; then
9091 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9092 true
9093 else
9094 notsupp="$notsupp $dir"
9098 done
9100 # Quietly strip out all directories which aren't configurable in this tree.
9101 # This relies on all configurable subdirectories being autoconfiscated, which
9102 # is now the case.
9103 build_configdirs_all="$build_configdirs"
9104 build_configdirs=
9105 for i in ${build_configdirs_all} ; do
9106 j=`echo $i | sed -e s/build-//g`
9107 if test -f ${srcdir}/$j/configure ; then
9108 build_configdirs="${build_configdirs} $i"
9110 done
9112 configdirs_all="$configdirs"
9113 configdirs=
9114 for i in ${configdirs_all} ; do
9115 if test -f ${srcdir}/$i/configure ; then
9116 configdirs="${configdirs} $i"
9118 done
9120 target_configdirs_all="$target_configdirs"
9121 target_configdirs=
9122 for i in ${target_configdirs_all} ; do
9123 j=`echo $i | sed -e s/target-//g`
9124 if test -f ${srcdir}/$j/configure ; then
9125 target_configdirs="${target_configdirs} $i"
9127 done
9129 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9130 # so we have to add it after the preceding checks.
9131 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9132 then
9133 case " $configdirs " in
9134 *" libiberty "*)
9135 # If we can build libiberty, we can also build libiberty-linker-plugin.
9136 configdirs="$configdirs libiberty-linker-plugin"
9137 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9138 --with-libiberty=../libiberty-linker-plugin";;
9140 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9141 esac
9144 # Sometimes we have special requirements for the host libiberty.
9145 extra_host_libiberty_configure_flags=
9146 case " $configdirs " in
9147 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9148 # When these are to be built as shared libraries, the same applies to
9149 # libiberty.
9150 extra_host_libiberty_configure_flags=--enable-shared
9152 esac
9155 # Sometimes we have special requirements for the host zlib.
9156 extra_host_zlib_configure_flags=
9157 case " $configdirs " in
9158 *" bfd "*)
9159 # When bfd is to be built as a shared library, the same applies to
9160 # zlib.
9161 if test "$enable_shared" = "yes"; then
9162 extra_host_zlib_configure_flags=--enable-host-shared
9165 esac
9168 # Produce a warning message for the subdirs we can't configure.
9169 # This isn't especially interesting in the Cygnus tree, but in the individual
9170 # FSF releases, it's important to let people know when their machine isn't
9171 # supported by the one or two programs in a package.
9173 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9174 # If $appdirs is non-empty, at least one of those directories must still
9175 # be configured, or we error out. (E.g., if the gas release supports a
9176 # specified target in some subdirs but not the gas subdir, we shouldn't
9177 # pretend that all is well.)
9178 if test -n "$appdirs" ; then
9179 for dir in $appdirs ; do
9180 if test -r $dir/Makefile.in ; then
9181 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9182 appdirs=""
9183 break
9185 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9186 appdirs=""
9187 break
9190 done
9191 if test -n "$appdirs" ; then
9192 echo "*** This configuration is not supported by this package." 1>&2
9193 exit 1
9196 # Okay, some application will build, or we don't care to check. Still
9197 # notify of subdirs not getting built.
9198 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9199 echo " ${notsupp}" 1>&2
9200 echo " (Any other directories should still work fine.)" 1>&2
9203 case "$host" in
9204 *msdosdjgpp*)
9205 enable_gdbtk=no ;;
9206 esac
9208 # To find our prefix, in gcc_cv_tool_prefix.
9210 # The user is always right.
9211 if test "${PATH_SEPARATOR+set}" != set; then
9212 echo "#! /bin/sh" >conf$$.sh
9213 echo "exit 0" >>conf$$.sh
9214 chmod +x conf$$.sh
9215 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9216 PATH_SEPARATOR=';'
9217 else
9218 PATH_SEPARATOR=:
9220 rm -f conf$$.sh
9224 get_gcc_base_ver="cat"
9226 # Check whether --with-gcc-major-version-only was given.
9227 if test "${with_gcc_major_version_only+set}" = set; then :
9228 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9229 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9239 if test "x$exec_prefix" = xNONE; then
9240 if test "x$prefix" = xNONE; then
9241 gcc_cv_tool_prefix=$ac_default_prefix
9242 else
9243 gcc_cv_tool_prefix=$prefix
9245 else
9246 gcc_cv_tool_prefix=$exec_prefix
9249 # If there is no compiler in the tree, use the PATH only. In any
9250 # case, if there is no compiler in the tree nobody should use
9251 # AS_FOR_TARGET and LD_FOR_TARGET.
9252 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9253 if test x$with_gcc_major_version_only = xyes ; then
9254 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9255 else
9256 gcc_version=`cat $srcdir/gcc/BASE-VER`
9258 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9259 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9260 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9261 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9262 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9263 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9264 else
9265 gcc_cv_tool_dirs=
9268 if test x$build = x$target && test -n "$md_exec_prefix"; then
9269 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9274 copy_dirs=
9277 # Check whether --with-build-sysroot was given.
9278 if test "${with_build_sysroot+set}" = set; then :
9279 withval=$with_build_sysroot; if test x"$withval" != x ; then
9280 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9282 else
9283 SYSROOT_CFLAGS_FOR_TARGET=
9289 # Check whether --with-debug-prefix-map was given.
9290 if test "${with_debug_prefix_map+set}" = set; then :
9291 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9292 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9293 for debug_map in $withval; do
9294 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9295 done
9297 else
9298 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9303 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9304 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9305 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9306 # We want to ensure that TARGET libraries (which we know are built with
9307 # gcc) are built with "-O2 -g", so include those options when setting
9308 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9309 if test "x$CFLAGS_FOR_TARGET" = x; then
9310 if test "x${is_cross_compiler}" = xyes; then
9311 CFLAGS_FOR_TARGET="-g -O2"
9312 else
9313 CFLAGS_FOR_TARGET=$CFLAGS
9314 case " $CFLAGS " in
9315 *" -O2 "*) ;;
9316 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9317 esac
9318 case " $CFLAGS " in
9319 *" -g "* | *" -g3 "*) ;;
9320 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9321 esac
9326 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9327 if test "x${is_cross_compiler}" = xyes; then
9328 CXXFLAGS_FOR_TARGET="-g -O2"
9329 else
9330 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9331 case " $CXXFLAGS " in
9332 *" -O2 "*) ;;
9333 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9334 esac
9335 case " $CXXFLAGS " in
9336 *" -g "* | *" -g3 "*) ;;
9337 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9338 esac
9345 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9346 # the named directory are copied to $(tooldir)/sys-include.
9347 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9348 if test x${is_cross_compiler} = xno ; then
9349 echo 1>&2 '***' --with-headers is only supported when cross compiling
9350 exit 1
9352 if test x"${with_headers}" != xyes ; then
9353 x=${gcc_cv_tool_prefix}
9354 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9358 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9359 # the name directories are copied to $(tooldir)/lib. Multiple directories
9360 # are permitted.
9361 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9362 if test x${is_cross_compiler} = xno ; then
9363 echo 1>&2 '***' --with-libs is only supported when cross compiling
9364 exit 1
9366 if test x"${with_libs}" != xyes ; then
9367 # Copy the libraries in reverse order, so that files in the first named
9368 # library override files in subsequent libraries.
9369 x=${gcc_cv_tool_prefix}
9370 for l in ${with_libs}; do
9371 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9372 done
9376 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9378 # This is done by determining whether or not the appropriate directory
9379 # is available, and by checking whether or not specific configurations
9380 # have requested that this magic not happen.
9382 # The command line options always override the explicit settings in
9383 # configure.ac, and the settings in configure.ac override this magic.
9385 # If the default for a toolchain is to use GNU as and ld, and you don't
9386 # want to do that, then you should use the --without-gnu-as and
9387 # --without-gnu-ld options for the configure script. Similarly, if
9388 # the default is to use the included zlib and you don't want to do that,
9389 # you should use the --with-system-zlib option for the configure script.
9391 if test x${use_gnu_as} = x &&
9392 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9393 with_gnu_as=yes
9394 extra_host_args="$extra_host_args --with-gnu-as"
9397 if test x${use_gnu_ld} = x &&
9398 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9399 with_gnu_ld=yes
9400 extra_host_args="$extra_host_args --with-gnu-ld"
9403 if test x${use_included_zlib} = x &&
9404 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9406 else
9407 with_system_zlib=yes
9408 extra_host_args="$extra_host_args --with-system-zlib"
9411 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9412 # can detect this case.
9414 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9415 with_newlib=yes
9416 extra_host_args="$extra_host_args --with-newlib"
9419 # Handle ${copy_dirs}
9420 set fnord ${copy_dirs}
9421 shift
9422 while test $# != 0 ; do
9423 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9425 else
9426 echo Copying $1 to $2
9428 # Use the install script to create the directory and all required
9429 # parent directories.
9430 if test -d $2 ; then
9432 else
9433 echo >config.temp
9434 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9437 # Copy the directory, assuming we have tar.
9438 # FIXME: Should we use B in the second tar? Not all systems support it.
9439 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9441 # It is the responsibility of the user to correctly adjust all
9442 # symlinks. If somebody can figure out how to handle them correctly
9443 # here, feel free to add the code.
9445 echo $1 > $2/COPIED
9447 shift; shift
9448 done
9450 # Determine a target-dependent exec_prefix that the installed
9451 # gcc will search in. Keep this list sorted by triplet, with
9452 # the *-*-osname triplets last.
9453 md_exec_prefix=
9454 case "${target}" in
9455 i[34567]86-pc-msdosdjgpp*)
9456 md_exec_prefix=/dev/env/DJDIR/bin
9458 *-*-hpux* | \
9459 *-*-nto-qnx* | \
9460 *-*-solaris2*)
9461 md_exec_prefix=/usr/ccs/bin
9463 esac
9465 extra_arflags_for_target=
9466 extra_nmflags_for_target=
9467 extra_ranlibflags_for_target=
9468 target_makefile_frag=/dev/null
9469 case "${target}" in
9470 spu-*-*)
9471 target_makefile_frag="config/mt-spu"
9473 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9474 target_makefile_frag="config/mt-sde"
9476 mipsisa*-*-elfoabi*)
9477 target_makefile_frag="config/mt-mips-elfoabi"
9479 mips*-*-*linux* | mips*-*-gnu*)
9480 target_makefile_frag="config/mt-mips-gnu"
9482 nios2-*-elf*)
9483 target_makefile_frag="config/mt-nios2-elf"
9485 *-*-linux-android*)
9486 target_makefile_frag="config/mt-android"
9488 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9489 target_makefile_frag="config/mt-gnu"
9491 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9492 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9493 # commands to handle both 32-bit and 64-bit objects. These flags are
9494 # harmless if we're using GNU nm or ar.
9495 extra_arflags_for_target=" -X32_64"
9496 extra_nmflags_for_target=" -B -X32_64"
9498 esac
9500 alphaieee_frag=/dev/null
9501 case $target in
9502 alpha*-*-*)
9503 # This just makes sure to use the -mieee option to build target libs.
9504 # This should probably be set individually by each library.
9505 alphaieee_frag="config/mt-alphaieee"
9507 esac
9509 # If --enable-target-optspace always use -Os instead of -O2 to build
9510 # the target libraries, similarly if it is not specified, use -Os
9511 # on selected platforms.
9512 ospace_frag=/dev/null
9513 case "${enable_target_optspace}:${target}" in
9514 yes:*)
9515 ospace_frag="config/mt-ospace"
9517 :d30v-*)
9518 ospace_frag="config/mt-d30v"
9520 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9521 ospace_frag="config/mt-ospace"
9523 no:* | :*)
9526 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9528 esac
9530 # Some systems (e.g., one of the i386-aix systems the gas testers are
9531 # using) don't handle "\$" correctly, so don't use it here.
9532 tooldir='${exec_prefix}'/${target_noncanonical}
9533 build_tooldir=${tooldir}
9535 # Create a .gdbinit file which runs the one in srcdir
9536 # and tells GDB to look there for source files.
9538 if test -r ${srcdir}/.gdbinit ; then
9539 case ${srcdir} in
9540 .) ;;
9541 *) cat > ./.gdbinit <<EOF
9542 # ${NO_EDIT}
9543 dir ${srcdir}
9544 dir .
9545 source ${srcdir}/.gdbinit
9548 esac
9551 # Make sure that the compiler is able to generate an executable. If it
9552 # can't, we are probably in trouble. We don't care whether we can run the
9553 # executable--we might be using a cross compiler--we only care whether it
9554 # can be created. At this point the main configure script has set CC.
9555 we_are_ok=no
9556 echo "int main () { return 0; }" > conftest.c
9557 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9558 if test $? = 0 ; then
9559 if test -s conftest || test -s conftest.exe ; then
9560 we_are_ok=yes
9563 case $we_are_ok in
9565 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9566 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9567 rm -f conftest*
9568 exit 1
9570 esac
9571 rm -f conftest*
9573 # Decide which environment variable is used to find dynamic libraries.
9574 case "${host}" in
9575 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9576 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9577 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9578 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9579 esac
9581 # On systems where the dynamic library environment variable is PATH,
9582 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9583 # built executables to PATH.
9584 if test "$RPATH_ENVVAR" = PATH; then
9585 GCC_SHLIB_SUBDIR=/shlib
9586 else
9587 GCC_SHLIB_SUBDIR=
9590 # Adjust the toplevel makefile according to whether bootstrap was selected.
9591 case $enable_bootstrap in
9592 yes)
9593 bootstrap_suffix=bootstrap
9594 BUILD_CONFIG=bootstrap-debug
9597 bootstrap_suffix=no-bootstrap
9598 BUILD_CONFIG=
9600 esac
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9603 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9606 # Check whether --with-build-config was given.
9607 if test "${with_build_config+set}" = set; then :
9608 withval=$with_build_config; case $with_build_config in
9609 yes) with_build_config= ;;
9610 no) with_build_config= BUILD_CONFIG= ;;
9611 esac
9615 if test "x${with_build_config}" != x; then
9616 BUILD_CONFIG=$with_build_config
9617 else
9618 case $BUILD_CONFIG in
9619 bootstrap-debug)
9620 if echo "int f (void) { return 0; }" > conftest.c &&
9621 ${CC} -c conftest.c &&
9622 mv conftest.o conftest.o.g0 &&
9623 ${CC} -c -g conftest.c &&
9624 mv conftest.o conftest.o.g &&
9625 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9627 else
9628 BUILD_CONFIG=
9630 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9632 esac
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9635 $as_echo "$BUILD_CONFIG" >&6; }
9638 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9640 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9641 # Check whether --enable-vtable-verify was given.
9642 if test "${enable_vtable_verify+set}" = set; then :
9643 enableval=$enable_vtable_verify; case "$enableval" in
9644 yes) enable_vtable_verify=yes ;;
9645 no) enable_vtable_verify=no ;;
9646 *) enable_vtable_verify=no;;
9647 esac
9648 else
9649 enable_vtable_verify=no
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9653 $as_echo "$enable_vtable_verify" >&6; }
9655 # Record target_configdirs and the configure arguments for target and
9656 # build configuration in Makefile.
9657 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9658 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9659 bootstrap_fixincludes=no
9661 # If we are building libgomp, bootstrap it.
9662 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9663 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9666 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9667 # or bootstrap-ubsan, bootstrap it.
9668 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9669 case "$BUILD_CONFIG" in
9670 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9671 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9672 bootstrap_fixincludes=yes
9674 esac
9677 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9678 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9679 test "$enable_vtable_verify" != no; then
9680 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9683 # If we are building libatomic and the list of enabled languages includes the
9684 # D frontend, bootstrap it.
9685 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9686 case ,${enable_languages}, in
9687 *,d,*)
9688 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9690 esac
9693 # Determine whether gdb needs tk/tcl or not.
9694 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9695 # and in that case we want gdb to be built without tk. Ugh!
9696 # In fact I believe gdb is the *only* package directly dependent on tk,
9697 # so we should be able to put the 'maybe's in unconditionally and
9698 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9699 # 100% sure that that's safe though.
9701 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9702 case "$enable_gdbtk" in
9704 GDB_TK="" ;;
9705 yes)
9706 GDB_TK="${gdb_tk}" ;;
9708 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9709 # distro. Eventually someone will fix this and move Insight, nee
9710 # gdbtk to a separate directory.
9711 if test -d ${srcdir}/gdb/gdbtk ; then
9712 GDB_TK="${gdb_tk}"
9713 else
9714 GDB_TK=""
9717 esac
9718 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9719 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9721 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9722 # else does, only include them if one of these is built. The Makefile
9723 # provides the ordering, so it's enough here to add to the list.
9724 case " ${configdirs} " in
9725 *\ gdb\ *)
9726 configdirs="${configdirs} gnulib gdbsupport"
9728 *\ gdbserver\ *)
9729 configdirs="${configdirs} gnulib gdbsupport"
9731 *\ sim\ *)
9732 configdirs="${configdirs} gnulib"
9734 esac
9736 # Strip out unwanted targets.
9738 # While at that, we remove Makefiles if we were started for recursive
9739 # configuration, so that the top-level Makefile reconfigures them,
9740 # like we used to do when configure itself was recursive.
9742 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9743 # but now we're fixing up the Makefile ourselves with the additional
9744 # commands passed to AC_CONFIG_FILES. Use separate variables
9745 # extrasub-{build,host,target} not because there is any reason to split
9746 # the substitutions up that way, but only to remain below the limit of
9747 # 99 commands in a script, for HP-UX sed.
9749 # Do not nest @if/@endif or @unless/@endunless pairs, because
9750 # configure will not warn you at all.
9752 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9753 yes:yes:*\ gold\ *:*,c++,*) ;;
9754 yes:yes:*\ gold\ *:*)
9755 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9757 esac
9759 extrasub_build=
9760 for module in ${build_configdirs} ; do
9761 if test -z "${no_recursion}" \
9762 && test -f ${build_subdir}/${module}/Makefile; then
9763 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9764 rm -f ${build_subdir}/${module}/Makefile
9766 extrasub_build="$extrasub_build
9767 /^@if build-$module\$/d
9768 /^@endif build-$module\$/d
9769 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9770 /^@if build-$module-$bootstrap_suffix\$/d
9771 /^@endif build-$module-$bootstrap_suffix\$/d
9772 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9773 done
9774 extrasub_host=
9775 for module in ${configdirs} ; do
9776 if test -z "${no_recursion}"; then
9777 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9778 if test -f ${file}; then
9779 echo 1>&2 "*** removing ${file} to force reconfigure"
9780 rm -f ${file}
9782 done
9784 case ${module},${bootstrap_fixincludes} in
9785 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9786 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9787 esac
9788 extrasub_host="$extrasub_host
9789 /^@if $module\$/d
9790 /^@endif $module\$/d
9791 /^@unless $module\$/,/^@endunless $module\$/d
9792 /^@if $module-$host_bootstrap_suffix\$/d
9793 /^@endif $module-$host_bootstrap_suffix\$/d
9794 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9795 done
9796 extrasub_target=
9797 for module in ${target_configdirs} ; do
9798 if test -z "${no_recursion}" \
9799 && test -f ${target_subdir}/${module}/Makefile; then
9800 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9801 rm -f ${target_subdir}/${module}/Makefile
9804 # We only bootstrap target libraries listed in bootstrap_target_libs.
9805 case $bootstrap_target_libs in
9806 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9807 *) target_bootstrap_suffix=no-bootstrap ;;
9808 esac
9810 extrasub_target="$extrasub_target
9811 /^@if target-$module\$/d
9812 /^@endif target-$module\$/d
9813 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9814 /^@if target-$module-$target_bootstrap_suffix\$/d
9815 /^@endif target-$module-$target_bootstrap_suffix\$/d
9816 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9817 done
9819 # Do the final fixup along with target modules.
9820 extrasub_target="$extrasub_target
9821 /^@if /,/^@endif /d
9822 /^@unless /d
9823 /^@endunless /d"
9825 if test "$enable_pgo_build" != "no"; then
9826 extrasub_build="$extrasub_build
9827 /^@if pgo-build\$/d
9828 /^@endif pgo-build\$/d"
9831 # Create the serialization dependencies. This uses a temporary file.
9833 # Check whether --enable-serial-configure was given.
9834 if test "${enable_serial_configure+set}" = set; then :
9835 enableval=$enable_serial_configure;
9839 case ${enable_serial_configure} in
9840 yes)
9841 enable_serial_build_configure=yes
9842 enable_serial_host_configure=yes
9843 enable_serial_target_configure=yes
9845 esac
9847 # These force 'configure's to be done one at a time, to avoid problems
9848 # with contention over a shared config.cache.
9849 rm -f serdep.tmp
9850 echo '# serdep.tmp' > serdep.tmp
9851 olditem=
9852 test "x${enable_serial_build_configure}" = xyes &&
9853 for item in ${build_configdirs} ; do
9854 case ${olditem} in
9855 "") ;;
9856 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9857 esac
9858 olditem=${item}
9859 done
9860 olditem=
9861 test "x${enable_serial_host_configure}" = xyes &&
9862 for item in ${configdirs} ; do
9863 case ${olditem} in
9864 "") ;;
9865 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9866 esac
9867 olditem=${item}
9868 done
9869 olditem=
9870 test "x${enable_serial_target_configure}" = xyes &&
9871 for item in ${target_configdirs} ; do
9872 case ${olditem} in
9873 "") ;;
9874 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9875 esac
9876 olditem=${item}
9877 done
9878 serialization_dependencies=serdep.tmp
9881 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9882 # target, nonopt, and variable assignments. These are the ones we
9883 # might not want to pass down to subconfigures. The exception being
9884 # --cache-file=/dev/null, which is used to turn off the use of cache
9885 # files altogether, and which should be passed on to subconfigures.
9886 # Also strip program-prefix, program-suffix, and program-transform-name,
9887 # so that we can pass down a consistent program-transform-name.
9888 baseargs=
9889 tbaseargs=
9890 keep_next=no
9891 skip_next=no
9892 eval "set -- $ac_configure_args"
9893 for ac_arg
9895 if test X"$skip_next" = X"yes"; then
9896 skip_next=no
9897 continue
9899 if test X"$keep_next" = X"yes"; then
9900 case $ac_arg in
9901 *\'*)
9902 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9903 esac
9904 baseargs="$baseargs '$ac_arg'"
9905 tbaseargs="$tbaseargs '$ac_arg'"
9906 keep_next=no
9907 continue
9910 # Handle separated arguments. Based on the logic generated by
9911 # autoconf 2.59.
9912 case $ac_arg in
9913 *=* | --config-cache | -C | -disable-* | --disable-* \
9914 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9915 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9916 | -with-* | --with-* | -without-* | --without-* | --x)
9917 separate_arg=no
9920 separate_arg=yes
9923 separate_arg=no
9925 esac
9927 skip_targ=no
9928 case $ac_arg in
9930 --with-* | --without-*)
9931 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9933 case $libopt in
9934 *[-_]include)
9935 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9937 *[-_]lib)
9938 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9941 lib=$libopt
9943 esac
9946 case $lib in
9947 mpc | mpfr | gmp | isl)
9948 # If we're processing --with-$lib, --with-$lib-include or
9949 # --with-$lib-lib, for one of the libs above, and target is
9950 # different from host, don't pass the current argument to any
9951 # target library's configure.
9952 if test x$is_cross_compiler = xyes; then
9953 skip_targ=yes
9956 esac
9958 esac
9960 case "$ac_arg" in
9961 --cache-file=/dev/null | \
9962 -cache-file=/dev/null )
9963 # Handled here to avoid the test to skip args below.
9964 baseargs="$baseargs '$ac_arg'"
9965 tbaseargs="$tbaseargs '$ac_arg'"
9966 # Assert: $separate_arg should always be no.
9967 keep_next=$separate_arg
9969 --no*)
9970 continue
9972 --c* | \
9973 --sr* | \
9974 --ho* | \
9975 --bu* | \
9976 --t* | \
9977 --program-* | \
9978 -cache_file* | \
9979 -srcdir* | \
9980 -host* | \
9981 -build* | \
9982 -target* | \
9983 -program-prefix* | \
9984 -program-suffix* | \
9985 -program-transform-name* )
9986 skip_next=$separate_arg
9987 continue
9990 # An option. Add it.
9991 case $ac_arg in
9992 *\'*)
9993 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9994 esac
9995 baseargs="$baseargs '$ac_arg'"
9996 if test X"$skip_targ" = Xno; then
9997 tbaseargs="$tbaseargs '$ac_arg'"
9999 keep_next=$separate_arg
10002 # Either a variable assignment, or a nonopt (triplet). Don't
10003 # pass it down; let the Makefile handle this.
10004 continue
10006 esac
10007 done
10008 # Remove the initial space we just introduced and, as these will be
10009 # expanded by make, quote '$'.
10010 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10012 # Add in --program-transform-name, after --program-prefix and
10013 # --program-suffix have been applied to it. Autoconf has already
10014 # doubled dollar signs and backslashes in program_transform_name; we want
10015 # the backslashes un-doubled, and then the entire thing wrapped in single
10016 # quotes, because this will be expanded first by make and then by the shell.
10017 # Also, because we want to override the logic in subdir configure scripts to
10018 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10019 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10020 ${program_transform_name}
10021 EOF_SED
10022 gcc_transform_name=`cat conftestsed.out`
10023 rm -f conftestsed.out
10024 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10025 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10026 if test "$silent" = yes; then
10027 baseargs="$baseargs --silent"
10028 tbaseargs="$tbaseargs --silent"
10030 baseargs="$baseargs --disable-option-checking"
10031 tbaseargs="$tbaseargs --disable-option-checking"
10033 # Record and document user additions to sub configure arguments.
10038 # For the build-side libraries, we just need to pretend we're native,
10039 # and not use the same cache file. Multilibs are neither needed nor
10040 # desired. We can't even use the same cache file for all build-side
10041 # libraries, as they're compiled differently; some with C, some with
10042 # C++ or with different feature-enabling options.
10043 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10045 # For host modules, accept cache file option, or specification as blank.
10046 case "${cache_file}" in
10047 "") # empty
10048 cache_file_option="" ;;
10049 /* | [A-Za-z]:[\\/]* ) # absolute path
10050 cache_file_option="--cache-file=${cache_file}" ;;
10051 *) # relative path
10052 cache_file_option="--cache-file=../${cache_file}" ;;
10053 esac
10055 # Host dirs don't like to share a cache file either, horribly enough.
10056 # This seems to be due to autoconf 2.5x stupidity.
10057 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10059 target_configargs="$target_configargs ${tbaseargs}"
10061 # Passing a --with-cross-host argument lets the target libraries know
10062 # whether they are being built with a cross-compiler or being built
10063 # native. However, it would be better to use other mechanisms to make the
10064 # sorts of decisions they want to make on this basis. Please consider
10065 # this option to be deprecated. FIXME.
10066 if test x${is_cross_compiler} = xyes ; then
10067 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10070 # Special user-friendly check for native x86_64-linux build, if
10071 # multilib is not explicitly enabled.
10072 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10073 x86_64-*linux*:yes:$build:$build:)
10074 # Make sure we have a development environment that handles 32-bit
10075 dev64=no
10076 echo "int main () { return 0; }" > conftest.c
10077 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10078 if test $? = 0 ; then
10079 if test -s conftest || test -s conftest.exe ; then
10080 dev64=yes
10083 rm -f conftest*
10084 if test x${dev64} != xyes ; then
10085 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
10088 esac
10090 # Default to --enable-multilib.
10091 if test x${enable_multilib} = x ; then
10092 target_configargs="--enable-multilib ${target_configargs}"
10095 # Pass --with-newlib if appropriate. Note that target_configdirs has
10096 # changed from the earlier setting of with_newlib.
10097 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10098 target_configargs="--with-newlib ${target_configargs}"
10101 # Different target subdirs use different values of certain variables
10102 # (notably CXX). Worse, multilibs use *lots* of different values.
10103 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10104 # it doesn't automatically accept command-line overrides of them.
10105 # This means it's not safe for target subdirs to share a cache file,
10106 # which is disgusting, but there you have it. Hopefully this can be
10107 # fixed in future. It's still worthwhile to use a cache file for each
10108 # directory. I think.
10110 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10111 # We need to pass --target, as newer autoconf's requires consistency
10112 # for target_alias and gcc doesn't manage it consistently.
10113 target_configargs="--cache-file=./config.cache ${target_configargs}"
10115 FLAGS_FOR_TARGET=
10116 case " $target_configdirs " in
10117 *" newlib "*)
10118 case " $target_configargs " in
10119 *" --with-newlib "*)
10120 case "$target" in
10121 *-cygwin*)
10122 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10124 esac
10126 # If we're not building GCC, don't discard standard headers.
10127 if test -d ${srcdir}/gcc; then
10128 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10130 if test "${build}" != "${host}"; then
10131 # On Canadian crosses, CC_FOR_TARGET will have already been set
10132 # by `configure', so we won't have an opportunity to add -Bgcc/
10133 # to it. This is right: we don't want to search that directory
10134 # for binaries, but we want the header files in there, so add
10135 # them explicitly.
10136 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10138 # Someone might think of using the pre-installed headers on
10139 # Canadian crosses, in case the installed compiler is not fully
10140 # compatible with the compiler being built. In this case, it
10141 # would be better to flag an error than risking having
10142 # incompatible object files being constructed. We can't
10143 # guarantee that an error will be flagged, but let's hope the
10144 # compiler will do it, when presented with incompatible header
10145 # files.
10149 case "${target}-${is_cross_compiler}" in
10150 i[3456789]86-*-linux*-no)
10151 # Here host == target, so we don't need to build gcc,
10152 # so we don't want to discard standard headers.
10153 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10156 # If we're building newlib, use its generic headers last, but search
10157 # for any libc-related directories first (so make it the last -B
10158 # switch).
10159 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10161 # If we're building libgloss, find the startup file, simulator library
10162 # and linker script.
10163 case " $target_configdirs " in
10164 *" libgloss "*)
10165 # Look for startup file, simulator library and maybe linker script.
10166 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10167 # Look for libnosys.a in case the target needs it.
10168 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10169 # Most targets have the linker script in the source directory.
10170 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10172 esac
10174 esac
10176 esac
10178 esac
10180 case "$target" in
10181 x86_64-*mingw* | *-w64-mingw*)
10182 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10183 # however, use a symlink named 'mingw' in ${prefix} .
10184 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10186 *-mingw*)
10187 # MinGW can't be handled as Cygwin above since it does not use newlib.
10188 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'
10190 esac
10192 # Allow the user to override the flags for
10193 # our build compiler if desired.
10194 if test x"${build}" = x"${host}" ; then
10195 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10196 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10197 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10198 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10201 # On Canadian crosses, we'll be searching the right directories for
10202 # the previously-installed cross compiler, so don't bother to add
10203 # flags for directories within the install tree of the compiler
10204 # being built; programs in there won't even run.
10205 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10206 # Search for pre-installed headers if nothing else fits.
10207 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10210 if test "x${use_gnu_ld}" = x &&
10211 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10212 # Arrange for us to find uninstalled linker scripts.
10213 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10216 # Search for other target-specific linker scripts and such.
10217 case "${target}" in
10218 mep*)
10219 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10221 # The VxWorks support for shared libraries is getting in
10222 # incrementally. Make sure it doesn't get activated implicitly:
10223 *vxworks*)
10224 if test "${enable_shared-unset}" = unset ; then
10225 enable_shared=no
10226 # So the build of libraries knows ...
10227 target_configargs="${target_configargs} --disable-shared"
10228 # So gcc knows ...
10229 host_configargs="${host_configargs} --disable-shared"
10232 esac
10234 # Makefile fragments.
10235 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10237 eval fragval=\$$frag
10238 if test $fragval != /dev/null; then
10239 eval $frag=${srcdir}/$fragval
10241 done
10247 # Miscellanea: directories, flags, etc.
10256 # Build module lists & subconfigure args.
10260 # Host module lists & subconfigure args.
10265 # Target module lists & subconfigure args.
10269 # Build tools.
10290 # Generate default definitions for YACC, M4, LEX and other programs that run
10291 # on the build machine. These are used if the Makefile can't locate these
10292 # programs in objdir.
10293 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10295 for ac_prog in 'bison -y' byacc yacc
10297 # Extract the first word of "$ac_prog", so it can be a program name with args.
10298 set dummy $ac_prog; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300 $as_echo_n "checking for $ac_word... " >&6; }
10301 if ${ac_cv_prog_YACC+:} false; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10304 if test -n "$YACC"; then
10305 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10306 else
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10314 ac_cv_prog_YACC="$ac_prog"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 break 2
10318 done
10319 done
10320 IFS=$as_save_IFS
10324 YACC=$ac_cv_prog_YACC
10325 if test -n "$YACC"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10327 $as_echo "$YACC" >&6; }
10328 else
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 $as_echo "no" >&6; }
10334 test -n "$YACC" && break
10335 done
10336 test -n "$YACC" || YACC="$MISSING bison -y"
10338 case " $build_configdirs " in
10339 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10340 esac
10342 for ac_prog in bison
10344 # Extract the first word of "$ac_prog", so it can be a program name with args.
10345 set dummy $ac_prog; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if ${ac_cv_prog_BISON+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 if test -n "$BISON"; then
10352 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10353 else
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_BISON="$ac_prog"
10362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10365 done
10366 done
10367 IFS=$as_save_IFS
10371 BISON=$ac_cv_prog_BISON
10372 if test -n "$BISON"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10374 $as_echo "$BISON" >&6; }
10375 else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; }
10381 test -n "$BISON" && break
10382 done
10383 test -n "$BISON" || BISON="$MISSING bison"
10385 case " $build_configdirs " in
10386 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10387 esac
10389 for ac_prog in gm4 gnum4 m4
10391 # Extract the first word of "$ac_prog", so it can be a program name with args.
10392 set dummy $ac_prog; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if ${ac_cv_prog_M4+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 if test -n "$M4"; then
10399 ac_cv_prog_M4="$M4" # Let the user override the test.
10400 else
10401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in $PATH
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408 ac_cv_prog_M4="$ac_prog"
10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10412 done
10413 done
10414 IFS=$as_save_IFS
10418 M4=$ac_cv_prog_M4
10419 if test -n "$M4"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10421 $as_echo "$M4" >&6; }
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10428 test -n "$M4" && break
10429 done
10430 test -n "$M4" || M4="$MISSING m4"
10432 case " $build_configdirs " in
10433 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10434 esac
10436 for ac_prog in flex lex
10438 # Extract the first word of "$ac_prog", so it can be a program name with args.
10439 set dummy $ac_prog; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_prog_LEX+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 if test -n "$LEX"; then
10446 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10447 else
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_LEX="$ac_prog"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10459 done
10460 done
10461 IFS=$as_save_IFS
10465 LEX=$ac_cv_prog_LEX
10466 if test -n "$LEX"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10468 $as_echo "$LEX" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10475 test -n "$LEX" && break
10476 done
10477 test -n "$LEX" || LEX="$MISSING flex"
10479 case " $build_configdirs " in
10480 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10481 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10482 esac
10484 for ac_prog in flex
10486 # Extract the first word of "$ac_prog", so it can be a program name with args.
10487 set dummy $ac_prog; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if ${ac_cv_prog_FLEX+:} false; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 if test -n "$FLEX"; then
10494 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10495 else
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_FLEX="$ac_prog"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10507 done
10508 done
10509 IFS=$as_save_IFS
10513 FLEX=$ac_cv_prog_FLEX
10514 if test -n "$FLEX"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10516 $as_echo "$FLEX" >&6; }
10517 else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10523 test -n "$FLEX" && break
10524 done
10525 test -n "$FLEX" || FLEX="$MISSING flex"
10527 case " $build_configdirs " in
10528 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10529 esac
10531 for ac_prog in makeinfo
10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
10534 set dummy $ac_prog; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if ${ac_cv_prog_MAKEINFO+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test -n "$MAKEINFO"; then
10541 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10542 else
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_MAKEINFO="$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10554 done
10555 done
10556 IFS=$as_save_IFS
10560 MAKEINFO=$ac_cv_prog_MAKEINFO
10561 if test -n "$MAKEINFO"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10563 $as_echo "$MAKEINFO" >&6; }
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10570 test -n "$MAKEINFO" && break
10571 done
10572 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10574 case " $build_configdirs " in
10575 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10578 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10579 # higher, else we use the "missing" dummy.
10580 if ${MAKEINFO} --version \
10581 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10583 else
10584 MAKEINFO="$MISSING makeinfo"
10588 esac
10590 # FIXME: expect and dejagnu may become build tools?
10592 for ac_prog in expect
10594 # Extract the first word of "$ac_prog", so it can be a program name with args.
10595 set dummy $ac_prog; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if ${ac_cv_prog_EXPECT+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 if test -n "$EXPECT"; then
10602 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10603 else
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611 ac_cv_prog_EXPECT="$ac_prog"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613 break 2
10615 done
10616 done
10617 IFS=$as_save_IFS
10621 EXPECT=$ac_cv_prog_EXPECT
10622 if test -n "$EXPECT"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10624 $as_echo "$EXPECT" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10631 test -n "$EXPECT" && break
10632 done
10633 test -n "$EXPECT" || EXPECT="expect"
10635 case " $configdirs " in
10636 *" expect "*)
10637 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10639 esac
10641 for ac_prog in runtest
10643 # Extract the first word of "$ac_prog", so it can be a program name with args.
10644 set dummy $ac_prog; ac_word=$2
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10646 $as_echo_n "checking for $ac_word... " >&6; }
10647 if ${ac_cv_prog_RUNTEST+:} false; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 if test -n "$RUNTEST"; then
10651 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10652 else
10653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 for as_dir in $PATH
10656 IFS=$as_save_IFS
10657 test -z "$as_dir" && as_dir=.
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10660 ac_cv_prog_RUNTEST="$ac_prog"
10661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 break 2
10664 done
10665 done
10666 IFS=$as_save_IFS
10670 RUNTEST=$ac_cv_prog_RUNTEST
10671 if test -n "$RUNTEST"; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10673 $as_echo "$RUNTEST" >&6; }
10674 else
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 $as_echo "no" >&6; }
10680 test -n "$RUNTEST" && break
10681 done
10682 test -n "$RUNTEST" || RUNTEST="runtest"
10684 case " $configdirs " in
10685 *" dejagnu "*)
10686 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10688 esac
10691 # Host tools.
10692 ncn_tool_prefix=
10693 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10694 ncn_target_tool_prefix=
10695 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10699 if test -n "$AR"; then
10700 ac_cv_prog_AR=$AR
10701 elif test -n "$ac_cv_prog_AR"; then
10702 AR=$ac_cv_prog_AR
10705 if test -n "$ac_cv_prog_AR"; then
10706 for ncn_progname in ar; do
10707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10708 set dummy ${ncn_progname}; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710 $as_echo_n "checking for $ac_word... " >&6; }
10711 if ${ac_cv_prog_AR+:} false; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 if test -n "$AR"; then
10715 ac_cv_prog_AR="$AR" # Let the user override the test.
10716 else
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $PATH
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724 ac_cv_prog_AR="${ncn_progname}"
10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10728 done
10729 done
10730 IFS=$as_save_IFS
10734 AR=$ac_cv_prog_AR
10735 if test -n "$AR"; then
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10737 $as_echo "$AR" >&6; }
10738 else
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740 $as_echo "no" >&6; }
10744 done
10747 for ncn_progname in ar; do
10748 if test -n "$ncn_tool_prefix"; then
10749 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10750 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752 $as_echo_n "checking for $ac_word... " >&6; }
10753 if ${ac_cv_prog_AR+:} false; then :
10754 $as_echo_n "(cached) " >&6
10755 else
10756 if test -n "$AR"; then
10757 ac_cv_prog_AR="$AR" # Let the user override the test.
10758 else
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10770 done
10771 done
10772 IFS=$as_save_IFS
10776 AR=$ac_cv_prog_AR
10777 if test -n "$AR"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10779 $as_echo "$AR" >&6; }
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10787 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10789 set dummy ${ncn_progname}; ac_word=$2
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791 $as_echo_n "checking for $ac_word... " >&6; }
10792 if ${ac_cv_prog_AR+:} false; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 if test -n "$AR"; then
10796 ac_cv_prog_AR="$AR" # Let the user override the test.
10797 else
10798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799 for as_dir in $PATH
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_AR="${ncn_progname}"
10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10809 done
10810 done
10811 IFS=$as_save_IFS
10815 AR=$ac_cv_prog_AR
10816 if test -n "$AR"; then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10818 $as_echo "$AR" >&6; }
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10826 test -n "$ac_cv_prog_AR" && break
10827 done
10829 if test -z "$ac_cv_prog_AR" ; then
10830 set dummy ar
10831 if test $build = $host ; then
10832 AR="$2"
10833 else
10834 AR="${ncn_tool_prefix}$2"
10840 if test -n "$AS"; then
10841 ac_cv_prog_AS=$AS
10842 elif test -n "$ac_cv_prog_AS"; then
10843 AS=$ac_cv_prog_AS
10846 if test -n "$ac_cv_prog_AS"; then
10847 for ncn_progname in as; do
10848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10849 set dummy ${ncn_progname}; ac_word=$2
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10851 $as_echo_n "checking for $ac_word... " >&6; }
10852 if ${ac_cv_prog_AS+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 if test -n "$AS"; then
10856 ac_cv_prog_AS="$AS" # Let the user override the test.
10857 else
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $PATH
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10865 ac_cv_prog_AS="${ncn_progname}"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10869 done
10870 done
10871 IFS=$as_save_IFS
10875 AS=$ac_cv_prog_AS
10876 if test -n "$AS"; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10878 $as_echo "$AS" >&6; }
10879 else
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881 $as_echo "no" >&6; }
10885 done
10888 for ncn_progname in as; do
10889 if test -n "$ncn_tool_prefix"; then
10890 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10891 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if ${ac_cv_prog_AS+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 if test -n "$AS"; then
10898 ac_cv_prog_AS="$AS" # Let the user override the test.
10899 else
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10911 done
10912 done
10913 IFS=$as_save_IFS
10917 AS=$ac_cv_prog_AS
10918 if test -n "$AS"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10920 $as_echo "$AS" >&6; }
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10928 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10930 set dummy ${ncn_progname}; ac_word=$2
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10932 $as_echo_n "checking for $ac_word... " >&6; }
10933 if ${ac_cv_prog_AS+:} false; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 if test -n "$AS"; then
10937 ac_cv_prog_AS="$AS" # Let the user override the test.
10938 else
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10942 IFS=$as_save_IFS
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946 ac_cv_prog_AS="${ncn_progname}"
10947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 break 2
10950 done
10951 done
10952 IFS=$as_save_IFS
10956 AS=$ac_cv_prog_AS
10957 if test -n "$AS"; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10959 $as_echo "$AS" >&6; }
10960 else
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962 $as_echo "no" >&6; }
10967 test -n "$ac_cv_prog_AS" && break
10968 done
10970 if test -z "$ac_cv_prog_AS" ; then
10971 set dummy as
10972 if test $build = $host ; then
10973 AS="$2"
10974 else
10975 AS="${ncn_tool_prefix}$2"
10981 if test -n "$DLLTOOL"; then
10982 ac_cv_prog_DLLTOOL=$DLLTOOL
10983 elif test -n "$ac_cv_prog_DLLTOOL"; then
10984 DLLTOOL=$ac_cv_prog_DLLTOOL
10987 if test -n "$ac_cv_prog_DLLTOOL"; then
10988 for ncn_progname in dlltool; do
10989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10990 set dummy ${ncn_progname}; ac_word=$2
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992 $as_echo_n "checking for $ac_word... " >&6; }
10993 if ${ac_cv_prog_DLLTOOL+:} false; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 if test -n "$DLLTOOL"; then
10997 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10998 else
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11006 ac_cv_prog_DLLTOOL="${ncn_progname}"
11007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11010 done
11011 done
11012 IFS=$as_save_IFS
11016 DLLTOOL=$ac_cv_prog_DLLTOOL
11017 if test -n "$DLLTOOL"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11019 $as_echo "$DLLTOOL" >&6; }
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11026 done
11029 for ncn_progname in dlltool; do
11030 if test -n "$ncn_tool_prefix"; then
11031 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11032 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if ${ac_cv_prog_DLLTOOL+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 if test -n "$DLLTOOL"; then
11039 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11040 else
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11052 done
11053 done
11054 IFS=$as_save_IFS
11058 DLLTOOL=$ac_cv_prog_DLLTOOL
11059 if test -n "$DLLTOOL"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11061 $as_echo "$DLLTOOL" >&6; }
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11069 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11071 set dummy ${ncn_progname}; ac_word=$2
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 $as_echo_n "checking for $ac_word... " >&6; }
11074 if ${ac_cv_prog_DLLTOOL+:} false; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 if test -n "$DLLTOOL"; then
11078 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11079 else
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $PATH
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11087 ac_cv_prog_DLLTOOL="${ncn_progname}"
11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 break 2
11091 done
11092 done
11093 IFS=$as_save_IFS
11097 DLLTOOL=$ac_cv_prog_DLLTOOL
11098 if test -n "$DLLTOOL"; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11100 $as_echo "$DLLTOOL" >&6; }
11101 else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11108 test -n "$ac_cv_prog_DLLTOOL" && break
11109 done
11111 if test -z "$ac_cv_prog_DLLTOOL" ; then
11112 set dummy dlltool
11113 if test $build = $host ; then
11114 DLLTOOL="$2"
11115 else
11116 DLLTOOL="${ncn_tool_prefix}$2"
11122 if test -n "$DSYMUTIL"; then
11123 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11124 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11125 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11128 if test -n "$ac_cv_prog_DSYMUTIL"; then
11129 for ncn_progname in dsymutil; do
11130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11131 set dummy ${ncn_progname}; ac_word=$2
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133 $as_echo_n "checking for $ac_word... " >&6; }
11134 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11135 $as_echo_n "(cached) " >&6
11136 else
11137 if test -n "$DSYMUTIL"; then
11138 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11139 else
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11147 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 break 2
11151 done
11152 done
11153 IFS=$as_save_IFS
11157 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11158 if test -n "$DSYMUTIL"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11160 $as_echo "$DSYMUTIL" >&6; }
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11167 done
11170 for ncn_progname in dsymutil; do
11171 if test -n "$ncn_tool_prefix"; then
11172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11173 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11175 $as_echo_n "checking for $ac_word... " >&6; }
11176 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 if test -n "$DSYMUTIL"; then
11180 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11181 else
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $PATH
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11189 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11193 done
11194 done
11195 IFS=$as_save_IFS
11199 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11200 if test -n "$DSYMUTIL"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11202 $as_echo "$DSYMUTIL" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11210 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11212 set dummy ${ncn_progname}; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 if test -n "$DSYMUTIL"; then
11219 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11220 else
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11232 done
11233 done
11234 IFS=$as_save_IFS
11238 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11239 if test -n "$DSYMUTIL"; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11241 $as_echo "$DSYMUTIL" >&6; }
11242 else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11244 $as_echo "no" >&6; }
11249 test -n "$ac_cv_prog_DSYMUTIL" && break
11250 done
11252 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11253 set dummy dsymutil
11254 if test $build = $host ; then
11255 DSYMUTIL="$2"
11256 else
11257 DSYMUTIL="${ncn_tool_prefix}$2"
11263 if test -n "$LD"; then
11264 ac_cv_prog_LD=$LD
11265 elif test -n "$ac_cv_prog_LD"; then
11266 LD=$ac_cv_prog_LD
11269 if test -n "$ac_cv_prog_LD"; then
11270 for ncn_progname in ld; do
11271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11272 set dummy ${ncn_progname}; ac_word=$2
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11274 $as_echo_n "checking for $ac_word... " >&6; }
11275 if ${ac_cv_prog_LD+:} false; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 if test -n "$LD"; then
11279 ac_cv_prog_LD="$LD" # Let the user override the test.
11280 else
11281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11282 for as_dir in $PATH
11284 IFS=$as_save_IFS
11285 test -z "$as_dir" && as_dir=.
11286 for ac_exec_ext in '' $ac_executable_extensions; do
11287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11288 ac_cv_prog_LD="${ncn_progname}"
11289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11290 break 2
11292 done
11293 done
11294 IFS=$as_save_IFS
11298 LD=$ac_cv_prog_LD
11299 if test -n "$LD"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11301 $as_echo "$LD" >&6; }
11302 else
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; }
11308 done
11311 for ncn_progname in ld; do
11312 if test -n "$ncn_tool_prefix"; then
11313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11314 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if ${ac_cv_prog_LD+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 if test -n "$LD"; then
11321 ac_cv_prog_LD="$LD" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11334 done
11335 done
11336 IFS=$as_save_IFS
11340 LD=$ac_cv_prog_LD
11341 if test -n "$LD"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11343 $as_echo "$LD" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11351 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11353 set dummy ${ncn_progname}; ac_word=$2
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355 $as_echo_n "checking for $ac_word... " >&6; }
11356 if ${ac_cv_prog_LD+:} false; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 if test -n "$LD"; then
11360 ac_cv_prog_LD="$LD" # Let the user override the test.
11361 else
11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363 for as_dir in $PATH
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
11367 for ac_exec_ext in '' $ac_executable_extensions; do
11368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11369 ac_cv_prog_LD="${ncn_progname}"
11370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371 break 2
11373 done
11374 done
11375 IFS=$as_save_IFS
11379 LD=$ac_cv_prog_LD
11380 if test -n "$LD"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11382 $as_echo "$LD" >&6; }
11383 else
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11390 test -n "$ac_cv_prog_LD" && break
11391 done
11393 if test -z "$ac_cv_prog_LD" ; then
11394 set dummy ld
11395 if test $build = $host ; then
11396 LD="$2"
11397 else
11398 LD="${ncn_tool_prefix}$2"
11404 if test -n "$LIPO"; then
11405 ac_cv_prog_LIPO=$LIPO
11406 elif test -n "$ac_cv_prog_LIPO"; then
11407 LIPO=$ac_cv_prog_LIPO
11410 if test -n "$ac_cv_prog_LIPO"; then
11411 for ncn_progname in lipo; do
11412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11413 set dummy ${ncn_progname}; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415 $as_echo_n "checking for $ac_word... " >&6; }
11416 if ${ac_cv_prog_LIPO+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 if test -n "$LIPO"; then
11420 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11421 else
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429 ac_cv_prog_LIPO="${ncn_progname}"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11433 done
11434 done
11435 IFS=$as_save_IFS
11439 LIPO=$ac_cv_prog_LIPO
11440 if test -n "$LIPO"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11442 $as_echo "$LIPO" >&6; }
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445 $as_echo "no" >&6; }
11449 done
11452 for ncn_progname in lipo; do
11453 if test -n "$ncn_tool_prefix"; then
11454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11455 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if ${ac_cv_prog_LIPO+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 if test -n "$LIPO"; then
11462 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11475 done
11476 done
11477 IFS=$as_save_IFS
11481 LIPO=$ac_cv_prog_LIPO
11482 if test -n "$LIPO"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11484 $as_echo "$LIPO" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11492 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11494 set dummy ${ncn_progname}; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if ${ac_cv_prog_LIPO+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test -n "$LIPO"; then
11501 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510 ac_cv_prog_LIPO="${ncn_progname}"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11514 done
11515 done
11516 IFS=$as_save_IFS
11520 LIPO=$ac_cv_prog_LIPO
11521 if test -n "$LIPO"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11523 $as_echo "$LIPO" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11531 test -n "$ac_cv_prog_LIPO" && break
11532 done
11534 if test -z "$ac_cv_prog_LIPO" ; then
11535 set dummy lipo
11536 if test $build = $host ; then
11537 LIPO="$2"
11538 else
11539 LIPO="${ncn_tool_prefix}$2"
11545 if test -n "$NM"; then
11546 ac_cv_prog_NM=$NM
11547 elif test -n "$ac_cv_prog_NM"; then
11548 NM=$ac_cv_prog_NM
11551 if test -n "$ac_cv_prog_NM"; then
11552 for ncn_progname in nm; do
11553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11554 set dummy ${ncn_progname}; ac_word=$2
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556 $as_echo_n "checking for $ac_word... " >&6; }
11557 if ${ac_cv_prog_NM+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 if test -n "$NM"; then
11561 ac_cv_prog_NM="$NM" # Let the user override the test.
11562 else
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570 ac_cv_prog_NM="${ncn_progname}"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11574 done
11575 done
11576 IFS=$as_save_IFS
11580 NM=$ac_cv_prog_NM
11581 if test -n "$NM"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11583 $as_echo "$NM" >&6; }
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11590 done
11593 for ncn_progname in nm; do
11594 if test -n "$ncn_tool_prefix"; then
11595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11596 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_prog_NM+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 if test -n "$NM"; then
11603 ac_cv_prog_NM="$NM" # Let the user override the test.
11604 else
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11616 done
11617 done
11618 IFS=$as_save_IFS
11622 NM=$ac_cv_prog_NM
11623 if test -n "$NM"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11625 $as_echo "$NM" >&6; }
11626 else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11633 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11635 set dummy ${ncn_progname}; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if ${ac_cv_prog_NM+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 if test -n "$NM"; then
11642 ac_cv_prog_NM="$NM" # Let the user override the test.
11643 else
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651 ac_cv_prog_NM="${ncn_progname}"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11655 done
11656 done
11657 IFS=$as_save_IFS
11661 NM=$ac_cv_prog_NM
11662 if test -n "$NM"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11664 $as_echo "$NM" >&6; }
11665 else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11672 test -n "$ac_cv_prog_NM" && break
11673 done
11675 if test -z "$ac_cv_prog_NM" ; then
11676 set dummy nm
11677 if test $build = $host ; then
11678 NM="$2"
11679 else
11680 NM="${ncn_tool_prefix}$2"
11686 if test -n "$RANLIB"; then
11687 ac_cv_prog_RANLIB=$RANLIB
11688 elif test -n "$ac_cv_prog_RANLIB"; then
11689 RANLIB=$ac_cv_prog_RANLIB
11692 if test -n "$ac_cv_prog_RANLIB"; then
11693 for ncn_progname in ranlib; do
11694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_progname}; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_prog_RANLIB+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test -n "$RANLIB"; then
11702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_RANLIB="${ncn_progname}"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 break 2
11715 done
11716 done
11717 IFS=$as_save_IFS
11721 RANLIB=$ac_cv_prog_RANLIB
11722 if test -n "$RANLIB"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11724 $as_echo "$RANLIB" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11731 done
11734 for ncn_progname in ranlib; do
11735 if test -n "$ncn_tool_prefix"; then
11736 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11737 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_prog_RANLIB+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test -n "$RANLIB"; then
11744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11745 else
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11753 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11757 done
11758 done
11759 IFS=$as_save_IFS
11763 RANLIB=$ac_cv_prog_RANLIB
11764 if test -n "$RANLIB"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11766 $as_echo "$RANLIB" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11774 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11776 set dummy ${ncn_progname}; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if ${ac_cv_prog_RANLIB+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 if test -n "$RANLIB"; then
11783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11784 else
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_RANLIB="${ncn_progname}"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11796 done
11797 done
11798 IFS=$as_save_IFS
11802 RANLIB=$ac_cv_prog_RANLIB
11803 if test -n "$RANLIB"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11805 $as_echo "$RANLIB" >&6; }
11806 else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11813 test -n "$ac_cv_prog_RANLIB" && break
11814 done
11816 if test -z "$ac_cv_prog_RANLIB" ; then
11817 RANLIB="true"
11822 if test -n "$STRIP"; then
11823 ac_cv_prog_STRIP=$STRIP
11824 elif test -n "$ac_cv_prog_STRIP"; then
11825 STRIP=$ac_cv_prog_STRIP
11828 if test -n "$ac_cv_prog_STRIP"; then
11829 for ncn_progname in strip; do
11830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11831 set dummy ${ncn_progname}; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_prog_STRIP+:} false; then :
11835 $as_echo_n "(cached) " >&6
11836 else
11837 if test -n "$STRIP"; then
11838 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11839 else
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11843 IFS=$as_save_IFS
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11847 ac_cv_prog_STRIP="${ncn_progname}"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849 break 2
11851 done
11852 done
11853 IFS=$as_save_IFS
11857 STRIP=$ac_cv_prog_STRIP
11858 if test -n "$STRIP"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11860 $as_echo "$STRIP" >&6; }
11861 else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11867 done
11870 for ncn_progname in strip; do
11871 if test -n "$ncn_tool_prefix"; then
11872 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11873 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if ${ac_cv_prog_STRIP+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 if test -n "$STRIP"; then
11880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11881 else
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891 break 2
11893 done
11894 done
11895 IFS=$as_save_IFS
11899 STRIP=$ac_cv_prog_STRIP
11900 if test -n "$STRIP"; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11902 $as_echo "$STRIP" >&6; }
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11910 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11912 set dummy ${ncn_progname}; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_prog_STRIP+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 if test -n "$STRIP"; then
11919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928 ac_cv_prog_STRIP="${ncn_progname}"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11932 done
11933 done
11934 IFS=$as_save_IFS
11938 STRIP=$ac_cv_prog_STRIP
11939 if test -n "$STRIP"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11941 $as_echo "$STRIP" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11949 test -n "$ac_cv_prog_STRIP" && break
11950 done
11952 if test -z "$ac_cv_prog_STRIP" ; then
11953 STRIP="true"
11958 if test -n "$WINDRES"; then
11959 ac_cv_prog_WINDRES=$WINDRES
11960 elif test -n "$ac_cv_prog_WINDRES"; then
11961 WINDRES=$ac_cv_prog_WINDRES
11964 if test -n "$ac_cv_prog_WINDRES"; then
11965 for ncn_progname in windres; do
11966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11967 set dummy ${ncn_progname}; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if ${ac_cv_prog_WINDRES+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 if test -n "$WINDRES"; then
11974 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11975 else
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11983 ac_cv_prog_WINDRES="${ncn_progname}"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11987 done
11988 done
11989 IFS=$as_save_IFS
11993 WINDRES=$ac_cv_prog_WINDRES
11994 if test -n "$WINDRES"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11996 $as_echo "$WINDRES" >&6; }
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12003 done
12006 for ncn_progname in windres; do
12007 if test -n "$ncn_tool_prefix"; then
12008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12009 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if ${ac_cv_prog_WINDRES+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 if test -n "$WINDRES"; then
12016 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12017 else
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12029 done
12030 done
12031 IFS=$as_save_IFS
12035 WINDRES=$ac_cv_prog_WINDRES
12036 if test -n "$WINDRES"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12038 $as_echo "$WINDRES" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12046 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12048 set dummy ${ncn_progname}; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if ${ac_cv_prog_WINDRES+:} false; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 if test -n "$WINDRES"; then
12055 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12056 else
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064 ac_cv_prog_WINDRES="${ncn_progname}"
12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 break 2
12068 done
12069 done
12070 IFS=$as_save_IFS
12074 WINDRES=$ac_cv_prog_WINDRES
12075 if test -n "$WINDRES"; then
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12077 $as_echo "$WINDRES" >&6; }
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12085 test -n "$ac_cv_prog_WINDRES" && break
12086 done
12088 if test -z "$ac_cv_prog_WINDRES" ; then
12089 set dummy windres
12090 if test $build = $host ; then
12091 WINDRES="$2"
12092 else
12093 WINDRES="${ncn_tool_prefix}$2"
12099 if test -n "$WINDMC"; then
12100 ac_cv_prog_WINDMC=$WINDMC
12101 elif test -n "$ac_cv_prog_WINDMC"; then
12102 WINDMC=$ac_cv_prog_WINDMC
12105 if test -n "$ac_cv_prog_WINDMC"; then
12106 for ncn_progname in windmc; do
12107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12108 set dummy ${ncn_progname}; ac_word=$2
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110 $as_echo_n "checking for $ac_word... " >&6; }
12111 if ${ac_cv_prog_WINDMC+:} false; then :
12112 $as_echo_n "(cached) " >&6
12113 else
12114 if test -n "$WINDMC"; then
12115 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12116 else
12117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118 for as_dir in $PATH
12120 IFS=$as_save_IFS
12121 test -z "$as_dir" && as_dir=.
12122 for ac_exec_ext in '' $ac_executable_extensions; do
12123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12124 ac_cv_prog_WINDMC="${ncn_progname}"
12125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12126 break 2
12128 done
12129 done
12130 IFS=$as_save_IFS
12134 WINDMC=$ac_cv_prog_WINDMC
12135 if test -n "$WINDMC"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12137 $as_echo "$WINDMC" >&6; }
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12144 done
12147 for ncn_progname in windmc; do
12148 if test -n "$ncn_tool_prefix"; then
12149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12150 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_prog_WINDMC+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 if test -n "$WINDMC"; then
12157 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12158 else
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168 break 2
12170 done
12171 done
12172 IFS=$as_save_IFS
12176 WINDMC=$ac_cv_prog_WINDMC
12177 if test -n "$WINDMC"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12179 $as_echo "$WINDMC" >&6; }
12180 else
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12187 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12189 set dummy ${ncn_progname}; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_prog_WINDMC+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 if test -n "$WINDMC"; then
12196 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12197 else
12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199 for as_dir in $PATH
12201 IFS=$as_save_IFS
12202 test -z "$as_dir" && as_dir=.
12203 for ac_exec_ext in '' $ac_executable_extensions; do
12204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12205 ac_cv_prog_WINDMC="${ncn_progname}"
12206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 break 2
12209 done
12210 done
12211 IFS=$as_save_IFS
12215 WINDMC=$ac_cv_prog_WINDMC
12216 if test -n "$WINDMC"; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12218 $as_echo "$WINDMC" >&6; }
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221 $as_echo "no" >&6; }
12226 test -n "$ac_cv_prog_WINDMC" && break
12227 done
12229 if test -z "$ac_cv_prog_WINDMC" ; then
12230 set dummy windmc
12231 if test $build = $host ; then
12232 WINDMC="$2"
12233 else
12234 WINDMC="${ncn_tool_prefix}$2"
12240 if test -n "$OBJCOPY"; then
12241 ac_cv_prog_OBJCOPY=$OBJCOPY
12242 elif test -n "$ac_cv_prog_OBJCOPY"; then
12243 OBJCOPY=$ac_cv_prog_OBJCOPY
12246 if test -n "$ac_cv_prog_OBJCOPY"; then
12247 for ncn_progname in objcopy; do
12248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12249 set dummy ${ncn_progname}; ac_word=$2
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12251 $as_echo_n "checking for $ac_word... " >&6; }
12252 if ${ac_cv_prog_OBJCOPY+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 if test -n "$OBJCOPY"; then
12256 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12257 else
12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259 for as_dir in $PATH
12261 IFS=$as_save_IFS
12262 test -z "$as_dir" && as_dir=.
12263 for ac_exec_ext in '' $ac_executable_extensions; do
12264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12265 ac_cv_prog_OBJCOPY="${ncn_progname}"
12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12267 break 2
12269 done
12270 done
12271 IFS=$as_save_IFS
12275 OBJCOPY=$ac_cv_prog_OBJCOPY
12276 if test -n "$OBJCOPY"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12278 $as_echo "$OBJCOPY" >&6; }
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12285 done
12288 for ncn_progname in objcopy; do
12289 if test -n "$ncn_tool_prefix"; then
12290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12291 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if ${ac_cv_prog_OBJCOPY+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 if test -n "$OBJCOPY"; then
12298 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12299 else
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12303 IFS=$as_save_IFS
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309 break 2
12311 done
12312 done
12313 IFS=$as_save_IFS
12317 OBJCOPY=$ac_cv_prog_OBJCOPY
12318 if test -n "$OBJCOPY"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12320 $as_echo "$OBJCOPY" >&6; }
12321 else
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12328 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12330 set dummy ${ncn_progname}; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332 $as_echo_n "checking for $ac_word... " >&6; }
12333 if ${ac_cv_prog_OBJCOPY+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 if test -n "$OBJCOPY"; then
12337 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12338 else
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12346 ac_cv_prog_OBJCOPY="${ncn_progname}"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 break 2
12350 done
12351 done
12352 IFS=$as_save_IFS
12356 OBJCOPY=$ac_cv_prog_OBJCOPY
12357 if test -n "$OBJCOPY"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12359 $as_echo "$OBJCOPY" >&6; }
12360 else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12367 test -n "$ac_cv_prog_OBJCOPY" && break
12368 done
12370 if test -z "$ac_cv_prog_OBJCOPY" ; then
12371 set dummy objcopy
12372 if test $build = $host ; then
12373 OBJCOPY="$2"
12374 else
12375 OBJCOPY="${ncn_tool_prefix}$2"
12381 if test -n "$OBJDUMP"; then
12382 ac_cv_prog_OBJDUMP=$OBJDUMP
12383 elif test -n "$ac_cv_prog_OBJDUMP"; then
12384 OBJDUMP=$ac_cv_prog_OBJDUMP
12387 if test -n "$ac_cv_prog_OBJDUMP"; then
12388 for ncn_progname in objdump; do
12389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12390 set dummy ${ncn_progname}; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_prog_OBJDUMP+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test -n "$OBJDUMP"; then
12397 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406 ac_cv_prog_OBJDUMP="${ncn_progname}"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12410 done
12411 done
12412 IFS=$as_save_IFS
12416 OBJDUMP=$ac_cv_prog_OBJDUMP
12417 if test -n "$OBJDUMP"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12419 $as_echo "$OBJDUMP" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12426 done
12429 for ncn_progname in objdump; do
12430 if test -n "$ncn_tool_prefix"; then
12431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12432 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if ${ac_cv_prog_OBJDUMP+:} false; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 if test -n "$OBJDUMP"; then
12439 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12440 else
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12452 done
12453 done
12454 IFS=$as_save_IFS
12458 OBJDUMP=$ac_cv_prog_OBJDUMP
12459 if test -n "$OBJDUMP"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12461 $as_echo "$OBJDUMP" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12469 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12471 set dummy ${ncn_progname}; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_prog_OBJDUMP+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 if test -n "$OBJDUMP"; then
12478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12487 ac_cv_prog_OBJDUMP="${ncn_progname}"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12491 done
12492 done
12493 IFS=$as_save_IFS
12497 OBJDUMP=$ac_cv_prog_OBJDUMP
12498 if test -n "$OBJDUMP"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12500 $as_echo "$OBJDUMP" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12508 test -n "$ac_cv_prog_OBJDUMP" && break
12509 done
12511 if test -z "$ac_cv_prog_OBJDUMP" ; then
12512 set dummy objdump
12513 if test $build = $host ; then
12514 OBJDUMP="$2"
12515 else
12516 OBJDUMP="${ncn_tool_prefix}$2"
12522 if test -n "$OTOOL"; then
12523 ac_cv_prog_OTOOL=$OTOOL
12524 elif test -n "$ac_cv_prog_OTOOL"; then
12525 OTOOL=$ac_cv_prog_OTOOL
12528 if test -n "$ac_cv_prog_OTOOL"; then
12529 for ncn_progname in otool; do
12530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12531 set dummy ${ncn_progname}; ac_word=$2
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533 $as_echo_n "checking for $ac_word... " >&6; }
12534 if ${ac_cv_prog_OTOOL+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 if test -n "$OTOOL"; then
12538 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12539 else
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547 ac_cv_prog_OTOOL="${ncn_progname}"
12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549 break 2
12551 done
12552 done
12553 IFS=$as_save_IFS
12557 OTOOL=$ac_cv_prog_OTOOL
12558 if test -n "$OTOOL"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12560 $as_echo "$OTOOL" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12567 done
12570 for ncn_progname in otool; do
12571 if test -n "$ncn_tool_prefix"; then
12572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if ${ac_cv_prog_OTOOL+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 if test -n "$OTOOL"; then
12580 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12581 else
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12593 done
12594 done
12595 IFS=$as_save_IFS
12599 OTOOL=$ac_cv_prog_OTOOL
12600 if test -n "$OTOOL"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12602 $as_echo "$OTOOL" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12610 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12612 set dummy ${ncn_progname}; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if ${ac_cv_prog_OTOOL+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 if test -n "$OTOOL"; then
12619 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12620 else
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12624 IFS=$as_save_IFS
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628 ac_cv_prog_OTOOL="${ncn_progname}"
12629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 break 2
12632 done
12633 done
12634 IFS=$as_save_IFS
12638 OTOOL=$ac_cv_prog_OTOOL
12639 if test -n "$OTOOL"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12641 $as_echo "$OTOOL" >&6; }
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12649 test -n "$ac_cv_prog_OTOOL" && break
12650 done
12652 if test -z "$ac_cv_prog_OTOOL" ; then
12653 set dummy otool
12654 if test $build = $host ; then
12655 OTOOL="$2"
12656 else
12657 OTOOL="${ncn_tool_prefix}$2"
12663 if test -n "$READELF"; then
12664 ac_cv_prog_READELF=$READELF
12665 elif test -n "$ac_cv_prog_READELF"; then
12666 READELF=$ac_cv_prog_READELF
12669 if test -n "$ac_cv_prog_READELF"; then
12670 for ncn_progname in readelf; do
12671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12672 set dummy ${ncn_progname}; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674 $as_echo_n "checking for $ac_word... " >&6; }
12675 if ${ac_cv_prog_READELF+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 if test -n "$READELF"; then
12679 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12680 else
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in $PATH
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12688 ac_cv_prog_READELF="${ncn_progname}"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 break 2
12692 done
12693 done
12694 IFS=$as_save_IFS
12698 READELF=$ac_cv_prog_READELF
12699 if test -n "$READELF"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12701 $as_echo "$READELF" >&6; }
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12708 done
12711 for ncn_progname in readelf; do
12712 if test -n "$ncn_tool_prefix"; then
12713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12714 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if ${ac_cv_prog_READELF+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test -n "$READELF"; then
12721 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12722 else
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12734 done
12735 done
12736 IFS=$as_save_IFS
12740 READELF=$ac_cv_prog_READELF
12741 if test -n "$READELF"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12743 $as_echo "$READELF" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12751 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12753 set dummy ${ncn_progname}; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if ${ac_cv_prog_READELF+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 if test -n "$READELF"; then
12760 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12761 else
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12765 IFS=$as_save_IFS
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12769 ac_cv_prog_READELF="${ncn_progname}"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771 break 2
12773 done
12774 done
12775 IFS=$as_save_IFS
12779 READELF=$ac_cv_prog_READELF
12780 if test -n "$READELF"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12782 $as_echo "$READELF" >&6; }
12783 else
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12790 test -n "$ac_cv_prog_READELF" && break
12791 done
12793 if test -z "$ac_cv_prog_READELF" ; then
12794 set dummy readelf
12795 if test $build = $host ; then
12796 READELF="$2"
12797 else
12798 READELF="${ncn_tool_prefix}$2"
12809 # Target tools.
12811 # Check whether --with-build-time-tools was given.
12812 if test "${with_build_time_tools+set}" = set; then :
12813 withval=$with_build_time_tools; case x"$withval" in
12814 x/*) ;;
12816 with_build_time_tools=
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12818 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12820 esac
12821 else
12822 with_build_time_tools=
12828 if test -n "$CC_FOR_TARGET"; then
12829 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12830 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12831 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12834 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12835 for ncn_progname in cc gcc; do
12836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12837 set dummy ${ncn_progname}; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 if test -n "$CC_FOR_TARGET"; then
12844 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12845 else
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
12851 for ac_exec_ext in '' $ac_executable_extensions; do
12852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12853 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 break 2
12857 done
12858 done
12859 IFS=$as_save_IFS
12863 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12864 if test -n "$CC_FOR_TARGET"; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12866 $as_echo "$CC_FOR_TARGET" >&6; }
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12873 done
12876 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12877 for ncn_progname in cc gcc; do
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12879 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12880 if test -x $with_build_time_tools/${ncn_progname}; then
12881 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12883 $as_echo "yes" >&6; }
12884 break
12885 else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12889 done
12892 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12893 for ncn_progname in cc gcc; do
12894 if test -n "$ncn_target_tool_prefix"; then
12895 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12896 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 if test -n "$CC_FOR_TARGET"; then
12903 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12904 else
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12912 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12916 done
12917 done
12918 IFS=$as_save_IFS
12922 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12923 if test -n "$CC_FOR_TARGET"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12925 $as_echo "$CC_FOR_TARGET" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12933 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12935 set dummy ${ncn_progname}; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 if test -n "$CC_FOR_TARGET"; then
12942 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12943 else
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12951 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12955 done
12956 done
12957 IFS=$as_save_IFS
12961 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12962 if test -n "$CC_FOR_TARGET"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12964 $as_echo "$CC_FOR_TARGET" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12972 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12973 done
12976 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12977 set dummy cc gcc
12978 if test $build = $target ; then
12979 CC_FOR_TARGET="$2"
12980 else
12981 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12983 else
12984 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12989 if test -n "$CXX_FOR_TARGET"; then
12990 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12991 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12992 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12995 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12996 for ncn_progname in c++ g++ cxx gxx; do
12997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12998 set dummy ${ncn_progname}; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 if test -n "$CXX_FOR_TARGET"; then
13005 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13006 else
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_exec_ext in '' $ac_executable_extensions; do
13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 break 2
13018 done
13019 done
13020 IFS=$as_save_IFS
13024 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13025 if test -n "$CXX_FOR_TARGET"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13027 $as_echo "$CXX_FOR_TARGET" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13034 done
13037 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13038 for ncn_progname in c++ g++ cxx gxx; do
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13040 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13041 if test -x $with_build_time_tools/${ncn_progname}; then
13042 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13044 $as_echo "yes" >&6; }
13045 break
13046 else
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13050 done
13053 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13054 for ncn_progname in c++ g++ cxx gxx; do
13055 if test -n "$ncn_target_tool_prefix"; then
13056 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13057 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059 $as_echo_n "checking for $ac_word... " >&6; }
13060 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 if test -n "$CXX_FOR_TARGET"; then
13064 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13065 else
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075 break 2
13077 done
13078 done
13079 IFS=$as_save_IFS
13083 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13084 if test -n "$CXX_FOR_TARGET"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13086 $as_echo "$CXX_FOR_TARGET" >&6; }
13087 else
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13094 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13096 set dummy ${ncn_progname}; ac_word=$2
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098 $as_echo_n "checking for $ac_word... " >&6; }
13099 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 if test -n "$CXX_FOR_TARGET"; then
13103 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13104 else
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13112 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 break 2
13116 done
13117 done
13118 IFS=$as_save_IFS
13122 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13123 if test -n "$CXX_FOR_TARGET"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13125 $as_echo "$CXX_FOR_TARGET" >&6; }
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13133 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13134 done
13137 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13138 set dummy c++ g++ cxx gxx
13139 if test $build = $target ; then
13140 CXX_FOR_TARGET="$2"
13141 else
13142 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13144 else
13145 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13150 if test -n "$GCC_FOR_TARGET"; then
13151 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13152 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13153 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13156 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13157 for ncn_progname in gcc; do
13158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13159 set dummy ${ncn_progname}; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161 $as_echo_n "checking for $ac_word... " >&6; }
13162 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 if test -n "$GCC_FOR_TARGET"; then
13166 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13167 else
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13179 done
13180 done
13181 IFS=$as_save_IFS
13185 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13186 if test -n "$GCC_FOR_TARGET"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13188 $as_echo "$GCC_FOR_TARGET" >&6; }
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13195 done
13198 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13199 for ncn_progname in gcc; do
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13201 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13202 if test -x $with_build_time_tools/${ncn_progname}; then
13203 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13205 $as_echo "yes" >&6; }
13206 break
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13211 done
13214 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13215 for ncn_progname in gcc; do
13216 if test -n "$ncn_target_tool_prefix"; then
13217 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13218 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220 $as_echo_n "checking for $ac_word... " >&6; }
13221 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 if test -n "$GCC_FOR_TARGET"; then
13225 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13226 else
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13234 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13238 done
13239 done
13240 IFS=$as_save_IFS
13244 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13245 if test -n "$GCC_FOR_TARGET"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13247 $as_echo "$GCC_FOR_TARGET" >&6; }
13248 else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13255 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13257 set dummy ${ncn_progname}; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 $as_echo_n "checking for $ac_word... " >&6; }
13260 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 if test -n "$GCC_FOR_TARGET"; then
13264 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13265 else
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 break 2
13277 done
13278 done
13279 IFS=$as_save_IFS
13283 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13284 if test -n "$GCC_FOR_TARGET"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13286 $as_echo "$GCC_FOR_TARGET" >&6; }
13287 else
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13294 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13295 done
13298 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13299 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13300 else
13301 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13306 if test -n "$GFORTRAN_FOR_TARGET"; then
13307 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13308 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13309 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13312 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13313 for ncn_progname in gfortran; do
13314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13315 set dummy ${ncn_progname}; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$GFORTRAN_FOR_TARGET"; then
13322 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13331 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13335 done
13336 done
13337 IFS=$as_save_IFS
13341 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13342 if test -n "$GFORTRAN_FOR_TARGET"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13344 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13351 done
13354 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13355 for ncn_progname in gfortran; do
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13357 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13358 if test -x $with_build_time_tools/${ncn_progname}; then
13359 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361 $as_echo "yes" >&6; }
13362 break
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13367 done
13370 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13371 for ncn_progname in gfortran; do
13372 if test -n "$ncn_target_tool_prefix"; then
13373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13374 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 if test -n "$GFORTRAN_FOR_TARGET"; then
13381 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13382 else
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13390 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13394 done
13395 done
13396 IFS=$as_save_IFS
13400 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13401 if test -n "$GFORTRAN_FOR_TARGET"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13403 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13411 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13413 set dummy ${ncn_progname}; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415 $as_echo_n "checking for $ac_word... " >&6; }
13416 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 if test -n "$GFORTRAN_FOR_TARGET"; then
13420 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13421 else
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13429 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13433 done
13434 done
13435 IFS=$as_save_IFS
13439 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13440 if test -n "$GFORTRAN_FOR_TARGET"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13442 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13450 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13451 done
13454 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13455 set dummy gfortran
13456 if test $build = $target ; then
13457 GFORTRAN_FOR_TARGET="$2"
13458 else
13459 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13461 else
13462 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13467 if test -n "$GOC_FOR_TARGET"; then
13468 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13469 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13470 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13473 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13474 for ncn_progname in gccgo; do
13475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13476 set dummy ${ncn_progname}; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 if test -n "$GOC_FOR_TARGET"; then
13483 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13484 else
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13492 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13496 done
13497 done
13498 IFS=$as_save_IFS
13502 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13503 if test -n "$GOC_FOR_TARGET"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13505 $as_echo "$GOC_FOR_TARGET" >&6; }
13506 else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13512 done
13515 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13516 for ncn_progname in gccgo; do
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13518 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13519 if test -x $with_build_time_tools/${ncn_progname}; then
13520 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13522 $as_echo "yes" >&6; }
13523 break
13524 else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13528 done
13531 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13532 for ncn_progname in gccgo; do
13533 if test -n "$ncn_target_tool_prefix"; then
13534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13535 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 if test -n "$GOC_FOR_TARGET"; then
13542 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13543 else
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13555 done
13556 done
13557 IFS=$as_save_IFS
13561 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13562 if test -n "$GOC_FOR_TARGET"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13564 $as_echo "$GOC_FOR_TARGET" >&6; }
13565 else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13572 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13574 set dummy ${ncn_progname}; ac_word=$2
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576 $as_echo_n "checking for $ac_word... " >&6; }
13577 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 if test -n "$GOC_FOR_TARGET"; then
13581 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13582 else
13583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13586 IFS=$as_save_IFS
13587 test -z "$as_dir" && as_dir=.
13588 for ac_exec_ext in '' $ac_executable_extensions; do
13589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13592 break 2
13594 done
13595 done
13596 IFS=$as_save_IFS
13600 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13601 if test -n "$GOC_FOR_TARGET"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13603 $as_echo "$GOC_FOR_TARGET" >&6; }
13604 else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13611 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13612 done
13615 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13616 set dummy gccgo
13617 if test $build = $target ; then
13618 GOC_FOR_TARGET="$2"
13619 else
13620 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13622 else
13623 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13628 if test -n "$GDC_FOR_TARGET"; then
13629 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13630 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13631 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13634 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13635 for ncn_progname in gdc; do
13636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13637 set dummy ${ncn_progname}; ac_word=$2
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13639 $as_echo_n "checking for $ac_word... " >&6; }
13640 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 if test -n "$GDC_FOR_TARGET"; then
13644 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13645 else
13646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647 for as_dir in $PATH
13649 IFS=$as_save_IFS
13650 test -z "$as_dir" && as_dir=.
13651 for ac_exec_ext in '' $ac_executable_extensions; do
13652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13653 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13655 break 2
13657 done
13658 done
13659 IFS=$as_save_IFS
13663 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13664 if test -n "$GDC_FOR_TARGET"; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13666 $as_echo "$GDC_FOR_TARGET" >&6; }
13667 else
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669 $as_echo "no" >&6; }
13673 done
13676 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13677 for ncn_progname in gdc; do
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13679 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13680 if test -x $with_build_time_tools/${ncn_progname}; then
13681 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13683 $as_echo "yes" >&6; }
13684 break
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687 $as_echo "no" >&6; }
13689 done
13692 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13693 for ncn_progname in gdc; do
13694 if test -n "$ncn_target_tool_prefix"; then
13695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13696 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 if test -n "$GDC_FOR_TARGET"; then
13703 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13716 done
13717 done
13718 IFS=$as_save_IFS
13722 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13723 if test -n "$GDC_FOR_TARGET"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13725 $as_echo "$GDC_FOR_TARGET" >&6; }
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13733 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13735 set dummy ${ncn_progname}; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737 $as_echo_n "checking for $ac_word... " >&6; }
13738 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741 if test -n "$GDC_FOR_TARGET"; then
13742 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13743 else
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13747 IFS=$as_save_IFS
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13751 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753 break 2
13755 done
13756 done
13757 IFS=$as_save_IFS
13761 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13762 if test -n "$GDC_FOR_TARGET"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13764 $as_echo "$GDC_FOR_TARGET" >&6; }
13765 else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13772 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13773 done
13776 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13777 set dummy gdc
13778 if test $build = $target ; then
13779 GDC_FOR_TARGET="$2"
13780 else
13781 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13783 else
13784 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13789 cat > conftest.c << \EOF
13790 #ifdef __GNUC__
13791 gcc_yay;
13792 #endif
13794 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13795 have_gcc_for_target=yes
13796 else
13797 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13798 have_gcc_for_target=no
13800 rm conftest.c
13805 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13806 if test -n "$with_build_time_tools"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13808 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13809 if test -x $with_build_time_tools/ar; then
13810 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13811 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13813 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13814 else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13818 elif test $build != $host && test $have_gcc_for_target = yes; then
13819 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13820 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13821 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13824 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13825 # Extract the first word of "ar", so it can be a program name with args.
13826 set dummy ar; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 case $AR_FOR_TARGET in
13833 [\\/]* | ?:[\\/]*)
13834 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $gcc_cv_tool_dirs
13840 IFS=$as_save_IFS
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846 break 2
13848 done
13849 done
13850 IFS=$as_save_IFS
13853 esac
13855 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13856 if test -n "$AR_FOR_TARGET"; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13858 $as_echo "$AR_FOR_TARGET" >&6; }
13859 else
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13866 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13869 if test -n "$AR_FOR_TARGET"; then
13870 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13871 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13872 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13875 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13876 for ncn_progname in ar; do
13877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13878 set dummy ${ncn_progname}; ac_word=$2
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13880 $as_echo_n "checking for $ac_word... " >&6; }
13881 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 if test -n "$AR_FOR_TARGET"; then
13885 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13886 else
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13890 IFS=$as_save_IFS
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
13893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13894 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13896 break 2
13898 done
13899 done
13900 IFS=$as_save_IFS
13904 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13905 if test -n "$AR_FOR_TARGET"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13907 $as_echo "$AR_FOR_TARGET" >&6; }
13908 else
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910 $as_echo "no" >&6; }
13914 done
13917 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13918 for ncn_progname in ar; do
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13920 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13921 if test -x $with_build_time_tools/${ncn_progname}; then
13922 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13924 $as_echo "yes" >&6; }
13925 break
13926 else
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13928 $as_echo "no" >&6; }
13930 done
13933 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13934 for ncn_progname in ar; do
13935 if test -n "$ncn_target_tool_prefix"; then
13936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13937 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13939 $as_echo_n "checking for $ac_word... " >&6; }
13940 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 if test -n "$AR_FOR_TARGET"; then
13944 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13945 else
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13953 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 break 2
13957 done
13958 done
13959 IFS=$as_save_IFS
13963 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13964 if test -n "$AR_FOR_TARGET"; then
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13966 $as_echo "$AR_FOR_TARGET" >&6; }
13967 else
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13969 $as_echo "no" >&6; }
13974 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13976 set dummy ${ncn_progname}; ac_word=$2
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13978 $as_echo_n "checking for $ac_word... " >&6; }
13979 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 if test -n "$AR_FOR_TARGET"; then
13983 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13984 else
13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13994 break 2
13996 done
13997 done
13998 IFS=$as_save_IFS
14002 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14003 if test -n "$AR_FOR_TARGET"; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14005 $as_echo "$AR_FOR_TARGET" >&6; }
14006 else
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14013 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14014 done
14017 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14018 set dummy ar
14019 if test $build = $target ; then
14020 AR_FOR_TARGET="$2"
14021 else
14022 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14024 else
14025 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14028 else
14029 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14035 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14036 if test -n "$with_build_time_tools"; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14038 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14039 if test -x $with_build_time_tools/as; then
14040 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14041 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14043 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14044 else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14048 elif test $build != $host && test $have_gcc_for_target = yes; then
14049 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14050 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14051 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14054 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14055 # Extract the first word of "as", so it can be a program name with args.
14056 set dummy as; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 case $AS_FOR_TARGET in
14063 [\\/]* | ?:[\\/]*)
14064 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $gcc_cv_tool_dirs
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14078 done
14079 done
14080 IFS=$as_save_IFS
14083 esac
14085 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14086 if test -n "$AS_FOR_TARGET"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14088 $as_echo "$AS_FOR_TARGET" >&6; }
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14096 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14099 if test -n "$AS_FOR_TARGET"; then
14100 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14101 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14102 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14105 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14106 for ncn_progname in as; do
14107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14108 set dummy ${ncn_progname}; ac_word=$2
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14110 $as_echo_n "checking for $ac_word... " >&6; }
14111 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 if test -n "$AS_FOR_TARGET"; then
14115 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14116 else
14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14120 IFS=$as_save_IFS
14121 test -z "$as_dir" && as_dir=.
14122 for ac_exec_ext in '' $ac_executable_extensions; do
14123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14124 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14126 break 2
14128 done
14129 done
14130 IFS=$as_save_IFS
14134 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14135 if test -n "$AS_FOR_TARGET"; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14137 $as_echo "$AS_FOR_TARGET" >&6; }
14138 else
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14144 done
14147 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14148 for ncn_progname in as; do
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14150 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14151 if test -x $with_build_time_tools/${ncn_progname}; then
14152 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154 $as_echo "yes" >&6; }
14155 break
14156 else
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14160 done
14163 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14164 for ncn_progname in as; do
14165 if test -n "$ncn_target_tool_prefix"; then
14166 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14167 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169 $as_echo_n "checking for $ac_word... " >&6; }
14170 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 if test -n "$AS_FOR_TARGET"; then
14174 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14175 else
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $PATH
14179 IFS=$as_save_IFS
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14185 break 2
14187 done
14188 done
14189 IFS=$as_save_IFS
14193 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14194 if test -n "$AS_FOR_TARGET"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14196 $as_echo "$AS_FOR_TARGET" >&6; }
14197 else
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14204 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14206 set dummy ${ncn_progname}; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14208 $as_echo_n "checking for $ac_word... " >&6; }
14209 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 if test -n "$AS_FOR_TARGET"; then
14213 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14214 else
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14218 IFS=$as_save_IFS
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14222 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14224 break 2
14226 done
14227 done
14228 IFS=$as_save_IFS
14232 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14233 if test -n "$AS_FOR_TARGET"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14235 $as_echo "$AS_FOR_TARGET" >&6; }
14236 else
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14243 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14244 done
14247 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14248 set dummy as
14249 if test $build = $target ; then
14250 AS_FOR_TARGET="$2"
14251 else
14252 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14254 else
14255 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14258 else
14259 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14265 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14266 if test -n "$with_build_time_tools"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14268 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14269 if test -x $with_build_time_tools/dlltool; then
14270 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14271 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14273 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14274 else
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14278 elif test $build != $host && test $have_gcc_for_target = yes; then
14279 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14280 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14281 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14284 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14285 # Extract the first word of "dlltool", so it can be a program name with args.
14286 set dummy dlltool; ac_word=$2
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14288 $as_echo_n "checking for $ac_word... " >&6; }
14289 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14290 $as_echo_n "(cached) " >&6
14291 else
14292 case $DLLTOOL_FOR_TARGET in
14293 [\\/]* | ?:[\\/]*)
14294 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $gcc_cv_tool_dirs
14300 IFS=$as_save_IFS
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14304 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14306 break 2
14308 done
14309 done
14310 IFS=$as_save_IFS
14313 esac
14315 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14316 if test -n "$DLLTOOL_FOR_TARGET"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14318 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14319 else
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321 $as_echo "no" >&6; }
14326 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14329 if test -n "$DLLTOOL_FOR_TARGET"; then
14330 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14331 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14332 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14335 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14336 for ncn_progname in dlltool; do
14337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14338 set dummy ${ncn_progname}; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 $as_echo_n "checking for $ac_word... " >&6; }
14341 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 if test -n "$DLLTOOL_FOR_TARGET"; then
14345 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14346 else
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14350 IFS=$as_save_IFS
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14356 break 2
14358 done
14359 done
14360 IFS=$as_save_IFS
14364 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14365 if test -n "$DLLTOOL_FOR_TARGET"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14367 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14368 else
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14374 done
14377 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14378 for ncn_progname in dlltool; do
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14380 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14381 if test -x $with_build_time_tools/${ncn_progname}; then
14382 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14384 $as_echo "yes" >&6; }
14385 break
14386 else
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388 $as_echo "no" >&6; }
14390 done
14393 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14394 for ncn_progname in dlltool; do
14395 if test -n "$ncn_target_tool_prefix"; then
14396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14397 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14399 $as_echo_n "checking for $ac_word... " >&6; }
14400 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 if test -n "$DLLTOOL_FOR_TARGET"; then
14404 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14405 else
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $PATH
14409 IFS=$as_save_IFS
14410 test -z "$as_dir" && as_dir=.
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14413 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14415 break 2
14417 done
14418 done
14419 IFS=$as_save_IFS
14423 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14424 if test -n "$DLLTOOL_FOR_TARGET"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14426 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14427 else
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14434 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14436 set dummy ${ncn_progname}; ac_word=$2
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14438 $as_echo_n "checking for $ac_word... " >&6; }
14439 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 if test -n "$DLLTOOL_FOR_TARGET"; then
14443 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14444 else
14445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446 for as_dir in $PATH
14448 IFS=$as_save_IFS
14449 test -z "$as_dir" && as_dir=.
14450 for ac_exec_ext in '' $ac_executable_extensions; do
14451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14452 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14454 break 2
14456 done
14457 done
14458 IFS=$as_save_IFS
14462 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14463 if test -n "$DLLTOOL_FOR_TARGET"; then
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14465 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14466 else
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14468 $as_echo "no" >&6; }
14473 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14474 done
14477 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14478 set dummy dlltool
14479 if test $build = $target ; then
14480 DLLTOOL_FOR_TARGET="$2"
14481 else
14482 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14484 else
14485 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14488 else
14489 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14495 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14496 if test -n "$with_build_time_tools"; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14498 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14499 if test -x $with_build_time_tools/dsymutil; then
14500 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14501 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14503 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14508 elif test $build != $host && test $have_gcc_for_target = yes; then
14509 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14510 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14511 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14514 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14515 # Extract the first word of "dsymutil", so it can be a program name with args.
14516 set dummy dsymutil; ac_word=$2
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14518 $as_echo_n "checking for $ac_word... " >&6; }
14519 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14520 $as_echo_n "(cached) " >&6
14521 else
14522 case $DSYMUTIL_FOR_TARGET in
14523 [\\/]* | ?:[\\/]*)
14524 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14528 for as_dir in $gcc_cv_tool_dirs
14530 IFS=$as_save_IFS
14531 test -z "$as_dir" && as_dir=.
14532 for ac_exec_ext in '' $ac_executable_extensions; do
14533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14534 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14536 break 2
14538 done
14539 done
14540 IFS=$as_save_IFS
14543 esac
14545 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14546 if test -n "$DSYMUTIL_FOR_TARGET"; then
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14548 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14549 else
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 $as_echo "no" >&6; }
14556 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14559 if test -n "$DSYMUTIL_FOR_TARGET"; then
14560 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14561 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14562 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14565 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14566 for ncn_progname in dsymutil; do
14567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14568 set dummy ${ncn_progname}; ac_word=$2
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14570 $as_echo_n "checking for $ac_word... " >&6; }
14571 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14572 $as_echo_n "(cached) " >&6
14573 else
14574 if test -n "$DSYMUTIL_FOR_TARGET"; then
14575 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14576 else
14577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578 for as_dir in $PATH
14580 IFS=$as_save_IFS
14581 test -z "$as_dir" && as_dir=.
14582 for ac_exec_ext in '' $ac_executable_extensions; do
14583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14584 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14586 break 2
14588 done
14589 done
14590 IFS=$as_save_IFS
14594 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14595 if test -n "$DSYMUTIL_FOR_TARGET"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14597 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14604 done
14607 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14608 for ncn_progname in dsymutil; do
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14610 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14611 if test -x $with_build_time_tools/${ncn_progname}; then
14612 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14614 $as_echo "yes" >&6; }
14615 break
14616 else
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14618 $as_echo "no" >&6; }
14620 done
14623 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14624 for ncn_progname in dsymutil; do
14625 if test -n "$ncn_target_tool_prefix"; then
14626 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14627 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14629 $as_echo_n "checking for $ac_word... " >&6; }
14630 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632 else
14633 if test -n "$DSYMUTIL_FOR_TARGET"; then
14634 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14635 else
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14639 IFS=$as_save_IFS
14640 test -z "$as_dir" && as_dir=.
14641 for ac_exec_ext in '' $ac_executable_extensions; do
14642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14643 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14645 break 2
14647 done
14648 done
14649 IFS=$as_save_IFS
14653 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14654 if test -n "$DSYMUTIL_FOR_TARGET"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14656 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14657 else
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14659 $as_echo "no" >&6; }
14664 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14666 set dummy ${ncn_progname}; ac_word=$2
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14668 $as_echo_n "checking for $ac_word... " >&6; }
14669 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14670 $as_echo_n "(cached) " >&6
14671 else
14672 if test -n "$DSYMUTIL_FOR_TARGET"; then
14673 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14674 else
14675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676 for as_dir in $PATH
14678 IFS=$as_save_IFS
14679 test -z "$as_dir" && as_dir=.
14680 for ac_exec_ext in '' $ac_executable_extensions; do
14681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14682 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14684 break 2
14686 done
14687 done
14688 IFS=$as_save_IFS
14692 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14693 if test -n "$DSYMUTIL_FOR_TARGET"; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14695 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14696 else
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698 $as_echo "no" >&6; }
14703 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14704 done
14707 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14708 set dummy dsymutil
14709 if test $build = $target ; then
14710 DSYMUTIL_FOR_TARGET="$2"
14711 else
14712 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14714 else
14715 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14718 else
14719 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14725 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14726 if test -n "$with_build_time_tools"; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14728 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14729 if test -x $with_build_time_tools/ld; then
14730 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14731 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14733 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14738 elif test $build != $host && test $have_gcc_for_target = yes; then
14739 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14740 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14741 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14744 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14745 # Extract the first word of "ld", so it can be a program name with args.
14746 set dummy ld; ac_word=$2
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14748 $as_echo_n "checking for $ac_word... " >&6; }
14749 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14750 $as_echo_n "(cached) " >&6
14751 else
14752 case $LD_FOR_TARGET in
14753 [\\/]* | ?:[\\/]*)
14754 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758 for as_dir in $gcc_cv_tool_dirs
14760 IFS=$as_save_IFS
14761 test -z "$as_dir" && as_dir=.
14762 for ac_exec_ext in '' $ac_executable_extensions; do
14763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14764 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14766 break 2
14768 done
14769 done
14770 IFS=$as_save_IFS
14773 esac
14775 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14776 if test -n "$LD_FOR_TARGET"; then
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14778 $as_echo "$LD_FOR_TARGET" >&6; }
14779 else
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781 $as_echo "no" >&6; }
14786 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14789 if test -n "$LD_FOR_TARGET"; then
14790 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14791 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14792 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14795 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14796 for ncn_progname in ld; do
14797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14798 set dummy ${ncn_progname}; ac_word=$2
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14800 $as_echo_n "checking for $ac_word... " >&6; }
14801 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14802 $as_echo_n "(cached) " >&6
14803 else
14804 if test -n "$LD_FOR_TARGET"; then
14805 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14806 else
14807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808 for as_dir in $PATH
14810 IFS=$as_save_IFS
14811 test -z "$as_dir" && as_dir=.
14812 for ac_exec_ext in '' $ac_executable_extensions; do
14813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14814 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14816 break 2
14818 done
14819 done
14820 IFS=$as_save_IFS
14824 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14825 if test -n "$LD_FOR_TARGET"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14827 $as_echo "$LD_FOR_TARGET" >&6; }
14828 else
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14834 done
14837 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14838 for ncn_progname in ld; do
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14840 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14841 if test -x $with_build_time_tools/${ncn_progname}; then
14842 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14844 $as_echo "yes" >&6; }
14845 break
14846 else
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
14850 done
14853 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14854 for ncn_progname in ld; do
14855 if test -n "$ncn_target_tool_prefix"; then
14856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14857 set dummy ${ncn_target_tool_prefix}${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_LD_FOR_TARGET+:} false; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 if test -n "$LD_FOR_TARGET"; then
14864 ac_cv_prog_LD_FOR_TARGET="$LD_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_LD_FOR_TARGET="${ncn_target_tool_prefix}${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 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14884 if test -n "$LD_FOR_TARGET"; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14886 $as_echo "$LD_FOR_TARGET" >&6; }
14887 else
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 $as_echo "no" >&6; }
14894 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14896 set dummy ${ncn_progname}; ac_word=$2
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14898 $as_echo_n "checking for $ac_word... " >&6; }
14899 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14900 $as_echo_n "(cached) " >&6
14901 else
14902 if test -n "$LD_FOR_TARGET"; then
14903 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14904 else
14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 for as_dir in $PATH
14908 IFS=$as_save_IFS
14909 test -z "$as_dir" && as_dir=.
14910 for ac_exec_ext in '' $ac_executable_extensions; do
14911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14912 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14914 break 2
14916 done
14917 done
14918 IFS=$as_save_IFS
14922 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14923 if test -n "$LD_FOR_TARGET"; then
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14925 $as_echo "$LD_FOR_TARGET" >&6; }
14926 else
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14928 $as_echo "no" >&6; }
14933 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14934 done
14937 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14938 set dummy ld
14939 if test $build = $target ; then
14940 LD_FOR_TARGET="$2"
14941 else
14942 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14944 else
14945 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14948 else
14949 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14955 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14956 if test -n "$with_build_time_tools"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14958 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14959 if test -x $with_build_time_tools/lipo; then
14960 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14961 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14963 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14964 else
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966 $as_echo "no" >&6; }
14968 elif test $build != $host && test $have_gcc_for_target = yes; then
14969 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14970 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14971 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14974 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14975 # Extract the first word of "lipo", so it can be a program name with args.
14976 set dummy lipo; ac_word=$2
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14978 $as_echo_n "checking for $ac_word... " >&6; }
14979 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14980 $as_echo_n "(cached) " >&6
14981 else
14982 case $LIPO_FOR_TARGET in
14983 [\\/]* | ?:[\\/]*)
14984 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14988 for as_dir in $gcc_cv_tool_dirs
14990 IFS=$as_save_IFS
14991 test -z "$as_dir" && as_dir=.
14992 for ac_exec_ext in '' $ac_executable_extensions; do
14993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14994 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14996 break 2
14998 done
14999 done
15000 IFS=$as_save_IFS
15003 esac
15005 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15006 if test -n "$LIPO_FOR_TARGET"; then
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15008 $as_echo "$LIPO_FOR_TARGET" >&6; }
15009 else
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15011 $as_echo "no" >&6; }
15016 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15019 if test -n "$LIPO_FOR_TARGET"; then
15020 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15021 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15022 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15025 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15026 for ncn_progname in lipo; do
15027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15028 set dummy ${ncn_progname}; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030 $as_echo_n "checking for $ac_word... " >&6; }
15031 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15032 $as_echo_n "(cached) " >&6
15033 else
15034 if test -n "$LIPO_FOR_TARGET"; then
15035 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15036 else
15037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15038 for as_dir in $PATH
15040 IFS=$as_save_IFS
15041 test -z "$as_dir" && as_dir=.
15042 for ac_exec_ext in '' $ac_executable_extensions; do
15043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15044 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15046 break 2
15048 done
15049 done
15050 IFS=$as_save_IFS
15054 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15055 if test -n "$LIPO_FOR_TARGET"; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15057 $as_echo "$LIPO_FOR_TARGET" >&6; }
15058 else
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15064 done
15067 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15068 for ncn_progname in lipo; do
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15070 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15071 if test -x $with_build_time_tools/${ncn_progname}; then
15072 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15074 $as_echo "yes" >&6; }
15075 break
15076 else
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15078 $as_echo "no" >&6; }
15080 done
15083 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15084 for ncn_progname in lipo; do
15085 if test -n "$ncn_target_tool_prefix"; then
15086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15087 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15089 $as_echo_n "checking for $ac_word... " >&6; }
15090 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 if test -n "$LIPO_FOR_TARGET"; then
15094 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15095 else
15096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $PATH
15099 IFS=$as_save_IFS
15100 test -z "$as_dir" && as_dir=.
15101 for ac_exec_ext in '' $ac_executable_extensions; do
15102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15103 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15105 break 2
15107 done
15108 done
15109 IFS=$as_save_IFS
15113 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15114 if test -n "$LIPO_FOR_TARGET"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15116 $as_echo "$LIPO_FOR_TARGET" >&6; }
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15124 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15126 set dummy ${ncn_progname}; ac_word=$2
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15128 $as_echo_n "checking for $ac_word... " >&6; }
15129 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15130 $as_echo_n "(cached) " >&6
15131 else
15132 if test -n "$LIPO_FOR_TARGET"; then
15133 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15134 else
15135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136 for as_dir in $PATH
15138 IFS=$as_save_IFS
15139 test -z "$as_dir" && as_dir=.
15140 for ac_exec_ext in '' $ac_executable_extensions; do
15141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15142 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15144 break 2
15146 done
15147 done
15148 IFS=$as_save_IFS
15152 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15153 if test -n "$LIPO_FOR_TARGET"; then
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15155 $as_echo "$LIPO_FOR_TARGET" >&6; }
15156 else
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158 $as_echo "no" >&6; }
15163 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15164 done
15167 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15168 set dummy lipo
15169 if test $build = $target ; then
15170 LIPO_FOR_TARGET="$2"
15171 else
15172 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15174 else
15175 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15178 else
15179 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15185 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15186 if test -n "$with_build_time_tools"; then
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15188 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15189 if test -x $with_build_time_tools/nm; then
15190 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15191 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15193 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15194 else
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15198 elif test $build != $host && test $have_gcc_for_target = yes; then
15199 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15200 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15201 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15204 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15205 # Extract the first word of "nm", so it can be a program name with args.
15206 set dummy nm; ac_word=$2
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15208 $as_echo_n "checking for $ac_word... " >&6; }
15209 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 case $NM_FOR_TARGET in
15213 [\\/]* | ?:[\\/]*)
15214 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218 for as_dir in $gcc_cv_tool_dirs
15220 IFS=$as_save_IFS
15221 test -z "$as_dir" && as_dir=.
15222 for ac_exec_ext in '' $ac_executable_extensions; do
15223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15224 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15226 break 2
15228 done
15229 done
15230 IFS=$as_save_IFS
15233 esac
15235 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15236 if test -n "$NM_FOR_TARGET"; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15238 $as_echo "$NM_FOR_TARGET" >&6; }
15239 else
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241 $as_echo "no" >&6; }
15246 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15249 if test -n "$NM_FOR_TARGET"; then
15250 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15251 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15252 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15255 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15256 for ncn_progname in nm; do
15257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15258 set dummy ${ncn_progname}; ac_word=$2
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15260 $as_echo_n "checking for $ac_word... " >&6; }
15261 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264 if test -n "$NM_FOR_TARGET"; then
15265 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15266 else
15267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15268 for as_dir in $PATH
15270 IFS=$as_save_IFS
15271 test -z "$as_dir" && as_dir=.
15272 for ac_exec_ext in '' $ac_executable_extensions; do
15273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15274 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15276 break 2
15278 done
15279 done
15280 IFS=$as_save_IFS
15284 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15285 if test -n "$NM_FOR_TARGET"; then
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15287 $as_echo "$NM_FOR_TARGET" >&6; }
15288 else
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15290 $as_echo "no" >&6; }
15294 done
15297 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15298 for ncn_progname in nm; do
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15300 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15301 if test -x $with_build_time_tools/${ncn_progname}; then
15302 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15304 $as_echo "yes" >&6; }
15305 break
15306 else
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308 $as_echo "no" >&6; }
15310 done
15313 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15314 for ncn_progname in nm; do
15315 if test -n "$ncn_target_tool_prefix"; then
15316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15317 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15319 $as_echo_n "checking for $ac_word... " >&6; }
15320 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15321 $as_echo_n "(cached) " >&6
15322 else
15323 if test -n "$NM_FOR_TARGET"; then
15324 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15325 else
15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $PATH
15329 IFS=$as_save_IFS
15330 test -z "$as_dir" && as_dir=.
15331 for ac_exec_ext in '' $ac_executable_extensions; do
15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15333 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15335 break 2
15337 done
15338 done
15339 IFS=$as_save_IFS
15343 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15344 if test -n "$NM_FOR_TARGET"; then
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15346 $as_echo "$NM_FOR_TARGET" >&6; }
15347 else
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349 $as_echo "no" >&6; }
15354 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15356 set dummy ${ncn_progname}; ac_word=$2
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15358 $as_echo_n "checking for $ac_word... " >&6; }
15359 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15360 $as_echo_n "(cached) " >&6
15361 else
15362 if test -n "$NM_FOR_TARGET"; then
15363 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15364 else
15365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15366 for as_dir in $PATH
15368 IFS=$as_save_IFS
15369 test -z "$as_dir" && as_dir=.
15370 for ac_exec_ext in '' $ac_executable_extensions; do
15371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15372 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15374 break 2
15376 done
15377 done
15378 IFS=$as_save_IFS
15382 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15383 if test -n "$NM_FOR_TARGET"; then
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15385 $as_echo "$NM_FOR_TARGET" >&6; }
15386 else
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15388 $as_echo "no" >&6; }
15393 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15394 done
15397 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15398 set dummy nm
15399 if test $build = $target ; then
15400 NM_FOR_TARGET="$2"
15401 else
15402 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15404 else
15405 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15408 else
15409 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15415 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15416 if test -n "$with_build_time_tools"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15418 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15419 if test -x $with_build_time_tools/objcopy; then
15420 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15421 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15423 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15424 else
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426 $as_echo "no" >&6; }
15428 elif test $build != $host && test $have_gcc_for_target = yes; then
15429 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15430 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15431 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15434 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15435 # Extract the first word of "objcopy", so it can be a program name with args.
15436 set dummy objcopy; ac_word=$2
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15438 $as_echo_n "checking for $ac_word... " >&6; }
15439 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 case $OBJCOPY_FOR_TARGET in
15443 [\\/]* | ?:[\\/]*)
15444 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448 for as_dir in $gcc_cv_tool_dirs
15450 IFS=$as_save_IFS
15451 test -z "$as_dir" && as_dir=.
15452 for ac_exec_ext in '' $ac_executable_extensions; do
15453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15454 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15456 break 2
15458 done
15459 done
15460 IFS=$as_save_IFS
15463 esac
15465 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15466 if test -n "$OBJCOPY_FOR_TARGET"; then
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15468 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15469 else
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15471 $as_echo "no" >&6; }
15476 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15479 if test -n "$OBJCOPY_FOR_TARGET"; then
15480 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15481 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15482 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15485 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15486 for ncn_progname in objcopy; do
15487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15488 set dummy ${ncn_progname}; ac_word=$2
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15490 $as_echo_n "checking for $ac_word... " >&6; }
15491 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 if test -n "$OBJCOPY_FOR_TARGET"; then
15495 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15496 else
15497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498 for as_dir in $PATH
15500 IFS=$as_save_IFS
15501 test -z "$as_dir" && as_dir=.
15502 for ac_exec_ext in '' $ac_executable_extensions; do
15503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15504 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15506 break 2
15508 done
15509 done
15510 IFS=$as_save_IFS
15514 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15515 if test -n "$OBJCOPY_FOR_TARGET"; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15517 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15518 else
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520 $as_echo "no" >&6; }
15524 done
15527 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15528 for ncn_progname in objcopy; do
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15530 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15531 if test -x $with_build_time_tools/${ncn_progname}; then
15532 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534 $as_echo "yes" >&6; }
15535 break
15536 else
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15538 $as_echo "no" >&6; }
15540 done
15543 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15544 for ncn_progname in objcopy; do
15545 if test -n "$ncn_target_tool_prefix"; then
15546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15549 $as_echo_n "checking for $ac_word... " >&6; }
15550 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15551 $as_echo_n "(cached) " >&6
15552 else
15553 if test -n "$OBJCOPY_FOR_TARGET"; then
15554 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15555 else
15556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557 for as_dir in $PATH
15559 IFS=$as_save_IFS
15560 test -z "$as_dir" && as_dir=.
15561 for ac_exec_ext in '' $ac_executable_extensions; do
15562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15563 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15565 break 2
15567 done
15568 done
15569 IFS=$as_save_IFS
15573 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15574 if test -n "$OBJCOPY_FOR_TARGET"; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15576 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15577 else
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15579 $as_echo "no" >&6; }
15584 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15586 set dummy ${ncn_progname}; ac_word=$2
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15588 $as_echo_n "checking for $ac_word... " >&6; }
15589 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15590 $as_echo_n "(cached) " >&6
15591 else
15592 if test -n "$OBJCOPY_FOR_TARGET"; then
15593 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15594 else
15595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15596 for as_dir in $PATH
15598 IFS=$as_save_IFS
15599 test -z "$as_dir" && as_dir=.
15600 for ac_exec_ext in '' $ac_executable_extensions; do
15601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15602 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15604 break 2
15606 done
15607 done
15608 IFS=$as_save_IFS
15612 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15613 if test -n "$OBJCOPY_FOR_TARGET"; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15615 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15616 else
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15618 $as_echo "no" >&6; }
15623 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15624 done
15627 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15628 set dummy objcopy
15629 if test $build = $target ; then
15630 OBJCOPY_FOR_TARGET="$2"
15631 else
15632 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15634 else
15635 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15638 else
15639 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15645 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15646 if test -n "$with_build_time_tools"; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15648 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15649 if test -x $with_build_time_tools/objdump; then
15650 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15651 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15653 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15654 else
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 $as_echo "no" >&6; }
15658 elif test $build != $host && test $have_gcc_for_target = yes; then
15659 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15660 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15661 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15664 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15665 # Extract the first word of "objdump", so it can be a program name with args.
15666 set dummy objdump; ac_word=$2
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15668 $as_echo_n "checking for $ac_word... " >&6; }
15669 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15670 $as_echo_n "(cached) " >&6
15671 else
15672 case $OBJDUMP_FOR_TARGET in
15673 [\\/]* | ?:[\\/]*)
15674 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15678 for as_dir in $gcc_cv_tool_dirs
15680 IFS=$as_save_IFS
15681 test -z "$as_dir" && as_dir=.
15682 for ac_exec_ext in '' $ac_executable_extensions; do
15683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15684 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15686 break 2
15688 done
15689 done
15690 IFS=$as_save_IFS
15693 esac
15695 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15696 if test -n "$OBJDUMP_FOR_TARGET"; then
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15698 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15699 else
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15701 $as_echo "no" >&6; }
15706 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15709 if test -n "$OBJDUMP_FOR_TARGET"; then
15710 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15711 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15712 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15715 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15716 for ncn_progname in objdump; do
15717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15718 set dummy ${ncn_progname}; ac_word=$2
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15720 $as_echo_n "checking for $ac_word... " >&6; }
15721 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15722 $as_echo_n "(cached) " >&6
15723 else
15724 if test -n "$OBJDUMP_FOR_TARGET"; then
15725 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15726 else
15727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15730 IFS=$as_save_IFS
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15734 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15736 break 2
15738 done
15739 done
15740 IFS=$as_save_IFS
15744 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15745 if test -n "$OBJDUMP_FOR_TARGET"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15747 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15748 else
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750 $as_echo "no" >&6; }
15754 done
15757 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15758 for ncn_progname in objdump; do
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15760 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15761 if test -x $with_build_time_tools/${ncn_progname}; then
15762 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15764 $as_echo "yes" >&6; }
15765 break
15766 else
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15768 $as_echo "no" >&6; }
15770 done
15773 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15774 for ncn_progname in objdump; do
15775 if test -n "$ncn_target_tool_prefix"; then
15776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15777 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779 $as_echo_n "checking for $ac_word... " >&6; }
15780 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15781 $as_echo_n "(cached) " >&6
15782 else
15783 if test -n "$OBJDUMP_FOR_TARGET"; then
15784 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15785 else
15786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787 for as_dir in $PATH
15789 IFS=$as_save_IFS
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15793 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15795 break 2
15797 done
15798 done
15799 IFS=$as_save_IFS
15803 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15804 if test -n "$OBJDUMP_FOR_TARGET"; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15806 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15807 else
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15809 $as_echo "no" >&6; }
15814 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15816 set dummy ${ncn_progname}; ac_word=$2
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15818 $as_echo_n "checking for $ac_word... " >&6; }
15819 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15820 $as_echo_n "(cached) " >&6
15821 else
15822 if test -n "$OBJDUMP_FOR_TARGET"; then
15823 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15824 else
15825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15826 for as_dir in $PATH
15828 IFS=$as_save_IFS
15829 test -z "$as_dir" && as_dir=.
15830 for ac_exec_ext in '' $ac_executable_extensions; do
15831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15832 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15834 break 2
15836 done
15837 done
15838 IFS=$as_save_IFS
15842 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15843 if test -n "$OBJDUMP_FOR_TARGET"; then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15845 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15846 else
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848 $as_echo "no" >&6; }
15853 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15854 done
15857 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15858 set dummy objdump
15859 if test $build = $target ; then
15860 OBJDUMP_FOR_TARGET="$2"
15861 else
15862 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15864 else
15865 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15868 else
15869 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15875 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15876 if test -n "$with_build_time_tools"; then
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15878 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15879 if test -x $with_build_time_tools/otool; then
15880 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15881 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15883 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15884 else
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886 $as_echo "no" >&6; }
15888 elif test $build != $host && test $have_gcc_for_target = yes; then
15889 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15890 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15891 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15894 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15895 # Extract the first word of "otool", so it can be a program name with args.
15896 set dummy otool; ac_word=$2
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15898 $as_echo_n "checking for $ac_word... " >&6; }
15899 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15900 $as_echo_n "(cached) " >&6
15901 else
15902 case $OTOOL_FOR_TARGET in
15903 [\\/]* | ?:[\\/]*)
15904 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908 for as_dir in $gcc_cv_tool_dirs
15910 IFS=$as_save_IFS
15911 test -z "$as_dir" && as_dir=.
15912 for ac_exec_ext in '' $ac_executable_extensions; do
15913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15914 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15916 break 2
15918 done
15919 done
15920 IFS=$as_save_IFS
15923 esac
15925 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15926 if test -n "$OTOOL_FOR_TARGET"; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15928 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15929 else
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15931 $as_echo "no" >&6; }
15936 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15939 if test -n "$OTOOL_FOR_TARGET"; then
15940 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15941 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15942 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15945 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15946 for ncn_progname in otool; do
15947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15948 set dummy ${ncn_progname}; ac_word=$2
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15950 $as_echo_n "checking for $ac_word... " >&6; }
15951 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15952 $as_echo_n "(cached) " >&6
15953 else
15954 if test -n "$OTOOL_FOR_TARGET"; then
15955 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15956 else
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958 for as_dir in $PATH
15960 IFS=$as_save_IFS
15961 test -z "$as_dir" && as_dir=.
15962 for ac_exec_ext in '' $ac_executable_extensions; do
15963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15964 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15966 break 2
15968 done
15969 done
15970 IFS=$as_save_IFS
15974 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15975 if test -n "$OTOOL_FOR_TARGET"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15977 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15978 else
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980 $as_echo "no" >&6; }
15984 done
15987 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15988 for ncn_progname in otool; do
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15990 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15991 if test -x $with_build_time_tools/${ncn_progname}; then
15992 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15994 $as_echo "yes" >&6; }
15995 break
15996 else
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998 $as_echo "no" >&6; }
16000 done
16003 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16004 for ncn_progname in otool; do
16005 if test -n "$ncn_target_tool_prefix"; then
16006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16007 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16009 $as_echo_n "checking for $ac_word... " >&6; }
16010 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 if test -n "$OTOOL_FOR_TARGET"; then
16014 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16015 else
16016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16017 for as_dir in $PATH
16019 IFS=$as_save_IFS
16020 test -z "$as_dir" && as_dir=.
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16023 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16025 break 2
16027 done
16028 done
16029 IFS=$as_save_IFS
16033 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16034 if test -n "$OTOOL_FOR_TARGET"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16036 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16037 else
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039 $as_echo "no" >&6; }
16044 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16046 set dummy ${ncn_progname}; ac_word=$2
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16048 $as_echo_n "checking for $ac_word... " >&6; }
16049 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16050 $as_echo_n "(cached) " >&6
16051 else
16052 if test -n "$OTOOL_FOR_TARGET"; then
16053 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16054 else
16055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16056 for as_dir in $PATH
16058 IFS=$as_save_IFS
16059 test -z "$as_dir" && as_dir=.
16060 for ac_exec_ext in '' $ac_executable_extensions; do
16061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16062 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16064 break 2
16066 done
16067 done
16068 IFS=$as_save_IFS
16072 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16073 if test -n "$OTOOL_FOR_TARGET"; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16075 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16076 else
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078 $as_echo "no" >&6; }
16083 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16084 done
16087 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16088 set dummy otool
16089 if test $build = $target ; then
16090 OTOOL_FOR_TARGET="$2"
16091 else
16092 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16094 else
16095 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16098 else
16099 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16105 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16106 if test -n "$with_build_time_tools"; then
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16108 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16109 if test -x $with_build_time_tools/ranlib; then
16110 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16111 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16113 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16114 else
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16118 elif test $build != $host && test $have_gcc_for_target = yes; then
16119 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16120 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16121 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16124 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16125 # Extract the first word of "ranlib", so it can be a program name with args.
16126 set dummy ranlib; ac_word=$2
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16128 $as_echo_n "checking for $ac_word... " >&6; }
16129 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 case $RANLIB_FOR_TARGET in
16133 [\\/]* | ?:[\\/]*)
16134 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16138 for as_dir in $gcc_cv_tool_dirs
16140 IFS=$as_save_IFS
16141 test -z "$as_dir" && as_dir=.
16142 for ac_exec_ext in '' $ac_executable_extensions; do
16143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16144 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16146 break 2
16148 done
16149 done
16150 IFS=$as_save_IFS
16153 esac
16155 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16156 if test -n "$RANLIB_FOR_TARGET"; then
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16158 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16159 else
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161 $as_echo "no" >&6; }
16166 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16169 if test -n "$RANLIB_FOR_TARGET"; then
16170 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16171 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16172 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16175 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16176 for ncn_progname in ranlib; do
16177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16178 set dummy ${ncn_progname}; ac_word=$2
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16180 $as_echo_n "checking for $ac_word... " >&6; }
16181 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16182 $as_echo_n "(cached) " >&6
16183 else
16184 if test -n "$RANLIB_FOR_TARGET"; then
16185 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16186 else
16187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188 for as_dir in $PATH
16190 IFS=$as_save_IFS
16191 test -z "$as_dir" && as_dir=.
16192 for ac_exec_ext in '' $ac_executable_extensions; do
16193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16194 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16196 break 2
16198 done
16199 done
16200 IFS=$as_save_IFS
16204 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16205 if test -n "$RANLIB_FOR_TARGET"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16207 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16208 else
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16214 done
16217 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16218 for ncn_progname in ranlib; do
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16220 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16221 if test -x $with_build_time_tools/${ncn_progname}; then
16222 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16224 $as_echo "yes" >&6; }
16225 break
16226 else
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16228 $as_echo "no" >&6; }
16230 done
16233 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16234 for ncn_progname in ranlib; do
16235 if test -n "$ncn_target_tool_prefix"; then
16236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16237 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16239 $as_echo_n "checking for $ac_word... " >&6; }
16240 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16241 $as_echo_n "(cached) " >&6
16242 else
16243 if test -n "$RANLIB_FOR_TARGET"; then
16244 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16245 else
16246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16247 for as_dir in $PATH
16249 IFS=$as_save_IFS
16250 test -z "$as_dir" && as_dir=.
16251 for ac_exec_ext in '' $ac_executable_extensions; do
16252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16253 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16255 break 2
16257 done
16258 done
16259 IFS=$as_save_IFS
16263 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16264 if test -n "$RANLIB_FOR_TARGET"; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16266 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16267 else
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16269 $as_echo "no" >&6; }
16274 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16276 set dummy ${ncn_progname}; ac_word=$2
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16278 $as_echo_n "checking for $ac_word... " >&6; }
16279 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16280 $as_echo_n "(cached) " >&6
16281 else
16282 if test -n "$RANLIB_FOR_TARGET"; then
16283 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16284 else
16285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $PATH
16288 IFS=$as_save_IFS
16289 test -z "$as_dir" && as_dir=.
16290 for ac_exec_ext in '' $ac_executable_extensions; do
16291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16294 break 2
16296 done
16297 done
16298 IFS=$as_save_IFS
16302 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16303 if test -n "$RANLIB_FOR_TARGET"; then
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16305 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16306 else
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308 $as_echo "no" >&6; }
16313 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16314 done
16317 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16318 set dummy ranlib
16319 if test $build = $target ; then
16320 RANLIB_FOR_TARGET="$2"
16321 else
16322 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16324 else
16325 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16328 else
16329 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16335 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16336 if test -n "$with_build_time_tools"; then
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16338 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16339 if test -x $with_build_time_tools/readelf; then
16340 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16341 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16343 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16344 else
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346 $as_echo "no" >&6; }
16348 elif test $build != $host && test $have_gcc_for_target = yes; then
16349 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16350 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16351 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16354 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16355 # Extract the first word of "readelf", so it can be a program name with args.
16356 set dummy readelf; ac_word=$2
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16358 $as_echo_n "checking for $ac_word... " >&6; }
16359 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16360 $as_echo_n "(cached) " >&6
16361 else
16362 case $READELF_FOR_TARGET in
16363 [\\/]* | ?:[\\/]*)
16364 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16368 for as_dir in $gcc_cv_tool_dirs
16370 IFS=$as_save_IFS
16371 test -z "$as_dir" && as_dir=.
16372 for ac_exec_ext in '' $ac_executable_extensions; do
16373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16374 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16376 break 2
16378 done
16379 done
16380 IFS=$as_save_IFS
16383 esac
16385 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16386 if test -n "$READELF_FOR_TARGET"; then
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16388 $as_echo "$READELF_FOR_TARGET" >&6; }
16389 else
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16391 $as_echo "no" >&6; }
16396 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16399 if test -n "$READELF_FOR_TARGET"; then
16400 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16401 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16402 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16405 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16406 for ncn_progname in readelf; do
16407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16408 set dummy ${ncn_progname}; ac_word=$2
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16410 $as_echo_n "checking for $ac_word... " >&6; }
16411 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16412 $as_echo_n "(cached) " >&6
16413 else
16414 if test -n "$READELF_FOR_TARGET"; then
16415 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16416 else
16417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16418 for as_dir in $PATH
16420 IFS=$as_save_IFS
16421 test -z "$as_dir" && as_dir=.
16422 for ac_exec_ext in '' $ac_executable_extensions; do
16423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16424 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16426 break 2
16428 done
16429 done
16430 IFS=$as_save_IFS
16434 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16435 if test -n "$READELF_FOR_TARGET"; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16437 $as_echo "$READELF_FOR_TARGET" >&6; }
16438 else
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16440 $as_echo "no" >&6; }
16444 done
16447 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16448 for ncn_progname in readelf; do
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16450 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16451 if test -x $with_build_time_tools/${ncn_progname}; then
16452 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16454 $as_echo "yes" >&6; }
16455 break
16456 else
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16458 $as_echo "no" >&6; }
16460 done
16463 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16464 for ncn_progname in readelf; do
16465 if test -n "$ncn_target_tool_prefix"; then
16466 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16467 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16469 $as_echo_n "checking for $ac_word... " >&6; }
16470 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16471 $as_echo_n "(cached) " >&6
16472 else
16473 if test -n "$READELF_FOR_TARGET"; then
16474 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16475 else
16476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16477 for as_dir in $PATH
16479 IFS=$as_save_IFS
16480 test -z "$as_dir" && as_dir=.
16481 for ac_exec_ext in '' $ac_executable_extensions; do
16482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16483 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16485 break 2
16487 done
16488 done
16489 IFS=$as_save_IFS
16493 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16494 if test -n "$READELF_FOR_TARGET"; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16496 $as_echo "$READELF_FOR_TARGET" >&6; }
16497 else
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16499 $as_echo "no" >&6; }
16504 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16506 set dummy ${ncn_progname}; ac_word=$2
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16508 $as_echo_n "checking for $ac_word... " >&6; }
16509 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16510 $as_echo_n "(cached) " >&6
16511 else
16512 if test -n "$READELF_FOR_TARGET"; then
16513 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16514 else
16515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16516 for as_dir in $PATH
16518 IFS=$as_save_IFS
16519 test -z "$as_dir" && as_dir=.
16520 for ac_exec_ext in '' $ac_executable_extensions; do
16521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16522 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16524 break 2
16526 done
16527 done
16528 IFS=$as_save_IFS
16532 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16533 if test -n "$READELF_FOR_TARGET"; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16535 $as_echo "$READELF_FOR_TARGET" >&6; }
16536 else
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538 $as_echo "no" >&6; }
16543 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16544 done
16547 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16548 set dummy readelf
16549 if test $build = $target ; then
16550 READELF_FOR_TARGET="$2"
16551 else
16552 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16554 else
16555 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16558 else
16559 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16565 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16566 if test -n "$with_build_time_tools"; then
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16568 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16569 if test -x $with_build_time_tools/strip; then
16570 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16571 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16573 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16574 else
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576 $as_echo "no" >&6; }
16578 elif test $build != $host && test $have_gcc_for_target = yes; then
16579 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16580 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16581 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16584 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16585 # Extract the first word of "strip", so it can be a program name with args.
16586 set dummy strip; ac_word=$2
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16588 $as_echo_n "checking for $ac_word... " >&6; }
16589 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16590 $as_echo_n "(cached) " >&6
16591 else
16592 case $STRIP_FOR_TARGET in
16593 [\\/]* | ?:[\\/]*)
16594 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16598 for as_dir in $gcc_cv_tool_dirs
16600 IFS=$as_save_IFS
16601 test -z "$as_dir" && as_dir=.
16602 for ac_exec_ext in '' $ac_executable_extensions; do
16603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16604 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16606 break 2
16608 done
16609 done
16610 IFS=$as_save_IFS
16613 esac
16615 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16616 if test -n "$STRIP_FOR_TARGET"; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16618 $as_echo "$STRIP_FOR_TARGET" >&6; }
16619 else
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621 $as_echo "no" >&6; }
16626 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16629 if test -n "$STRIP_FOR_TARGET"; then
16630 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16631 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16632 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16635 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16636 for ncn_progname in strip; do
16637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16638 set dummy ${ncn_progname}; ac_word=$2
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16640 $as_echo_n "checking for $ac_word... " >&6; }
16641 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16642 $as_echo_n "(cached) " >&6
16643 else
16644 if test -n "$STRIP_FOR_TARGET"; then
16645 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16646 else
16647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16648 for as_dir in $PATH
16650 IFS=$as_save_IFS
16651 test -z "$as_dir" && as_dir=.
16652 for ac_exec_ext in '' $ac_executable_extensions; do
16653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16654 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16656 break 2
16658 done
16659 done
16660 IFS=$as_save_IFS
16664 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16665 if test -n "$STRIP_FOR_TARGET"; then
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16667 $as_echo "$STRIP_FOR_TARGET" >&6; }
16668 else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16674 done
16677 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16678 for ncn_progname in strip; do
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16680 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16681 if test -x $with_build_time_tools/${ncn_progname}; then
16682 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16684 $as_echo "yes" >&6; }
16685 break
16686 else
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688 $as_echo "no" >&6; }
16690 done
16693 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16694 for ncn_progname in strip; do
16695 if test -n "$ncn_target_tool_prefix"; then
16696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16697 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16699 $as_echo_n "checking for $ac_word... " >&6; }
16700 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 if test -n "$STRIP_FOR_TARGET"; then
16704 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16705 else
16706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16707 for as_dir in $PATH
16709 IFS=$as_save_IFS
16710 test -z "$as_dir" && as_dir=.
16711 for ac_exec_ext in '' $ac_executable_extensions; do
16712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16713 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16715 break 2
16717 done
16718 done
16719 IFS=$as_save_IFS
16723 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16724 if test -n "$STRIP_FOR_TARGET"; then
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16726 $as_echo "$STRIP_FOR_TARGET" >&6; }
16727 else
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16729 $as_echo "no" >&6; }
16734 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16736 set dummy ${ncn_progname}; ac_word=$2
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16738 $as_echo_n "checking for $ac_word... " >&6; }
16739 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16740 $as_echo_n "(cached) " >&6
16741 else
16742 if test -n "$STRIP_FOR_TARGET"; then
16743 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16744 else
16745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746 for as_dir in $PATH
16748 IFS=$as_save_IFS
16749 test -z "$as_dir" && as_dir=.
16750 for ac_exec_ext in '' $ac_executable_extensions; do
16751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16752 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16754 break 2
16756 done
16757 done
16758 IFS=$as_save_IFS
16762 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16763 if test -n "$STRIP_FOR_TARGET"; then
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16765 $as_echo "$STRIP_FOR_TARGET" >&6; }
16766 else
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768 $as_echo "no" >&6; }
16773 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16774 done
16777 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16778 set dummy strip
16779 if test $build = $target ; then
16780 STRIP_FOR_TARGET="$2"
16781 else
16782 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16784 else
16785 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16788 else
16789 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16795 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16796 if test -n "$with_build_time_tools"; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16798 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16799 if test -x $with_build_time_tools/windres; then
16800 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16801 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16803 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16804 else
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806 $as_echo "no" >&6; }
16808 elif test $build != $host && test $have_gcc_for_target = yes; then
16809 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16810 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16811 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16814 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16815 # Extract the first word of "windres", so it can be a program name with args.
16816 set dummy windres; ac_word=$2
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16818 $as_echo_n "checking for $ac_word... " >&6; }
16819 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16820 $as_echo_n "(cached) " >&6
16821 else
16822 case $WINDRES_FOR_TARGET in
16823 [\\/]* | ?:[\\/]*)
16824 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16828 for as_dir in $gcc_cv_tool_dirs
16830 IFS=$as_save_IFS
16831 test -z "$as_dir" && as_dir=.
16832 for ac_exec_ext in '' $ac_executable_extensions; do
16833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16834 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16836 break 2
16838 done
16839 done
16840 IFS=$as_save_IFS
16843 esac
16845 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16846 if test -n "$WINDRES_FOR_TARGET"; then
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16848 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16849 else
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16856 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16859 if test -n "$WINDRES_FOR_TARGET"; then
16860 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16861 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16862 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16865 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16866 for ncn_progname in windres; do
16867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16868 set dummy ${ncn_progname}; ac_word=$2
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16870 $as_echo_n "checking for $ac_word... " >&6; }
16871 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16872 $as_echo_n "(cached) " >&6
16873 else
16874 if test -n "$WINDRES_FOR_TARGET"; then
16875 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16876 else
16877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878 for as_dir in $PATH
16880 IFS=$as_save_IFS
16881 test -z "$as_dir" && as_dir=.
16882 for ac_exec_ext in '' $ac_executable_extensions; do
16883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16884 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16886 break 2
16888 done
16889 done
16890 IFS=$as_save_IFS
16894 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16895 if test -n "$WINDRES_FOR_TARGET"; then
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16897 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16898 else
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900 $as_echo "no" >&6; }
16904 done
16907 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16908 for ncn_progname in windres; do
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16910 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16911 if test -x $with_build_time_tools/${ncn_progname}; then
16912 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16914 $as_echo "yes" >&6; }
16915 break
16916 else
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16918 $as_echo "no" >&6; }
16920 done
16923 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16924 for ncn_progname in windres; do
16925 if test -n "$ncn_target_tool_prefix"; then
16926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16927 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16929 $as_echo_n "checking for $ac_word... " >&6; }
16930 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16931 $as_echo_n "(cached) " >&6
16932 else
16933 if test -n "$WINDRES_FOR_TARGET"; then
16934 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16935 else
16936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937 for as_dir in $PATH
16939 IFS=$as_save_IFS
16940 test -z "$as_dir" && as_dir=.
16941 for ac_exec_ext in '' $ac_executable_extensions; do
16942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16943 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16945 break 2
16947 done
16948 done
16949 IFS=$as_save_IFS
16953 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16954 if test -n "$WINDRES_FOR_TARGET"; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16956 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16957 else
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959 $as_echo "no" >&6; }
16964 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16966 set dummy ${ncn_progname}; ac_word=$2
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16968 $as_echo_n "checking for $ac_word... " >&6; }
16969 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16970 $as_echo_n "(cached) " >&6
16971 else
16972 if test -n "$WINDRES_FOR_TARGET"; then
16973 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16974 else
16975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976 for as_dir in $PATH
16978 IFS=$as_save_IFS
16979 test -z "$as_dir" && as_dir=.
16980 for ac_exec_ext in '' $ac_executable_extensions; do
16981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16982 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16984 break 2
16986 done
16987 done
16988 IFS=$as_save_IFS
16992 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16993 if test -n "$WINDRES_FOR_TARGET"; then
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16995 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16996 else
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16998 $as_echo "no" >&6; }
17003 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17004 done
17007 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17008 set dummy windres
17009 if test $build = $target ; then
17010 WINDRES_FOR_TARGET="$2"
17011 else
17012 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17014 else
17015 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17018 else
17019 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17025 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17026 if test -n "$with_build_time_tools"; then
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17028 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17029 if test -x $with_build_time_tools/windmc; then
17030 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17031 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17033 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17034 else
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17038 elif test $build != $host && test $have_gcc_for_target = yes; then
17039 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17040 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17041 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17044 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17045 # Extract the first word of "windmc", so it can be a program name with args.
17046 set dummy windmc; ac_word=$2
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17048 $as_echo_n "checking for $ac_word... " >&6; }
17049 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17050 $as_echo_n "(cached) " >&6
17051 else
17052 case $WINDMC_FOR_TARGET in
17053 [\\/]* | ?:[\\/]*)
17054 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17058 for as_dir in $gcc_cv_tool_dirs
17060 IFS=$as_save_IFS
17061 test -z "$as_dir" && as_dir=.
17062 for ac_exec_ext in '' $ac_executable_extensions; do
17063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17064 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17066 break 2
17068 done
17069 done
17070 IFS=$as_save_IFS
17073 esac
17075 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17076 if test -n "$WINDMC_FOR_TARGET"; then
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17078 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17079 else
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081 $as_echo "no" >&6; }
17086 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17089 if test -n "$WINDMC_FOR_TARGET"; then
17090 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17091 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17092 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17095 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17096 for ncn_progname in windmc; do
17097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17098 set dummy ${ncn_progname}; ac_word=$2
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17100 $as_echo_n "checking for $ac_word... " >&6; }
17101 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17102 $as_echo_n "(cached) " >&6
17103 else
17104 if test -n "$WINDMC_FOR_TARGET"; then
17105 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17106 else
17107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108 for as_dir in $PATH
17110 IFS=$as_save_IFS
17111 test -z "$as_dir" && as_dir=.
17112 for ac_exec_ext in '' $ac_executable_extensions; do
17113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17114 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17116 break 2
17118 done
17119 done
17120 IFS=$as_save_IFS
17124 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17125 if test -n "$WINDMC_FOR_TARGET"; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17127 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17128 else
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17130 $as_echo "no" >&6; }
17134 done
17137 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17138 for ncn_progname in windmc; do
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17140 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17141 if test -x $with_build_time_tools/${ncn_progname}; then
17142 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17144 $as_echo "yes" >&6; }
17145 break
17146 else
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148 $as_echo "no" >&6; }
17150 done
17153 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17154 for ncn_progname in windmc; do
17155 if test -n "$ncn_target_tool_prefix"; then
17156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17159 $as_echo_n "checking for $ac_word... " >&6; }
17160 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17161 $as_echo_n "(cached) " >&6
17162 else
17163 if test -n "$WINDMC_FOR_TARGET"; then
17164 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17165 else
17166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17167 for as_dir in $PATH
17169 IFS=$as_save_IFS
17170 test -z "$as_dir" && as_dir=.
17171 for ac_exec_ext in '' $ac_executable_extensions; do
17172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17173 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17175 break 2
17177 done
17178 done
17179 IFS=$as_save_IFS
17183 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17184 if test -n "$WINDMC_FOR_TARGET"; then
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17186 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17187 else
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17194 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17196 set dummy ${ncn_progname}; ac_word=$2
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17198 $as_echo_n "checking for $ac_word... " >&6; }
17199 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17200 $as_echo_n "(cached) " >&6
17201 else
17202 if test -n "$WINDMC_FOR_TARGET"; then
17203 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17204 else
17205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17206 for as_dir in $PATH
17208 IFS=$as_save_IFS
17209 test -z "$as_dir" && as_dir=.
17210 for ac_exec_ext in '' $ac_executable_extensions; do
17211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17212 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17214 break 2
17216 done
17217 done
17218 IFS=$as_save_IFS
17222 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17223 if test -n "$WINDMC_FOR_TARGET"; then
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17225 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17226 else
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17228 $as_echo "no" >&6; }
17233 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17234 done
17237 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17238 set dummy windmc
17239 if test $build = $target ; then
17240 WINDMC_FOR_TARGET="$2"
17241 else
17242 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17244 else
17245 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17248 else
17249 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17253 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17256 $as_echo_n "checking where to find the target ar... " >&6; }
17257 if test "x${build}" != "x${host}" ; then
17258 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17259 # We already found the complete path
17260 ac_dir=`dirname $AR_FOR_TARGET`
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17262 $as_echo "pre-installed in $ac_dir" >&6; }
17263 else
17264 # Canadian cross, just use what we found
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17266 $as_echo "pre-installed" >&6; }
17268 else
17269 ok=yes
17270 case " ${configdirs} " in
17271 *" binutils "*) ;;
17272 *) ok=no ;;
17273 esac
17275 if test $ok = yes; then
17276 # An in-tree tool is available and we can use it
17277 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17279 $as_echo "just compiled" >&6; }
17280 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17281 # We already found the complete path
17282 ac_dir=`dirname $AR_FOR_TARGET`
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17284 $as_echo "pre-installed in $ac_dir" >&6; }
17285 elif test "x$target" = "x$host"; then
17286 # We can use an host tool
17287 AR_FOR_TARGET='$(AR)'
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17289 $as_echo "host tool" >&6; }
17290 else
17291 # We need a cross tool
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17293 $as_echo "pre-installed" >&6; }
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17298 $as_echo_n "checking where to find the target as... " >&6; }
17299 if test "x${build}" != "x${host}" ; then
17300 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17301 # We already found the complete path
17302 ac_dir=`dirname $AS_FOR_TARGET`
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17304 $as_echo "pre-installed in $ac_dir" >&6; }
17305 else
17306 # Canadian cross, just use what we found
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17308 $as_echo "pre-installed" >&6; }
17310 else
17311 ok=yes
17312 case " ${configdirs} " in
17313 *" gas "*) ;;
17314 *) ok=no ;;
17315 esac
17317 if test $ok = yes; then
17318 # An in-tree tool is available and we can use it
17319 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17321 $as_echo "just compiled" >&6; }
17322 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17323 # We already found the complete path
17324 ac_dir=`dirname $AS_FOR_TARGET`
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17326 $as_echo "pre-installed in $ac_dir" >&6; }
17327 elif test "x$target" = "x$host"; then
17328 # We can use an host tool
17329 AS_FOR_TARGET='$(AS)'
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17331 $as_echo "host tool" >&6; }
17332 else
17333 # We need a cross tool
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17335 $as_echo "pre-installed" >&6; }
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17340 $as_echo_n "checking where to find the target cc... " >&6; }
17341 if test "x${build}" != "x${host}" ; then
17342 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17343 # We already found the complete path
17344 ac_dir=`dirname $CC_FOR_TARGET`
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17346 $as_echo "pre-installed in $ac_dir" >&6; }
17347 else
17348 # Canadian cross, just use what we found
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17350 $as_echo "pre-installed" >&6; }
17352 else
17353 ok=yes
17354 case " ${configdirs} " in
17355 *" gcc "*) ;;
17356 *) ok=no ;;
17357 esac
17359 if test $ok = yes; then
17360 # An in-tree tool is available and we can use it
17361 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17363 $as_echo "just compiled" >&6; }
17364 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17365 # We already found the complete path
17366 ac_dir=`dirname $CC_FOR_TARGET`
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17368 $as_echo "pre-installed in $ac_dir" >&6; }
17369 elif test "x$target" = "x$host"; then
17370 # We can use an host tool
17371 CC_FOR_TARGET='$(CC)'
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17373 $as_echo "host tool" >&6; }
17374 else
17375 # We need a cross tool
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17377 $as_echo "pre-installed" >&6; }
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17382 $as_echo_n "checking where to find the target c++... " >&6; }
17383 if test "x${build}" != "x${host}" ; then
17384 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17385 # We already found the complete path
17386 ac_dir=`dirname $CXX_FOR_TARGET`
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17388 $as_echo "pre-installed in $ac_dir" >&6; }
17389 else
17390 # Canadian cross, just use what we found
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17392 $as_echo "pre-installed" >&6; }
17394 else
17395 ok=yes
17396 case " ${configdirs} " in
17397 *" gcc "*) ;;
17398 *) ok=no ;;
17399 esac
17400 case ,${enable_languages}, in
17401 *,c++,*) ;;
17402 *) ok=no ;;
17403 esac
17404 if test $ok = yes; then
17405 # An in-tree tool is available and we can use it
17406 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'
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17408 $as_echo "just compiled" >&6; }
17409 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17410 # We already found the complete path
17411 ac_dir=`dirname $CXX_FOR_TARGET`
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17413 $as_echo "pre-installed in $ac_dir" >&6; }
17414 elif test "x$target" = "x$host"; then
17415 # We can use an host tool
17416 CXX_FOR_TARGET='$(CXX)'
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17418 $as_echo "host tool" >&6; }
17419 else
17420 # We need a cross tool
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17422 $as_echo "pre-installed" >&6; }
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17427 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17428 if test "x${build}" != "x${host}" ; then
17429 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17430 # We already found the complete path
17431 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17433 $as_echo "pre-installed in $ac_dir" >&6; }
17434 else
17435 # Canadian cross, just use what we found
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17437 $as_echo "pre-installed" >&6; }
17439 else
17440 ok=yes
17441 case " ${configdirs} " in
17442 *" gcc "*) ;;
17443 *) ok=no ;;
17444 esac
17445 case ,${enable_languages}, in
17446 *,c++,*) ;;
17447 *) ok=no ;;
17448 esac
17449 if test $ok = yes; then
17450 # An in-tree tool is available and we can use it
17451 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'
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17453 $as_echo "just compiled" >&6; }
17454 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17455 # We already found the complete path
17456 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17458 $as_echo "pre-installed in $ac_dir" >&6; }
17459 elif test "x$target" = "x$host"; then
17460 # We can use an host tool
17461 RAW_CXX_FOR_TARGET='$(CXX)'
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17463 $as_echo "host tool" >&6; }
17464 else
17465 # We need a cross tool
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17467 $as_echo "pre-installed" >&6; }
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17472 $as_echo_n "checking where to find the target dlltool... " >&6; }
17473 if test "x${build}" != "x${host}" ; then
17474 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17475 # We already found the complete path
17476 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17478 $as_echo "pre-installed in $ac_dir" >&6; }
17479 else
17480 # Canadian cross, just use what we found
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17482 $as_echo "pre-installed" >&6; }
17484 else
17485 ok=yes
17486 case " ${configdirs} " in
17487 *" binutils "*) ;;
17488 *) ok=no ;;
17489 esac
17491 if test $ok = yes; then
17492 # An in-tree tool is available and we can use it
17493 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17495 $as_echo "just compiled" >&6; }
17496 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17497 # We already found the complete path
17498 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17500 $as_echo "pre-installed in $ac_dir" >&6; }
17501 elif test "x$target" = "x$host"; then
17502 # We can use an host tool
17503 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17505 $as_echo "host tool" >&6; }
17506 else
17507 # We need a cross tool
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17509 $as_echo "pre-installed" >&6; }
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17514 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17515 if test "x${build}" != "x${host}" ; then
17516 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17517 # We already found the complete path
17518 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17520 $as_echo "pre-installed in $ac_dir" >&6; }
17521 else
17522 # Canadian cross, just use what we found
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17524 $as_echo "pre-installed" >&6; }
17526 else
17527 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17528 # We already found the complete path
17529 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17531 $as_echo "pre-installed in $ac_dir" >&6; }
17532 elif test "x$target" = "x$host"; then
17533 # We can use an host tool
17534 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17536 $as_echo "host tool" >&6; }
17537 else
17538 # We need a cross tool
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17540 $as_echo "pre-installed" >&6; }
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17545 $as_echo_n "checking where to find the target gcc... " >&6; }
17546 if test "x${build}" != "x${host}" ; then
17547 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17548 # We already found the complete path
17549 ac_dir=`dirname $GCC_FOR_TARGET`
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17551 $as_echo "pre-installed in $ac_dir" >&6; }
17552 else
17553 # Canadian cross, just use what we found
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17555 $as_echo "pre-installed" >&6; }
17557 else
17558 ok=yes
17559 case " ${configdirs} " in
17560 *" gcc "*) ;;
17561 *) ok=no ;;
17562 esac
17564 if test $ok = yes; then
17565 # An in-tree tool is available and we can use it
17566 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17568 $as_echo "just compiled" >&6; }
17569 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17570 # We already found the complete path
17571 ac_dir=`dirname $GCC_FOR_TARGET`
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17573 $as_echo "pre-installed in $ac_dir" >&6; }
17574 elif test "x$target" = "x$host"; then
17575 # We can use an host tool
17576 GCC_FOR_TARGET='$()'
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17578 $as_echo "host tool" >&6; }
17579 else
17580 # We need a cross tool
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17582 $as_echo "pre-installed" >&6; }
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17587 $as_echo_n "checking where to find the target gfortran... " >&6; }
17588 if test "x${build}" != "x${host}" ; then
17589 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17590 # We already found the complete path
17591 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17593 $as_echo "pre-installed in $ac_dir" >&6; }
17594 else
17595 # Canadian cross, just use what we found
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17597 $as_echo "pre-installed" >&6; }
17599 else
17600 ok=yes
17601 case " ${configdirs} " in
17602 *" gcc "*) ;;
17603 *) ok=no ;;
17604 esac
17605 case ,${enable_languages}, in
17606 *,fortran,*) ;;
17607 *) ok=no ;;
17608 esac
17609 if test $ok = yes; then
17610 # An in-tree tool is available and we can use it
17611 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17613 $as_echo "just compiled" >&6; }
17614 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17615 # We already found the complete path
17616 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17618 $as_echo "pre-installed in $ac_dir" >&6; }
17619 elif test "x$target" = "x$host"; then
17620 # We can use an host tool
17621 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17623 $as_echo "host tool" >&6; }
17624 else
17625 # We need a cross tool
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17627 $as_echo "pre-installed" >&6; }
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17632 $as_echo_n "checking where to find the target gccgo... " >&6; }
17633 if test "x${build}" != "x${host}" ; then
17634 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17635 # We already found the complete path
17636 ac_dir=`dirname $GOC_FOR_TARGET`
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17638 $as_echo "pre-installed in $ac_dir" >&6; }
17639 else
17640 # Canadian cross, just use what we found
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17642 $as_echo "pre-installed" >&6; }
17644 else
17645 ok=yes
17646 case " ${configdirs} " in
17647 *" gcc "*) ;;
17648 *) ok=no ;;
17649 esac
17650 case ,${enable_languages}, in
17651 *,go,*) ;;
17652 *) ok=no ;;
17653 esac
17654 if test $ok = yes; then
17655 # An in-tree tool is available and we can use it
17656 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17658 $as_echo "just compiled" >&6; }
17659 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17660 # We already found the complete path
17661 ac_dir=`dirname $GOC_FOR_TARGET`
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17663 $as_echo "pre-installed in $ac_dir" >&6; }
17664 elif test "x$target" = "x$host"; then
17665 # We can use an host tool
17666 GOC_FOR_TARGET='$(GOC)'
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17668 $as_echo "host tool" >&6; }
17669 else
17670 # We need a cross tool
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17672 $as_echo "pre-installed" >&6; }
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17677 $as_echo_n "checking where to find the target gdc... " >&6; }
17678 if test "x${build}" != "x${host}" ; then
17679 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17680 # We already found the complete path
17681 ac_dir=`dirname $GDC_FOR_TARGET`
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17683 $as_echo "pre-installed in $ac_dir" >&6; }
17684 else
17685 # Canadian cross, just use what we found
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17687 $as_echo "pre-installed" >&6; }
17689 else
17690 ok=yes
17691 case " ${configdirs} " in
17692 *" gcc "*) ;;
17693 *) ok=no ;;
17694 esac
17695 case ,${enable_languages}, in
17696 *,d,*) ;;
17697 *) ok=no ;;
17698 esac
17699 if test $ok = yes; then
17700 # An in-tree tool is available and we can use it
17701 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17703 $as_echo "just compiled" >&6; }
17704 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17705 # We already found the complete path
17706 ac_dir=`dirname $GDC_FOR_TARGET`
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17708 $as_echo "pre-installed in $ac_dir" >&6; }
17709 elif test "x$target" = "x$host"; then
17710 # We can use an host tool
17711 GDC_FOR_TARGET='$(GDC)'
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17713 $as_echo "host tool" >&6; }
17714 else
17715 # We need a cross tool
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17717 $as_echo "pre-installed" >&6; }
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17722 $as_echo_n "checking where to find the target ld... " >&6; }
17723 if test "x${build}" != "x${host}" ; then
17724 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17725 # We already found the complete path
17726 ac_dir=`dirname $LD_FOR_TARGET`
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17728 $as_echo "pre-installed in $ac_dir" >&6; }
17729 else
17730 # Canadian cross, just use what we found
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17732 $as_echo "pre-installed" >&6; }
17734 else
17735 ok=yes
17736 case " ${configdirs} " in
17737 *" ld "*) ;;
17738 *) ok=no ;;
17739 esac
17741 if test $ok = yes; then
17742 # An in-tree tool is available and we can use it
17743 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17745 $as_echo "just compiled" >&6; }
17746 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17747 # We already found the complete path
17748 ac_dir=`dirname $LD_FOR_TARGET`
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17750 $as_echo "pre-installed in $ac_dir" >&6; }
17751 elif test "x$target" = "x$host"; then
17752 # We can use an host tool
17753 LD_FOR_TARGET='$(LD)'
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17755 $as_echo "host tool" >&6; }
17756 else
17757 # We need a cross tool
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17759 $as_echo "pre-installed" >&6; }
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17764 $as_echo_n "checking where to find the target lipo... " >&6; }
17765 if test "x${build}" != "x${host}" ; then
17766 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17767 # We already found the complete path
17768 ac_dir=`dirname $LIPO_FOR_TARGET`
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17770 $as_echo "pre-installed in $ac_dir" >&6; }
17771 else
17772 # Canadian cross, just use what we found
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17774 $as_echo "pre-installed" >&6; }
17776 else
17777 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17778 # We already found the complete path
17779 ac_dir=`dirname $LIPO_FOR_TARGET`
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17781 $as_echo "pre-installed in $ac_dir" >&6; }
17782 elif test "x$target" = "x$host"; then
17783 # We can use an host tool
17784 LIPO_FOR_TARGET='$(LIPO)'
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17786 $as_echo "host tool" >&6; }
17787 else
17788 # We need a cross tool
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17790 $as_echo "pre-installed" >&6; }
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17795 $as_echo_n "checking where to find the target nm... " >&6; }
17796 if test "x${build}" != "x${host}" ; then
17797 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17798 # We already found the complete path
17799 ac_dir=`dirname $NM_FOR_TARGET`
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17801 $as_echo "pre-installed in $ac_dir" >&6; }
17802 else
17803 # Canadian cross, just use what we found
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17805 $as_echo "pre-installed" >&6; }
17807 else
17808 ok=yes
17809 case " ${configdirs} " in
17810 *" binutils "*) ;;
17811 *) ok=no ;;
17812 esac
17814 if test $ok = yes; then
17815 # An in-tree tool is available and we can use it
17816 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17818 $as_echo "just compiled" >&6; }
17819 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17820 # We already found the complete path
17821 ac_dir=`dirname $NM_FOR_TARGET`
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17823 $as_echo "pre-installed in $ac_dir" >&6; }
17824 elif test "x$target" = "x$host"; then
17825 # We can use an host tool
17826 NM_FOR_TARGET='$(NM)'
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17828 $as_echo "host tool" >&6; }
17829 else
17830 # We need a cross tool
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17832 $as_echo "pre-installed" >&6; }
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17837 $as_echo_n "checking where to find the target objcopy... " >&6; }
17838 if test "x${build}" != "x${host}" ; then
17839 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17840 # We already found the complete path
17841 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17843 $as_echo "pre-installed in $ac_dir" >&6; }
17844 else
17845 # Canadian cross, just use what we found
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17847 $as_echo "pre-installed" >&6; }
17849 else
17850 ok=yes
17851 case " ${configdirs} " in
17852 *" binutils "*) ;;
17853 *) ok=no ;;
17854 esac
17856 if test $ok = yes; then
17857 # An in-tree tool is available and we can use it
17858 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17860 $as_echo "just compiled" >&6; }
17861 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17862 # We already found the complete path
17863 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17865 $as_echo "pre-installed in $ac_dir" >&6; }
17866 elif test "x$target" = "x$host"; then
17867 # We can use an host tool
17868 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17870 $as_echo "host tool" >&6; }
17871 else
17872 # We need a cross tool
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17874 $as_echo "pre-installed" >&6; }
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17879 $as_echo_n "checking where to find the target objdump... " >&6; }
17880 if test "x${build}" != "x${host}" ; then
17881 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17882 # We already found the complete path
17883 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17885 $as_echo "pre-installed in $ac_dir" >&6; }
17886 else
17887 # Canadian cross, just use what we found
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17889 $as_echo "pre-installed" >&6; }
17891 else
17892 ok=yes
17893 case " ${configdirs} " in
17894 *" binutils "*) ;;
17895 *) ok=no ;;
17896 esac
17898 if test $ok = yes; then
17899 # An in-tree tool is available and we can use it
17900 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17902 $as_echo "just compiled" >&6; }
17903 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17904 # We already found the complete path
17905 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17907 $as_echo "pre-installed in $ac_dir" >&6; }
17908 elif test "x$target" = "x$host"; then
17909 # We can use an host tool
17910 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17912 $as_echo "host tool" >&6; }
17913 else
17914 # We need a cross tool
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17916 $as_echo "pre-installed" >&6; }
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17921 $as_echo_n "checking where to find the target otool... " >&6; }
17922 if test "x${build}" != "x${host}" ; then
17923 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17924 # We already found the complete path
17925 ac_dir=`dirname $OTOOL_FOR_TARGET`
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17927 $as_echo "pre-installed in $ac_dir" >&6; }
17928 else
17929 # Canadian cross, just use what we found
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17931 $as_echo "pre-installed" >&6; }
17933 else
17934 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17935 # We already found the complete path
17936 ac_dir=`dirname $OTOOL_FOR_TARGET`
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17938 $as_echo "pre-installed in $ac_dir" >&6; }
17939 elif test "x$target" = "x$host"; then
17940 # We can use an host tool
17941 OTOOL_FOR_TARGET='$(OTOOL)'
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17943 $as_echo "host tool" >&6; }
17944 else
17945 # We need a cross tool
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17947 $as_echo "pre-installed" >&6; }
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17952 $as_echo_n "checking where to find the target ranlib... " >&6; }
17953 if test "x${build}" != "x${host}" ; then
17954 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17955 # We already found the complete path
17956 ac_dir=`dirname $RANLIB_FOR_TARGET`
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17958 $as_echo "pre-installed in $ac_dir" >&6; }
17959 else
17960 # Canadian cross, just use what we found
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17962 $as_echo "pre-installed" >&6; }
17964 else
17965 ok=yes
17966 case " ${configdirs} " in
17967 *" binutils "*) ;;
17968 *) ok=no ;;
17969 esac
17971 if test $ok = yes; then
17972 # An in-tree tool is available and we can use it
17973 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17975 $as_echo "just compiled" >&6; }
17976 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17977 # We already found the complete path
17978 ac_dir=`dirname $RANLIB_FOR_TARGET`
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17980 $as_echo "pre-installed in $ac_dir" >&6; }
17981 elif test "x$target" = "x$host"; then
17982 # We can use an host tool
17983 RANLIB_FOR_TARGET='$(RANLIB)'
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17985 $as_echo "host tool" >&6; }
17986 else
17987 # We need a cross tool
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17989 $as_echo "pre-installed" >&6; }
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17994 $as_echo_n "checking where to find the target readelf... " >&6; }
17995 if test "x${build}" != "x${host}" ; then
17996 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17997 # We already found the complete path
17998 ac_dir=`dirname $READELF_FOR_TARGET`
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18000 $as_echo "pre-installed in $ac_dir" >&6; }
18001 else
18002 # Canadian cross, just use what we found
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18004 $as_echo "pre-installed" >&6; }
18006 else
18007 ok=yes
18008 case " ${configdirs} " in
18009 *" binutils "*) ;;
18010 *) ok=no ;;
18011 esac
18013 if test $ok = yes; then
18014 # An in-tree tool is available and we can use it
18015 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18017 $as_echo "just compiled" >&6; }
18018 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18019 # We already found the complete path
18020 ac_dir=`dirname $READELF_FOR_TARGET`
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18022 $as_echo "pre-installed in $ac_dir" >&6; }
18023 elif test "x$target" = "x$host"; then
18024 # We can use an host tool
18025 READELF_FOR_TARGET='$(READELF)'
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18027 $as_echo "host tool" >&6; }
18028 else
18029 # We need a cross tool
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18031 $as_echo "pre-installed" >&6; }
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18036 $as_echo_n "checking where to find the target strip... " >&6; }
18037 if test "x${build}" != "x${host}" ; then
18038 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18039 # We already found the complete path
18040 ac_dir=`dirname $STRIP_FOR_TARGET`
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18042 $as_echo "pre-installed in $ac_dir" >&6; }
18043 else
18044 # Canadian cross, just use what we found
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18046 $as_echo "pre-installed" >&6; }
18048 else
18049 ok=yes
18050 case " ${configdirs} " in
18051 *" binutils "*) ;;
18052 *) ok=no ;;
18053 esac
18055 if test $ok = yes; then
18056 # An in-tree tool is available and we can use it
18057 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18059 $as_echo "just compiled" >&6; }
18060 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18061 # We already found the complete path
18062 ac_dir=`dirname $STRIP_FOR_TARGET`
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18064 $as_echo "pre-installed in $ac_dir" >&6; }
18065 elif test "x$target" = "x$host"; then
18066 # We can use an host tool
18067 STRIP_FOR_TARGET='$(STRIP)'
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18069 $as_echo "host tool" >&6; }
18070 else
18071 # We need a cross tool
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18073 $as_echo "pre-installed" >&6; }
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18078 $as_echo_n "checking where to find the target windres... " >&6; }
18079 if test "x${build}" != "x${host}" ; then
18080 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18081 # We already found the complete path
18082 ac_dir=`dirname $WINDRES_FOR_TARGET`
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18084 $as_echo "pre-installed in $ac_dir" >&6; }
18085 else
18086 # Canadian cross, just use what we found
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18088 $as_echo "pre-installed" >&6; }
18090 else
18091 ok=yes
18092 case " ${configdirs} " in
18093 *" binutils "*) ;;
18094 *) ok=no ;;
18095 esac
18097 if test $ok = yes; then
18098 # An in-tree tool is available and we can use it
18099 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18101 $as_echo "just compiled" >&6; }
18102 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18103 # We already found the complete path
18104 ac_dir=`dirname $WINDRES_FOR_TARGET`
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18106 $as_echo "pre-installed in $ac_dir" >&6; }
18107 elif test "x$target" = "x$host"; then
18108 # We can use an host tool
18109 WINDRES_FOR_TARGET='$(WINDRES)'
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18111 $as_echo "host tool" >&6; }
18112 else
18113 # We need a cross tool
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18115 $as_echo "pre-installed" >&6; }
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18120 $as_echo_n "checking where to find the target windmc... " >&6; }
18121 if test "x${build}" != "x${host}" ; then
18122 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18123 # We already found the complete path
18124 ac_dir=`dirname $WINDMC_FOR_TARGET`
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18126 $as_echo "pre-installed in $ac_dir" >&6; }
18127 else
18128 # Canadian cross, just use what we found
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18130 $as_echo "pre-installed" >&6; }
18132 else
18133 ok=yes
18134 case " ${configdirs} " in
18135 *" binutils "*) ;;
18136 *) ok=no ;;
18137 esac
18139 if test $ok = yes; then
18140 # An in-tree tool is available and we can use it
18141 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18143 $as_echo "just compiled" >&6; }
18144 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18145 # We already found the complete path
18146 ac_dir=`dirname $WINDMC_FOR_TARGET`
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18148 $as_echo "pre-installed in $ac_dir" >&6; }
18149 elif test "x$target" = "x$host"; then
18150 # We can use an host tool
18151 WINDMC_FOR_TARGET='$(WINDMC)'
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18153 $as_echo "host tool" >&6; }
18154 else
18155 # We need a cross tool
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18157 $as_echo "pre-installed" >&6; }
18165 # Certain tools may need extra flags.
18166 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18167 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18168 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18170 # When building target libraries, except in a Canadian cross, we use
18171 # the same toolchain as the compiler we just built.
18172 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18173 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18174 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18175 if test $host = $build; then
18176 case " $configdirs " in
18177 *" gcc "*)
18178 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18179 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18180 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18182 esac
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18190 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18191 # Check whether --enable-maintainer-mode was given.
18192 if test "${enable_maintainer_mode+set}" = set; then :
18193 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18194 else
18195 USE_MAINTAINER_MODE=no
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18199 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18202 if test "$USE_MAINTAINER_MODE" = yes; then
18203 MAINTAINER_MODE_TRUE=
18204 MAINTAINER_MODE_FALSE='#'
18205 else
18206 MAINTAINER_MODE_TRUE='#'
18207 MAINTAINER_MODE_FALSE=
18209 MAINT=$MAINTAINER_MODE_TRUE
18211 # ---------------------
18212 # GCC bootstrap support
18213 # ---------------------
18215 # Stage specific cflags for build.
18216 stage1_cflags="-g"
18217 case $build in
18218 vax-*-*)
18219 case ${GCC} in
18220 yes) stage1_cflags="-g -Wa,-J" ;;
18221 *) stage1_cflags="-g -J" ;;
18222 esac ;;
18223 esac
18227 # Enable --enable-checking in stage1 of the compiler.
18228 # Check whether --enable-stage1-checking was given.
18229 if test "${enable_stage1_checking+set}" = set; then :
18230 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18231 else
18232 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18233 # For --disable-checking or implicit --enable-checking=release, avoid
18234 # setting --enable-checking=gc in the default stage1 checking for LTO
18235 # bootstraps. See PR62077.
18236 case $BUILD_CONFIG in
18237 *lto*)
18238 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18240 stage1_checking=--enable-checking=yes,types;;
18241 esac
18242 if test "x$enable_checking" = x && \
18243 test -d ${srcdir}/gcc && \
18244 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18245 stage1_checking=--enable-checking=yes,types,extra
18247 else
18248 stage1_checking=--enable-checking=$enable_checking,types
18254 # Enable -Werror in bootstrap stage2 and later.
18255 # Check whether --enable-werror was given.
18256 if test "${enable_werror+set}" = set; then :
18257 enableval=$enable_werror;
18258 case ${enable_werror} in
18259 yes) stage2_werror_flag="--enable-werror-always" ;;
18260 *) stage2_werror_flag="" ;;
18261 esac
18263 else
18265 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18266 case $BUILD_CONFIG in
18267 bootstrap-debug)
18268 stage2_werror_flag="--enable-werror-always" ;;
18270 stage2_werror_flag="--enable-werror-always" ;;
18271 esac
18279 # Specify what files to not compare during bootstrap.
18281 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18282 case "$target" in
18283 hppa*64*-*-hpux*) ;;
18284 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18285 esac
18288 ac_config_files="$ac_config_files Makefile"
18290 cat >confcache <<\_ACEOF
18291 # This file is a shell script that caches the results of configure
18292 # tests run on this system so they can be shared between configure
18293 # scripts and configure runs, see configure's option --config-cache.
18294 # It is not useful on other systems. If it contains results you don't
18295 # want to keep, you may remove or edit it.
18297 # config.status only pays attention to the cache file if you give it
18298 # the --recheck option to rerun configure.
18300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18302 # following values.
18304 _ACEOF
18306 # The following way of writing the cache mishandles newlines in values,
18307 # but we know of no workaround that is simple, portable, and efficient.
18308 # So, we kill variables containing newlines.
18309 # Ultrix sh set writes to stderr and can't be redirected directly,
18310 # and sets the high bit in the cache file unless we assign to the vars.
18312 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18313 eval ac_val=\$$ac_var
18314 case $ac_val in #(
18315 *${as_nl}*)
18316 case $ac_var in #(
18317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18318 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18319 esac
18320 case $ac_var in #(
18321 _ | IFS | as_nl) ;; #(
18322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18323 *) { eval $ac_var=; unset $ac_var;} ;;
18324 esac ;;
18325 esac
18326 done
18328 (set) 2>&1 |
18329 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18330 *${as_nl}ac_space=\ *)
18331 # `set' does not quote correctly, so add quotes: double-quote
18332 # substitution turns \\\\ into \\, and sed turns \\ into \.
18333 sed -n \
18334 "s/'/'\\\\''/g;
18335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18336 ;; #(
18338 # `set' quotes correctly as required by POSIX, so do not add quotes.
18339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18341 esac |
18342 sort
18344 sed '
18345 /^ac_cv_env_/b end
18346 t clear
18347 :clear
18348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18349 t end
18350 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18351 :end' >>confcache
18352 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18353 if test -w "$cache_file"; then
18354 if test "x$cache_file" != "x/dev/null"; then
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18356 $as_echo "$as_me: updating cache $cache_file" >&6;}
18357 if test ! -f "$cache_file" || test -h "$cache_file"; then
18358 cat confcache >"$cache_file"
18359 else
18360 case $cache_file in #(
18361 */* | ?:*)
18362 mv -f confcache "$cache_file"$$ &&
18363 mv -f "$cache_file"$$ "$cache_file" ;; #(
18365 mv -f confcache "$cache_file" ;;
18366 esac
18369 else
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18371 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18374 rm -f confcache
18376 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18377 # Let make expand exec_prefix.
18378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18380 # Transform confdefs.h into DEFS.
18381 # Protect against shell expansion while executing Makefile rules.
18382 # Protect against Makefile macro expansion.
18384 # If the first sed substitution is executed (which looks for macros that
18385 # take arguments), then branch to the quote section. Otherwise,
18386 # look for a macro that doesn't take arguments.
18387 ac_script='
18388 :mline
18389 /\\$/{
18391 s,\\\n,,
18392 b mline
18394 t clear
18395 :clear
18396 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18397 t quote
18398 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18399 t quote
18400 b any
18401 :quote
18402 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18403 s/\[/\\&/g
18404 s/\]/\\&/g
18405 s/\$/$$/g
18407 :any
18410 s/^\n//
18411 s/\n/ /g
18415 DEFS=`sed -n "$ac_script" confdefs.h`
18418 ac_libobjs=
18419 ac_ltlibobjs=
18421 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18422 # 1. Remove the extension, and $U if already installed.
18423 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18424 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18425 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18426 # will be set to the directory where LIBOBJS objects are built.
18427 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18428 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18429 done
18430 LIBOBJS=$ac_libobjs
18432 LTLIBOBJS=$ac_ltlibobjs
18436 : "${CONFIG_STATUS=./config.status}"
18437 ac_write_fail=0
18438 ac_clean_files_save=$ac_clean_files
18439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18441 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18442 as_write_fail=0
18443 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18444 #! $SHELL
18445 # Generated by $as_me.
18446 # Run this file to recreate the current configuration.
18447 # Compiler output produced by configure, useful for debugging
18448 # configure, is in config.log if it exists.
18450 debug=false
18451 ac_cs_recheck=false
18452 ac_cs_silent=false
18454 SHELL=\${CONFIG_SHELL-$SHELL}
18455 export SHELL
18456 _ASEOF
18457 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18458 ## -------------------- ##
18459 ## M4sh Initialization. ##
18460 ## -------------------- ##
18462 # Be more Bourne compatible
18463 DUALCASE=1; export DUALCASE # for MKS sh
18464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18465 emulate sh
18466 NULLCMD=:
18467 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18468 # is contrary to our usage. Disable this feature.
18469 alias -g '${1+"$@"}'='"$@"'
18470 setopt NO_GLOB_SUBST
18471 else
18472 case `(set -o) 2>/dev/null` in #(
18473 *posix*) :
18474 set -o posix ;; #(
18475 *) :
18477 esac
18481 as_nl='
18483 export as_nl
18484 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18485 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18486 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18487 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18488 # Prefer a ksh shell builtin over an external printf program on Solaris,
18489 # but without wasting forks for bash or zsh.
18490 if test -z "$BASH_VERSION$ZSH_VERSION" \
18491 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18492 as_echo='print -r --'
18493 as_echo_n='print -rn --'
18494 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18495 as_echo='printf %s\n'
18496 as_echo_n='printf %s'
18497 else
18498 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18499 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18500 as_echo_n='/usr/ucb/echo -n'
18501 else
18502 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18503 as_echo_n_body='eval
18504 arg=$1;
18505 case $arg in #(
18506 *"$as_nl"*)
18507 expr "X$arg" : "X\\(.*\\)$as_nl";
18508 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18509 esac;
18510 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18512 export as_echo_n_body
18513 as_echo_n='sh -c $as_echo_n_body as_echo'
18515 export as_echo_body
18516 as_echo='sh -c $as_echo_body as_echo'
18519 # The user is always right.
18520 if test "${PATH_SEPARATOR+set}" != set; then
18521 PATH_SEPARATOR=:
18522 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18523 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18524 PATH_SEPARATOR=';'
18529 # IFS
18530 # We need space, tab and new line, in precisely that order. Quoting is
18531 # there to prevent editors from complaining about space-tab.
18532 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18533 # splitting by setting IFS to empty value.)
18534 IFS=" "" $as_nl"
18536 # Find who we are. Look in the path if we contain no directory separator.
18537 as_myself=
18538 case $0 in #((
18539 *[\\/]* ) as_myself=$0 ;;
18540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541 for as_dir in $PATH
18543 IFS=$as_save_IFS
18544 test -z "$as_dir" && as_dir=.
18545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18546 done
18547 IFS=$as_save_IFS
18550 esac
18551 # We did not find ourselves, most probably we were run as `sh COMMAND'
18552 # in which case we are not to be found in the path.
18553 if test "x$as_myself" = x; then
18554 as_myself=$0
18556 if test ! -f "$as_myself"; then
18557 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18558 exit 1
18561 # Unset variables that we do not need and which cause bugs (e.g. in
18562 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18563 # suppresses any "Segmentation fault" message there. '((' could
18564 # trigger a bug in pdksh 5.2.14.
18565 for as_var in BASH_ENV ENV MAIL MAILPATH
18566 do eval test x\${$as_var+set} = xset \
18567 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18568 done
18569 PS1='$ '
18570 PS2='> '
18571 PS4='+ '
18573 # NLS nuisances.
18574 LC_ALL=C
18575 export LC_ALL
18576 LANGUAGE=C
18577 export LANGUAGE
18579 # CDPATH.
18580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18583 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18584 # ----------------------------------------
18585 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18586 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18587 # script with STATUS, using 1 if that was 0.
18588 as_fn_error ()
18590 as_status=$1; test $as_status -eq 0 && as_status=1
18591 if test "$4"; then
18592 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18593 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18595 $as_echo "$as_me: error: $2" >&2
18596 as_fn_exit $as_status
18597 } # as_fn_error
18600 # as_fn_set_status STATUS
18601 # -----------------------
18602 # Set $? to STATUS, without forking.
18603 as_fn_set_status ()
18605 return $1
18606 } # as_fn_set_status
18608 # as_fn_exit STATUS
18609 # -----------------
18610 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18611 as_fn_exit ()
18613 set +e
18614 as_fn_set_status $1
18615 exit $1
18616 } # as_fn_exit
18618 # as_fn_unset VAR
18619 # ---------------
18620 # Portably unset VAR.
18621 as_fn_unset ()
18623 { eval $1=; unset $1;}
18625 as_unset=as_fn_unset
18626 # as_fn_append VAR VALUE
18627 # ----------------------
18628 # Append the text in VALUE to the end of the definition contained in VAR. Take
18629 # advantage of any shell optimizations that allow amortized linear growth over
18630 # repeated appends, instead of the typical quadratic growth present in naive
18631 # implementations.
18632 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18633 eval 'as_fn_append ()
18635 eval $1+=\$2
18637 else
18638 as_fn_append ()
18640 eval $1=\$$1\$2
18642 fi # as_fn_append
18644 # as_fn_arith ARG...
18645 # ------------------
18646 # Perform arithmetic evaluation on the ARGs, and store the result in the
18647 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18648 # must be portable across $(()) and expr.
18649 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18650 eval 'as_fn_arith ()
18652 as_val=$(( $* ))
18654 else
18655 as_fn_arith ()
18657 as_val=`expr "$@" || test $? -eq 1`
18659 fi # as_fn_arith
18662 if expr a : '\(a\)' >/dev/null 2>&1 &&
18663 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18664 as_expr=expr
18665 else
18666 as_expr=false
18669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18670 as_basename=basename
18671 else
18672 as_basename=false
18675 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18676 as_dirname=dirname
18677 else
18678 as_dirname=false
18681 as_me=`$as_basename -- "$0" ||
18682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18683 X"$0" : 'X\(//\)$' \| \
18684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18685 $as_echo X/"$0" |
18686 sed '/^.*\/\([^/][^/]*\)\/*$/{
18687 s//\1/
18690 /^X\/\(\/\/\)$/{
18691 s//\1/
18694 /^X\/\(\/\).*/{
18695 s//\1/
18698 s/.*/./; q'`
18700 # Avoid depending upon Character Ranges.
18701 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18702 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18703 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18704 as_cr_digits='0123456789'
18705 as_cr_alnum=$as_cr_Letters$as_cr_digits
18707 ECHO_C= ECHO_N= ECHO_T=
18708 case `echo -n x` in #(((((
18709 -n*)
18710 case `echo 'xy\c'` in
18711 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18712 xy) ECHO_C='\c';;
18713 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18714 ECHO_T=' ';;
18715 esac;;
18717 ECHO_N='-n';;
18718 esac
18720 rm -f conf$$ conf$$.exe conf$$.file
18721 if test -d conf$$.dir; then
18722 rm -f conf$$.dir/conf$$.file
18723 else
18724 rm -f conf$$.dir
18725 mkdir conf$$.dir 2>/dev/null
18727 if (echo >conf$$.file) 2>/dev/null; then
18728 if ln -s conf$$.file conf$$ 2>/dev/null; then
18729 as_ln_s='ln -s'
18730 # ... but there are two gotchas:
18731 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18732 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18733 # In both cases, we have to default to `cp -pR'.
18734 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18735 as_ln_s='cp -pR'
18736 elif ln conf$$.file conf$$ 2>/dev/null; then
18737 as_ln_s=ln
18738 else
18739 as_ln_s='cp -pR'
18741 else
18742 as_ln_s='cp -pR'
18744 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18745 rmdir conf$$.dir 2>/dev/null
18748 # as_fn_mkdir_p
18749 # -------------
18750 # Create "$as_dir" as a directory, including parents if necessary.
18751 as_fn_mkdir_p ()
18754 case $as_dir in #(
18755 -*) as_dir=./$as_dir;;
18756 esac
18757 test -d "$as_dir" || eval $as_mkdir_p || {
18758 as_dirs=
18759 while :; do
18760 case $as_dir in #(
18761 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18762 *) as_qdir=$as_dir;;
18763 esac
18764 as_dirs="'$as_qdir' $as_dirs"
18765 as_dir=`$as_dirname -- "$as_dir" ||
18766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18767 X"$as_dir" : 'X\(//\)[^/]' \| \
18768 X"$as_dir" : 'X\(//\)$' \| \
18769 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18770 $as_echo X"$as_dir" |
18771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18772 s//\1/
18775 /^X\(\/\/\)[^/].*/{
18776 s//\1/
18779 /^X\(\/\/\)$/{
18780 s//\1/
18783 /^X\(\/\).*/{
18784 s//\1/
18787 s/.*/./; q'`
18788 test -d "$as_dir" && break
18789 done
18790 test -z "$as_dirs" || eval "mkdir $as_dirs"
18791 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18794 } # as_fn_mkdir_p
18795 if mkdir -p . 2>/dev/null; then
18796 as_mkdir_p='mkdir -p "$as_dir"'
18797 else
18798 test -d ./-p && rmdir ./-p
18799 as_mkdir_p=false
18803 # as_fn_executable_p FILE
18804 # -----------------------
18805 # Test if FILE is an executable regular file.
18806 as_fn_executable_p ()
18808 test -f "$1" && test -x "$1"
18809 } # as_fn_executable_p
18810 as_test_x='test -x'
18811 as_executable_p=as_fn_executable_p
18813 # Sed expression to map a string onto a valid CPP name.
18814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18816 # Sed expression to map a string onto a valid variable name.
18817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18820 exec 6>&1
18821 ## ----------------------------------- ##
18822 ## Main body of $CONFIG_STATUS script. ##
18823 ## ----------------------------------- ##
18824 _ASEOF
18825 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18828 # Save the log message, to keep $0 and so on meaningful, and to
18829 # report actual input values of CONFIG_FILES etc. instead of their
18830 # values after options handling.
18831 ac_log="
18832 This file was extended by $as_me, which was
18833 generated by GNU Autoconf 2.69. Invocation command line was
18835 CONFIG_FILES = $CONFIG_FILES
18836 CONFIG_HEADERS = $CONFIG_HEADERS
18837 CONFIG_LINKS = $CONFIG_LINKS
18838 CONFIG_COMMANDS = $CONFIG_COMMANDS
18839 $ $0 $@
18841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18844 _ACEOF
18846 case $ac_config_files in *"
18847 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18848 esac
18852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18853 # Files that config.status was made for.
18854 config_files="$ac_config_files"
18856 _ACEOF
18858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18859 ac_cs_usage="\
18860 \`$as_me' instantiates files and other configuration actions
18861 from templates according to the current configuration. Unless the files
18862 and actions are specified as TAGs, all are instantiated by default.
18864 Usage: $0 [OPTION]... [TAG]...
18866 -h, --help print this help, then exit
18867 -V, --version print version number and configuration settings, then exit
18868 --config print configuration, then exit
18869 -q, --quiet, --silent
18870 do not print progress messages
18871 -d, --debug don't remove temporary files
18872 --recheck update $as_me by reconfiguring in the same conditions
18873 --file=FILE[:TEMPLATE]
18874 instantiate the configuration file FILE
18876 Configuration files:
18877 $config_files
18879 Report bugs to the package provider."
18881 _ACEOF
18882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18883 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18884 ac_cs_version="\\
18885 config.status
18886 configured by $0, generated by GNU Autoconf 2.69,
18887 with options \\"\$ac_cs_config\\"
18889 Copyright (C) 2012 Free Software Foundation, Inc.
18890 This config.status script is free software; the Free Software Foundation
18891 gives unlimited permission to copy, distribute and modify it."
18893 ac_pwd='$ac_pwd'
18894 srcdir='$srcdir'
18895 INSTALL='$INSTALL'
18896 AWK='$AWK'
18897 test -n "\$AWK" || AWK=awk
18898 _ACEOF
18900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18901 # The default lists apply if the user does not specify any file.
18902 ac_need_defaults=:
18903 while test $# != 0
18905 case $1 in
18906 --*=?*)
18907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18908 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18909 ac_shift=:
18911 --*=)
18912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18913 ac_optarg=
18914 ac_shift=:
18917 ac_option=$1
18918 ac_optarg=$2
18919 ac_shift=shift
18921 esac
18923 case $ac_option in
18924 # Handling of the options.
18925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18926 ac_cs_recheck=: ;;
18927 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18928 $as_echo "$ac_cs_version"; exit ;;
18929 --config | --confi | --conf | --con | --co | --c )
18930 $as_echo "$ac_cs_config"; exit ;;
18931 --debug | --debu | --deb | --de | --d | -d )
18932 debug=: ;;
18933 --file | --fil | --fi | --f )
18934 $ac_shift
18935 case $ac_optarg in
18936 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18937 '') as_fn_error $? "missing file argument" ;;
18938 esac
18939 as_fn_append CONFIG_FILES " '$ac_optarg'"
18940 ac_need_defaults=false;;
18941 --he | --h | --help | --hel | -h )
18942 $as_echo "$ac_cs_usage"; exit ;;
18943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18944 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18945 ac_cs_silent=: ;;
18947 # This is an error.
18948 -*) as_fn_error $? "unrecognized option: \`$1'
18949 Try \`$0 --help' for more information." ;;
18951 *) as_fn_append ac_config_targets " $1"
18952 ac_need_defaults=false ;;
18954 esac
18955 shift
18956 done
18958 ac_configure_extra_args=
18960 if $ac_cs_silent; then
18961 exec 6>/dev/null
18962 ac_configure_extra_args="$ac_configure_extra_args --silent"
18965 _ACEOF
18966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18967 if \$ac_cs_recheck; then
18968 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18969 shift
18970 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18971 CONFIG_SHELL='$SHELL'
18972 export CONFIG_SHELL
18973 exec "\$@"
18976 _ACEOF
18977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18978 exec 5>>config.log
18980 echo
18981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18982 ## Running $as_me. ##
18983 _ASBOX
18984 $as_echo "$ac_log"
18985 } >&5
18987 _ACEOF
18988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18990 # INIT-COMMANDS
18992 extrasub_build="$extrasub_build"
18993 extrasub_host="$extrasub_host"
18994 extrasub_target="$extrasub_target"
18996 _ACEOF
18998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19000 # Handling of arguments.
19001 for ac_config_target in $ac_config_targets
19003 case $ac_config_target in
19004 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19006 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19007 esac
19008 done
19011 # If the user did not use the arguments to specify the items to instantiate,
19012 # then the envvar interface is used. Set only those that are not.
19013 # We use the long form for the default assignment because of an extremely
19014 # bizarre bug on SunOS 4.1.3.
19015 if $ac_need_defaults; then
19016 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19019 # Have a temporary directory for convenience. Make it in the build tree
19020 # simply because there is no reason against having it here, and in addition,
19021 # creating and moving files from /tmp can sometimes cause problems.
19022 # Hook for its removal unless debugging.
19023 # Note that there is a small window in which the directory will not be cleaned:
19024 # after its creation but before its name has been assigned to `$tmp'.
19025 $debug ||
19027 tmp= ac_tmp=
19028 trap 'exit_status=$?
19029 : "${ac_tmp:=$tmp}"
19030 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19032 trap 'as_fn_exit 1' 1 2 13 15
19034 # Create a (secure) tmp directory for tmp files.
19037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19038 test -d "$tmp"
19039 } ||
19041 tmp=./conf$$-$RANDOM
19042 (umask 077 && mkdir "$tmp")
19043 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19044 ac_tmp=$tmp
19046 # Set up the scripts for CONFIG_FILES section.
19047 # No need to generate them if there are no CONFIG_FILES.
19048 # This happens for instance with `./config.status config.h'.
19049 if test -n "$CONFIG_FILES"; then
19051 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19052 ac_cs_awk_getline=:
19053 ac_cs_awk_pipe_init=
19054 ac_cs_awk_read_file='
19055 while ((getline aline < (F[key])) > 0)
19056 print(aline)
19057 close(F[key])'
19058 ac_cs_awk_pipe_fini=
19059 else
19060 ac_cs_awk_getline=false
19061 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19062 ac_cs_awk_read_file='
19063 print "|#_!!_#|"
19064 print "cat " F[key] " &&"
19065 '$ac_cs_awk_pipe_init
19066 # The final `:' finishes the AND list.
19067 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19069 ac_cr=`echo X | tr X '\015'`
19070 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19071 # But we know of no other shell where ac_cr would be empty at this
19072 # point, so we can use a bashism as a fallback.
19073 if test "x$ac_cr" = x; then
19074 eval ac_cr=\$\'\\r\'
19076 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19077 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19078 ac_cs_awk_cr='\\r'
19079 else
19080 ac_cs_awk_cr=$ac_cr
19083 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19084 _ACEOF
19086 # Create commands to substitute file output variables.
19088 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19089 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19090 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19091 echo "_ACAWK" &&
19092 echo "_ACEOF"
19093 } >conf$$files.sh &&
19094 . ./conf$$files.sh ||
19095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19096 rm -f conf$$files.sh
19099 echo "cat >conf$$subs.awk <<_ACEOF" &&
19100 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19101 echo "_ACEOF"
19102 } >conf$$subs.sh ||
19103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19104 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19105 ac_delim='%!_!# '
19106 for ac_last_try in false false false false false :; do
19107 . ./conf$$subs.sh ||
19108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19110 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19111 if test $ac_delim_n = $ac_delim_num; then
19112 break
19113 elif $ac_last_try; then
19114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19115 else
19116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19118 done
19119 rm -f conf$$subs.sh
19121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19122 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19123 _ACEOF
19124 sed -n '
19126 s/^/S["/; s/!.*/"]=/
19129 s/^[^!]*!//
19130 :repl
19131 t repl
19132 s/'"$ac_delim"'$//
19133 t delim
19136 s/\(.\{148\}\)..*/\1/
19137 t more1
19138 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19141 b repl
19142 :more1
19143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19146 s/.\{148\}//
19147 t nl
19148 :delim
19150 s/\(.\{148\}\)..*/\1/
19151 t more2
19152 s/["\\]/\\&/g; s/^/"/; s/$/"/
19155 :more2
19156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19159 s/.\{148\}//
19160 t delim
19161 ' <conf$$subs.awk | sed '
19162 /^[^""]/{
19164 s/\n//
19166 ' >>$CONFIG_STATUS || ac_write_fail=1
19167 rm -f conf$$subs.awk
19168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19169 _ACAWK
19170 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19171 for (key in S) S_is_set[key] = 1
19172 FS = "\a"
19173 \$ac_cs_awk_pipe_init
19176 line = $ 0
19177 nfields = split(line, field, "@")
19178 substed = 0
19179 len = length(field[1])
19180 for (i = 2; i < nfields; i++) {
19181 key = field[i]
19182 keylen = length(key)
19183 if (S_is_set[key]) {
19184 value = S[key]
19185 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19186 len += length(value) + length(field[++i])
19187 substed = 1
19188 } else
19189 len += 1 + keylen
19191 if (nfields == 3 && !substed) {
19192 key = field[2]
19193 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19194 \$ac_cs_awk_read_file
19195 next
19198 print line
19200 \$ac_cs_awk_pipe_fini
19201 _ACAWK
19202 _ACEOF
19203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19204 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19205 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19206 else
19208 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19209 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19210 _ACEOF
19212 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19213 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19214 # trailing colons and then remove the whole line if VPATH becomes empty
19215 # (actually we leave an empty line to preserve line numbers).
19216 if test "x$srcdir" = x.; then
19217 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19219 s///
19220 s/^/:/
19221 s/[ ]*$/:/
19222 s/:\$(srcdir):/:/g
19223 s/:\${srcdir}:/:/g
19224 s/:@srcdir@:/:/g
19225 s/^:*//
19226 s/:*$//
19228 s/\(=[ ]*\).*/\1/
19230 s/\n//
19231 s/^[^=]*=[ ]*$//
19235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19236 fi # test -n "$CONFIG_FILES"
19239 eval set X " :F $CONFIG_FILES "
19240 shift
19241 for ac_tag
19243 case $ac_tag in
19244 :[FHLC]) ac_mode=$ac_tag; continue;;
19245 esac
19246 case $ac_mode$ac_tag in
19247 :[FHL]*:*);;
19248 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19249 :[FH]-) ac_tag=-:-;;
19250 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19251 esac
19252 ac_save_IFS=$IFS
19253 IFS=:
19254 set x $ac_tag
19255 IFS=$ac_save_IFS
19256 shift
19257 ac_file=$1
19258 shift
19260 case $ac_mode in
19261 :L) ac_source=$1;;
19262 :[FH])
19263 ac_file_inputs=
19264 for ac_f
19266 case $ac_f in
19267 -) ac_f="$ac_tmp/stdin";;
19268 *) # Look for the file first in the build tree, then in the source tree
19269 # (if the path is not absolute). The absolute path cannot be DOS-style,
19270 # because $ac_f cannot contain `:'.
19271 test -f "$ac_f" ||
19272 case $ac_f in
19273 [\\/$]*) false;;
19274 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19275 esac ||
19276 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19277 esac
19278 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19279 as_fn_append ac_file_inputs " '$ac_f'"
19280 done
19282 # Let's still pretend it is `configure' which instantiates (i.e., don't
19283 # use $as_me), people would be surprised to read:
19284 # /* config.h. Generated by config.status. */
19285 configure_input='Generated from '`
19286 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19287 `' by configure.'
19288 if test x"$ac_file" != x-; then
19289 configure_input="$ac_file. $configure_input"
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19291 $as_echo "$as_me: creating $ac_file" >&6;}
19293 # Neutralize special characters interpreted by sed in replacement strings.
19294 case $configure_input in #(
19295 *\&* | *\|* | *\\* )
19296 ac_sed_conf_input=`$as_echo "$configure_input" |
19297 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19298 *) ac_sed_conf_input=$configure_input;;
19299 esac
19301 case $ac_tag in
19302 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19304 esac
19306 esac
19308 ac_dir=`$as_dirname -- "$ac_file" ||
19309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19310 X"$ac_file" : 'X\(//\)[^/]' \| \
19311 X"$ac_file" : 'X\(//\)$' \| \
19312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19313 $as_echo X"$ac_file" |
19314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19315 s//\1/
19318 /^X\(\/\/\)[^/].*/{
19319 s//\1/
19322 /^X\(\/\/\)$/{
19323 s//\1/
19326 /^X\(\/\).*/{
19327 s//\1/
19330 s/.*/./; q'`
19331 as_dir="$ac_dir"; as_fn_mkdir_p
19332 ac_builddir=.
19334 case "$ac_dir" in
19335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19337 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19338 # A ".." for each directory in $ac_dir_suffix.
19339 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19340 case $ac_top_builddir_sub in
19341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19343 esac ;;
19344 esac
19345 ac_abs_top_builddir=$ac_pwd
19346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19347 # for backward compatibility:
19348 ac_top_builddir=$ac_top_build_prefix
19350 case $srcdir in
19351 .) # We are building in place.
19352 ac_srcdir=.
19353 ac_top_srcdir=$ac_top_builddir_sub
19354 ac_abs_top_srcdir=$ac_pwd ;;
19355 [\\/]* | ?:[\\/]* ) # Absolute name.
19356 ac_srcdir=$srcdir$ac_dir_suffix;
19357 ac_top_srcdir=$srcdir
19358 ac_abs_top_srcdir=$srcdir ;;
19359 *) # Relative name.
19360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19361 ac_top_srcdir=$ac_top_build_prefix$srcdir
19362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19363 esac
19364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19367 case $ac_mode in
19370 # CONFIG_FILE
19373 case $INSTALL in
19374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19375 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19376 esac
19377 _ACEOF
19379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19380 # If the template does not know about datarootdir, expand it.
19381 # FIXME: This hack should be removed a few years after 2.60.
19382 ac_datarootdir_hack=; ac_datarootdir_seen=
19383 ac_sed_dataroot='
19384 /datarootdir/ {
19388 /@datadir@/p
19389 /@docdir@/p
19390 /@infodir@/p
19391 /@localedir@/p
19392 /@mandir@/p'
19393 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19394 *datarootdir*) ac_datarootdir_seen=yes;;
19395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19397 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19398 _ACEOF
19399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19400 ac_datarootdir_hack='
19401 s&@datadir@&$datadir&g
19402 s&@docdir@&$docdir&g
19403 s&@infodir@&$infodir&g
19404 s&@localedir@&$localedir&g
19405 s&@mandir@&$mandir&g
19406 s&\\\${datarootdir}&$datarootdir&g' ;;
19407 esac
19408 _ACEOF
19410 # Neutralize VPATH when `$srcdir' = `.'.
19411 # Shell code in configure.ac might set extrasub.
19412 # FIXME: do we really want to maintain this feature?
19413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19414 ac_sed_extra="$ac_vpsub
19415 $extrasub
19416 _ACEOF
19417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19420 s|@configure_input@|$ac_sed_conf_input|;t t
19421 s&@top_builddir@&$ac_top_builddir_sub&;t t
19422 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19423 s&@srcdir@&$ac_srcdir&;t t
19424 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19425 s&@top_srcdir@&$ac_top_srcdir&;t t
19426 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19427 s&@builddir@&$ac_builddir&;t t
19428 s&@abs_builddir@&$ac_abs_builddir&;t t
19429 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19430 s&@INSTALL@&$ac_INSTALL&;t t
19431 $ac_datarootdir_hack
19433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19434 if $ac_cs_awk_getline; then
19435 $AWK -f "$ac_tmp/subs.awk"
19436 else
19437 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19438 fi \
19439 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19442 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19444 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19446 which seems to be undefined. Please make sure it is defined" >&5
19447 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19448 which seems to be undefined. Please make sure it is defined" >&2;}
19450 rm -f "$ac_tmp/stdin"
19451 case $ac_file in
19452 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19453 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19454 esac \
19455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19460 esac
19463 case $ac_file$ac_mode in
19464 "Makefile":F) sed "$extrasub_build" Makefile |
19465 sed "$extrasub_host" |
19466 sed "$extrasub_target" > mf$$
19467 mv -f mf$$ Makefile ;;
19469 esac
19470 done # for ac_tag
19473 as_fn_exit 0
19474 _ACEOF
19475 ac_clean_files=$ac_clean_files_save
19477 test $ac_write_fail = 0 ||
19478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19481 # configure is writing to config.log, and then calls config.status.
19482 # config.status does its own redirection, appending to config.log.
19483 # Unfortunately, on DOS this fails, as config.log is still kept open
19484 # by configure, so config.status won't be able to write to it; its
19485 # output is simply discarded. So we exec the FD to /dev/null,
19486 # effectively closing config.log, so it can be properly (re)opened and
19487 # appended to by config.status. When coming back to configure, we
19488 # need to make the FD available again.
19489 if test "$no_create" != yes; then
19490 ac_cs_success=:
19491 ac_config_status_args=
19492 test "$silent" = yes &&
19493 ac_config_status_args="$ac_config_status_args --quiet"
19494 exec 5>/dev/null
19495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19496 exec 5>>config.log
19497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19498 # would make configure fail if this is the last instruction.
19499 $ac_cs_success || as_fn_exit 1
19501 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19503 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}