Automatic date update in version.in
[binutils-gdb.git] / configure
blobd6b4ea5094a7aa6c67bdbd02cdd46824c6edafaf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 RANLIB_PLUGIN_OPTION
624 AR_PLUGIN_OPTION
625 PKG_CONFIG_PATH
626 GDCFLAGS
627 READELF
628 OTOOL
629 OBJDUMP
630 OBJCOPY
631 WINDMC
632 WINDRES
633 STRIP
634 RANLIB
636 LIPO
638 DSYMUTIL
639 DLLTOOL
642 RUNTEST
643 EXPECT
644 MAKEINFO
645 FLEX
648 BISON
649 YACC
650 WINDRES_FOR_BUILD
651 WINDMC_FOR_BUILD
652 RANLIB_FOR_BUILD
653 NM_FOR_BUILD
654 LD_FOR_BUILD
655 LDFLAGS_FOR_BUILD
656 GDC_FOR_BUILD
657 GOC_FOR_BUILD
658 GFORTRAN_FOR_BUILD
659 DSYMUTIL_FOR_BUILD
660 DLLTOOL_FOR_BUILD
661 CXX_FOR_BUILD
662 CXXFLAGS_FOR_BUILD
663 CPPFLAGS_FOR_BUILD
664 CPP_FOR_BUILD
665 CFLAGS_FOR_BUILD
666 CC_FOR_BUILD
667 AS_FOR_BUILD
668 AR_FOR_BUILD
669 target_configdirs
670 configdirs
671 build_configdirs
672 INSTALL_GDB_TK
673 GDB_TK
674 CONFIGURE_GDB_TK
675 build_tooldir
676 tooldir
677 GCC_SHLIB_SUBDIR
678 RPATH_ENVVAR
679 target_configargs
680 host_configargs
681 build_configargs
682 BUILD_CONFIG
683 LDFLAGS_FOR_TARGET
684 CXXFLAGS_FOR_TARGET
685 CFLAGS_FOR_TARGET
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
688 get_gcc_base_ver
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
691 stage1_languages
692 host_libs_picflag
693 CRAB1_LIBS
694 enable_libdiagnostics
695 PICFLAG
696 host_shared
697 gcc_host_pie
698 host_pie
699 extra_linker_plugin_flags
700 extra_linker_plugin_configure_flags
701 islinc
702 isllibs
703 poststage1_ldflags
704 poststage1_libs
705 stage1_ldflags
706 stage1_libs
707 extra_isl_gmp_configure_flags
708 extra_mpc_mpfr_configure_flags
709 extra_mpc_gmp_configure_flags
710 extra_mpfr_configure_flags
711 gmpinc
712 gmplibs
713 PGO_BUILD_LTO_CFLAGS
714 PGO_BUILD_USE_CFLAGS
715 PGO_BUILD_GEN_CFLAGS
716 HAVE_CXX14_FOR_BUILD
717 HAVE_CXX14
718 do_compare
719 CARGO
721 GNATMAKE
722 GNATBIND
723 ac_ct_CXX
724 CXXFLAGS
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
733 target_subdir
734 host_subdir
735 build_subdir
736 build_libsubdir
739 LN_S
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 target_noncanonical
753 host_noncanonical
754 build_noncanonical
755 build_os
756 build_vendor
757 build_cpu
758 build
759 TOPLEVEL_CONFIGURE_ARGUMENTS
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files='serialization_dependencies
799 host_makefile_frag
800 target_makefile_frag
801 alphaieee_frag
802 ospace_frag'
803 ac_user_opts='
804 enable_option_checking
805 with_build_libsubdir
806 with_system_zlib
807 with_zstd
808 enable_as_accelerator_for
809 enable_offload_targets
810 enable_offload_defaulted
811 enable_gold
812 enable_ld
813 enable_gprofng
814 enable_compressed_debug_sections
815 enable_default_compressed_debug_sections_algorithm
816 enable_year2038
817 enable_libquadmath
818 enable_libquadmath_support
819 enable_libada
820 enable_libgm2
821 enable_libssp
822 enable_libstdcxx
823 enable_bootstrap
824 enable_pgo_build
825 with_mpc
826 with_mpc_include
827 with_mpc_lib
828 with_mpfr
829 with_mpfr_include
830 with_mpfr_lib
831 with_gmp
832 with_gmp_include
833 with_gmp_lib
834 with_stage1_libs
835 with_static_standard_libraries
836 with_stage1_ldflags
837 with_boot_libs
838 with_boot_ldflags
839 with_isl
840 with_isl_include
841 with_isl_lib
842 enable_isl_version_check
843 enable_lto
844 enable_linker_plugin_configure_flags
845 enable_linker_plugin_flags
846 enable_host_pie
847 enable_host_shared
848 enable_libdiagnostics
849 enable_stage1_languages
850 enable_objc_gc
851 with_target_bdw_gc
852 with_target_bdw_gc_include
853 with_target_bdw_gc_lib
854 with_gcc_major_version_only
855 with_build_sysroot
856 with_debug_prefix_map
857 with_build_config
858 enable_vtable_verify
859 enable_serial_configure
860 with_build_time_tools
861 enable_maintainer_mode
862 enable_stage1_checking
863 enable_werror
865 ac_precious_vars='build_alias
866 host_alias
867 target_alias
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
874 CXXFLAGS
876 build_configargs
877 host_configargs
878 target_configargs
881 DLLTOOL
882 DSYMUTIL
884 LIPO
886 RANLIB
887 STRIP
888 WINDRES
889 WINDMC
890 OBJCOPY
891 OBJDUMP
892 OTOOL
893 READELF
894 CC_FOR_TARGET
895 CXX_FOR_TARGET
896 GCC_FOR_TARGET
897 GFORTRAN_FOR_TARGET
898 GOC_FOR_TARGET
899 GDC_FOR_TARGET
900 GM2_FOR_TARGET
901 AR_FOR_TARGET
902 AS_FOR_TARGET
903 DLLTOOL_FOR_TARGET
904 DSYMUTIL_FOR_TARGET
905 LD_FOR_TARGET
906 LIPO_FOR_TARGET
907 NM_FOR_TARGET
908 OBJCOPY_FOR_TARGET
909 OBJDUMP_FOR_TARGET
910 OTOOL_FOR_TARGET
911 RANLIB_FOR_TARGET
912 READELF_FOR_TARGET
913 STRIP_FOR_TARGET
914 WINDRES_FOR_TARGET
915 WINDMC_FOR_TARGET'
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 ac_unrecognized_opts=
922 ac_unrecognized_sep=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
925 cache_file=/dev/null
926 exec_prefix=NONE
927 no_create=
928 no_recursion=
929 prefix=NONE
930 program_prefix=NONE
931 program_suffix=NONE
932 program_transform_name=s,x,x,
933 silent=
934 site=
935 srcdir=
936 verbose=
937 x_includes=NONE
938 x_libraries=NONE
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE}'
957 infodir='${datarootdir}/info'
958 htmldir='${docdir}'
959 dvidir='${docdir}'
960 pdfdir='${docdir}'
961 psdir='${docdir}'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
966 ac_prev=
967 ac_dashdash=
968 for ac_option
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
973 ac_prev=
974 continue
977 case $ac_option in
978 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 *=) ac_optarg= ;;
980 *) ac_optarg=yes ;;
981 esac
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
987 ac_dashdash=yes ;;
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1021 -disable-* | --disable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=no ;;
1037 -docdir | --docdir | --docdi | --doc | --do)
1038 ac_prev=docdir ;;
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 ac_prev=dvidir ;;
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1047 -enable-* | --enable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=\$ac_optarg ;;
1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065 | --exec | --exe | --ex)
1066 ac_prev=exec_prefix ;;
1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069 | --exec=* | --exe=* | --ex=*)
1070 exec_prefix=$ac_optarg ;;
1072 -gas | --gas | --ga | --g)
1073 # Obsolete; use --with-gas.
1074 with_gas=yes ;;
1076 -help | --help | --hel | --he | -h)
1077 ac_init_help=long ;;
1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079 ac_init_help=recursive ;;
1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081 ac_init_help=short ;;
1083 -host | --host | --hos | --ho)
1084 ac_prev=host_alias ;;
1085 -host=* | --host=* | --hos=* | --ho=*)
1086 host_alias=$ac_optarg ;;
1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 ac_prev=htmldir ;;
1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 | --ht=*)
1092 htmldir=$ac_optarg ;;
1094 -includedir | --includedir | --includedi | --included | --include \
1095 | --includ | --inclu | --incl | --inc)
1096 ac_prev=includedir ;;
1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098 | --includ=* | --inclu=* | --incl=* | --inc=*)
1099 includedir=$ac_optarg ;;
1101 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 ac_prev=infodir ;;
1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104 infodir=$ac_optarg ;;
1106 -libdir | --libdir | --libdi | --libd)
1107 ac_prev=libdir ;;
1108 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109 libdir=$ac_optarg ;;
1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112 | --libexe | --libex | --libe)
1113 ac_prev=libexecdir ;;
1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115 | --libexe=* | --libex=* | --libe=*)
1116 libexecdir=$ac_optarg ;;
1118 -localedir | --localedir | --localedi | --localed | --locale)
1119 ac_prev=localedir ;;
1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121 localedir=$ac_optarg ;;
1123 -localstatedir | --localstatedir | --localstatedi | --localstated \
1124 | --localstate | --localstat | --localsta | --localst | --locals)
1125 ac_prev=localstatedir ;;
1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128 localstatedir=$ac_optarg ;;
1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 ac_prev=mandir ;;
1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133 mandir=$ac_optarg ;;
1135 -nfp | --nfp | --nf)
1136 # Obsolete; use --without-fp.
1137 with_fp=no ;;
1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140 | --no-cr | --no-c | -n)
1141 no_create=yes ;;
1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 no_recursion=yes ;;
1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149 | --oldin | --oldi | --old | --ol | --o)
1150 ac_prev=oldincludedir ;;
1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154 oldincludedir=$ac_optarg ;;
1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 ac_prev=prefix ;;
1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159 prefix=$ac_optarg ;;
1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162 | --program-pre | --program-pr | --program-p)
1163 ac_prev=program_prefix ;;
1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166 program_prefix=$ac_optarg ;;
1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169 | --program-suf | --program-su | --program-s)
1170 ac_prev=program_suffix ;;
1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173 program_suffix=$ac_optarg ;;
1175 -program-transform-name | --program-transform-name \
1176 | --program-transform-nam | --program-transform-na \
1177 | --program-transform-n | --program-transform- \
1178 | --program-transform | --program-transfor \
1179 | --program-transfo | --program-transf \
1180 | --program-trans | --program-tran \
1181 | --progr-tra | --program-tr | --program-t)
1182 ac_prev=program_transform_name ;;
1183 -program-transform-name=* | --program-transform-name=* \
1184 | --program-transform-nam=* | --program-transform-na=* \
1185 | --program-transform-n=* | --program-transform-=* \
1186 | --program-transform=* | --program-transfor=* \
1187 | --program-transfo=* | --program-transf=* \
1188 | --program-trans=* | --program-tran=* \
1189 | --progr-tra=* | --program-tr=* | --program-t=*)
1190 program_transform_name=$ac_optarg ;;
1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 ac_prev=pdfdir ;;
1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195 pdfdir=$ac_optarg ;;
1197 -psdir | --psdir | --psdi | --psd | --ps)
1198 ac_prev=psdir ;;
1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 psdir=$ac_optarg ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 silent=yes ;;
1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 ac_prev=sbindir ;;
1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 | --sbi=* | --sb=*)
1210 sbindir=$ac_optarg ;;
1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214 | --sharedst | --shareds | --shared | --share | --shar \
1215 | --sha | --sh)
1216 ac_prev=sharedstatedir ;;
1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 | --sha=* | --sh=*)
1221 sharedstatedir=$ac_optarg ;;
1223 -site | --site | --sit)
1224 ac_prev=site ;;
1225 -site=* | --site=* | --sit=*)
1226 site=$ac_optarg ;;
1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 ac_prev=srcdir ;;
1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231 srcdir=$ac_optarg ;;
1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234 | --syscon | --sysco | --sysc | --sys | --sy)
1235 ac_prev=sysconfdir ;;
1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238 sysconfdir=$ac_optarg ;;
1240 -target | --target | --targe | --targ | --tar | --ta | --t)
1241 ac_prev=target_alias ;;
1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243 target_alias=$ac_optarg ;;
1245 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 verbose=yes ;;
1248 -version | --version | --versio | --versi | --vers | -V)
1249 ac_init_version=: ;;
1251 -with-* | --with-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=\$ac_optarg ;;
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1276 "with_$ac_useropt"
1277 "*) ;;
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1280 esac
1281 eval with_$ac_useropt=no ;;
1283 --x)
1284 # Obsolete; use --with-x.
1285 with_x=yes ;;
1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288 | --x-incl | --x-inc | --x-in | --x-i)
1289 ac_prev=x_includes ;;
1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292 x_includes=$ac_optarg ;;
1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296 ac_prev=x_libraries ;;
1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299 x_libraries=$ac_optarg ;;
1301 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' | [0-9]* | *[!_$as_cr_alnum]* )
1310 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 esac
1312 eval $ac_envvar=\$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 esac
1324 done
1326 if test -n "$ac_prev"; then
1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $? "missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 esac
1339 # Check all directory arguments for consistency.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val=\$$ac_var
1346 # Remove trailing slashes.
1347 case $ac_val in
1348 */ )
1349 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\$ac_val;;
1351 esac
1352 # Be sure to have absolute directory names.
1353 case $ac_val in
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 esac
1357 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1358 done
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379 test "$silent" = yes && exec 6>/dev/null
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $? "working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $? "pwd does not report name of working directory"
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1408 /^X\(\/\/\)$/{
1409 s//\1/
1412 /^X\(\/\).*/{
1413 s//\1/
1416 s/.*/./; q'`
1417 srcdir=$ac_confdir
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 srcdir=..
1421 else
1422 ac_srcdir_defaulted=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431 pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 case $srcdir in
1443 *" "*)
1444 as_fn_error $? "path to source, $srcdir, contains spaces"
1446 esac
1447 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
1463 \`configure' configures this package to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1472 Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 [PREFIX]
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF
1518 cat <<\_ACEOF
1520 Program names:
1521 --program-prefix=PREFIX prepend PREFIX to installed program names
1522 --program-suffix=SUFFIX append SUFFIX to installed program names
1523 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1525 System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 --target=TARGET configure for building compilers for TARGET [HOST]
1529 _ACEOF
1532 if test -n "$ac_init_help"; then
1534 cat <<\_ACEOF
1536 Optional Features:
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-as-accelerator-for=ARG
1541 build as offload target compiler. Specify offload
1542 host triple by ARG
1543 --enable-offload-targets=LIST
1544 enable offloading to devices from comma-separated
1545 LIST of TARGET[=DIR]. Use optional path to find
1546 offload target compiler during the build
1547 --enable-offload-defaulted
1548 If enabled, configured but not installed offload compilers and
1549 libgomp plugins are silently ignored. Useful for distribution
1550 compilers where those are in separate optional packages.
1552 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1553 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1554 --disable-gprofng do not build gprofng
1555 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1556 Enable compressed debug sections for gas, gold or ld
1557 by default
1558 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1559 Default compression algorithm for
1560 --enable-compressed-debug-sections.
1561 --enable-year2038 enable support for timestamps past the year 2038
1562 --disable-libquadmath do not build libquadmath directory
1563 --disable-libquadmath-support
1564 disable libquadmath support for Fortran
1565 --enable-libada build libada directory
1566 --enable-libgm2 build libgm2 directory
1567 --enable-libssp build libssp directory
1568 --disable-libstdcxx do not build libstdc++-v3 directory
1569 --enable-bootstrap enable bootstrapping [yes if native build]
1570 --enable-pgo-build[=lto]
1571 enable the PGO build
1572 --disable-isl-version-check
1573 disable check for isl version
1574 --enable-lto enable link time optimization support
1575 --enable-linker-plugin-configure-flags=FLAGS
1576 additional flags for configuring linker plugins
1577 [none]
1578 --enable-linker-plugin-flags=FLAGS
1579 additional flags for configuring and building linker
1580 plugins [none]
1581 --enable-host-pie build position independent host executables
1582 --enable-host-shared build host code as shared libraries
1583 --enable-libdiagnostics build libdiagnostics shared library
1584 --enable-stage1-languages[=all]
1585 choose additional languages to build during stage1.
1586 Mostly useful for compiler development
1587 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1588 Objective-C runtime
1589 --enable-vtable-verify Enable vtable verification feature
1590 --enable-serial-[{host,target,build}-]configure
1591 force sequential configuration of sub-packages for
1592 the host, target or build machine, or all
1593 sub-packages
1594 --enable-maintainer-mode
1595 enable make rules and dependencies not useful (and
1596 sometimes confusing) to the casual installer
1597 --enable-stage1-checking[=all]
1598 choose additional checking for stage1 of the
1599 compiler
1600 --enable-werror enable -Werror in bootstrap stage2 and later
1602 Optional Packages:
1603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1605 --with-build-libsubdir=DIR Directory where to find libraries for build system
1606 --with-system-zlib use installed libz
1607 --with-zstd Support zstd compressed debug sections
1608 (default=auto)
1609 --with-mpc=PATH specify prefix directory for installed MPC package.
1610 Equivalent to --with-mpc-include=PATH/include plus
1611 --with-mpc-lib=PATH/lib
1612 --with-mpc-include=PATH specify directory for installed MPC include files
1613 --with-mpc-lib=PATH specify directory for the installed MPC library
1614 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1615 Equivalent to --with-mpfr-include=PATH/include plus
1616 --with-mpfr-lib=PATH/lib
1617 --with-mpfr-include=PATH
1618 specify directory for installed MPFR include files
1619 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1620 --with-gmp=PATH specify prefix directory for the installed GMP
1621 package. Equivalent to
1622 --with-gmp-include=PATH/include plus
1623 --with-gmp-lib=PATH/lib
1624 --with-gmp-include=PATH specify directory for installed GMP include files
1625 --with-gmp-lib=PATH specify directory for the installed GMP library
1626 --with-stage1-libs=LIBS libraries for stage1
1627 --with-static-standard-libraries
1628 use -static-libstdc++ and -static-libgcc
1629 (default=auto)
1630 --with-stage1-ldflags=FLAGS
1631 linker flags for stage1
1632 --with-boot-libs=LIBS libraries for stage2 and later
1633 --with-boot-ldflags=FLAGS
1634 linker flags for stage2 and later
1635 --with-isl=PATH Specify prefix directory for the installed isl
1636 package. Equivalent to
1637 --with-isl-include=PATH/include plus
1638 --with-isl-lib=PATH/lib
1639 --with-isl-include=PATH Specify directory for installed isl include files
1640 --with-isl-lib=PATH Specify the directory for the installed isl library
1641 --with-target-bdw-gc=PATHLIST
1642 specify prefix directory for installed bdw-gc
1643 package. Equivalent to
1644 --with-target-bdw-gc-include=PATH/include plus
1645 --with-target-bdw-gc-lib=PATH/lib
1646 --with-target-bdw-gc-include=PATHLIST
1647 specify directories for installed bdw-gc include
1648 files
1649 --with-target-bdw-gc-lib=PATHLIST
1650 specify directories for installed bdw-gc library
1651 --with-gcc-major-version-only
1652 use only GCC major number in filesystem paths
1653 --with-build-sysroot=SYSROOT
1654 use sysroot as the system root during the build
1655 --with-debug-prefix-map='A=B C=D ...'
1656 map A to B, C to D ... in debug information
1657 --with-build-config='NAME NAME2...'
1658 use config/NAME.mk build configuration
1659 --with-build-time-tools=PATH
1660 use given path to find target tools during the build
1662 Some influential environment variables:
1663 CC C compiler command
1664 CFLAGS C compiler flags
1665 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1666 nonstandard directory <lib dir>
1667 LIBS libraries to pass to the linker, e.g. -l<library>
1668 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1669 you have headers in a nonstandard directory <include dir>
1670 CXX C++ compiler command
1671 CXXFLAGS C++ compiler flags
1672 build_configargs
1673 additional configure arguments for build directories
1674 host_configargs
1675 additional configure arguments for host directories
1676 target_configargs
1677 additional configure arguments for target directories
1678 AR AR for the host
1679 AS AS for the host
1680 DLLTOOL DLLTOOL for the host
1681 DSYMUTIL DSYMUTIL for the host
1682 LD LD for the host
1683 LIPO LIPO for the host
1684 NM NM for the host
1685 RANLIB RANLIB for the host
1686 STRIP STRIP for the host
1687 WINDRES WINDRES for the host
1688 WINDMC WINDMC for the host
1689 OBJCOPY OBJCOPY for the host
1690 OBJDUMP OBJDUMP for the host
1691 OTOOL OTOOL for the host
1692 READELF READELF for the host
1693 CC_FOR_TARGET
1694 CC for the target
1695 CXX_FOR_TARGET
1696 CXX for the target
1697 GCC_FOR_TARGET
1698 GCC for the target
1699 GFORTRAN_FOR_TARGET
1700 GFORTRAN for the target
1701 GOC_FOR_TARGET
1702 GOC for the target
1703 GDC_FOR_TARGET
1704 GDC for the target
1705 GM2_FOR_TARGET
1706 GM2 for the target
1707 AR_FOR_TARGET
1708 AR for the target
1709 AS_FOR_TARGET
1710 AS for the target
1711 DLLTOOL_FOR_TARGET
1712 DLLTOOL for the target
1713 DSYMUTIL_FOR_TARGET
1714 DSYMUTIL for the target
1715 LD_FOR_TARGET
1716 LD for the target
1717 LIPO_FOR_TARGET
1718 LIPO for the target
1719 NM_FOR_TARGET
1720 NM for the target
1721 OBJCOPY_FOR_TARGET
1722 OBJCOPY for the target
1723 OBJDUMP_FOR_TARGET
1724 OBJDUMP for the target
1725 OTOOL_FOR_TARGET
1726 OTOOL for the target
1727 RANLIB_FOR_TARGET
1728 RANLIB for the target
1729 READELF_FOR_TARGET
1730 READELF for the target
1731 STRIP_FOR_TARGET
1732 STRIP for the target
1733 WINDRES_FOR_TARGET
1734 WINDRES for the target
1735 WINDMC_FOR_TARGET
1736 WINDMC for the target
1738 Use these variables to override the choices made by `configure' or to help
1739 it to find libraries and programs with nonstandard names/locations.
1741 Report bugs to the package provider.
1742 _ACEOF
1743 ac_status=$?
1746 if test "$ac_init_help" = "recursive"; then
1747 # If there are subdirs, report their specific --help.
1748 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1749 test -d "$ac_dir" ||
1750 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1751 continue
1752 ac_builddir=.
1754 case "$ac_dir" in
1755 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1758 # A ".." for each directory in $ac_dir_suffix.
1759 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1760 case $ac_top_builddir_sub in
1761 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1762 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1763 esac ;;
1764 esac
1765 ac_abs_top_builddir=$ac_pwd
1766 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1767 # for backward compatibility:
1768 ac_top_builddir=$ac_top_build_prefix
1770 case $srcdir in
1771 .) # We are building in place.
1772 ac_srcdir=.
1773 ac_top_srcdir=$ac_top_builddir_sub
1774 ac_abs_top_srcdir=$ac_pwd ;;
1775 [\\/]* | ?:[\\/]* ) # Absolute name.
1776 ac_srcdir=$srcdir$ac_dir_suffix;
1777 ac_top_srcdir=$srcdir
1778 ac_abs_top_srcdir=$srcdir ;;
1779 *) # Relative name.
1780 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1781 ac_top_srcdir=$ac_top_build_prefix$srcdir
1782 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1783 esac
1784 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1786 cd "$ac_dir" || { ac_status=$?; continue; }
1787 # Check for guested configure.
1788 if test -f "$ac_srcdir/configure.gnu"; then
1789 echo &&
1790 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1791 elif test -f "$ac_srcdir/configure"; then
1792 echo &&
1793 $SHELL "$ac_srcdir/configure" --help=recursive
1794 else
1795 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1796 fi || ac_status=$?
1797 cd "$ac_pwd" || { ac_status=$?; break; }
1798 done
1801 test -n "$ac_init_help" && exit $ac_status
1802 if $ac_init_version; then
1803 cat <<\_ACEOF
1804 configure
1805 generated by GNU Autoconf 2.69
1807 Copyright (C) 2012 Free Software Foundation, Inc.
1808 This configure script is free software; the Free Software Foundation
1809 gives unlimited permission to copy, distribute and modify it.
1810 _ACEOF
1811 exit
1814 ## ------------------------ ##
1815 ## Autoconf initialization. ##
1816 ## ------------------------ ##
1818 # ac_fn_c_try_compile LINENO
1819 # --------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_compile ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext
1825 if { { ac_try="$ac_compile"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1849 ac_retval=1
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_c_try_compile
1856 # ac_fn_cxx_try_compile LINENO
1857 # ----------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_compile ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext
1863 if { { ac_try="$ac_compile"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_cxx_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.$ac_objext; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1887 ac_retval=1
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_cxx_try_compile
1894 # ac_fn_cxx_try_link LINENO
1895 # -------------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_link ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_cxx_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest$ac_exeext
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 ac_retval=1
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_cxx_try_link
1940 # ac_fn_c_try_link LINENO
1941 # -----------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_c_try_link ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 rm -f conftest.$ac_objext conftest$ac_exeext
1947 if { { ac_try="$ac_link"
1948 case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>conftest.err
1955 ac_status=$?
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && {
1963 test -z "$ac_c_werror_flag" ||
1964 test ! -s conftest.err
1965 } && test -s conftest$ac_exeext && {
1966 test "$cross_compiling" = yes ||
1967 test -x conftest$ac_exeext
1968 }; then :
1969 ac_retval=0
1970 else
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 ac_retval=1
1976 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1977 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1978 # interfere with the next link command; also delete a directory that is
1979 # left behind by Apple's compiler. We do this before executing the actions.
1980 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1984 } # ac_fn_c_try_link
1985 cat >config.log <<_ACEOF
1986 This file contains any messages produced by compilers while
1987 running configure, to aid debugging if configure makes a mistake.
1989 It was created by $as_me, which was
1990 generated by GNU Autoconf 2.69. Invocation command line was
1992 $ $0 $@
1994 _ACEOF
1995 exec 5>>config.log
1997 cat <<_ASUNAME
1998 ## --------- ##
1999 ## Platform. ##
2000 ## --------- ##
2002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2014 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019 _ASUNAME
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 $as_echo "PATH: $as_dir"
2027 done
2028 IFS=$as_save_IFS
2030 } >&5
2032 cat >&5 <<_ACEOF
2035 ## ----------- ##
2036 ## Core tests. ##
2037 ## ----------- ##
2039 _ACEOF
2042 # Keep a trace of the command line.
2043 # Strip out --no-create and --no-recursion so they do not pile up.
2044 # Strip out --silent because we don't want to record it for future runs.
2045 # Also quote any args containing shell meta-characters.
2046 # Make two passes to allow for proper duplicate-argument suppression.
2047 ac_configure_args=
2048 ac_configure_args0=
2049 ac_configure_args1=
2050 ac_must_keep_next=false
2051 for ac_pass in 1 2
2053 for ac_arg
2055 case $ac_arg in
2056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2058 | -silent | --silent | --silen | --sile | --sil)
2059 continue ;;
2060 *\'*)
2061 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062 esac
2063 case $ac_pass in
2064 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066 as_fn_append ac_configure_args1 " '$ac_arg'"
2067 if test $ac_must_keep_next = true; then
2068 ac_must_keep_next=false # Got value, back to normal.
2069 else
2070 case $ac_arg in
2071 *=* | --config-cache | -C | -disable-* | --disable-* \
2072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2074 | -with-* | --with-* | -without-* | --without-* | --x)
2075 case "$ac_configure_args0 " in
2076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2077 esac
2079 -* ) ac_must_keep_next=true ;;
2080 esac
2082 as_fn_append ac_configure_args " '$ac_arg'"
2084 esac
2085 done
2086 done
2087 { ac_configure_args0=; unset ac_configure_args0;}
2088 { ac_configure_args1=; unset ac_configure_args1;}
2090 # When interrupted or exit'd, cleanup temporary files, and complete
2091 # config.log. We remove comments because anyway the quotes in there
2092 # would cause problems or look ugly.
2093 # WARNING: Use '\'' to represent an apostrophe within the trap.
2094 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2095 trap 'exit_status=$?
2096 # Save into config.log some information that might help in debugging.
2098 echo
2100 $as_echo "## ---------------- ##
2101 ## Cache variables. ##
2102 ## ---------------- ##"
2103 echo
2104 # The following way of writing the cache mishandles newlines in values,
2106 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107 eval ac_val=\$$ac_var
2108 case $ac_val in #(
2109 *${as_nl}*)
2110 case $ac_var in #(
2111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2113 esac
2114 case $ac_var in #(
2115 _ | IFS | as_nl) ;; #(
2116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117 *) { eval $ac_var=; unset $ac_var;} ;;
2118 esac ;;
2119 esac
2120 done
2121 (set) 2>&1 |
2122 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123 *${as_nl}ac_space=\ *)
2124 sed -n \
2125 "s/'\''/'\''\\\\'\'''\''/g;
2126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2127 ;; #(
2129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 esac |
2132 sort
2134 echo
2136 $as_echo "## ----------------- ##
2137 ## Output variables. ##
2138 ## ----------------- ##"
2139 echo
2140 for ac_var in $ac_subst_vars
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 $as_echo "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2150 if test -n "$ac_subst_files"; then
2151 $as_echo "## ------------------- ##
2152 ## File substitutions. ##
2153 ## ------------------- ##"
2154 echo
2155 for ac_var in $ac_subst_files
2157 eval ac_val=\$$ac_var
2158 case $ac_val in
2159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160 esac
2161 $as_echo "$ac_var='\''$ac_val'\''"
2162 done | sort
2163 echo
2166 if test -s confdefs.h; then
2167 $as_echo "## ----------- ##
2168 ## confdefs.h. ##
2169 ## ----------- ##"
2170 echo
2171 cat confdefs.h
2172 echo
2174 test "$ac_signal" != 0 &&
2175 $as_echo "$as_me: caught signal $ac_signal"
2176 $as_echo "$as_me: exit $exit_status"
2177 } >&5
2178 rm -f core *.core core.conftest.* &&
2179 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2180 exit $exit_status
2182 for ac_signal in 1 2 13 15; do
2183 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2184 done
2185 ac_signal=0
2187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2188 rm -f -r conftest* confdefs.h
2190 $as_echo "/* confdefs.h */" > confdefs.h
2192 # Predefined preprocessor variables.
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_NAME "$PACKAGE_NAME"
2196 _ACEOF
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2200 _ACEOF
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2204 _ACEOF
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_STRING "$PACKAGE_STRING"
2208 _ACEOF
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2212 _ACEOF
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_URL "$PACKAGE_URL"
2216 _ACEOF
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2221 ac_site_file1=NONE
2222 ac_site_file2=NONE
2223 if test -n "$CONFIG_SITE"; then
2224 # We do not want a PATH search for config.site.
2225 case $CONFIG_SITE in #((
2226 -*) ac_site_file1=./$CONFIG_SITE;;
2227 */*) ac_site_file1=$CONFIG_SITE;;
2228 *) ac_site_file1=./$CONFIG_SITE;;
2229 esac
2230 elif test "x$prefix" != xNONE; then
2231 ac_site_file1=$prefix/share/config.site
2232 ac_site_file2=$prefix/etc/config.site
2233 else
2234 ac_site_file1=$ac_default_prefix/share/config.site
2235 ac_site_file2=$ac_default_prefix/etc/config.site
2237 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 test "x$ac_site_file" = xNONE && continue
2240 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2242 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2243 sed 's/^/| /' "$ac_site_file" >&5
2244 . "$ac_site_file" \
2245 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247 as_fn_error $? "failed to load site script $ac_site_file
2248 See \`config.log' for more details" "$LINENO" 5; }
2250 done
2252 if test -r "$cache_file"; then
2253 # Some versions of bash will fail to source /dev/null (special files
2254 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2255 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2257 $as_echo "$as_me: loading cache $cache_file" >&6;}
2258 case $cache_file in
2259 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2260 *) . "./$cache_file";;
2261 esac
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2265 $as_echo "$as_me: creating cache $cache_file" >&6;}
2266 >$cache_file
2269 # Check that the precious variables saved in the cache have kept the same
2270 # value.
2271 ac_cache_corrupted=false
2272 for ac_var in $ac_precious_vars; do
2273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2274 eval ac_new_set=\$ac_env_${ac_var}_set
2275 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2276 eval ac_new_val=\$ac_env_${ac_var}_value
2277 case $ac_old_set,$ac_new_set in
2278 set,)
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2280 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2281 ac_cache_corrupted=: ;;
2282 ,set)
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2285 ac_cache_corrupted=: ;;
2286 ,);;
2288 if test "x$ac_old_val" != "x$ac_new_val"; then
2289 # differences in whitespace do not lead to failure.
2290 ac_old_val_w=`echo x $ac_old_val`
2291 ac_new_val_w=`echo x $ac_new_val`
2292 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2294 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2295 ac_cache_corrupted=:
2296 else
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2298 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2299 eval $ac_var=\$ac_old_val
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2302 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2304 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2305 fi;;
2306 esac
2307 # Pass precious variables to config.status.
2308 if test "$ac_new_set" = set; then
2309 case $ac_new_val in
2310 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2311 *) ac_arg=$ac_var=$ac_new_val ;;
2312 esac
2313 case " $ac_configure_args " in
2314 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2315 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2316 esac
2318 done
2319 if $ac_cache_corrupted; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2323 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2324 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 ## -------------------- ##
2327 ## Main body of script. ##
2328 ## -------------------- ##
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344 progname=$0
2345 # if PWD already has a value, it is probably wrong.
2346 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2348 # Export original configure arguments for use by sub-configures.
2349 # Quote arguments with shell meta charatcers.
2350 TOPLEVEL_CONFIGURE_ARGUMENTS=
2351 set -- "$progname" "$@"
2352 for ac_arg
2354 case "$ac_arg" in
2355 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2356 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2357 # if the argument is of the form -foo=baz, quote the baz part only
2358 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2359 *) ;;
2360 esac
2361 # Add the quoted argument to the list.
2362 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2363 done
2364 if test "$silent" = yes; then
2365 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2367 # Remove the initial space we just introduced and, as these will be
2368 # expanded by make, quote '$'.
2369 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2372 # Find the build, host, and target systems.
2373 ac_aux_dir=
2374 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2375 if test -f "$ac_dir/install-sh"; then
2376 ac_aux_dir=$ac_dir
2377 ac_install_sh="$ac_aux_dir/install-sh -c"
2378 break
2379 elif test -f "$ac_dir/install.sh"; then
2380 ac_aux_dir=$ac_dir
2381 ac_install_sh="$ac_aux_dir/install.sh -c"
2382 break
2383 elif test -f "$ac_dir/shtool"; then
2384 ac_aux_dir=$ac_dir
2385 ac_install_sh="$ac_aux_dir/shtool install -c"
2386 break
2388 done
2389 if test -z "$ac_aux_dir"; then
2390 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2393 # These three variables are undocumented and unsupported,
2394 # and are intended to be withdrawn in a future Autoconf release.
2395 # They can cause serious problems if a builder's source tree is in a directory
2396 # whose full name contains unusual characters.
2397 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2398 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2399 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2402 # Make sure we can run config.sub.
2403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2404 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2407 $as_echo_n "checking build system type... " >&6; }
2408 if ${ac_cv_build+:} false; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 ac_build_alias=$build_alias
2412 test "x$ac_build_alias" = x &&
2413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2414 test "x$ac_build_alias" = x &&
2415 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2416 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2421 $as_echo "$ac_cv_build" >&6; }
2422 case $ac_cv_build in
2423 *-*-*) ;;
2424 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2425 esac
2426 build=$ac_cv_build
2427 ac_save_IFS=$IFS; IFS='-'
2428 set x $ac_cv_build
2429 shift
2430 build_cpu=$1
2431 build_vendor=$2
2432 shift; shift
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2435 build_os=$*
2436 IFS=$ac_save_IFS
2437 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2440 case ${build_alias} in
2441 "") build_noncanonical=${build} ;;
2442 *) build_noncanonical=${build_alias} ;;
2443 esac
2447 case ${host_alias} in
2448 "") host_noncanonical=${build_noncanonical} ;;
2449 *) host_noncanonical=${host_alias} ;;
2450 esac
2454 case ${target_alias} in
2455 "") target_noncanonical=${host_noncanonical} ;;
2456 *) target_noncanonical=${target_alias} ;;
2457 esac
2462 test "$host_noncanonical" = "$target_noncanonical" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_transform_name=s,y,y,
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2468 $as_echo_n "checking host system type... " >&6; }
2469 if ${ac_cv_host+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test "x$host_alias" = x; then
2473 ac_cv_host=$ac_cv_build
2474 else
2475 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2481 $as_echo "$ac_cv_host" >&6; }
2482 case $ac_cv_host in
2483 *-*-*) ;;
2484 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2485 esac
2486 host=$ac_cv_host
2487 ac_save_IFS=$IFS; IFS='-'
2488 set x $ac_cv_host
2489 shift
2490 host_cpu=$1
2491 host_vendor=$2
2492 shift; shift
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2495 host_os=$*
2496 IFS=$ac_save_IFS
2497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2501 $as_echo_n "checking target system type... " >&6; }
2502 if ${ac_cv_target+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test "x$target_alias" = x; then
2506 ac_cv_target=$ac_cv_host
2507 else
2508 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2514 $as_echo "$ac_cv_target" >&6; }
2515 case $ac_cv_target in
2516 *-*-*) ;;
2517 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2518 esac
2519 target=$ac_cv_target
2520 ac_save_IFS=$IFS; IFS='-'
2521 set x $ac_cv_target
2522 shift
2523 target_cpu=$1
2524 target_vendor=$2
2525 shift; shift
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2528 target_os=$*
2529 IFS=$ac_save_IFS
2530 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2533 # The aliases save the names the user supplied, while $host etc.
2534 # will get canonicalized.
2535 test -n "$target_alias" &&
2536 test "$program_prefix$program_suffix$program_transform_name" = \
2537 NONENONEs,x,x, &&
2538 program_prefix=${target_alias}-
2539 test "$program_prefix" != NONE &&
2540 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2541 # Use a double $ so make ignores it.
2542 test "$program_suffix" != NONE &&
2543 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2544 # Double any \ or $.
2545 # By default was `s,x,x', remove it if useless.
2546 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2547 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2551 # Get 'install' or 'install-sh' and its variants.
2552 # Find a good install program. We prefer a C program (faster),
2553 # so one script is as good as another. But avoid the broken or
2554 # incompatible versions:
2555 # SysV /etc/install, /usr/sbin/install
2556 # SunOS /usr/etc/install
2557 # IRIX /sbin/install
2558 # AIX /bin/install
2559 # AmigaOS /C/install, which installs bootblocks on floppy discs
2560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2563 # OS/2's system install, which has a completely different semantic
2564 # ./install, which can be erroneously created by make from ./install.sh.
2565 # Reject install programs that cannot install multiple files.
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2568 if test -z "$INSTALL"; then
2569 if ${ac_cv_path_install+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2575 IFS=$as_save_IFS
2576 test -z "$as_dir" && as_dir=.
2577 # Account for people who put trailing slashes in PATH elements.
2578 case $as_dir/ in #((
2579 ./ | .// | /[cC]/* | \
2580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2581 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2582 /usr/ucb/* ) ;;
2584 # OSF1 and SCO ODT 3.0 have their own names for install.
2585 # Don't use installbsd from OSF since it installs stuff as root
2586 # by default.
2587 for ac_prog in ginstall scoinst install; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2590 if test $ac_prog = install &&
2591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2592 # AIX install. It has an incompatible calling convention.
2594 elif test $ac_prog = install &&
2595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596 # program-specific install script used by HP pwplus--don't use.
2598 else
2599 rm -rf conftest.one conftest.two conftest.dir
2600 echo one > conftest.one
2601 echo two > conftest.two
2602 mkdir conftest.dir
2603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2604 test -s conftest.one && test -s conftest.two &&
2605 test -s conftest.dir/conftest.one &&
2606 test -s conftest.dir/conftest.two
2607 then
2608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2609 break 3
2613 done
2614 done
2616 esac
2618 done
2619 IFS=$as_save_IFS
2621 rm -rf conftest.one conftest.two conftest.dir
2624 if test "${ac_cv_path_install+set}" = set; then
2625 INSTALL=$ac_cv_path_install
2626 else
2627 # As a last resort, use the slow shell script. Don't cache a
2628 # value for INSTALL within a source directory, because that will
2629 # break other packages using the cache if that directory is
2630 # removed, or if the value is a relative name.
2631 INSTALL=$ac_install_sh
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2635 $as_echo "$INSTALL" >&6; }
2637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2638 # It thinks the first close brace ends the variable substitution.
2639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2646 $as_echo_n "checking whether ln works... " >&6; }
2647 if ${acx_cv_prog_LN+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 rm -f conftestdata_t
2651 echo >conftestdata_f
2652 if ln conftestdata_f conftestdata_t 2>/dev/null
2653 then
2654 acx_cv_prog_LN=ln
2655 else
2656 acx_cv_prog_LN=no
2658 rm -f conftestdata_f conftestdata_t
2661 if test $acx_cv_prog_LN = no; then
2662 LN="cp"
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2664 $as_echo "no, using $LN" >&6; }
2665 else
2666 LN="$acx_cv_prog_LN"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2672 $as_echo_n "checking whether ln -s works... " >&6; }
2673 LN_S=$as_ln_s
2674 if test "$LN_S" = "ln -s"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2676 $as_echo "yes" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2679 $as_echo "no, using $LN_S" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2683 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2684 if ${ac_cv_path_SED+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2688 for ac_i in 1 2 3 4 5 6 7; do
2689 ac_script="$ac_script$as_nl$ac_script"
2690 done
2691 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2692 { ac_script=; unset ac_script;}
2693 if test -z "$SED"; then
2694 ac_path_SED_found=false
2695 # Loop through the user's path and test for each of PROGNAME-LIST
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_prog in sed gsed; do
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2704 as_fn_executable_p "$ac_path_SED" || continue
2705 # Check for GNU ac_path_SED and select it if it is found.
2706 # Check for GNU $ac_path_SED
2707 case `"$ac_path_SED" --version 2>&1` in
2708 *GNU*)
2709 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2711 ac_count=0
2712 $as_echo_n 0123456789 >"conftest.in"
2713 while :
2715 cat "conftest.in" "conftest.in" >"conftest.tmp"
2716 mv "conftest.tmp" "conftest.in"
2717 cp "conftest.in" "conftest.nl"
2718 $as_echo '' >> "conftest.nl"
2719 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2721 as_fn_arith $ac_count + 1 && ac_count=$as_val
2722 if test $ac_count -gt ${ac_path_SED_max-0}; then
2723 # Best one so far, save it but keep looking for a better one
2724 ac_cv_path_SED="$ac_path_SED"
2725 ac_path_SED_max=$ac_count
2727 # 10*(2^10) chars as input seems more than enough
2728 test $ac_count -gt 10 && break
2729 done
2730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2731 esac
2733 $ac_path_SED_found && break 3
2734 done
2735 done
2736 done
2737 IFS=$as_save_IFS
2738 if test -z "$ac_cv_path_SED"; then
2739 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2741 else
2742 ac_cv_path_SED=$SED
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2747 $as_echo "$ac_cv_path_SED" >&6; }
2748 SED="$ac_cv_path_SED"
2749 rm -f conftest.sed
2751 for ac_prog in gawk mawk nawk awk
2753 # Extract the first word of "$ac_prog", so it can be a program name with args.
2754 set dummy $ac_prog; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_AWK+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test -n "$AWK"; then
2761 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_AWK="$ac_prog"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2774 done
2775 done
2776 IFS=$as_save_IFS
2780 AWK=$ac_cv_prog_AWK
2781 if test -n "$AWK"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2783 $as_echo "$AWK" >&6; }
2784 else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2790 test -n "$AWK" && break
2791 done
2794 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2796 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2797 # a relative path.
2798 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2799 INSTALL="${srcpwd}/install-sh -c"
2802 # Set srcdir to "." if that's what it is.
2803 # This is important for multilib support.
2804 pwd=`${PWDCMD-pwd}`
2805 if test "${pwd}" = "${srcpwd}" ; then
2806 srcdir=.
2809 topsrcdir=$srcpwd
2811 extra_host_args=
2813 ### To add a new directory to the tree, first choose whether it is a target
2814 ### or a host dependent tool. Then put it into the appropriate list
2815 ### (library or tools, host or target), doing a dependency sort.
2817 # Subdirs will be configured in the order listed in build_configdirs,
2818 # configdirs, or target_configdirs; see the serialization section below.
2820 # Dependency sorting is only needed when *configuration* must be done in
2821 # a particular order. In all cases a dependency should be specified in
2822 # the Makefile, whether or not it's implicitly specified here.
2824 # Double entries in build_configdirs, configdirs, or target_configdirs may
2825 # cause circular dependencies and break everything horribly.
2827 # these library is used by various programs built for the build
2828 # environment
2830 build_libs="build-libiberty build-libcpp"
2832 # these tools are built for the build environment
2833 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2835 # these libraries are used by various programs built for the host environment
2837 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2839 # these tools are built for the host environment
2840 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2841 # know that we are building the simulator.
2842 # binutils, gas and ld appear in that order because it makes sense to run
2843 # "make check" in that particular order.
2844 # If --enable-gold is used, "gold" may replace "ld".
2845 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2847 # these libraries are built for the target environment, and are built after
2848 # the host libraries and the host tools (which may be a cross compiler)
2849 # Note that libiberty is not a target library.
2850 target_libraries="target-libgcc \
2851 target-libbacktrace \
2852 target-libgloss \
2853 target-newlib \
2854 target-libgomp \
2855 target-libatomic \
2856 target-libitm \
2857 target-libstdc++-v3 \
2858 target-libsanitizer \
2859 target-libvtv \
2860 target-libssp \
2861 target-libquadmath \
2862 target-libgfortran \
2863 target-libffi \
2864 target-libobjc \
2865 target-libada \
2866 target-libgm2 \
2867 target-libgo \
2868 target-libgrust \
2869 target-libphobos \
2870 target-zlib"
2872 # these tools are built using the target libraries, and are intended to
2873 # run only in the target environment
2875 # note: any program that *uses* libraries that are in the "target_libraries"
2876 # list belongs in this list.
2878 target_tools="target-rda"
2880 ################################################################################
2882 ## All tools belong in one of the four categories, and are assigned above
2883 ## We assign ${configdirs} this way to remove all embedded newlines. This
2884 ## is important because configure will choke if they ever get through.
2885 ## ${configdirs} is directories we build using the host tools.
2886 ## ${target_configdirs} is directories we build using the target tools.
2887 configdirs=`echo ${host_libs} ${host_tools}`
2888 target_configdirs=`echo ${target_libraries} ${target_tools}`
2889 build_configdirs=`echo ${build_libs} ${build_tools}`
2893 ################################################################################
2895 srcname="gnu development package"
2897 # This gets set non-empty for some net releases of packages.
2898 appdirs=""
2900 # Define is_cross_compiler to save on calls to 'test'.
2901 is_cross_compiler=
2902 if test x"${host}" = x"${target}" ; then
2903 is_cross_compiler=no
2904 else
2905 is_cross_compiler=yes
2908 # Find the build and target subdir names.
2910 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2911 # have matching libraries, they should use host libraries: Makefile.tpl
2912 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2913 # However, they still use the build modules, because the corresponding
2914 # host modules (e.g. bison) are only built for the host when bootstrap
2915 # finishes. So:
2916 # - build_subdir is where we find build modules, and never changes.
2917 # - build_libsubdir is where we find build libraries, and can be overridden.
2919 # Prefix 'build-' so this never conflicts with target_subdir.
2920 build_subdir="build-${build_noncanonical}"
2922 # Check whether --with-build-libsubdir was given.
2923 if test "${with_build_libsubdir+set}" = set; then :
2924 withval=$with_build_libsubdir; build_libsubdir="$withval"
2925 else
2926 build_libsubdir="$build_subdir"
2929 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2930 if ( test $srcdir = . && test -d gcc ) \
2931 || test -d $srcdir/../host-${host_noncanonical}; then
2932 host_subdir="host-${host_noncanonical}"
2933 else
2934 host_subdir=.
2936 # No prefix.
2937 target_subdir=${target_noncanonical}
2939 # Be sure to cover against remnants of an in-tree build.
2940 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2941 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2942 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2945 # Skipdirs are removed silently.
2946 skipdirs=
2947 # Noconfigdirs are removed loudly.
2948 noconfigdirs=""
2950 use_gnu_ld=
2951 # Make sure we don't let GNU ld be added if we didn't want it.
2952 if test x$with_gnu_ld = xno ; then
2953 use_gnu_ld=no
2954 noconfigdirs="$noconfigdirs ld gold"
2957 use_gnu_as=
2958 # Make sure we don't let GNU as be added if we didn't want it.
2959 if test x$with_gnu_as = xno ; then
2960 use_gnu_as=no
2961 noconfigdirs="$noconfigdirs gas"
2964 use_included_zlib=
2966 # Check whether --with-system-zlib was given.
2967 if test "${with_system_zlib+set}" = set; then :
2968 withval=$with_system_zlib;
2971 # Make sure we don't let ZLIB be added if we didn't want it.
2972 if test x$with_system_zlib = xyes ; then
2973 use_included_zlib=no
2974 noconfigdirs="$noconfigdirs zlib"
2977 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2978 # is provided.
2979 if test x$with_system_readline = xyes ; then
2980 noconfigdirs="$noconfigdirs readline"
2984 # Check whether --with-zstd was given.
2985 if test "${with_zstd+set}" = set; then :
2986 withval=$with_zstd;
2990 # some tools are so dependent upon X11 that if we're not building with X,
2991 # it's not even worth trying to configure, much less build, that tool.
2993 case ${with_x} in
2994 yes | "") ;; # the default value for this tree is that X11 is available
2996 skipdirs="${skipdirs} tk itcl libgui"
2997 # We won't be able to build gdbtk without X.
2998 enable_gdbtk=no
3000 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3001 esac
3003 # Some are only suitable for cross toolchains.
3004 # Remove these if host=target.
3005 cross_only="target-libgloss target-newlib target-opcodes"
3007 case $is_cross_compiler in
3008 no) skipdirs="${skipdirs} ${cross_only}" ;;
3009 esac
3011 # If both --with-headers and --with-libs are specified, default to
3012 # --without-newlib.
3013 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3014 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3015 if test x"${with_newlib}" = x ; then
3016 with_newlib=no
3020 # Recognize --with-newlib/--without-newlib.
3021 case ${with_newlib} in
3022 no) skipdirs="${skipdirs} target-newlib" ;;
3023 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3024 esac
3026 # Check whether --enable-as-accelerator-for was given.
3027 if test "${enable_as_accelerator_for+set}" = set; then :
3028 enableval=$enable_as_accelerator_for;
3032 # Check whether --enable-offload-targets was given.
3033 if test "${enable_offload_targets+set}" = set; then :
3034 enableval=$enable_offload_targets;
3035 if test x"$enable_offload_targets" = x; then
3036 as_fn_error $? "no offload targets specified" "$LINENO" 5
3039 else
3040 enable_offload_targets=
3044 # Check whether --enable-offload-defaulted was given.
3045 if test "${enable_offload_defaulted+set}" = set; then :
3046 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3047 else
3048 enable_offload_defaulted=
3052 # Handle --enable-gold, --enable-ld.
3053 # --disable-gold [--enable-ld]
3054 # Build only ld. Default option.
3055 # --enable-gold [--enable-ld]
3056 # Build both gold and ld. Install gold as "ld.gold", install ld
3057 # as "ld.bfd" and "ld".
3058 # --enable-gold=default [--enable-ld]
3059 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3060 # install ld as "ld.bfd".
3061 # --enable-gold[=default] --disable-ld
3062 # Build only gold, which is then installed as both "ld.gold" and "ld".
3063 # --enable-gold --enable-ld=default
3064 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3065 # and ld.bfd).
3066 # In other words, ld is default
3067 # --enable-gold=default --enable-ld=default
3068 # Error.
3070 default_ld=
3071 # Check whether --enable-gold was given.
3072 if test "${enable_gold+set}" = set; then :
3073 enableval=$enable_gold; ENABLE_GOLD=$enableval
3074 else
3075 ENABLE_GOLD=no
3078 case "${ENABLE_GOLD}" in
3079 yes|default)
3080 # Check for ELF target.
3081 is_elf=no
3082 case "${target}" in
3083 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3084 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3085 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3086 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3087 case "${target}" in
3088 *-*-linux*aout* | *-*-linux*oldld*)
3091 is_elf=yes
3093 esac
3094 esac
3096 if test "$is_elf" = "yes"; then
3097 # Check for target supported by gold.
3098 case "${target}" in
3099 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3100 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3101 configdirs="$configdirs gold"
3102 if test x${ENABLE_GOLD} = xdefault; then
3103 default_ld=gold
3105 ENABLE_GOLD=yes
3107 esac
3113 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3115 esac
3117 # Check whether --enable-ld was given.
3118 if test "${enable_ld+set}" = set; then :
3119 enableval=$enable_ld; ENABLE_LD=$enableval
3120 else
3121 ENABLE_LD=yes
3125 case "${ENABLE_LD}" in
3126 default)
3127 if test x${default_ld} != x; then
3128 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3131 yes)
3134 if test x${ENABLE_GOLD} != xyes; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3136 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3138 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3141 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3143 esac
3145 # Check whether --enable-gprofng was given.
3146 if test "${enable_gprofng+set}" = set; then :
3147 enableval=$enable_gprofng; enable_gprofng=$enableval
3148 else
3149 enable_gprofng=yes
3152 if test "$enable_gprofng" = "yes"; then
3153 case "${target}" in
3154 *-musl*)
3156 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux* | riscv64-*-linux*)
3157 configdirs="$configdirs gprofng"
3159 esac
3163 # PR gas/19109
3164 # Decide the default method for compressing debug sections.
3165 # Provide a configure time option to override our default.
3166 # Check whether --enable-compressed_debug_sections was given.
3167 if test "${enable_compressed_debug_sections+set}" = set; then :
3168 enableval=$enable_compressed_debug_sections;
3169 if test x"$enable_compressed_debug_sections" = xyes; then
3170 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3173 else
3174 enable_compressed_debug_sections=
3178 # Select default compression algorithm.
3179 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3180 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3181 enableval=$enable_default_compressed_debug_sections_algorithm;
3182 else
3183 default_compressed_debug_sections_algorithm=
3187 # Configure extra directories which are host specific
3189 case "${host}" in
3190 *-cygwin*)
3191 configdirs="$configdirs libtermcap" ;;
3192 esac
3194 # A target can indicate whether a language isn't supported for some reason.
3195 # Only spaces may be used in this macro; not newlines or tabs.
3196 unsupported_languages=
3198 # Remove more programs from consideration, based on the host or
3199 # target this usually means that a port of the program doesn't
3200 # exist yet.
3202 case "${host}" in
3203 i[3456789]86-*-msdosdjgpp*)
3204 noconfigdirs="$noconfigdirs tcl tk itcl"
3206 esac
3208 # Default to --disable-year2038 until we can handle differences between
3209 # projects that use gnulib (which understands year 2038) and projects that
3210 # do not (like BFD).
3211 # Check whether --enable-year2038 was given.
3212 if test "${enable_year2038+set}" = set; then :
3213 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3214 else
3215 ENABLE_YEAR2038=no
3218 enable_year2038=
3219 if test "${ENABLE_YEAR2038}" = "no" ; then
3220 enable_year2038=no
3223 # Check whether --enable-libquadmath was given.
3224 if test "${enable_libquadmath+set}" = set; then :
3225 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3226 else
3227 ENABLE_LIBQUADMATH=yes
3230 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3231 noconfigdirs="$noconfigdirs target-libquadmath"
3235 # Check whether --enable-libquadmath-support was given.
3236 if test "${enable_libquadmath_support+set}" = set; then :
3237 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3238 else
3239 ENABLE_LIBQUADMATH_SUPPORT=yes
3242 enable_libquadmath_support=
3243 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3244 enable_libquadmath_support=no
3248 # Check whether --enable-libada was given.
3249 if test "${enable_libada+set}" = set; then :
3250 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3251 else
3252 ENABLE_LIBADA=yes
3255 if test "${ENABLE_LIBADA}" != "yes" ; then
3256 noconfigdirs="$noconfigdirs gnattools"
3259 # Check whether --enable-libgm2 was given.
3260 if test "${enable_libgm2+set}" = set; then :
3261 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3262 else
3263 ENABLE_LIBGM2=no
3266 if test "${ENABLE_LIBGM2}" != "yes" ; then
3267 noconfigdirs="$noconfigdirs gm2tools"
3270 # Check whether --enable-libssp was given.
3271 if test "${enable_libssp+set}" = set; then :
3272 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3273 else
3274 ENABLE_LIBSSP=yes
3278 # Check whether --enable-libstdcxx was given.
3279 if test "${enable_libstdcxx+set}" = set; then :
3280 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3281 else
3282 ENABLE_LIBSTDCXX=default
3285 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3289 # Enable libgomp by default on hosted POSIX systems, and a few others.
3290 if test x$enable_libgomp = x ; then
3291 case "${target}" in
3292 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3294 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3296 *-*-solaris2* | *-*-hpux11*)
3298 *-*-darwin* | *-*-aix*)
3300 nvptx*-*-* | amdgcn*-*-*)
3303 noconfigdirs="$noconfigdirs target-libgomp"
3305 esac
3308 # Disable libatomic on unsupported systems.
3309 if test -d ${srcdir}/libatomic; then
3310 if test x$enable_libatomic = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3312 $as_echo_n "checking for libatomic support... " >&6; }
3313 if (srcdir=${srcdir}/libatomic; \
3314 . ${srcdir}/configure.tgt; \
3315 test -n "$UNSUPPORTED")
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 noconfigdirs="$noconfigdirs target-libatomic"
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3327 # Disable libitm on unsupported systems.
3328 if test -d ${srcdir}/libitm; then
3329 if test x$enable_libitm = x; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3331 $as_echo_n "checking for libitm support... " >&6; }
3332 if (srcdir=${srcdir}/libitm; \
3333 . ${srcdir}/configure.tgt; \
3334 test -n "$UNSUPPORTED")
3335 then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 noconfigdirs="$noconfigdirs target-libitm"
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3346 # Disable libsanitizer on unsupported systems.
3347 if test -d ${srcdir}/libsanitizer; then
3348 if test x$enable_libsanitizer = x; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3350 $as_echo_n "checking for libsanitizer support... " >&6; }
3351 if (srcdir=${srcdir}/libsanitizer; \
3352 . ${srcdir}/configure.tgt; \
3353 test -n "$UNSUPPORTED")
3354 then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 noconfigdirs="$noconfigdirs target-libsanitizer"
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3365 # Disable libvtv on unsupported systems.
3366 if test -d ${srcdir}/libvtv; then
3367 if test x$enable_libvtv = x; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3369 $as_echo_n "checking for libvtv support... " >&6; }
3370 if (srcdir=${srcdir}/libvtv; \
3371 . ${srcdir}/configure.tgt; \
3372 test "$VTV_SUPPORTED" != "yes")
3373 then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 noconfigdirs="$noconfigdirs target-libvtv"
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 $as_echo "yes" >&6; }
3384 # Disable libquadmath for some systems.
3385 case "${target}" in
3386 avr-*-*)
3387 noconfigdirs="$noconfigdirs target-libquadmath"
3389 # libquadmath is unused on AIX and libquadmath build process use of
3390 # LD_LIBRARY_PATH can break AIX bootstrap.
3391 powerpc-*-aix* | rs6000-*-aix*)
3392 noconfigdirs="$noconfigdirs target-libquadmath"
3394 esac
3396 # Disable libssp for some systems.
3397 case "${target}" in
3398 avr-*-*)
3399 # No hosted I/O support.
3400 noconfigdirs="$noconfigdirs target-libssp"
3402 bpf-*-*)
3403 noconfigdirs="$noconfigdirs target-libssp"
3405 powerpc-*-aix* | rs6000-*-aix*)
3406 noconfigdirs="$noconfigdirs target-libssp"
3408 pru-*-*)
3409 # No hosted I/O support.
3410 noconfigdirs="$noconfigdirs target-libssp"
3412 rl78-*-*)
3413 # libssp uses a misaligned load to trigger a fault, but the RL78
3414 # doesn't fault for those - instead, it gives a build-time error
3415 # for explicit misaligned loads.
3416 noconfigdirs="$noconfigdirs target-libssp"
3418 visium-*-*)
3419 # No hosted I/O support.
3420 noconfigdirs="$noconfigdirs target-libssp"
3422 esac
3424 # Disable libstdc++-v3 for some systems.
3425 # Allow user to override this if they pass --enable-libstdcxx
3426 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3427 case "${target}" in
3428 *-*-vxworks*)
3429 # VxWorks uses the Dinkumware C++ library.
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3432 amdgcn*-*-*)
3433 # Not ported/fails to build when using newlib.
3434 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3436 arm*-wince-pe*)
3437 # the C++ libraries don't build on top of CE's C libraries
3438 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3440 avr-*-*)
3441 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3443 bpf-*-*)
3444 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3446 ft32-*-*)
3447 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3449 esac
3452 # Disable C++ on systems where it is known to not work.
3453 # For testing, you can override this with --enable-languages=c++.
3454 case ,${enable_languages}, in
3455 *,c++,*)
3458 case "${target}" in
3459 bpf-*-*)
3460 unsupported_languages="$unsupported_languages c++"
3462 esac
3464 esac
3466 # Disable Objc on systems where it is known to not work.
3467 # For testing, you can override this with --enable-languages=objc.
3468 case ,${enable_languages}, in
3469 *,objc,*)
3472 case "${target}" in
3473 bpf-*-*)
3474 unsupported_languages="$unsupported_languages objc"
3476 esac
3478 esac
3480 # Disable D on systems where it is known to not work.
3481 # For testing, you can override this with --enable-languages=d.
3482 case ,${enable_languages}, in
3483 *,d,*)
3486 case "${target}" in
3487 bpf-*-*)
3488 unsupported_languages="$unsupported_languages d"
3490 esac
3492 esac
3494 # Disable libphobos on unsupported systems.
3495 # For testing, you can override this with --enable-libphobos.
3496 if test -d ${srcdir}/libphobos; then
3497 if test x$enable_libphobos = x; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3499 $as_echo_n "checking for libphobos support... " >&6; }
3500 if (srcdir=${srcdir}/libphobos; \
3501 . ${srcdir}/configure.tgt; \
3502 test "$LIBPHOBOS_SUPPORTED" != "yes")
3503 then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 noconfigdirs="$noconfigdirs target-libphobos"
3507 else
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3509 $as_echo "yes" >&6; }
3514 # Disable Fortran for some systems.
3515 case "${target}" in
3516 mmix-*-*)
3517 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3518 unsupported_languages="$unsupported_languages fortran"
3520 bpf-*-*)
3521 unsupported_languages="$unsupported_languages fortran"
3523 esac
3525 # Disable libffi for some systems.
3526 case "${target}" in
3527 powerpc-*-darwin*)
3529 i[3456789]86-*-darwin*)
3531 x86_64-*-darwin[912]*)
3533 *-*-darwin*)
3534 noconfigdirs="$noconfigdirs target-libffi"
3536 *-*-netware*)
3537 noconfigdirs="$noconfigdirs target-libffi"
3539 *-*-phoenix*)
3540 noconfigdirs="$noconfigdirs target-libffi"
3542 *-*-rtems*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3545 *-*-tpf*)
3546 noconfigdirs="$noconfigdirs target-libffi"
3548 *-*-uclinux*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3551 *-*-vxworks*)
3552 noconfigdirs="$noconfigdirs target-libffi"
3554 aarch64*-*-freebsd*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3557 alpha*-*-*vms*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3560 arm*-*-freebsd*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3563 arm-wince-pe)
3564 noconfigdirs="$noconfigdirs target-libffi"
3566 arm*-*-symbianelf*)
3567 noconfigdirs="$noconfigdirs target-libffi"
3569 bpf-*-*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3572 cris-*-* | crisv32-*-*)
3573 case "${target}" in
3574 *-*-linux*)
3576 *) # See PR46792 regarding target-libffi.
3577 noconfigdirs="$noconfigdirs target-libffi";;
3578 esac
3580 hppa*64*-*-hpux*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3583 hppa*-hp-hpux11*)
3585 hppa*-*-hpux*)
3586 noconfigdirs="$noconfigdirs target-libffi"
3588 ia64*-*-*vms*)
3589 noconfigdirs="$noconfigdirs target-libffi"
3591 i[3456789]86-w64-mingw*)
3592 noconfigdirs="$noconfigdirs target-libffi"
3594 i[3456789]86-*-mingw*)
3595 noconfigdirs="$noconfigdirs target-libffi"
3597 x86_64-*-mingw*)
3598 noconfigdirs="$noconfigdirs target-libffi"
3600 mmix-*-*)
3601 noconfigdirs="$noconfigdirs target-libffi"
3603 powerpc-*-aix*)
3605 rs6000-*-aix*)
3607 ft32-*-*)
3608 noconfigdirs="$noconfigdirs target-libffi"
3610 *-*-lynxos*)
3611 noconfigdirs="$noconfigdirs target-libffi"
3613 esac
3615 # Disable the go frontend on systems where it is known to not work. Please keep
3616 # this in sync with contrib/config-list.mk.
3617 case "${target}" in
3618 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3619 unsupported_languages="$unsupported_languages go"
3621 esac
3623 # Only allow gdbserver on some systems.
3624 if test -d ${srcdir}/gdbserver; then
3625 if test x$enable_gdbserver = x; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3627 $as_echo_n "checking for gdbserver support... " >&6; }
3628 if (srcdir=${srcdir}/gdbserver; \
3629 . ${srcdir}/configure.srv; \
3630 test -n "$UNSUPPORTED")
3631 then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 noconfigdirs="$noconfigdirs gdbserver"
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3642 # Disable libgo for some systems where it is known to not work.
3643 # For testing, you can easily override this with --enable-libgo.
3644 if test x$enable_libgo = x; then
3645 case "${target}" in
3646 *-*-darwin*)
3647 # PR 46986
3648 noconfigdirs="$noconfigdirs target-libgo"
3650 *-*-cygwin* | *-*-mingw*)
3651 noconfigdirs="$noconfigdirs target-libgo"
3653 bpf-*-*)
3654 noconfigdirs="$noconfigdirs target-libgo"
3656 esac
3659 # Default libgloss CPU subdirectory.
3660 libgloss_dir="$target_cpu"
3662 case "${target}" in
3663 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3664 libgloss_dir=wince
3666 aarch64*-*-* )
3667 libgloss_dir=aarch64
3669 arm*-*-*)
3670 libgloss_dir=arm
3672 cris-*-* | crisv32-*-*)
3673 libgloss_dir=cris
3675 kvx-*-elf)
3676 libgloss_dir=kvx-elf
3678 kvx-*-mbr)
3679 libgloss_dir=kvx-mbr
3681 kvx-*-cos)
3682 libgloss_dir=kvx-cos
3684 hppa*-*-*)
3685 libgloss_dir=pa
3687 i[3456789]86-*-*)
3688 libgloss_dir=i386
3690 loongarch*-*-*)
3691 libgloss_dir=loongarch
3693 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3694 libgloss_dir=m68hc11
3696 m68*-*-* | fido-*-*)
3697 libgloss_dir=m68k
3699 mips*-*-*)
3700 libgloss_dir=mips
3702 powerpc*-*-*)
3703 libgloss_dir=rs6000
3705 pru-*-*)
3706 libgloss_dir=pru
3708 sparc*-*-*)
3709 libgloss_dir=sparc
3711 esac
3713 # Disable newlib and libgloss for various target OSes.
3714 case "${target}" in
3715 alpha*-dec-osf*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 i[3456789]86-*-linux*)
3719 # This section makes it possible to build newlib natively on linux.
3720 # If we are using a cross compiler then don't configure newlib.
3721 if test x${is_cross_compiler} != xno ; then
3722 noconfigdirs="$noconfigdirs target-newlib"
3724 noconfigdirs="$noconfigdirs target-libgloss"
3725 # If we are not using a cross compiler, do configure newlib.
3726 # Note however, that newlib will only be configured in this situation
3727 # if the --with-newlib option has been given, because otherwise
3728 # 'target-newlib' will appear in skipdirs.
3730 i[3456789]86-*-rdos*)
3731 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3734 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 sparc-*-sunos4*)
3737 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739 bpf-*-*)
3740 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3742 *-*-aix*)
3743 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3745 *-*-beos*)
3746 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748 *-*-chorusos)
3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3751 *-*-dragonfly*)
3752 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3754 *-*-freebsd*)
3755 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3757 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3758 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3760 *-*-lynxos*)
3761 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3763 *-*-mingw*)
3764 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3766 *-*-netbsd*)
3767 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3769 *-*-netware*)
3770 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3772 *-*-tpf*)
3773 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3775 *-*-uclinux*)
3776 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3778 *-*-vxworks*)
3779 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3781 esac
3783 # The ARM simulator has been deprecated for all ARM targets.
3784 case "${target}" in
3785 arm*-*-*)
3786 noconfigdirs="$noconfigdirs sim"
3788 esac
3790 case "${target}" in
3791 *-*-chorusos)
3793 aarch64-*-darwin*)
3794 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3795 noconfigdirs="$noconfigdirs sim target-rda"
3797 amdgcn*-*-*)
3799 arm-*-darwin*)
3800 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3801 noconfigdirs="$noconfigdirs target-rda"
3803 powerpc-*-darwin*)
3804 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3805 noconfigdirs="$noconfigdirs sim target-rda"
3807 i[3456789]86-*-darwin*)
3808 noconfigdirs="$noconfigdirs ld gprof"
3809 noconfigdirs="$noconfigdirs sim target-rda"
3811 x86_64-*-darwin[912]*)
3812 noconfigdirs="$noconfigdirs ld gas gprof"
3813 noconfigdirs="$noconfigdirs sim target-rda"
3815 *-*-darwin*)
3816 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3817 noconfigdirs="$noconfigdirs sim target-rda"
3819 *-*-dragonfly*)
3821 *-*-freebsd*)
3822 if test "x$with_gmp" = x \
3823 && ! test -d ${srcdir}/gmp \
3824 && test -f /usr/local/include/gmp.h; then
3825 with_gmp=/usr/local
3828 *-*-kaos*)
3829 # Remove unsupported stuff on all kaOS configurations.
3830 noconfigdirs="$noconfigdirs target-libgloss"
3832 *-*-netbsd*)
3834 *-*-netware*)
3836 *-*-phoenix*)
3837 noconfigdirs="$noconfigdirs target-libgloss"
3839 *-*-rtems*)
3840 noconfigdirs="$noconfigdirs target-libgloss"
3842 # The tpf target doesn't support gdb yet.
3843 *-*-tpf*)
3844 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3846 *-*-uclinux*)
3847 noconfigdirs="$noconfigdirs target-rda"
3849 *-*-vxworks*)
3851 alpha*-dec-osf*)
3852 # ld works, but does not support shared libraries.
3853 # gas doesn't generate exception information.
3854 noconfigdirs="$noconfigdirs gas ld"
3856 alpha*-*-*vms*)
3857 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3859 alpha*-*-*)
3860 # newlib is not 64 bit ready
3861 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3863 bpf-*-*)
3864 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3866 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3867 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3869 arc*-*-*)
3870 noconfigdirs="$noconfigdirs sim"
3872 arm-*-pe*)
3873 noconfigdirs="$noconfigdirs target-libgloss"
3875 arm-*-riscix*)
3876 noconfigdirs="$noconfigdirs ld target-libgloss"
3878 avr-*-*)
3879 if test x${with_avrlibc} != xno; then
3880 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3883 c4x-*-* | tic4x-*-*)
3884 noconfigdirs="$noconfigdirs target-libgloss"
3886 tic54x-*-*)
3887 noconfigdirs="$noconfigdirs target-libgloss gdb"
3889 d10v-*-*)
3890 noconfigdirs="$noconfigdirs target-libgloss"
3892 d30v-*-*)
3893 noconfigdirs="$noconfigdirs gdb"
3895 fr30-*-elf*)
3896 noconfigdirs="$noconfigdirs gdb"
3898 ft32-*-*)
3899 noconfigdirs="$noconfigdirs target-rda gprof"
3901 moxie-*-*)
3902 noconfigdirs="$noconfigdirs"
3904 h8300*-*-*)
3905 noconfigdirs="$noconfigdirs target-libgloss"
3907 h8500-*-*)
3908 noconfigdirs="$noconfigdirs target-libgloss"
3910 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3912 hppa*64*-*-hpux*)
3913 noconfigdirs="$noconfigdirs gdb"
3915 hppa*-*-hpux11*)
3916 noconfigdirs="$noconfigdirs gdb ld"
3918 hppa*64*-*-linux*)
3920 hppa*-*-linux*)
3922 hppa*-*-*elf* | \
3923 hppa*-*-lites* | \
3924 hppa*-*-openbsd* | \
3925 hppa*64*-*-*)
3927 hppa*-*-pro*)
3929 hppa*-*-*)
3930 noconfigdirs="$noconfigdirs ld"
3932 i960-*-*)
3933 noconfigdirs="$noconfigdirs gdb"
3935 ia64*-*-elf*)
3936 # No gdb support yet.
3937 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3939 ia64*-**-hpux*)
3940 # No ld support yet.
3941 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3943 ia64*-*-*vms*)
3944 # No ld support yet.
3945 noconfigdirs="$noconfigdirs libgui itcl ld"
3947 i[3456789]86-w64-mingw*)
3949 i[3456789]86-*-mingw*)
3950 target_configdirs="$target_configdirs target-winsup"
3952 *-*-cygwin*)
3953 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3954 noconfigdirs="$noconfigdirs target-libgloss"
3955 # always build newlib if winsup directory is present.
3956 if test -d "$srcdir/winsup/cygwin"; then
3957 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3958 elif test -d "$srcdir/newlib"; then
3959 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3962 i[3456789]86-*-pe)
3963 noconfigdirs="$noconfigdirs target-libgloss"
3965 i[3456789]86-*-sco3.2v5*)
3966 # The linker does not yet know about weak symbols in COFF,
3967 # and is not configured to handle mixed ELF and COFF.
3968 noconfigdirs="$noconfigdirs ld target-libgloss"
3970 i[3456789]86-*-sco*)
3971 noconfigdirs="$noconfigdirs gprof target-libgloss"
3973 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3974 noconfigdirs="$noconfigdirs target-libgloss"
3976 i[3456789]86-*-sysv4*)
3977 noconfigdirs="$noconfigdirs target-libgloss"
3979 i[3456789]86-*-beos*)
3980 noconfigdirs="$noconfigdirs gdb"
3982 i[3456789]86-*-rdos*)
3983 noconfigdirs="$noconfigdirs gdb"
3985 kvx-*-*)
3986 noconfigdirs="$noconfigdirs gdb gdbserver sim"
3988 mmix-*-*)
3989 noconfigdirs="$noconfigdirs gdb"
3991 mt-*-*)
3992 noconfigdirs="$noconfigdirs sim"
3994 nfp-*-*)
3995 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3996 noconfigdirs="$noconfigdirs $target_libraries"
3998 pdp11-*-*)
3999 noconfigdirs="$noconfigdirs gdb gprof"
4001 powerpc-*-aix*)
4002 # copied from rs6000-*-* entry
4003 noconfigdirs="$noconfigdirs gprof"
4005 powerpc*-*-winnt* | powerpc*-*-pe*)
4006 target_configdirs="$target_configdirs target-winsup"
4007 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4008 # always build newlib.
4009 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4011 # This is temporary until we can link against shared libraries
4012 powerpcle-*-solaris*)
4013 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4015 powerpc-*-beos*)
4016 noconfigdirs="$noconfigdirs gdb"
4018 rs6000-*-lynxos*)
4019 noconfigdirs="$noconfigdirs gprof"
4021 rs6000-*-aix*)
4022 noconfigdirs="$noconfigdirs gprof"
4024 rs6000-*-*)
4025 noconfigdirs="$noconfigdirs gprof"
4027 m68k-apollo-*)
4028 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4030 microblaze*)
4031 noconfigdirs="$noconfigdirs gprof"
4033 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4034 if test x$with_newlib = xyes; then
4035 noconfigdirs="$noconfigdirs gprof"
4038 mips*-*-irix5*)
4039 noconfigdirs="$noconfigdirs gprof target-libgloss"
4041 mips*-*-irix6*)
4042 noconfigdirs="$noconfigdirs gprof target-libgloss"
4044 mips*-*-bsd*)
4045 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4047 mips*-*-linux*)
4049 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4050 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4051 noconfigdirs="$noconfigdirs ld gas gprof"
4053 mips*-*-*)
4054 noconfigdirs="$noconfigdirs gprof"
4056 nvptx*-*-*)
4057 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4059 sh-*-*)
4060 case "${target}" in
4061 sh*-*-elf)
4064 noconfigdirs="$noconfigdirs target-libgloss" ;;
4065 esac
4067 sparc-*-sunos4*)
4068 if test x${is_cross_compiler} = xno ; then
4069 use_gnu_ld=no
4072 tic6x-*-*)
4073 noconfigdirs="$noconfigdirs sim"
4075 tilepro*-*-* | tilegx*-*-*)
4076 noconfigdirs="$noconfigdirs sim"
4078 v810-*-*)
4079 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4081 vax-*-*)
4082 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4084 wasm32-*-*)
4085 noconfigdirs="$noconfigdirs ld"
4087 loongarch*-*-linux*)
4089 loongarch*-*-*)
4090 noconfigdirs="$noconfigdirs gprof"
4092 esac
4094 # If we aren't building newlib, then don't build libgloss, since libgloss
4095 # depends upon some newlib header files.
4096 case "${noconfigdirs}" in
4097 *target-libgloss*) ;;
4098 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4099 esac
4101 # Work in distributions that contain no compiler tools, like Autoconf.
4102 host_makefile_frag=/dev/null
4103 if test -d ${srcdir}/config ; then
4104 case "${host}" in
4105 i[3456789]86-*-msdosdjgpp*)
4106 host_makefile_frag="config/mh-djgpp"
4108 *-cygwin*)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4111 $as_echo_n "checking to see if cat works as expected... " >&6; }
4112 echo a >cygwin-cat-check
4113 if test `cat cygwin-cat-check` = a ; then
4114 rm cygwin-cat-check
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4116 $as_echo "yes" >&6; }
4117 else
4118 rm cygwin-cat-check
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 as_fn_error $? "The cat command does not ignore carriage return characters.
4122 Please either mount the build directory in binary mode or run the following
4123 commands before running any configure script:
4124 set -o igncr
4125 export SHELLOPTS
4126 " "$LINENO" 5
4129 host_makefile_frag="config/mh-cygwin"
4131 *-mingw*)
4132 host_makefile_frag="config/mh-mingw"
4134 alpha*-linux*)
4135 host_makefile_frag="config/mh-alpha-linux"
4137 hppa*-hp-hpux*)
4138 host_makefile_frag="config/mh-pa"
4140 hppa*-*)
4141 host_makefile_frag="config/mh-pa"
4143 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4144 host_makefile_frag="config/mh-darwin"
4146 powerpc-*-aix*)
4147 host_makefile_frag="config/mh-ppc-aix"
4149 rs6000-*-aix*)
4150 host_makefile_frag="config/mh-ppc-aix"
4152 esac
4155 if test "${build}" != "${host}" ; then
4156 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4157 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4158 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4159 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4160 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4161 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4162 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4163 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4164 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4165 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4166 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4167 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4168 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4169 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4170 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4171 else
4172 AR_FOR_BUILD="\$(AR)"
4173 AS_FOR_BUILD="\$(AS)"
4174 CC_FOR_BUILD="\$(CC)"
4175 CXX_FOR_BUILD="\$(CXX)"
4176 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4177 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4178 GOC_FOR_BUILD="\$(GOC)"
4179 GDC_FOR_BUILD="\$(GDC)"
4180 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4181 LD_FOR_BUILD="\$(LD)"
4182 NM_FOR_BUILD="\$(NM)"
4183 RANLIB_FOR_BUILD="\$(RANLIB)"
4184 WINDRES_FOR_BUILD="\$(WINDRES)"
4185 WINDMC_FOR_BUILD="\$(WINDMC)"
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC="$CC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4232 if test -z "$ac_cv_prog_CC"; then
4233 ac_ct_CC=$CC
4234 # Extract the first word of "gcc", so it can be a program name with args.
4235 set dummy gcc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_ac_ct_CC="gcc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4255 done
4256 done
4257 IFS=$as_save_IFS
4261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262 if test -n "$ac_ct_CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264 $as_echo "$ac_ct_CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4270 if test "x$ac_ct_CC" = x; then
4271 CC=""
4272 else
4273 case $cross_compiling:$ac_tool_warned in
4274 yes:)
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277 ac_tool_warned=yes ;;
4278 esac
4279 CC=$ac_ct_CC
4281 else
4282 CC="$ac_cv_prog_CC"
4285 if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4288 set dummy ${ac_tool_prefix}cc; ac_word=$2
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290 $as_echo_n "checking for $ac_word... " >&6; }
4291 if ${ac_cv_prog_CC+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 if test -n "$CC"; then
4295 ac_cv_prog_CC="$CC" # Let the user override the test.
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_prog_CC="${ac_tool_prefix}cc"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4308 done
4309 done
4310 IFS=$as_save_IFS
4314 CC=$ac_cv_prog_CC
4315 if test -n "$CC"; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4317 $as_echo "$CC" >&6; }
4318 else
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4326 if test -z "$CC"; then
4327 # Extract the first word of "cc", so it can be a program name with args.
4328 set dummy cc; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_prog_CC+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 if test -n "$CC"; then
4335 ac_cv_prog_CC="$CC" # Let the user override the test.
4336 else
4337 ac_prog_rejected=no
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4346 ac_prog_rejected=yes
4347 continue
4349 ac_cv_prog_CC="cc"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4353 done
4354 done
4355 IFS=$as_save_IFS
4357 if test $ac_prog_rejected = yes; then
4358 # We found a bogon in the path, so make sure we never use it.
4359 set dummy $ac_cv_prog_CC
4360 shift
4361 if test $# != 0; then
4362 # We chose a different compiler from the bogus one.
4363 # However, it has the same basename, so the bogon will be chosen
4364 # first if we set CC to just the basename; use the full file name.
4365 shift
4366 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4371 CC=$ac_cv_prog_CC
4372 if test -n "$CC"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4374 $as_echo "$CC" >&6; }
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4382 if test -z "$CC"; then
4383 if test -n "$ac_tool_prefix"; then
4384 for ac_prog in cl.exe
4386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_prog_CC+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if test -n "$CC"; then
4394 ac_cv_prog_CC="$CC" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4407 done
4408 done
4409 IFS=$as_save_IFS
4413 CC=$ac_cv_prog_CC
4414 if test -n "$CC"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4416 $as_echo "$CC" >&6; }
4417 else
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4423 test -n "$CC" && break
4424 done
4426 if test -z "$CC"; then
4427 ac_ct_CC=$CC
4428 for ac_prog in cl.exe
4430 # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy $ac_prog; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -n "$ac_ct_CC"; then
4438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_ac_ct_CC="$ac_prog"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4451 done
4452 done
4453 IFS=$as_save_IFS
4457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4458 if test -n "$ac_ct_CC"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4460 $as_echo "$ac_ct_CC" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4467 test -n "$ac_ct_CC" && break
4468 done
4470 if test "x$ac_ct_CC" = x; then
4471 CC=""
4472 else
4473 case $cross_compiling:$ac_tool_warned in
4474 yes:)
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned=yes ;;
4478 esac
4479 CC=$ac_ct_CC
4486 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error $? "no acceptable C compiler found in \$PATH
4489 See \`config.log' for more details" "$LINENO" 5; }
4491 # Provide some information about the compiler.
4492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4493 set X $ac_compile
4494 ac_compiler=$2
4495 for ac_option in --version -v -V -qversion; do
4496 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
4504 ac_status=$?
4505 if test -s conftest.err; then
4506 sed '10a\
4507 ... rest of stderr output deleted ...
4508 10q' conftest.err >conftest.er1
4509 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }
4514 done
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4520 main ()
4524 return 0;
4526 _ACEOF
4527 ac_clean_files_save=$ac_clean_files
4528 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4529 # Try to create an executable without -o first, disregard a.out.
4530 # It will help us diagnose broken compilers, and finding out an intuition
4531 # of exeext.
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4533 $as_echo_n "checking whether the C compiler works... " >&6; }
4534 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4536 # The possible output files:
4537 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4539 ac_rmfiles=
4540 for ac_file in $ac_files
4542 case $ac_file in
4543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4544 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4545 esac
4546 done
4547 rm -f $ac_rmfiles
4549 if { { ac_try="$ac_link_default"
4550 case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553 esac
4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555 $as_echo "$ac_try_echo"; } >&5
4556 (eval "$ac_link_default") 2>&5
4557 ac_status=$?
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then :
4560 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4561 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4562 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4563 # so that the user can short-circuit this test for compilers unknown to
4564 # Autoconf.
4565 for ac_file in $ac_files ''
4567 test -f "$ac_file" || continue
4568 case $ac_file in
4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4571 [ab].out )
4572 # We found the default executable, but exeext='' is most
4573 # certainly right.
4574 break;;
4575 *.* )
4576 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4577 then :; else
4578 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4580 # We set ac_cv_exeext here because the later test for it is not
4581 # safe: cross compilers may not add the suffix if given an `-o'
4582 # argument, so we may need to know it at that point already.
4583 # Even if this section looks crufty: it has the advantage of
4584 # actually working.
4585 break;;
4587 break;;
4588 esac
4589 done
4590 test "$ac_cv_exeext" = no && ac_cv_exeext=
4592 else
4593 ac_file=''
4595 if test -z "$ac_file"; then :
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 $as_echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error 77 "C compiler cannot create executables
4604 See \`config.log' for more details" "$LINENO" 5; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607 $as_echo "yes" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4610 $as_echo_n "checking for C compiler default output file name... " >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4612 $as_echo "$ac_file" >&6; }
4613 ac_exeext=$ac_cv_exeext
4615 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4616 ac_clean_files=$ac_clean_files_save
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4618 $as_echo_n "checking for suffix of executables... " >&6; }
4619 if { { ac_try="$ac_link"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; then :
4630 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4631 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4632 # work properly (i.e., refer to `conftest.exe'), while it won't with
4633 # `rm'.
4634 for ac_file in conftest.exe conftest conftest.*; do
4635 test -f "$ac_file" || continue
4636 case $ac_file in
4637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4638 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4639 break;;
4640 * ) break;;
4641 esac
4642 done
4643 else
4644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4646 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4647 See \`config.log' for more details" "$LINENO" 5; }
4649 rm -f conftest conftest$ac_cv_exeext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4651 $as_echo "$ac_cv_exeext" >&6; }
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4655 ac_exeext=$EXEEXT
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 #include <stdio.h>
4660 main ()
4662 FILE *f = fopen ("conftest.out", "w");
4663 return ferror (f) || fclose (f) != 0;
4666 return 0;
4668 _ACEOF
4669 ac_clean_files="$ac_clean_files conftest.out"
4670 # Check that the compiler produces executables we can run. If not, either
4671 # the compiler is broken, or we cross compile.
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4673 $as_echo_n "checking whether we are cross compiling... " >&6; }
4674 if test "$cross_compiling" != yes; then
4675 { { ac_try="$ac_link"
4676 case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681 $as_echo "$ac_try_echo"; } >&5
4682 (eval "$ac_link") 2>&5
4683 ac_status=$?
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }
4686 if { ac_try='./conftest$ac_cv_exeext'
4687 { { case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692 $as_echo "$ac_try_echo"; } >&5
4693 (eval "$ac_try") 2>&5
4694 ac_status=$?
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; }; then
4697 cross_compiling=no
4698 else
4699 if test "$cross_compiling" = maybe; then
4700 cross_compiling=yes
4701 else
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $? "cannot run C compiled programs.
4705 If you meant to cross compile, use \`--host'.
4706 See \`config.log' for more details" "$LINENO" 5; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4711 $as_echo "$cross_compiling" >&6; }
4713 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4714 ac_clean_files=$ac_clean_files_save
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4716 $as_echo_n "checking for suffix of object files... " >&6; }
4717 if ${ac_cv_objext+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4724 main ()
4728 return 0;
4730 _ACEOF
4731 rm -f conftest.o conftest.obj
4732 if { { ac_try="$ac_compile"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738 $as_echo "$ac_try_echo"; } >&5
4739 (eval "$ac_compile") 2>&5
4740 ac_status=$?
4741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4742 test $ac_status = 0; }; then :
4743 for ac_file in conftest.o conftest.obj conftest.*; do
4744 test -f "$ac_file" || continue;
4745 case $ac_file in
4746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4748 break;;
4749 esac
4750 done
4751 else
4752 $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4757 as_fn_error $? "cannot compute suffix of object files: cannot compile
4758 See \`config.log' for more details" "$LINENO" 5; }
4760 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4763 $as_echo "$ac_cv_objext" >&6; }
4764 OBJEXT=$ac_cv_objext
4765 ac_objext=$OBJEXT
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4768 if ${ac_cv_c_compiler_gnu+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 main ()
4777 #ifndef __GNUC__
4778 choke me
4779 #endif
4782 return 0;
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_compiler_gnu=yes
4787 else
4788 ac_compiler_gnu=no
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4795 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4796 if test $ac_compiler_gnu = yes; then
4797 GCC=yes
4798 else
4799 GCC=
4801 ac_test_CFLAGS=${CFLAGS+set}
4802 ac_save_CFLAGS=$CFLAGS
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4804 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4805 if ${ac_cv_prog_cc_g+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 ac_save_c_werror_flag=$ac_c_werror_flag
4809 ac_c_werror_flag=yes
4810 ac_cv_prog_cc_g=no
4811 CFLAGS="-g"
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4816 main ()
4820 return 0;
4822 _ACEOF
4823 if ac_fn_c_try_compile "$LINENO"; then :
4824 ac_cv_prog_cc_g=yes
4825 else
4826 CFLAGS=""
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4831 main ()
4835 return 0;
4837 _ACEOF
4838 if ac_fn_c_try_compile "$LINENO"; then :
4840 else
4841 ac_c_werror_flag=$ac_save_c_werror_flag
4842 CFLAGS="-g"
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4847 main ()
4851 return 0;
4853 _ACEOF
4854 if ac_fn_c_try_compile "$LINENO"; then :
4855 ac_cv_prog_cc_g=yes
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_c_werror_flag=$ac_save_c_werror_flag
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4865 $as_echo "$ac_cv_prog_cc_g" >&6; }
4866 if test "$ac_test_CFLAGS" = set; then
4867 CFLAGS=$ac_save_CFLAGS
4868 elif test $ac_cv_prog_cc_g = yes; then
4869 if test "$GCC" = yes; then
4870 CFLAGS="-g -O2"
4871 else
4872 CFLAGS="-g"
4874 else
4875 if test "$GCC" = yes; then
4876 CFLAGS="-O2"
4877 else
4878 CFLAGS=
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4883 if ${ac_cv_prog_cc_c89+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 ac_cv_prog_cc_c89=no
4887 ac_save_CC=$CC
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #include <stdarg.h>
4891 #include <stdio.h>
4892 struct stat;
4893 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4894 struct buf { int x; };
4895 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4896 static char *e (p, i)
4897 char **p;
4898 int i;
4900 return p[i];
4902 static char *f (char * (*g) (char **, int), char **p, ...)
4904 char *s;
4905 va_list v;
4906 va_start (v,p);
4907 s = g (p, va_arg (v,int));
4908 va_end (v);
4909 return s;
4912 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4913 function prototypes and stuff, but not '\xHH' hex character constants.
4914 These don't provoke an error unfortunately, instead are silently treated
4915 as 'x'. The following induces an error, until -std is added to get
4916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4917 array size at least. It's necessary to write '\x00'==0 to get something
4918 that's true only with -std. */
4919 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4921 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4922 inside strings and character constants. */
4923 #define FOO(x) 'x'
4924 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4926 int test (int i, double x);
4927 struct s1 {int (*f) (int a);};
4928 struct s2 {int (*f) (double a);};
4929 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4930 int argc;
4931 char **argv;
4933 main ()
4935 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4937 return 0;
4939 _ACEOF
4940 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4941 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4943 CC="$ac_save_CC $ac_arg"
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_prog_cc_c89=$ac_arg
4947 rm -f core conftest.err conftest.$ac_objext
4948 test "x$ac_cv_prog_cc_c89" != "xno" && break
4949 done
4950 rm -f conftest.$ac_ext
4951 CC=$ac_save_CC
4954 # AC_CACHE_VAL
4955 case "x$ac_cv_prog_cc_c89" in
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4958 $as_echo "none needed" >&6; } ;;
4959 xno)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4961 $as_echo "unsupported" >&6; } ;;
4963 CC="$CC $ac_cv_prog_cc_c89"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4965 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4966 esac
4967 if test "x$ac_cv_prog_cc_c89" != xno; then :
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4978 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4979 if ${ac_cv_prog_cc_c99+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 ac_cv_prog_cc_c99=no
4983 ac_save_CC=$CC
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #include <stdarg.h>
4987 #include <stdbool.h>
4988 #include <stdlib.h>
4989 #include <wchar.h>
4990 #include <stdio.h>
4992 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4993 #define debug(...) fprintf (stderr, __VA_ARGS__)
4994 #define showlist(...) puts (#__VA_ARGS__)
4995 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4996 static void
4997 test_varargs_macros (void)
4999 int x = 1234;
5000 int y = 5678;
5001 debug ("Flag");
5002 debug ("X = %d\n", x);
5003 showlist (The first, second, and third items.);
5004 report (x>y, "x is %d but y is %d", x, y);
5007 // Check long long types.
5008 #define BIG64 18446744073709551615ull
5009 #define BIG32 4294967295ul
5010 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5011 #if !BIG_OK
5012 your preprocessor is broken;
5013 #endif
5014 #if BIG_OK
5015 #else
5016 your preprocessor is broken;
5017 #endif
5018 static long long int bignum = -9223372036854775807LL;
5019 static unsigned long long int ubignum = BIG64;
5021 struct incomplete_array
5023 int datasize;
5024 double data[];
5027 struct named_init {
5028 int number;
5029 const wchar_t *name;
5030 double average;
5033 typedef const char *ccp;
5035 static inline int
5036 test_restrict (ccp restrict text)
5038 // See if C++-style comments work.
5039 // Iterate through items via the restricted pointer.
5040 // Also check for declarations in for loops.
5041 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5042 continue;
5043 return 0;
5046 // Check varargs and va_copy.
5047 static void
5048 test_varargs (const char *format, ...)
5050 va_list args;
5051 va_start (args, format);
5052 va_list args_copy;
5053 va_copy (args_copy, args);
5055 const char *str;
5056 int number;
5057 float fnumber;
5059 while (*format)
5061 switch (*format++)
5063 case 's': // string
5064 str = va_arg (args_copy, const char *);
5065 break;
5066 case 'd': // int
5067 number = va_arg (args_copy, int);
5068 break;
5069 case 'f': // float
5070 fnumber = va_arg (args_copy, double);
5071 break;
5072 default:
5073 break;
5076 va_end (args_copy);
5077 va_end (args);
5081 main ()
5084 // Check bool.
5085 _Bool success = false;
5087 // Check restrict.
5088 if (test_restrict ("String literal") == 0)
5089 success = true;
5090 char *restrict newvar = "Another string";
5092 // Check varargs.
5093 test_varargs ("s, d' f .", "string", 65, 34.234);
5094 test_varargs_macros ();
5096 // Check flexible array members.
5097 struct incomplete_array *ia =
5098 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5099 ia->datasize = 10;
5100 for (int i = 0; i < ia->datasize; ++i)
5101 ia->data[i] = i * 1.234;
5103 // Check named initializers.
5104 struct named_init ni = {
5105 .number = 34,
5106 .name = L"Test wide string",
5107 .average = 543.34343,
5110 ni.number = 58;
5112 int dynamic_array[ni.number];
5113 dynamic_array[ni.number - 1] = 543;
5115 // work around unused variable warnings
5116 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5117 || dynamic_array[ni.number - 1] != 543);
5120 return 0;
5122 _ACEOF
5123 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5125 CC="$ac_save_CC $ac_arg"
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_prog_cc_c99=$ac_arg
5129 rm -f core conftest.err conftest.$ac_objext
5130 test "x$ac_cv_prog_cc_c99" != "xno" && break
5131 done
5132 rm -f conftest.$ac_ext
5133 CC=$ac_save_CC
5136 # AC_CACHE_VAL
5137 case "x$ac_cv_prog_cc_c99" in
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5140 $as_echo "none needed" >&6; } ;;
5141 xno)
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5143 $as_echo "unsupported" >&6; } ;;
5145 CC="$CC $ac_cv_prog_cc_c99"
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5147 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5148 esac
5149 if test "x$ac_cv_prog_cc_c99" != xno; then :
5154 ac_ext=cpp
5155 ac_cpp='$CXXCPP $CPPFLAGS'
5156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5159 if test -z "$CXX"; then
5160 if test -n "$CCC"; then
5161 CXX=$CCC
5162 else
5163 if test -n "$ac_tool_prefix"; then
5164 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_prog_CXX+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$CXX"; then
5174 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5187 done
5188 done
5189 IFS=$as_save_IFS
5193 CXX=$ac_cv_prog_CXX
5194 if test -n "$CXX"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5196 $as_echo "$CXX" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 test -n "$CXX" && break
5204 done
5206 if test -z "$CXX"; then
5207 ac_ct_CXX=$CXX
5208 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5210 # Extract the first word of "$ac_prog", so it can be a program name with args.
5211 set dummy $ac_prog; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$ac_ct_CXX"; then
5218 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_CXX="$ac_prog"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5231 done
5232 done
5233 IFS=$as_save_IFS
5237 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5238 if test -n "$ac_ct_CXX"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5240 $as_echo "$ac_ct_CXX" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5247 test -n "$ac_ct_CXX" && break
5248 done
5250 if test "x$ac_ct_CXX" = x; then
5251 CXX="g++"
5252 else
5253 case $cross_compiling:$ac_tool_warned in
5254 yes:)
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259 CXX=$ac_ct_CXX
5265 # Provide some information about the compiler.
5266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5267 set X $ac_compile
5268 ac_compiler=$2
5269 for ac_option in --version -v -V -qversion; do
5270 { { ac_try="$ac_compiler $ac_option >&5"
5271 case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274 esac
5275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5276 $as_echo "$ac_try_echo"; } >&5
5277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5278 ac_status=$?
5279 if test -s conftest.err; then
5280 sed '10a\
5281 ... rest of stderr output deleted ...
5282 10q' conftest.err >conftest.er1
5283 cat conftest.er1 >&5
5285 rm -f conftest.er1 conftest.err
5286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5287 test $ac_status = 0; }
5288 done
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5291 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5292 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5299 main ()
5301 #ifndef __GNUC__
5302 choke me
5303 #endif
5306 return 0;
5308 _ACEOF
5309 if ac_fn_cxx_try_compile "$LINENO"; then :
5310 ac_compiler_gnu=yes
5311 else
5312 ac_compiler_gnu=no
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5319 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5320 if test $ac_compiler_gnu = yes; then
5321 GXX=yes
5322 else
5323 GXX=
5325 ac_test_CXXFLAGS=${CXXFLAGS+set}
5326 ac_save_CXXFLAGS=$CXXFLAGS
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5328 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5329 if ${ac_cv_prog_cxx_g+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5333 ac_cxx_werror_flag=yes
5334 ac_cv_prog_cxx_g=no
5335 CXXFLAGS="-g"
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5340 main ()
5344 return 0;
5346 _ACEOF
5347 if ac_fn_cxx_try_compile "$LINENO"; then :
5348 ac_cv_prog_cxx_g=yes
5349 else
5350 CXXFLAGS=""
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5355 main ()
5359 return 0;
5361 _ACEOF
5362 if ac_fn_cxx_try_compile "$LINENO"; then :
5364 else
5365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5366 CXXFLAGS="-g"
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5371 main ()
5375 return 0;
5377 _ACEOF
5378 if ac_fn_cxx_try_compile "$LINENO"; then :
5379 ac_cv_prog_cxx_g=yes
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5389 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5390 if test "$ac_test_CXXFLAGS" = set; then
5391 CXXFLAGS=$ac_save_CXXFLAGS
5392 elif test $ac_cv_prog_cxx_g = yes; then
5393 if test "$GXX" = yes; then
5394 CXXFLAGS="-g -O2"
5395 else
5396 CXXFLAGS="-g"
5398 else
5399 if test "$GXX" = yes; then
5400 CXXFLAGS="-O2"
5401 else
5402 CXXFLAGS=
5405 ac_ext=c
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412 # We must set the default linker to the linker used by gcc for the correct
5413 # operation of libtool. If LD is not defined and we are using gcc, try to
5414 # set the LD default to the ld used by gcc.
5415 if test -z "$LD"; then
5416 if test "$GCC" = yes; then
5417 case $build in
5418 *-*-mingw*)
5419 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5421 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5422 esac
5423 case $gcc_prog_ld in
5424 # Accept absolute paths.
5425 [\\/]* | [A-Za-z]:[\\/]*)
5426 LD="$gcc_prog_ld" ;;
5427 esac
5431 # Check whether -static-libstdc++ -static-libgcc is supported.
5432 have_static_libs=no
5433 if test "$GCC" = yes; then
5434 saved_LDFLAGS="$LDFLAGS"
5436 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5438 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5439 ac_ext=cpp
5440 ac_cpp='$CXXCPP $CPPFLAGS'
5441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5449 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5450 #error -static-libstdc++ not implemented
5451 #endif
5452 int main() {}
5453 _ACEOF
5454 if ac_fn_cxx_try_link "$LINENO"; then :
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5456 $as_echo "yes" >&6; }; have_static_libs=yes
5457 else
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5461 rm -f core conftest.err conftest.$ac_objext \
5462 conftest$ac_exeext conftest.$ac_ext
5463 ac_ext=c
5464 ac_cpp='$CPP $CPPFLAGS'
5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470 LDFLAGS="$saved_LDFLAGS"
5476 if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5478 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_GNATBIND+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 if test -n "$GNATBIND"; then
5485 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5498 done
5499 done
5500 IFS=$as_save_IFS
5504 GNATBIND=$ac_cv_prog_GNATBIND
5505 if test -n "$GNATBIND"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5507 $as_echo "$GNATBIND" >&6; }
5508 else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5515 if test -z "$ac_cv_prog_GNATBIND"; then
5516 ac_ct_GNATBIND=$GNATBIND
5517 # Extract the first word of "gnatbind", so it can be a program name with args.
5518 set dummy gnatbind; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$ac_ct_GNATBIND"; then
5525 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5544 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5545 if test -n "$ac_ct_GNATBIND"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5547 $as_echo "$ac_ct_GNATBIND" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5553 if test "x$ac_ct_GNATBIND" = x; then
5554 GNATBIND="no"
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562 GNATBIND=$ac_ct_GNATBIND
5564 else
5565 GNATBIND="$ac_cv_prog_GNATBIND"
5568 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5570 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_GNATMAKE+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$GNATMAKE"; then
5577 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5590 done
5591 done
5592 IFS=$as_save_IFS
5596 GNATMAKE=$ac_cv_prog_GNATMAKE
5597 if test -n "$GNATMAKE"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5599 $as_echo "$GNATMAKE" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5607 if test -z "$ac_cv_prog_GNATMAKE"; then
5608 ac_ct_GNATMAKE=$GNATMAKE
5609 # Extract the first word of "gnatmake", so it can be a program name with args.
5610 set dummy gnatmake; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 if test -n "$ac_ct_GNATMAKE"; then
5617 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5630 done
5631 done
5632 IFS=$as_save_IFS
5636 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5637 if test -n "$ac_ct_GNATMAKE"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5639 $as_echo "$ac_ct_GNATMAKE" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5645 if test "x$ac_ct_GNATMAKE" = x; then
5646 GNATMAKE="no"
5647 else
5648 case $cross_compiling:$ac_tool_warned in
5649 yes:)
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned=yes ;;
5653 esac
5654 GNATMAKE=$ac_ct_GNATMAKE
5656 else
5657 GNATMAKE="$ac_cv_prog_GNATMAKE"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5661 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5662 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 cat >conftest.adb <<EOF
5666 pragma Warnings (Off);
5667 with System.CRTL;
5668 pragma Warnings (On);
5669 use type System.CRTL.int64;
5670 procedure conftest is begin null; end conftest;
5672 acx_cv_cc_gcc_supports_ada=no
5673 # There is a bug in old released versions of GCC which causes the
5674 # driver to exit successfully when the appropriate language module
5675 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5676 # Therefore we must check for the error message as well as an
5677 # unsuccessful exit.
5678 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5679 # given a .adb file, but produce no object file. So we must check
5680 # if an object file was really produced to guard against this.
5681 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5682 if test x"$errors" = x && test -f conftest.$ac_objext; then
5683 acx_cv_cc_gcc_supports_ada=yes
5685 rm -f conftest.*
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5688 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5690 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5691 have_gnat=yes
5692 else
5693 have_gnat=no
5698 if test -n "$ac_tool_prefix"; then
5699 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5700 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_GDC+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test -n "$GDC"; then
5707 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5720 done
5721 done
5722 IFS=$as_save_IFS
5726 GDC=$ac_cv_prog_GDC
5727 if test -n "$GDC"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5729 $as_echo "$GDC" >&6; }
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5737 if test -z "$ac_cv_prog_GDC"; then
5738 ac_ct_GDC=$GDC
5739 # Extract the first word of "gdc", so it can be a program name with args.
5740 set dummy gdc; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if test -n "$ac_ct_GDC"; then
5747 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_GDC="gdc"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5760 done
5761 done
5762 IFS=$as_save_IFS
5766 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5767 if test -n "$ac_ct_GDC"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5769 $as_echo "$ac_ct_GDC" >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5775 if test "x$ac_ct_GDC" = x; then
5776 GDC="no"
5777 else
5778 case $cross_compiling:$ac_tool_warned in
5779 yes:)
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5783 esac
5784 GDC=$ac_ct_GDC
5786 else
5787 GDC="$ac_cv_prog_GDC"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5791 $as_echo_n "checking whether the D compiler works... " >&6; }
5792 if ${acx_cv_d_compiler_works+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 cat >conftest.d <<EOF
5796 module conftest; int main() { return 0; }
5798 acx_cv_d_compiler_works=no
5799 if test "x$GDC" != xno; then
5800 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5801 if test x"$errors" = x && test -f conftest.$ac_objext; then
5802 acx_cv_d_compiler_works=yes
5804 rm -f conftest.*
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5808 $as_echo "$acx_cv_d_compiler_works" >&6; }
5809 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5810 have_gdc=yes
5811 else
5812 have_gdc=no
5815 for ac_prog in cargo
5817 # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy $ac_prog; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_CARGO+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 if test -n "$CARGO"; then
5825 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_CARGO="$ac_prog"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5838 done
5839 done
5840 IFS=$as_save_IFS
5844 CARGO=$ac_cv_prog_CARGO
5845 if test -n "$CARGO"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5847 $as_echo "$CARGO" >&6; }
5848 else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5854 test -n "$CARGO" && break
5855 done
5856 test -n "$CARGO" || CARGO="no"
5858 if test "x$CARGO" != xno; then
5859 have_cargo=yes
5860 else
5861 have_cargo=no
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5864 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5865 if ${gcc_cv_prog_cmp_skip+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 echo abfoo >t1
5869 echo cdfoo >t2
5870 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5871 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5872 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5874 else
5875 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5878 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5879 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5881 else
5882 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5885 rm t1 t2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5889 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5890 do_compare="$gcc_cv_prog_cmp_skip"
5894 # Check whether --enable-bootstrap was given.
5895 if test "${enable_bootstrap+set}" = set; then :
5896 enableval=$enable_bootstrap;
5897 else
5898 enable_bootstrap=default
5902 # Issue errors and warnings for invalid/strange bootstrap combinations.
5903 if test -r $srcdir/gcc/configure; then
5904 have_compiler=yes
5905 else
5906 have_compiler=no
5909 case "$have_compiler:$host:$target:$enable_bootstrap" in
5910 *:*:*:no) ;;
5912 # Default behavior. Enable bootstrap if we have a compiler
5913 # and we are in a native configuration.
5914 yes:$build:$build:default)
5915 enable_bootstrap=yes ;;
5917 *:*:*:default)
5918 enable_bootstrap=no ;;
5920 # We have a compiler and we are in a native configuration, bootstrap is ok
5921 yes:$build:$build:yes)
5924 # Other configurations, but we have a compiler. Assume the user knows
5925 # what he's doing.
5926 yes:*:*:yes)
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5928 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5931 # No compiler: if they passed --enable-bootstrap explicitly, fail
5932 no:*:*:yes)
5933 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5935 # Fail if wrong command line
5937 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5939 esac
5941 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
5942 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
5943 # require C++14 (or higher).
5944 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5945 CXX="$CXX -std=c++14"
5946 elif test "$have_compiler" = yes; then
5947 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
5948 ac_ext=cpp
5949 ac_cpp='$CXXCPP $CPPFLAGS'
5950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5953 ac_success=no
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
5956 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
5957 if ${ax_cv_cxx_compile_cxx14+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5964 // If the compiler admits that it is not ready for C++11, why torture it?
5965 // Hopefully, this will speed up the test.
5967 #ifndef __cplusplus
5969 #error "This is not a C++ compiler"
5971 #elif __cplusplus < 201103L
5973 #error "This is not a C++11 compiler"
5975 #else
5977 namespace cxx11
5980 namespace test_static_assert
5983 template <typename T>
5984 struct check
5986 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5991 namespace test_final_override
5994 struct Base
5996 virtual ~Base() {}
5997 virtual void f() {}
6000 struct Derived : public Base
6002 virtual ~Derived() override {}
6003 virtual void f() override {}
6008 namespace test_double_right_angle_brackets
6011 template < typename T >
6012 struct check {};
6014 typedef check<void> single_type;
6015 typedef check<check<void>> double_type;
6016 typedef check<check<check<void>>> triple_type;
6017 typedef check<check<check<check<void>>>> quadruple_type;
6021 namespace test_decltype
6027 int a = 1;
6028 decltype(a) b = 2;
6029 return a + b;
6034 namespace test_type_deduction
6037 template < typename T1, typename T2 >
6038 struct is_same
6040 static const bool value = false;
6043 template < typename T >
6044 struct is_same<T, T>
6046 static const bool value = true;
6049 template < typename T1, typename T2 >
6050 auto
6051 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6053 return a1 + a2;
6057 test(const int c, volatile int v)
6059 static_assert(is_same<int, decltype(0)>::value == true, "");
6060 static_assert(is_same<int, decltype(c)>::value == false, "");
6061 static_assert(is_same<int, decltype(v)>::value == false, "");
6062 auto ac = c;
6063 auto av = v;
6064 auto sumi = ac + av + 'x';
6065 auto sumf = ac + av + 1.0;
6066 static_assert(is_same<int, decltype(ac)>::value == true, "");
6067 static_assert(is_same<int, decltype(av)>::value == true, "");
6068 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6069 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6070 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6071 return (sumf > 0.0) ? sumi : add(c, v);
6076 namespace test_noexcept
6079 int f() { return 0; }
6080 int g() noexcept { return 0; }
6082 static_assert(noexcept(f()) == false, "");
6083 static_assert(noexcept(g()) == true, "");
6087 namespace test_constexpr
6090 template < typename CharT >
6091 unsigned long constexpr
6092 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6094 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6097 template < typename CharT >
6098 unsigned long constexpr
6099 strlen_c(const CharT *const s) noexcept
6101 return strlen_c_r(s, 0UL);
6104 static_assert(strlen_c("") == 0UL, "");
6105 static_assert(strlen_c("1") == 1UL, "");
6106 static_assert(strlen_c("example") == 7UL, "");
6107 static_assert(strlen_c("another\0example") == 7UL, "");
6111 namespace test_rvalue_references
6114 template < int N >
6115 struct answer
6117 static constexpr int value = N;
6120 answer<1> f(int&) { return answer<1>(); }
6121 answer<2> f(const int&) { return answer<2>(); }
6122 answer<3> f(int&&) { return answer<3>(); }
6124 void
6125 test()
6127 int i = 0;
6128 const int c = 0;
6129 static_assert(decltype(f(i))::value == 1, "");
6130 static_assert(decltype(f(c))::value == 2, "");
6131 static_assert(decltype(f(0))::value == 3, "");
6136 namespace test_uniform_initialization
6139 struct test
6141 static const int zero {};
6142 static const int one {1};
6145 static_assert(test::zero == 0, "");
6146 static_assert(test::one == 1, "");
6150 namespace test_lambdas
6153 void
6154 test1()
6156 auto lambda1 = [](){};
6157 auto lambda2 = lambda1;
6158 lambda1();
6159 lambda2();
6163 test2()
6165 auto a = [](int i, int j){ return i + j; }(1, 2);
6166 auto b = []() -> int { return '0'; }();
6167 auto c = [=](){ return a + b; }();
6168 auto d = [&](){ return c; }();
6169 auto e = [a, &b](int x) mutable {
6170 const auto identity = [](int y){ return y; };
6171 for (auto i = 0; i < a; ++i)
6172 a += b--;
6173 return x + identity(a + b);
6174 }(0);
6175 return a + b + c + d + e;
6179 test3()
6181 const auto nullary = [](){ return 0; };
6182 const auto unary = [](int x){ return x; };
6183 using nullary_t = decltype(nullary);
6184 using unary_t = decltype(unary);
6185 const auto higher1st = [](nullary_t f){ return f(); };
6186 const auto higher2nd = [unary](nullary_t f1){
6187 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6189 return higher1st(nullary) + higher2nd(nullary)(unary);
6194 namespace test_variadic_templates
6197 template <int...>
6198 struct sum;
6200 template <int N0, int... N1toN>
6201 struct sum<N0, N1toN...>
6203 static constexpr auto value = N0 + sum<N1toN...>::value;
6206 template <>
6207 struct sum<>
6209 static constexpr auto value = 0;
6212 static_assert(sum<>::value == 0, "");
6213 static_assert(sum<1>::value == 1, "");
6214 static_assert(sum<23>::value == 23, "");
6215 static_assert(sum<1, 2>::value == 3, "");
6216 static_assert(sum<5, 5, 11>::value == 21, "");
6217 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6221 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6222 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6223 // because of this.
6224 namespace test_template_alias_sfinae
6227 struct foo {};
6229 template<typename T>
6230 using member = typename T::member_type;
6232 template<typename T>
6233 void func(...) {}
6235 template<typename T>
6236 void func(member<T>*) {}
6238 void test();
6240 void test() { func<foo>(0); }
6244 } // namespace cxx11
6246 #endif // __cplusplus >= 201103L
6251 // If the compiler admits that it is not ready for C++14, why torture it?
6252 // Hopefully, this will speed up the test.
6254 #ifndef __cplusplus
6256 #error "This is not a C++ compiler"
6258 #elif __cplusplus < 201402L
6260 #error "This is not a C++14 compiler"
6262 #else
6264 namespace cxx14
6267 namespace test_polymorphic_lambdas
6271 test()
6273 const auto lambda = [](auto&&... args){
6274 const auto istiny = [](auto x){
6275 return (sizeof(x) == 1UL) ? 1 : 0;
6277 const int aretiny[] = { istiny(args)... };
6278 return aretiny[0];
6280 return lambda(1, 1L, 1.0f, '1');
6285 namespace test_binary_literals
6288 constexpr auto ivii = 0b0000000000101010;
6289 static_assert(ivii == 42, "wrong value");
6293 namespace test_generalized_constexpr
6296 template < typename CharT >
6297 constexpr unsigned long
6298 strlen_c(const CharT *const s) noexcept
6300 auto length = 0UL;
6301 for (auto p = s; *p; ++p)
6302 ++length;
6303 return length;
6306 static_assert(strlen_c("") == 0UL, "");
6307 static_assert(strlen_c("x") == 1UL, "");
6308 static_assert(strlen_c("test") == 4UL, "");
6309 static_assert(strlen_c("another\0test") == 7UL, "");
6313 namespace test_lambda_init_capture
6317 test()
6319 auto x = 0;
6320 const auto lambda1 = [a = x](int b){ return a + b; };
6321 const auto lambda2 = [a = lambda1(x)](){ return a; };
6322 return lambda2();
6327 namespace test_digit_separators
6330 constexpr auto ten_million = 100'000'000;
6331 static_assert(ten_million == 100000000, "");
6335 namespace test_return_type_deduction
6338 auto f(int& x) { return x; }
6339 decltype(auto) g(int& x) { return x; }
6341 template < typename T1, typename T2 >
6342 struct is_same
6344 static constexpr auto value = false;
6347 template < typename T >
6348 struct is_same<T, T>
6350 static constexpr auto value = true;
6354 test()
6356 auto x = 0;
6357 static_assert(is_same<int, decltype(f(x))>::value, "");
6358 static_assert(is_same<int&, decltype(g(x))>::value, "");
6359 return x;
6364 } // namespace cxx14
6366 #endif // __cplusplus >= 201402L
6370 _ACEOF
6371 if ac_fn_cxx_try_compile "$LINENO"; then :
6372 ax_cv_cxx_compile_cxx14=yes
6373 else
6374 ax_cv_cxx_compile_cxx14=no
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6379 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6380 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
6381 ac_success=yes
6384 if test x$ac_success = xno; then
6385 for alternative in ${ax_cxx_compile_alternatives}; do
6386 switch="-std=gnu++${alternative}"
6387 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6389 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6390 if eval \${$cachevar+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 ac_save_CXX="$CXX"
6394 CXX="$CXX $switch"
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6399 // If the compiler admits that it is not ready for C++11, why torture it?
6400 // Hopefully, this will speed up the test.
6402 #ifndef __cplusplus
6404 #error "This is not a C++ compiler"
6406 #elif __cplusplus < 201103L
6408 #error "This is not a C++11 compiler"
6410 #else
6412 namespace cxx11
6415 namespace test_static_assert
6418 template <typename T>
6419 struct check
6421 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6426 namespace test_final_override
6429 struct Base
6431 virtual ~Base() {}
6432 virtual void f() {}
6435 struct Derived : public Base
6437 virtual ~Derived() override {}
6438 virtual void f() override {}
6443 namespace test_double_right_angle_brackets
6446 template < typename T >
6447 struct check {};
6449 typedef check<void> single_type;
6450 typedef check<check<void>> double_type;
6451 typedef check<check<check<void>>> triple_type;
6452 typedef check<check<check<check<void>>>> quadruple_type;
6456 namespace test_decltype
6462 int a = 1;
6463 decltype(a) b = 2;
6464 return a + b;
6469 namespace test_type_deduction
6472 template < typename T1, typename T2 >
6473 struct is_same
6475 static const bool value = false;
6478 template < typename T >
6479 struct is_same<T, T>
6481 static const bool value = true;
6484 template < typename T1, typename T2 >
6485 auto
6486 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6488 return a1 + a2;
6492 test(const int c, volatile int v)
6494 static_assert(is_same<int, decltype(0)>::value == true, "");
6495 static_assert(is_same<int, decltype(c)>::value == false, "");
6496 static_assert(is_same<int, decltype(v)>::value == false, "");
6497 auto ac = c;
6498 auto av = v;
6499 auto sumi = ac + av + 'x';
6500 auto sumf = ac + av + 1.0;
6501 static_assert(is_same<int, decltype(ac)>::value == true, "");
6502 static_assert(is_same<int, decltype(av)>::value == true, "");
6503 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6504 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6505 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6506 return (sumf > 0.0) ? sumi : add(c, v);
6511 namespace test_noexcept
6514 int f() { return 0; }
6515 int g() noexcept { return 0; }
6517 static_assert(noexcept(f()) == false, "");
6518 static_assert(noexcept(g()) == true, "");
6522 namespace test_constexpr
6525 template < typename CharT >
6526 unsigned long constexpr
6527 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6529 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6532 template < typename CharT >
6533 unsigned long constexpr
6534 strlen_c(const CharT *const s) noexcept
6536 return strlen_c_r(s, 0UL);
6539 static_assert(strlen_c("") == 0UL, "");
6540 static_assert(strlen_c("1") == 1UL, "");
6541 static_assert(strlen_c("example") == 7UL, "");
6542 static_assert(strlen_c("another\0example") == 7UL, "");
6546 namespace test_rvalue_references
6549 template < int N >
6550 struct answer
6552 static constexpr int value = N;
6555 answer<1> f(int&) { return answer<1>(); }
6556 answer<2> f(const int&) { return answer<2>(); }
6557 answer<3> f(int&&) { return answer<3>(); }
6559 void
6560 test()
6562 int i = 0;
6563 const int c = 0;
6564 static_assert(decltype(f(i))::value == 1, "");
6565 static_assert(decltype(f(c))::value == 2, "");
6566 static_assert(decltype(f(0))::value == 3, "");
6571 namespace test_uniform_initialization
6574 struct test
6576 static const int zero {};
6577 static const int one {1};
6580 static_assert(test::zero == 0, "");
6581 static_assert(test::one == 1, "");
6585 namespace test_lambdas
6588 void
6589 test1()
6591 auto lambda1 = [](){};
6592 auto lambda2 = lambda1;
6593 lambda1();
6594 lambda2();
6598 test2()
6600 auto a = [](int i, int j){ return i + j; }(1, 2);
6601 auto b = []() -> int { return '0'; }();
6602 auto c = [=](){ return a + b; }();
6603 auto d = [&](){ return c; }();
6604 auto e = [a, &b](int x) mutable {
6605 const auto identity = [](int y){ return y; };
6606 for (auto i = 0; i < a; ++i)
6607 a += b--;
6608 return x + identity(a + b);
6609 }(0);
6610 return a + b + c + d + e;
6614 test3()
6616 const auto nullary = [](){ return 0; };
6617 const auto unary = [](int x){ return x; };
6618 using nullary_t = decltype(nullary);
6619 using unary_t = decltype(unary);
6620 const auto higher1st = [](nullary_t f){ return f(); };
6621 const auto higher2nd = [unary](nullary_t f1){
6622 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6624 return higher1st(nullary) + higher2nd(nullary)(unary);
6629 namespace test_variadic_templates
6632 template <int...>
6633 struct sum;
6635 template <int N0, int... N1toN>
6636 struct sum<N0, N1toN...>
6638 static constexpr auto value = N0 + sum<N1toN...>::value;
6641 template <>
6642 struct sum<>
6644 static constexpr auto value = 0;
6647 static_assert(sum<>::value == 0, "");
6648 static_assert(sum<1>::value == 1, "");
6649 static_assert(sum<23>::value == 23, "");
6650 static_assert(sum<1, 2>::value == 3, "");
6651 static_assert(sum<5, 5, 11>::value == 21, "");
6652 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6656 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6657 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6658 // because of this.
6659 namespace test_template_alias_sfinae
6662 struct foo {};
6664 template<typename T>
6665 using member = typename T::member_type;
6667 template<typename T>
6668 void func(...) {}
6670 template<typename T>
6671 void func(member<T>*) {}
6673 void test();
6675 void test() { func<foo>(0); }
6679 } // namespace cxx11
6681 #endif // __cplusplus >= 201103L
6686 // If the compiler admits that it is not ready for C++14, why torture it?
6687 // Hopefully, this will speed up the test.
6689 #ifndef __cplusplus
6691 #error "This is not a C++ compiler"
6693 #elif __cplusplus < 201402L
6695 #error "This is not a C++14 compiler"
6697 #else
6699 namespace cxx14
6702 namespace test_polymorphic_lambdas
6706 test()
6708 const auto lambda = [](auto&&... args){
6709 const auto istiny = [](auto x){
6710 return (sizeof(x) == 1UL) ? 1 : 0;
6712 const int aretiny[] = { istiny(args)... };
6713 return aretiny[0];
6715 return lambda(1, 1L, 1.0f, '1');
6720 namespace test_binary_literals
6723 constexpr auto ivii = 0b0000000000101010;
6724 static_assert(ivii == 42, "wrong value");
6728 namespace test_generalized_constexpr
6731 template < typename CharT >
6732 constexpr unsigned long
6733 strlen_c(const CharT *const s) noexcept
6735 auto length = 0UL;
6736 for (auto p = s; *p; ++p)
6737 ++length;
6738 return length;
6741 static_assert(strlen_c("") == 0UL, "");
6742 static_assert(strlen_c("x") == 1UL, "");
6743 static_assert(strlen_c("test") == 4UL, "");
6744 static_assert(strlen_c("another\0test") == 7UL, "");
6748 namespace test_lambda_init_capture
6752 test()
6754 auto x = 0;
6755 const auto lambda1 = [a = x](int b){ return a + b; };
6756 const auto lambda2 = [a = lambda1(x)](){ return a; };
6757 return lambda2();
6762 namespace test_digit_separators
6765 constexpr auto ten_million = 100'000'000;
6766 static_assert(ten_million == 100000000, "");
6770 namespace test_return_type_deduction
6773 auto f(int& x) { return x; }
6774 decltype(auto) g(int& x) { return x; }
6776 template < typename T1, typename T2 >
6777 struct is_same
6779 static constexpr auto value = false;
6782 template < typename T >
6783 struct is_same<T, T>
6785 static constexpr auto value = true;
6789 test()
6791 auto x = 0;
6792 static_assert(is_same<int, decltype(f(x))>::value, "");
6793 static_assert(is_same<int&, decltype(g(x))>::value, "");
6794 return x;
6799 } // namespace cxx14
6801 #endif // __cplusplus >= 201402L
6805 _ACEOF
6806 if ac_fn_cxx_try_compile "$LINENO"; then :
6807 eval $cachevar=yes
6808 else
6809 eval $cachevar=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 CXX="$ac_save_CXX"
6814 eval ac_res=\$$cachevar
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6816 $as_echo "$ac_res" >&6; }
6817 if eval test x\$$cachevar = xyes; then
6818 CXX="$CXX $switch"
6819 if test -n "$CXXCPP" ; then
6820 CXXCPP="$CXXCPP $switch"
6822 ac_success=yes
6823 break
6825 done
6828 if test x$ac_success = xno; then
6829 for alternative in ${ax_cxx_compile_alternatives}; do
6830 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6831 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6833 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6834 if eval \${$cachevar+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 ac_save_CXX="$CXX"
6838 CXX="$CXX $switch"
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6843 // If the compiler admits that it is not ready for C++11, why torture it?
6844 // Hopefully, this will speed up the test.
6846 #ifndef __cplusplus
6848 #error "This is not a C++ compiler"
6850 #elif __cplusplus < 201103L
6852 #error "This is not a C++11 compiler"
6854 #else
6856 namespace cxx11
6859 namespace test_static_assert
6862 template <typename T>
6863 struct check
6865 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6870 namespace test_final_override
6873 struct Base
6875 virtual ~Base() {}
6876 virtual void f() {}
6879 struct Derived : public Base
6881 virtual ~Derived() override {}
6882 virtual void f() override {}
6887 namespace test_double_right_angle_brackets
6890 template < typename T >
6891 struct check {};
6893 typedef check<void> single_type;
6894 typedef check<check<void>> double_type;
6895 typedef check<check<check<void>>> triple_type;
6896 typedef check<check<check<check<void>>>> quadruple_type;
6900 namespace test_decltype
6906 int a = 1;
6907 decltype(a) b = 2;
6908 return a + b;
6913 namespace test_type_deduction
6916 template < typename T1, typename T2 >
6917 struct is_same
6919 static const bool value = false;
6922 template < typename T >
6923 struct is_same<T, T>
6925 static const bool value = true;
6928 template < typename T1, typename T2 >
6929 auto
6930 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6932 return a1 + a2;
6936 test(const int c, volatile int v)
6938 static_assert(is_same<int, decltype(0)>::value == true, "");
6939 static_assert(is_same<int, decltype(c)>::value == false, "");
6940 static_assert(is_same<int, decltype(v)>::value == false, "");
6941 auto ac = c;
6942 auto av = v;
6943 auto sumi = ac + av + 'x';
6944 auto sumf = ac + av + 1.0;
6945 static_assert(is_same<int, decltype(ac)>::value == true, "");
6946 static_assert(is_same<int, decltype(av)>::value == true, "");
6947 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6948 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6949 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6950 return (sumf > 0.0) ? sumi : add(c, v);
6955 namespace test_noexcept
6958 int f() { return 0; }
6959 int g() noexcept { return 0; }
6961 static_assert(noexcept(f()) == false, "");
6962 static_assert(noexcept(g()) == true, "");
6966 namespace test_constexpr
6969 template < typename CharT >
6970 unsigned long constexpr
6971 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6973 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6976 template < typename CharT >
6977 unsigned long constexpr
6978 strlen_c(const CharT *const s) noexcept
6980 return strlen_c_r(s, 0UL);
6983 static_assert(strlen_c("") == 0UL, "");
6984 static_assert(strlen_c("1") == 1UL, "");
6985 static_assert(strlen_c("example") == 7UL, "");
6986 static_assert(strlen_c("another\0example") == 7UL, "");
6990 namespace test_rvalue_references
6993 template < int N >
6994 struct answer
6996 static constexpr int value = N;
6999 answer<1> f(int&) { return answer<1>(); }
7000 answer<2> f(const int&) { return answer<2>(); }
7001 answer<3> f(int&&) { return answer<3>(); }
7003 void
7004 test()
7006 int i = 0;
7007 const int c = 0;
7008 static_assert(decltype(f(i))::value == 1, "");
7009 static_assert(decltype(f(c))::value == 2, "");
7010 static_assert(decltype(f(0))::value == 3, "");
7015 namespace test_uniform_initialization
7018 struct test
7020 static const int zero {};
7021 static const int one {1};
7024 static_assert(test::zero == 0, "");
7025 static_assert(test::one == 1, "");
7029 namespace test_lambdas
7032 void
7033 test1()
7035 auto lambda1 = [](){};
7036 auto lambda2 = lambda1;
7037 lambda1();
7038 lambda2();
7042 test2()
7044 auto a = [](int i, int j){ return i + j; }(1, 2);
7045 auto b = []() -> int { return '0'; }();
7046 auto c = [=](){ return a + b; }();
7047 auto d = [&](){ return c; }();
7048 auto e = [a, &b](int x) mutable {
7049 const auto identity = [](int y){ return y; };
7050 for (auto i = 0; i < a; ++i)
7051 a += b--;
7052 return x + identity(a + b);
7053 }(0);
7054 return a + b + c + d + e;
7058 test3()
7060 const auto nullary = [](){ return 0; };
7061 const auto unary = [](int x){ return x; };
7062 using nullary_t = decltype(nullary);
7063 using unary_t = decltype(unary);
7064 const auto higher1st = [](nullary_t f){ return f(); };
7065 const auto higher2nd = [unary](nullary_t f1){
7066 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7068 return higher1st(nullary) + higher2nd(nullary)(unary);
7073 namespace test_variadic_templates
7076 template <int...>
7077 struct sum;
7079 template <int N0, int... N1toN>
7080 struct sum<N0, N1toN...>
7082 static constexpr auto value = N0 + sum<N1toN...>::value;
7085 template <>
7086 struct sum<>
7088 static constexpr auto value = 0;
7091 static_assert(sum<>::value == 0, "");
7092 static_assert(sum<1>::value == 1, "");
7093 static_assert(sum<23>::value == 23, "");
7094 static_assert(sum<1, 2>::value == 3, "");
7095 static_assert(sum<5, 5, 11>::value == 21, "");
7096 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7100 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7101 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7102 // because of this.
7103 namespace test_template_alias_sfinae
7106 struct foo {};
7108 template<typename T>
7109 using member = typename T::member_type;
7111 template<typename T>
7112 void func(...) {}
7114 template<typename T>
7115 void func(member<T>*) {}
7117 void test();
7119 void test() { func<foo>(0); }
7123 } // namespace cxx11
7125 #endif // __cplusplus >= 201103L
7130 // If the compiler admits that it is not ready for C++14, why torture it?
7131 // Hopefully, this will speed up the test.
7133 #ifndef __cplusplus
7135 #error "This is not a C++ compiler"
7137 #elif __cplusplus < 201402L
7139 #error "This is not a C++14 compiler"
7141 #else
7143 namespace cxx14
7146 namespace test_polymorphic_lambdas
7150 test()
7152 const auto lambda = [](auto&&... args){
7153 const auto istiny = [](auto x){
7154 return (sizeof(x) == 1UL) ? 1 : 0;
7156 const int aretiny[] = { istiny(args)... };
7157 return aretiny[0];
7159 return lambda(1, 1L, 1.0f, '1');
7164 namespace test_binary_literals
7167 constexpr auto ivii = 0b0000000000101010;
7168 static_assert(ivii == 42, "wrong value");
7172 namespace test_generalized_constexpr
7175 template < typename CharT >
7176 constexpr unsigned long
7177 strlen_c(const CharT *const s) noexcept
7179 auto length = 0UL;
7180 for (auto p = s; *p; ++p)
7181 ++length;
7182 return length;
7185 static_assert(strlen_c("") == 0UL, "");
7186 static_assert(strlen_c("x") == 1UL, "");
7187 static_assert(strlen_c("test") == 4UL, "");
7188 static_assert(strlen_c("another\0test") == 7UL, "");
7192 namespace test_lambda_init_capture
7196 test()
7198 auto x = 0;
7199 const auto lambda1 = [a = x](int b){ return a + b; };
7200 const auto lambda2 = [a = lambda1(x)](){ return a; };
7201 return lambda2();
7206 namespace test_digit_separators
7209 constexpr auto ten_million = 100'000'000;
7210 static_assert(ten_million == 100000000, "");
7214 namespace test_return_type_deduction
7217 auto f(int& x) { return x; }
7218 decltype(auto) g(int& x) { return x; }
7220 template < typename T1, typename T2 >
7221 struct is_same
7223 static constexpr auto value = false;
7226 template < typename T >
7227 struct is_same<T, T>
7229 static constexpr auto value = true;
7233 test()
7235 auto x = 0;
7236 static_assert(is_same<int, decltype(f(x))>::value, "");
7237 static_assert(is_same<int&, decltype(g(x))>::value, "");
7238 return x;
7243 } // namespace cxx14
7245 #endif // __cplusplus >= 201402L
7249 _ACEOF
7250 if ac_fn_cxx_try_compile "$LINENO"; then :
7251 eval $cachevar=yes
7252 else
7253 eval $cachevar=no
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 CXX="$ac_save_CXX"
7258 eval ac_res=\$$cachevar
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7260 $as_echo "$ac_res" >&6; }
7261 if eval test x\$$cachevar = xyes; then
7262 CXX="$CXX $switch"
7263 if test -n "$CXXCPP" ; then
7264 CXXCPP="$CXXCPP $switch"
7266 ac_success=yes
7267 break
7269 done
7270 if test x$ac_success = xyes; then
7271 break
7273 done
7276 ac_ext=c
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7283 if test x$ac_success = xno; then
7284 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
7287 if test x$ac_success = xno; then
7288 HAVE_CXX14=0
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
7290 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
7291 else
7292 HAVE_CXX14=1
7294 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7300 if test "${build}" != "${host}"; then
7301 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
7302 ac_ext=cpp
7303 ac_cpp='$CXXCPP $CPPFLAGS'
7304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7307 ac_success=no
7308 ax_cv_cxx_compile_cxx14_orig_cxx="$CXX"
7309 ax_cv_cxx_compile_cxx14_orig_cxxflags="$CXXFLAGS"
7310 ax_cv_cxx_compile_cxx14_orig_cppflags="$CPPFLAGS"
7311 CXX="$CXX_FOR_BUILD"
7312 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
7313 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7315 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7316 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7323 // If the compiler admits that it is not ready for C++11, why torture it?
7324 // Hopefully, this will speed up the test.
7326 #ifndef __cplusplus
7328 #error "This is not a C++ compiler"
7330 #elif __cplusplus < 201103L
7332 #error "This is not a C++11 compiler"
7334 #else
7336 namespace cxx11
7339 namespace test_static_assert
7342 template <typename T>
7343 struct check
7345 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7350 namespace test_final_override
7353 struct Base
7355 virtual ~Base() {}
7356 virtual void f() {}
7359 struct Derived : public Base
7361 virtual ~Derived() override {}
7362 virtual void f() override {}
7367 namespace test_double_right_angle_brackets
7370 template < typename T >
7371 struct check {};
7373 typedef check<void> single_type;
7374 typedef check<check<void>> double_type;
7375 typedef check<check<check<void>>> triple_type;
7376 typedef check<check<check<check<void>>>> quadruple_type;
7380 namespace test_decltype
7386 int a = 1;
7387 decltype(a) b = 2;
7388 return a + b;
7393 namespace test_type_deduction
7396 template < typename T1, typename T2 >
7397 struct is_same
7399 static const bool value = false;
7402 template < typename T >
7403 struct is_same<T, T>
7405 static const bool value = true;
7408 template < typename T1, typename T2 >
7409 auto
7410 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7412 return a1 + a2;
7416 test(const int c, volatile int v)
7418 static_assert(is_same<int, decltype(0)>::value == true, "");
7419 static_assert(is_same<int, decltype(c)>::value == false, "");
7420 static_assert(is_same<int, decltype(v)>::value == false, "");
7421 auto ac = c;
7422 auto av = v;
7423 auto sumi = ac + av + 'x';
7424 auto sumf = ac + av + 1.0;
7425 static_assert(is_same<int, decltype(ac)>::value == true, "");
7426 static_assert(is_same<int, decltype(av)>::value == true, "");
7427 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7428 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7429 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7430 return (sumf > 0.0) ? sumi : add(c, v);
7435 namespace test_noexcept
7438 int f() { return 0; }
7439 int g() noexcept { return 0; }
7441 static_assert(noexcept(f()) == false, "");
7442 static_assert(noexcept(g()) == true, "");
7446 namespace test_constexpr
7449 template < typename CharT >
7450 unsigned long constexpr
7451 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7453 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7456 template < typename CharT >
7457 unsigned long constexpr
7458 strlen_c(const CharT *const s) noexcept
7460 return strlen_c_r(s, 0UL);
7463 static_assert(strlen_c("") == 0UL, "");
7464 static_assert(strlen_c("1") == 1UL, "");
7465 static_assert(strlen_c("example") == 7UL, "");
7466 static_assert(strlen_c("another\0example") == 7UL, "");
7470 namespace test_rvalue_references
7473 template < int N >
7474 struct answer
7476 static constexpr int value = N;
7479 answer<1> f(int&) { return answer<1>(); }
7480 answer<2> f(const int&) { return answer<2>(); }
7481 answer<3> f(int&&) { return answer<3>(); }
7483 void
7484 test()
7486 int i = 0;
7487 const int c = 0;
7488 static_assert(decltype(f(i))::value == 1, "");
7489 static_assert(decltype(f(c))::value == 2, "");
7490 static_assert(decltype(f(0))::value == 3, "");
7495 namespace test_uniform_initialization
7498 struct test
7500 static const int zero {};
7501 static const int one {1};
7504 static_assert(test::zero == 0, "");
7505 static_assert(test::one == 1, "");
7509 namespace test_lambdas
7512 void
7513 test1()
7515 auto lambda1 = [](){};
7516 auto lambda2 = lambda1;
7517 lambda1();
7518 lambda2();
7522 test2()
7524 auto a = [](int i, int j){ return i + j; }(1, 2);
7525 auto b = []() -> int { return '0'; }();
7526 auto c = [=](){ return a + b; }();
7527 auto d = [&](){ return c; }();
7528 auto e = [a, &b](int x) mutable {
7529 const auto identity = [](int y){ return y; };
7530 for (auto i = 0; i < a; ++i)
7531 a += b--;
7532 return x + identity(a + b);
7533 }(0);
7534 return a + b + c + d + e;
7538 test3()
7540 const auto nullary = [](){ return 0; };
7541 const auto unary = [](int x){ return x; };
7542 using nullary_t = decltype(nullary);
7543 using unary_t = decltype(unary);
7544 const auto higher1st = [](nullary_t f){ return f(); };
7545 const auto higher2nd = [unary](nullary_t f1){
7546 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7548 return higher1st(nullary) + higher2nd(nullary)(unary);
7553 namespace test_variadic_templates
7556 template <int...>
7557 struct sum;
7559 template <int N0, int... N1toN>
7560 struct sum<N0, N1toN...>
7562 static constexpr auto value = N0 + sum<N1toN...>::value;
7565 template <>
7566 struct sum<>
7568 static constexpr auto value = 0;
7571 static_assert(sum<>::value == 0, "");
7572 static_assert(sum<1>::value == 1, "");
7573 static_assert(sum<23>::value == 23, "");
7574 static_assert(sum<1, 2>::value == 3, "");
7575 static_assert(sum<5, 5, 11>::value == 21, "");
7576 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7580 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7581 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7582 // because of this.
7583 namespace test_template_alias_sfinae
7586 struct foo {};
7588 template<typename T>
7589 using member = typename T::member_type;
7591 template<typename T>
7592 void func(...) {}
7594 template<typename T>
7595 void func(member<T>*) {}
7597 void test();
7599 void test() { func<foo>(0); }
7603 } // namespace cxx11
7605 #endif // __cplusplus >= 201103L
7610 // If the compiler admits that it is not ready for C++14, why torture it?
7611 // Hopefully, this will speed up the test.
7613 #ifndef __cplusplus
7615 #error "This is not a C++ compiler"
7617 #elif __cplusplus < 201402L
7619 #error "This is not a C++14 compiler"
7621 #else
7623 namespace cxx14
7626 namespace test_polymorphic_lambdas
7630 test()
7632 const auto lambda = [](auto&&... args){
7633 const auto istiny = [](auto x){
7634 return (sizeof(x) == 1UL) ? 1 : 0;
7636 const int aretiny[] = { istiny(args)... };
7637 return aretiny[0];
7639 return lambda(1, 1L, 1.0f, '1');
7644 namespace test_binary_literals
7647 constexpr auto ivii = 0b0000000000101010;
7648 static_assert(ivii == 42, "wrong value");
7652 namespace test_generalized_constexpr
7655 template < typename CharT >
7656 constexpr unsigned long
7657 strlen_c(const CharT *const s) noexcept
7659 auto length = 0UL;
7660 for (auto p = s; *p; ++p)
7661 ++length;
7662 return length;
7665 static_assert(strlen_c("") == 0UL, "");
7666 static_assert(strlen_c("x") == 1UL, "");
7667 static_assert(strlen_c("test") == 4UL, "");
7668 static_assert(strlen_c("another\0test") == 7UL, "");
7672 namespace test_lambda_init_capture
7676 test()
7678 auto x = 0;
7679 const auto lambda1 = [a = x](int b){ return a + b; };
7680 const auto lambda2 = [a = lambda1(x)](){ return a; };
7681 return lambda2();
7686 namespace test_digit_separators
7689 constexpr auto ten_million = 100'000'000;
7690 static_assert(ten_million == 100000000, "");
7694 namespace test_return_type_deduction
7697 auto f(int& x) { return x; }
7698 decltype(auto) g(int& x) { return x; }
7700 template < typename T1, typename T2 >
7701 struct is_same
7703 static constexpr auto value = false;
7706 template < typename T >
7707 struct is_same<T, T>
7709 static constexpr auto value = true;
7713 test()
7715 auto x = 0;
7716 static_assert(is_same<int, decltype(f(x))>::value, "");
7717 static_assert(is_same<int&, decltype(g(x))>::value, "");
7718 return x;
7723 } // namespace cxx14
7725 #endif // __cplusplus >= 201402L
7729 _ACEOF
7730 if ac_fn_cxx_try_compile "$LINENO"; then :
7731 ax_cv_cxx_compile_cxx14_FOR_BUILD=yes
7732 else
7733 ax_cv_cxx_compile_cxx14_FOR_BUILD=no
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7738 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7739 if test x$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes; then
7740 ac_success=yes
7743 if test x$ac_success = xno; then
7744 for alternative in ${ax_cxx_compile_alternatives}; do
7745 switch="-std=gnu++${alternative}"
7746 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7748 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7749 if eval \${$cachevar+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 ac_save_CXX="$CXX"
7753 CXX="$CXX $switch"
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7758 // If the compiler admits that it is not ready for C++11, why torture it?
7759 // Hopefully, this will speed up the test.
7761 #ifndef __cplusplus
7763 #error "This is not a C++ compiler"
7765 #elif __cplusplus < 201103L
7767 #error "This is not a C++11 compiler"
7769 #else
7771 namespace cxx11
7774 namespace test_static_assert
7777 template <typename T>
7778 struct check
7780 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7785 namespace test_final_override
7788 struct Base
7790 virtual ~Base() {}
7791 virtual void f() {}
7794 struct Derived : public Base
7796 virtual ~Derived() override {}
7797 virtual void f() override {}
7802 namespace test_double_right_angle_brackets
7805 template < typename T >
7806 struct check {};
7808 typedef check<void> single_type;
7809 typedef check<check<void>> double_type;
7810 typedef check<check<check<void>>> triple_type;
7811 typedef check<check<check<check<void>>>> quadruple_type;
7815 namespace test_decltype
7821 int a = 1;
7822 decltype(a) b = 2;
7823 return a + b;
7828 namespace test_type_deduction
7831 template < typename T1, typename T2 >
7832 struct is_same
7834 static const bool value = false;
7837 template < typename T >
7838 struct is_same<T, T>
7840 static const bool value = true;
7843 template < typename T1, typename T2 >
7844 auto
7845 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7847 return a1 + a2;
7851 test(const int c, volatile int v)
7853 static_assert(is_same<int, decltype(0)>::value == true, "");
7854 static_assert(is_same<int, decltype(c)>::value == false, "");
7855 static_assert(is_same<int, decltype(v)>::value == false, "");
7856 auto ac = c;
7857 auto av = v;
7858 auto sumi = ac + av + 'x';
7859 auto sumf = ac + av + 1.0;
7860 static_assert(is_same<int, decltype(ac)>::value == true, "");
7861 static_assert(is_same<int, decltype(av)>::value == true, "");
7862 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7863 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7864 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7865 return (sumf > 0.0) ? sumi : add(c, v);
7870 namespace test_noexcept
7873 int f() { return 0; }
7874 int g() noexcept { return 0; }
7876 static_assert(noexcept(f()) == false, "");
7877 static_assert(noexcept(g()) == true, "");
7881 namespace test_constexpr
7884 template < typename CharT >
7885 unsigned long constexpr
7886 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7888 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7891 template < typename CharT >
7892 unsigned long constexpr
7893 strlen_c(const CharT *const s) noexcept
7895 return strlen_c_r(s, 0UL);
7898 static_assert(strlen_c("") == 0UL, "");
7899 static_assert(strlen_c("1") == 1UL, "");
7900 static_assert(strlen_c("example") == 7UL, "");
7901 static_assert(strlen_c("another\0example") == 7UL, "");
7905 namespace test_rvalue_references
7908 template < int N >
7909 struct answer
7911 static constexpr int value = N;
7914 answer<1> f(int&) { return answer<1>(); }
7915 answer<2> f(const int&) { return answer<2>(); }
7916 answer<3> f(int&&) { return answer<3>(); }
7918 void
7919 test()
7921 int i = 0;
7922 const int c = 0;
7923 static_assert(decltype(f(i))::value == 1, "");
7924 static_assert(decltype(f(c))::value == 2, "");
7925 static_assert(decltype(f(0))::value == 3, "");
7930 namespace test_uniform_initialization
7933 struct test
7935 static const int zero {};
7936 static const int one {1};
7939 static_assert(test::zero == 0, "");
7940 static_assert(test::one == 1, "");
7944 namespace test_lambdas
7947 void
7948 test1()
7950 auto lambda1 = [](){};
7951 auto lambda2 = lambda1;
7952 lambda1();
7953 lambda2();
7957 test2()
7959 auto a = [](int i, int j){ return i + j; }(1, 2);
7960 auto b = []() -> int { return '0'; }();
7961 auto c = [=](){ return a + b; }();
7962 auto d = [&](){ return c; }();
7963 auto e = [a, &b](int x) mutable {
7964 const auto identity = [](int y){ return y; };
7965 for (auto i = 0; i < a; ++i)
7966 a += b--;
7967 return x + identity(a + b);
7968 }(0);
7969 return a + b + c + d + e;
7973 test3()
7975 const auto nullary = [](){ return 0; };
7976 const auto unary = [](int x){ return x; };
7977 using nullary_t = decltype(nullary);
7978 using unary_t = decltype(unary);
7979 const auto higher1st = [](nullary_t f){ return f(); };
7980 const auto higher2nd = [unary](nullary_t f1){
7981 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7983 return higher1st(nullary) + higher2nd(nullary)(unary);
7988 namespace test_variadic_templates
7991 template <int...>
7992 struct sum;
7994 template <int N0, int... N1toN>
7995 struct sum<N0, N1toN...>
7997 static constexpr auto value = N0 + sum<N1toN...>::value;
8000 template <>
8001 struct sum<>
8003 static constexpr auto value = 0;
8006 static_assert(sum<>::value == 0, "");
8007 static_assert(sum<1>::value == 1, "");
8008 static_assert(sum<23>::value == 23, "");
8009 static_assert(sum<1, 2>::value == 3, "");
8010 static_assert(sum<5, 5, 11>::value == 21, "");
8011 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8015 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8016 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8017 // because of this.
8018 namespace test_template_alias_sfinae
8021 struct foo {};
8023 template<typename T>
8024 using member = typename T::member_type;
8026 template<typename T>
8027 void func(...) {}
8029 template<typename T>
8030 void func(member<T>*) {}
8032 void test();
8034 void test() { func<foo>(0); }
8038 } // namespace cxx11
8040 #endif // __cplusplus >= 201103L
8045 // If the compiler admits that it is not ready for C++14, why torture it?
8046 // Hopefully, this will speed up the test.
8048 #ifndef __cplusplus
8050 #error "This is not a C++ compiler"
8052 #elif __cplusplus < 201402L
8054 #error "This is not a C++14 compiler"
8056 #else
8058 namespace cxx14
8061 namespace test_polymorphic_lambdas
8065 test()
8067 const auto lambda = [](auto&&... args){
8068 const auto istiny = [](auto x){
8069 return (sizeof(x) == 1UL) ? 1 : 0;
8071 const int aretiny[] = { istiny(args)... };
8072 return aretiny[0];
8074 return lambda(1, 1L, 1.0f, '1');
8079 namespace test_binary_literals
8082 constexpr auto ivii = 0b0000000000101010;
8083 static_assert(ivii == 42, "wrong value");
8087 namespace test_generalized_constexpr
8090 template < typename CharT >
8091 constexpr unsigned long
8092 strlen_c(const CharT *const s) noexcept
8094 auto length = 0UL;
8095 for (auto p = s; *p; ++p)
8096 ++length;
8097 return length;
8100 static_assert(strlen_c("") == 0UL, "");
8101 static_assert(strlen_c("x") == 1UL, "");
8102 static_assert(strlen_c("test") == 4UL, "");
8103 static_assert(strlen_c("another\0test") == 7UL, "");
8107 namespace test_lambda_init_capture
8111 test()
8113 auto x = 0;
8114 const auto lambda1 = [a = x](int b){ return a + b; };
8115 const auto lambda2 = [a = lambda1(x)](){ return a; };
8116 return lambda2();
8121 namespace test_digit_separators
8124 constexpr auto ten_million = 100'000'000;
8125 static_assert(ten_million == 100000000, "");
8129 namespace test_return_type_deduction
8132 auto f(int& x) { return x; }
8133 decltype(auto) g(int& x) { return x; }
8135 template < typename T1, typename T2 >
8136 struct is_same
8138 static constexpr auto value = false;
8141 template < typename T >
8142 struct is_same<T, T>
8144 static constexpr auto value = true;
8148 test()
8150 auto x = 0;
8151 static_assert(is_same<int, decltype(f(x))>::value, "");
8152 static_assert(is_same<int&, decltype(g(x))>::value, "");
8153 return x;
8158 } // namespace cxx14
8160 #endif // __cplusplus >= 201402L
8164 _ACEOF
8165 if ac_fn_cxx_try_compile "$LINENO"; then :
8166 eval $cachevar=yes
8167 else
8168 eval $cachevar=no
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 CXX="$ac_save_CXX"
8173 eval ac_res=\$$cachevar
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8175 $as_echo "$ac_res" >&6; }
8176 if eval test x\$$cachevar = xyes; then
8177 CXX="$CXX $switch"
8178 if test -n "$CXXCPP" ; then
8179 CXXCPP="$CXXCPP $switch"
8181 ac_success=yes
8182 break
8184 done
8187 if test x$ac_success = xno; then
8188 for alternative in ${ax_cxx_compile_alternatives}; do
8189 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8190 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
8192 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
8193 if eval \${$cachevar+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 ac_save_CXX="$CXX"
8197 CXX="$CXX $switch"
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8202 // If the compiler admits that it is not ready for C++11, why torture it?
8203 // Hopefully, this will speed up the test.
8205 #ifndef __cplusplus
8207 #error "This is not a C++ compiler"
8209 #elif __cplusplus < 201103L
8211 #error "This is not a C++11 compiler"
8213 #else
8215 namespace cxx11
8218 namespace test_static_assert
8221 template <typename T>
8222 struct check
8224 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8229 namespace test_final_override
8232 struct Base
8234 virtual ~Base() {}
8235 virtual void f() {}
8238 struct Derived : public Base
8240 virtual ~Derived() override {}
8241 virtual void f() override {}
8246 namespace test_double_right_angle_brackets
8249 template < typename T >
8250 struct check {};
8252 typedef check<void> single_type;
8253 typedef check<check<void>> double_type;
8254 typedef check<check<check<void>>> triple_type;
8255 typedef check<check<check<check<void>>>> quadruple_type;
8259 namespace test_decltype
8265 int a = 1;
8266 decltype(a) b = 2;
8267 return a + b;
8272 namespace test_type_deduction
8275 template < typename T1, typename T2 >
8276 struct is_same
8278 static const bool value = false;
8281 template < typename T >
8282 struct is_same<T, T>
8284 static const bool value = true;
8287 template < typename T1, typename T2 >
8288 auto
8289 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8291 return a1 + a2;
8295 test(const int c, volatile int v)
8297 static_assert(is_same<int, decltype(0)>::value == true, "");
8298 static_assert(is_same<int, decltype(c)>::value == false, "");
8299 static_assert(is_same<int, decltype(v)>::value == false, "");
8300 auto ac = c;
8301 auto av = v;
8302 auto sumi = ac + av + 'x';
8303 auto sumf = ac + av + 1.0;
8304 static_assert(is_same<int, decltype(ac)>::value == true, "");
8305 static_assert(is_same<int, decltype(av)>::value == true, "");
8306 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8307 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8308 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8309 return (sumf > 0.0) ? sumi : add(c, v);
8314 namespace test_noexcept
8317 int f() { return 0; }
8318 int g() noexcept { return 0; }
8320 static_assert(noexcept(f()) == false, "");
8321 static_assert(noexcept(g()) == true, "");
8325 namespace test_constexpr
8328 template < typename CharT >
8329 unsigned long constexpr
8330 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8332 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8335 template < typename CharT >
8336 unsigned long constexpr
8337 strlen_c(const CharT *const s) noexcept
8339 return strlen_c_r(s, 0UL);
8342 static_assert(strlen_c("") == 0UL, "");
8343 static_assert(strlen_c("1") == 1UL, "");
8344 static_assert(strlen_c("example") == 7UL, "");
8345 static_assert(strlen_c("another\0example") == 7UL, "");
8349 namespace test_rvalue_references
8352 template < int N >
8353 struct answer
8355 static constexpr int value = N;
8358 answer<1> f(int&) { return answer<1>(); }
8359 answer<2> f(const int&) { return answer<2>(); }
8360 answer<3> f(int&&) { return answer<3>(); }
8362 void
8363 test()
8365 int i = 0;
8366 const int c = 0;
8367 static_assert(decltype(f(i))::value == 1, "");
8368 static_assert(decltype(f(c))::value == 2, "");
8369 static_assert(decltype(f(0))::value == 3, "");
8374 namespace test_uniform_initialization
8377 struct test
8379 static const int zero {};
8380 static const int one {1};
8383 static_assert(test::zero == 0, "");
8384 static_assert(test::one == 1, "");
8388 namespace test_lambdas
8391 void
8392 test1()
8394 auto lambda1 = [](){};
8395 auto lambda2 = lambda1;
8396 lambda1();
8397 lambda2();
8401 test2()
8403 auto a = [](int i, int j){ return i + j; }(1, 2);
8404 auto b = []() -> int { return '0'; }();
8405 auto c = [=](){ return a + b; }();
8406 auto d = [&](){ return c; }();
8407 auto e = [a, &b](int x) mutable {
8408 const auto identity = [](int y){ return y; };
8409 for (auto i = 0; i < a; ++i)
8410 a += b--;
8411 return x + identity(a + b);
8412 }(0);
8413 return a + b + c + d + e;
8417 test3()
8419 const auto nullary = [](){ return 0; };
8420 const auto unary = [](int x){ return x; };
8421 using nullary_t = decltype(nullary);
8422 using unary_t = decltype(unary);
8423 const auto higher1st = [](nullary_t f){ return f(); };
8424 const auto higher2nd = [unary](nullary_t f1){
8425 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8427 return higher1st(nullary) + higher2nd(nullary)(unary);
8432 namespace test_variadic_templates
8435 template <int...>
8436 struct sum;
8438 template <int N0, int... N1toN>
8439 struct sum<N0, N1toN...>
8441 static constexpr auto value = N0 + sum<N1toN...>::value;
8444 template <>
8445 struct sum<>
8447 static constexpr auto value = 0;
8450 static_assert(sum<>::value == 0, "");
8451 static_assert(sum<1>::value == 1, "");
8452 static_assert(sum<23>::value == 23, "");
8453 static_assert(sum<1, 2>::value == 3, "");
8454 static_assert(sum<5, 5, 11>::value == 21, "");
8455 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8459 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8460 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8461 // because of this.
8462 namespace test_template_alias_sfinae
8465 struct foo {};
8467 template<typename T>
8468 using member = typename T::member_type;
8470 template<typename T>
8471 void func(...) {}
8473 template<typename T>
8474 void func(member<T>*) {}
8476 void test();
8478 void test() { func<foo>(0); }
8482 } // namespace cxx11
8484 #endif // __cplusplus >= 201103L
8489 // If the compiler admits that it is not ready for C++14, why torture it?
8490 // Hopefully, this will speed up the test.
8492 #ifndef __cplusplus
8494 #error "This is not a C++ compiler"
8496 #elif __cplusplus < 201402L
8498 #error "This is not a C++14 compiler"
8500 #else
8502 namespace cxx14
8505 namespace test_polymorphic_lambdas
8509 test()
8511 const auto lambda = [](auto&&... args){
8512 const auto istiny = [](auto x){
8513 return (sizeof(x) == 1UL) ? 1 : 0;
8515 const int aretiny[] = { istiny(args)... };
8516 return aretiny[0];
8518 return lambda(1, 1L, 1.0f, '1');
8523 namespace test_binary_literals
8526 constexpr auto ivii = 0b0000000000101010;
8527 static_assert(ivii == 42, "wrong value");
8531 namespace test_generalized_constexpr
8534 template < typename CharT >
8535 constexpr unsigned long
8536 strlen_c(const CharT *const s) noexcept
8538 auto length = 0UL;
8539 for (auto p = s; *p; ++p)
8540 ++length;
8541 return length;
8544 static_assert(strlen_c("") == 0UL, "");
8545 static_assert(strlen_c("x") == 1UL, "");
8546 static_assert(strlen_c("test") == 4UL, "");
8547 static_assert(strlen_c("another\0test") == 7UL, "");
8551 namespace test_lambda_init_capture
8555 test()
8557 auto x = 0;
8558 const auto lambda1 = [a = x](int b){ return a + b; };
8559 const auto lambda2 = [a = lambda1(x)](){ return a; };
8560 return lambda2();
8565 namespace test_digit_separators
8568 constexpr auto ten_million = 100'000'000;
8569 static_assert(ten_million == 100000000, "");
8573 namespace test_return_type_deduction
8576 auto f(int& x) { return x; }
8577 decltype(auto) g(int& x) { return x; }
8579 template < typename T1, typename T2 >
8580 struct is_same
8582 static constexpr auto value = false;
8585 template < typename T >
8586 struct is_same<T, T>
8588 static constexpr auto value = true;
8592 test()
8594 auto x = 0;
8595 static_assert(is_same<int, decltype(f(x))>::value, "");
8596 static_assert(is_same<int&, decltype(g(x))>::value, "");
8597 return x;
8602 } // namespace cxx14
8604 #endif // __cplusplus >= 201402L
8608 _ACEOF
8609 if ac_fn_cxx_try_compile "$LINENO"; then :
8610 eval $cachevar=yes
8611 else
8612 eval $cachevar=no
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 CXX="$ac_save_CXX"
8617 eval ac_res=\$$cachevar
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8619 $as_echo "$ac_res" >&6; }
8620 if eval test x\$$cachevar = xyes; then
8621 CXX="$CXX $switch"
8622 if test -n "$CXXCPP" ; then
8623 CXXCPP="$CXXCPP $switch"
8625 ac_success=yes
8626 break
8628 done
8629 if test x$ac_success = xyes; then
8630 break
8632 done
8634 CXX_FOR_BUILD="$CXX"
8635 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8636 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8637 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8638 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8639 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8640 ac_ext=c
8641 ac_cpp='$CPP $CPPFLAGS'
8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8646 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8647 if test x$ac_success = xno; then
8648 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
8651 if test x$ac_success = xno; then
8652 HAVE_CXX14_FOR_BUILD=0
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
8654 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
8655 else
8656 HAVE_CXX14_FOR_BUILD=1
8658 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8666 # Check whether --enable-pgo-build was given.
8667 if test "${enable_pgo_build+set}" = set; then :
8668 enableval=$enable_pgo_build; enable_pgo_build=$enableval
8669 else
8670 enable_pgo_build=no
8674 # Issue errors and warnings for invalid/strange PGO build combinations.
8675 case "$have_compiler:$host:$target:$enable_pgo_build" in
8676 *:*:*:no) ;;
8678 # Allow the PGO build only if we aren't building a compiler and
8679 # we are in a native configuration.
8680 no:$build:$build:yes | no:$build:$build:lto) ;;
8682 # Disallow the PGO bootstrap if we are building a compiler.
8683 yes:*:*:yes | yes:*:*:lto)
8684 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8687 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
8689 esac
8691 if test "$enable_pgo_build" != "no"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8693 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8694 old_CFLAGS="$CFLAGS"
8695 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
8696 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 int foo;
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"; then :
8704 else
8705 PGO_BUILD_GEN_CFLAGS=
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 CFLAGS="$old_CFLAGS"
8709 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8712 PGO_BUILD_USE_CFLAGS="-fprofile-use"
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8719 if test "$enable_pgo_build" = "lto"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8721 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8722 old_CFLAGS="$CFLAGS"
8723 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
8724 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 int foo;
8728 _ACEOF
8729 if ac_fn_c_try_compile "$LINENO"; then :
8731 else
8732 PGO_BUILD_LTO_CFLAGS=
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 CFLAGS="$old_CFLAGS"
8736 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8738 $as_echo "yes" >&6; }
8739 else
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8743 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8751 # Used for setting $lt_cv_objdir
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8753 $as_echo_n "checking for objdir... " >&6; }
8754 if ${lt_cv_objdir+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 rm -f .libs 2>/dev/null
8758 mkdir .libs 2>/dev/null
8759 if test -d .libs; then
8760 lt_cv_objdir=.libs
8761 else
8762 # MS-DOS does not allow filenames that begin with a dot.
8763 lt_cv_objdir=_libs
8765 rmdir .libs 2>/dev/null
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8768 $as_echo "$lt_cv_objdir" >&6; }
8769 objdir=$lt_cv_objdir
8775 cat >>confdefs.h <<_ACEOF
8776 #define LT_OBJDIR "$lt_cv_objdir/"
8777 _ACEOF
8781 # Check for GMP, MPFR and MPC
8782 require_gmp=no
8783 require_mpc=no
8784 if test -d ${srcdir}/gcc ; then
8785 require_gmp=yes
8786 require_mpc=yes
8788 if test -d ${srcdir}/gdb ; then
8789 if test "x$enable_gdb" != xno; then
8790 require_gmp=yes
8794 gmplibs="-lmpfr -lgmp"
8795 if test x"$require_mpc" = "xyes" ; then
8796 gmplibs="-lmpc $gmplibs"
8798 gmpinc=
8799 have_gmp=no
8801 # Specify a location for mpc
8802 # check for this first so it ends up on the link line before mpfr.
8804 # Check whether --with-mpc was given.
8805 if test "${with_mpc+set}" = set; then :
8806 withval=$with_mpc;
8810 # Check whether --with-mpc-include was given.
8811 if test "${with_mpc_include+set}" = set; then :
8812 withval=$with_mpc_include;
8816 # Check whether --with-mpc-lib was given.
8817 if test "${with_mpc_lib+set}" = set; then :
8818 withval=$with_mpc_lib;
8822 if test "x$with_mpc" != x; then
8823 gmplibs="-L$with_mpc/lib $gmplibs"
8824 gmpinc="-I$with_mpc/include $gmpinc"
8826 if test "x$with_mpc_include" != x; then
8827 gmpinc="-I$with_mpc_include $gmpinc"
8829 if test "x$with_mpc_lib" != x; then
8830 gmplibs="-L$with_mpc_lib $gmplibs"
8832 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8833 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8834 gmpinc='-I$$s/mpc/src '"$gmpinc"
8835 # Do not test the mpc version. Assume that it is sufficient, since
8836 # it is in the source tree, and the library has not been built yet
8837 # but it would be included on the link line in the version check below
8838 # hence making the test fail.
8839 have_gmp=yes
8842 # Specify a location for mpfr
8843 # check for this first so it ends up on the link line before gmp.
8845 # Check whether --with-mpfr was given.
8846 if test "${with_mpfr+set}" = set; then :
8847 withval=$with_mpfr;
8851 # Check whether --with-mpfr-include was given.
8852 if test "${with_mpfr_include+set}" = set; then :
8853 withval=$with_mpfr_include;
8857 # Check whether --with-mpfr-lib was given.
8858 if test "${with_mpfr_lib+set}" = set; then :
8859 withval=$with_mpfr_lib;
8863 if test "x$with_mpfr" != x; then
8864 gmplibs="-L$with_mpfr/lib $gmplibs"
8865 gmpinc="-I$with_mpfr/include $gmpinc"
8867 if test "x$with_mpfr_include" != x; then
8868 gmpinc="-I$with_mpfr_include $gmpinc"
8870 if test "x$with_mpfr_lib" != x; then
8871 gmplibs="-L$with_mpfr_lib $gmplibs"
8873 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8874 # MPFR v3.1.0 moved the sources into a src sub-directory.
8875 if ! test -d ${srcdir}/mpfr/src; then
8876 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8878 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8879 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8880 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8881 # Do not test the mpfr version. Assume that it is sufficient, since
8882 # it is in the source tree, and the library has not been built yet
8883 # but it would be included on the link line in the version check below
8884 # hence making the test fail.
8885 have_gmp=yes
8888 # Specify a location for gmp
8890 # Check whether --with-gmp was given.
8891 if test "${with_gmp+set}" = set; then :
8892 withval=$with_gmp;
8896 # Check whether --with-gmp-include was given.
8897 if test "${with_gmp_include+set}" = set; then :
8898 withval=$with_gmp_include;
8902 # Check whether --with-gmp-lib was given.
8903 if test "${with_gmp_lib+set}" = set; then :
8904 withval=$with_gmp_lib;
8909 if test "x$with_gmp" != x; then
8910 gmplibs="-L$with_gmp/lib $gmplibs"
8911 gmpinc="-I$with_gmp/include $gmpinc"
8913 if test "x$with_gmp_include" != x; then
8914 gmpinc="-I$with_gmp_include $gmpinc"
8916 if test "x$with_gmp_lib" != x; then
8917 gmplibs="-L$with_gmp_lib $gmplibs"
8919 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8920 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8921 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8922 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8923 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8924 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8925 # Do not test the gmp version. Assume that it is sufficient, since
8926 # it is in the source tree, and the library has not been built yet
8927 # but it would be included on the link line in the version check below
8928 # hence making the test fail.
8929 have_gmp=yes
8932 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8933 have_gmp=yes
8934 saved_CFLAGS="$CFLAGS"
8935 CFLAGS="$CFLAGS $gmpinc"
8936 # Check for the recommended and required versions of GMP.
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8938 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8941 #include "gmp.h"
8943 main ()
8946 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8947 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8948 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8949 choke me
8950 #endif
8953 return 0;
8955 _ACEOF
8956 if ac_fn_c_try_compile "$LINENO"; then :
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 #include <gmp.h>
8961 main ()
8964 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8965 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8966 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8967 choke me
8968 #endif
8971 return 0;
8973 _ACEOF
8974 if ac_fn_c_try_compile "$LINENO"; then :
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8976 $as_echo "yes" >&6; }
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8979 $as_echo "buggy but acceptable" >&6; }
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }; have_gmp=no
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 # If we have GMP, check the MPFR version.
8989 if test x"$have_gmp" = xyes; then
8990 # Check for the recommended and required versions of MPFR.
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8992 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 #include <gmp.h>
8996 #include <mpfr.h>
8998 main ()
9001 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9002 choke me
9003 #endif
9006 return 0;
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 #include <gmp.h>
9013 #include <mpfr.h>
9015 main ()
9018 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9019 choke me
9020 #endif
9023 return 0;
9025 _ACEOF
9026 if ac_fn_c_try_compile "$LINENO"; then :
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9028 $as_echo "yes" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9031 $as_echo "buggy but acceptable" >&6; }
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 else
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }; have_gmp=no
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 # Check for the MPC header version.
9042 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
9043 # Check for the recommended and required versions of MPC.
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9045 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 #include <mpc.h>
9050 main ()
9053 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9054 choke me
9055 #endif
9058 return 0;
9060 _ACEOF
9061 if ac_fn_c_try_compile "$LINENO"; then :
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 #include <mpc.h>
9066 main ()
9069 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9070 choke me
9071 #endif
9074 return 0;
9076 _ACEOF
9077 if ac_fn_c_try_compile "$LINENO"; then :
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9079 $as_echo "yes" >&6; }
9080 else
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9082 $as_echo "buggy but acceptable" >&6; }
9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }; have_gmp=no
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 # Now check the MPFR library.
9093 if test x"$have_gmp" = xyes; then
9094 saved_LIBS="$LIBS"
9095 LIBS="$LIBS $gmplibs"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9097 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9100 #include <mpfr.h>
9102 main ()
9105 mpfr_t n;
9106 mpfr_t x;
9107 int t;
9108 mpfr_init (n);
9109 mpfr_init (x);
9110 mpfr_atan2 (n, n, x, MPFR_RNDN);
9111 mpfr_erfc (n, x, MPFR_RNDN);
9112 mpfr_subnormalize (x, t, MPFR_RNDN);
9113 mpfr_clear(n);
9114 mpfr_clear(x);
9117 return 0;
9119 _ACEOF
9120 if ac_fn_c_try_link "$LINENO"; then :
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9122 $as_echo "yes" >&6; }
9123 else
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }; have_gmp=no
9127 rm -f core conftest.err conftest.$ac_objext \
9128 conftest$ac_exeext conftest.$ac_ext
9129 LIBS="$saved_LIBS"
9132 # Now check the MPC library
9133 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
9134 saved_LIBS="$LIBS"
9135 LIBS="$LIBS $gmplibs"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9137 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 #include <mpc.h>
9142 main ()
9145 mpc_t c;
9146 mpc_init2 (c, 53);
9147 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9148 mpc_cosh (c, c, MPC_RNDNN);
9149 mpc_pow (c, c, c, MPC_RNDNN);
9150 mpc_acosh (c, c, MPC_RNDNN);
9151 mpc_clear (c);
9154 return 0;
9156 _ACEOF
9157 if ac_fn_c_try_link "$LINENO"; then :
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9159 $as_echo "yes" >&6; }
9160 else
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }; have_gmp=no
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LIBS="$saved_LIBS"
9169 CFLAGS="$saved_CFLAGS"
9171 # The library versions listed in the error message below should match
9172 # the HARD-minimums enforced above.
9173 if test x$have_gmp != xyes; then
9174 if test -d ${srcdir}/gcc ; then
9175 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9176 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9177 their locations. Source code for these libraries can be found at
9178 their respective hosting sites as well as at
9179 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9180 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9181 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9182 make sure that you have installed both the libraries and the header
9183 files. They may be located in separate packages." "$LINENO" 5
9184 else
9185 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9186 Try the --with-gmp and/or --with-mpfr options to specify
9187 their locations. If you obtained GMP and/or MPFR from a vendor
9188 distribution package, make sure that you have installed both the libraries
9189 and the header files. They may be located in separate packages." "$LINENO" 5
9194 # Flags needed for both GMP, MPFR and/or MPC.
9202 # Libraries to use for stage1 or when not bootstrapping.
9204 # Check whether --with-stage1-libs was given.
9205 if test "${with_stage1_libs+set}" = set; then :
9206 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9207 stage1_libs=
9208 else
9209 stage1_libs=$withval
9211 else
9212 stage1_libs=
9217 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9218 # default is yes if gcc is being built; no otherwise. The reason for
9219 # this default is that gdb is sometimes linked against GNU Source
9220 # Highlight, which is a shared library that uses C++ exceptions. In
9221 # this case, -static-libstdc++ will cause crashes.
9223 # Check whether --with-static-standard-libraries was given.
9224 if test "${with_static_standard_libraries+set}" = set; then :
9225 withval=$with_static_standard_libraries;
9226 else
9227 with_static_standard_libraries=auto
9230 if test "$with_static_standard_libraries" = auto; then
9231 with_static_standard_libraries=$have_compiler
9234 # Linker flags to use for stage1 or when not bootstrapping.
9236 # Check whether --with-stage1-ldflags was given.
9237 if test "${with_stage1_ldflags+set}" = set; then :
9238 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9239 stage1_ldflags=
9240 else
9241 stage1_ldflags=$withval
9243 else
9244 stage1_ldflags=
9245 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9246 # if supported. But if the user explicitly specified the libraries to use,
9247 # trust that they are doing what they want.
9248 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9249 -a "$have_static_libs" = yes; then
9250 stage1_ldflags="-static-libstdc++ -static-libgcc"
9256 # Libraries to use for stage2 and later builds.
9258 # Check whether --with-boot-libs was given.
9259 if test "${with_boot_libs+set}" = set; then :
9260 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9261 poststage1_libs=
9262 else
9263 poststage1_libs=$withval
9265 else
9266 poststage1_libs=
9271 # Linker flags to use for stage2 and later builds.
9273 # Check whether --with-boot-ldflags was given.
9274 if test "${with_boot_ldflags+set}" = set; then :
9275 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9276 poststage1_ldflags=
9277 else
9278 poststage1_ldflags=$withval
9280 else
9281 poststage1_ldflags=
9282 # In stages 2 and 3, default to linking libstdc++ and libgcc
9283 # statically. But if the user explicitly specified the libraries to
9284 # use, trust that they are doing what they want.
9285 if test "$poststage1_libs" = ""; then
9286 poststage1_ldflags="-static-libstdc++ -static-libgcc"
9290 case $target in
9291 *-darwin2* | *-darwin1[56789]*)
9292 # For these versions, we default to using embedded rpaths.
9293 if test "x$enable_darwin_at_rpath" != "xno"; then
9294 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9297 *-darwin*)
9298 # For these versions, we only use embedded rpaths on demand.
9299 if test "x$enable_darwin_at_rpath" = "xyes"; then
9300 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9303 esac
9306 # GCC GRAPHITE dependency isl.
9307 # Basic setup is inlined here, actual checks are in config/isl.m4
9310 # Check whether --with-isl was given.
9311 if test "${with_isl+set}" = set; then :
9312 withval=$with_isl;
9316 # Treat --without-isl as a request to disable
9317 # GRAPHITE support and skip all following checks.
9318 if test "x$with_isl" != "xno"; then
9319 # Check for isl
9322 # Check whether --with-isl-include was given.
9323 if test "${with_isl_include+set}" = set; then :
9324 withval=$with_isl_include;
9328 # Check whether --with-isl-lib was given.
9329 if test "${with_isl_lib+set}" = set; then :
9330 withval=$with_isl_lib;
9334 # Check whether --enable-isl-version-check was given.
9335 if test "${enable_isl_version_check+set}" = set; then :
9336 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
9337 else
9338 ENABLE_ISL_CHECK=yes
9342 # Initialize isllibs and islinc.
9343 case $with_isl in
9345 isllibs=
9346 islinc=
9348 "" | yes)
9351 isllibs="-L$with_isl/lib"
9352 islinc="-I$with_isl/include"
9354 esac
9355 if test "x${with_isl_include}" != x ; then
9356 islinc="-I$with_isl_include"
9358 if test "x${with_isl_lib}" != x; then
9359 isllibs="-L$with_isl_lib"
9361 if test "x${islinc}" = x && test "x${isllibs}" = x \
9362 && test -d ${srcdir}/isl; then
9363 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9364 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9365 ENABLE_ISL_CHECK=no
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9367 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9370 isllibs="${isllibs} -lisl"
9374 if test "${ENABLE_ISL_CHECK}" = yes ; then
9375 _isl_saved_CFLAGS=$CFLAGS
9376 _isl_saved_LDFLAGS=$LDFLAGS
9377 _isl_saved_LIBS=$LIBS
9379 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9380 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9381 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9384 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 #include <isl/schedule.h>
9389 main ()
9391 isl_options_set_schedule_serialize_sccs (NULL, 0);
9393 return 0;
9395 _ACEOF
9396 if ac_fn_c_try_link "$LINENO"; then :
9397 gcc_cv_isl=yes
9398 else
9399 gcc_cv_isl=no
9401 rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9404 $as_echo "$gcc_cv_isl" >&6; }
9406 if test "${gcc_cv_isl}" = no ; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9408 $as_echo "required isl version is 0.15 or later" >&6; }
9411 CFLAGS=$_isl_saved_CFLAGS
9412 LDFLAGS=$_isl_saved_LDFLAGS
9413 LIBS=$_isl_saved_LIBS
9421 if test "x${with_isl}" = xno; then
9422 graphite_requested=no
9423 elif test "x${with_isl}" != x \
9424 || test "x${with_isl_include}" != x \
9425 || test "x${with_isl_lib}" != x ; then
9426 graphite_requested=yes
9427 else
9428 graphite_requested=no
9433 if test "${gcc_cv_isl}" = no ; then
9434 isllibs=
9435 islinc=
9438 if test "${graphite_requested}" = yes \
9439 && test "x${isllibs}" = x \
9440 && test "x${islinc}" = x ; then
9442 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
9448 # If the isl check failed, disable builds of in-tree variant of isl
9449 if test "x$with_isl" = xno ||
9450 test "x$gcc_cv_isl" = xno; then
9451 noconfigdirs="$noconfigdirs isl"
9452 islinc=
9458 # Check for LTO support.
9459 # Check whether --enable-lto was given.
9460 if test "${enable_lto+set}" = set; then :
9461 enableval=$enable_lto; enable_lto=$enableval
9462 else
9463 enable_lto=yes; default_enable_lto=yes
9470 target_elf=no
9471 case $target in
9472 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
9473 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9474 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
9475 nvptx-*-none)
9476 target_elf=no
9479 target_elf=yes
9481 esac
9483 if test $target_elf = yes; then :
9484 # ELF platforms build the lto-plugin always.
9485 build_lto_plugin=yes
9487 else
9488 if test x"$default_enable_lto" = x"yes" ; then
9489 case $target in
9490 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
9491 # On other non-ELF platforms, LTO has yet to be validated.
9492 *) enable_lto=no ;;
9493 esac
9494 else
9495 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9496 # It would also be nice to check the binutils support, but we don't
9497 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9498 # warn during gcc/ subconfigure; unless you're bootstrapping with
9499 # -flto it won't be needed until after installation anyway.
9500 case $target in
9501 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9502 *) if test x"$enable_lto" = x"yes"; then
9503 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9506 esac
9508 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9509 # Build it unless LTO was explicitly disabled.
9510 case $target in
9511 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
9512 *) ;;
9513 esac
9518 # Check whether --enable-linker-plugin-configure-flags was given.
9519 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9520 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
9521 else
9522 extra_linker_plugin_configure_flags=
9526 # Check whether --enable-linker-plugin-flags was given.
9527 if test "${enable_linker_plugin_flags+set}" = set; then :
9528 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
9529 else
9530 extra_linker_plugin_flags=
9535 # Handle --enable-host-pie
9536 # If host PIE executables are the default (or must be forced on) for some host,
9537 # we must pass that configuration to the gcc directory.
9538 gcc_host_pie=
9539 # Check whether --enable-host-pie was given.
9540 if test "${enable_host_pie+set}" = set; then :
9541 enableval=$enable_host_pie; host_pie=$enableval
9542 case $host in
9543 *-*-darwin2*)
9544 if test x$host_pie != xyes ; then
9545 # for Darwin20+ this is required.
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9547 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9548 host_pie=yes
9549 gcc_host_pie=--enable-host-pie
9550 fi ;;
9551 *) ;;
9552 esac
9553 else
9554 case $host in
9555 *-*-darwin2*)
9556 # Default to PIE (mandatory for aarch64).
9557 host_pie=yes
9558 gcc_host_pie=--enable-host-pie
9560 *) host_pie=no ;;
9561 esac
9568 # Enable --enable-host-shared.
9569 # Checked early to determine whether jit is an 'all' language
9570 # Check whether --enable-host-shared was given.
9571 if test "${enable_host_shared+set}" = set; then :
9572 enableval=$enable_host_shared; host_shared=$enableval
9573 case $host in
9574 x86_64-*-darwin* | aarch64-*-darwin*)
9575 if test x$host_shared != xyes ; then
9576 # PIC is the default, and actually cannot be switched off.
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9578 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9579 host_shared=yes
9580 fi ;;
9581 *-*-darwin*)
9582 if test x$host_pie = xyes -a x$host_shared != xyes ; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9584 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9585 host_shared=yes
9586 fi ;;
9587 *) ;;
9588 esac
9589 else
9590 case $host in
9591 # 64B x86_64 and Aarch64 Darwin default to PIC.
9592 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
9593 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9594 *-*-darwin*) host_shared=$host_pie ;;
9595 *) host_shared=no;;
9596 esac
9602 if test x$host_shared = xyes; then
9603 case $host in
9604 *-*-darwin*)
9605 # Since host shared is the default for 64b Darwin, and also enabled for
9606 # host_pie, ensure that we present the PIE flag when host_pie is active.
9607 if test x$host_pie = xyes; then
9608 PICFLAG=-fPIE
9612 PICFLAG=-fPIC
9614 esac
9615 elif test x$host_pie = xyes; then
9616 PICFLAG=-fPIE
9617 else
9618 PICFLAG=
9624 # Check for libdiagnostics support.
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdiagnostics" >&5
9626 $as_echo_n "checking whether to enable libdiagnostics... " >&6; }
9627 # Check whether --enable-libdiagnostics was given.
9628 if test "${enable_libdiagnostics+set}" = set; then :
9629 enableval=$enable_libdiagnostics; enable_libdiagnostics=$enableval
9630 else
9631 enable_libdiagnostics=no
9635 if test x$enable_libdiagnostics = xyes; then
9636 # Disable libdiagnostics if -enable-host-shared not specified
9637 # but not if building for Mingw. All code in Windows
9638 # is position independent code (PIC).
9639 case $target in
9640 *mingw*) ;;
9642 if test x$host_shared != xyes; then
9643 as_fn_error $? "
9644 Enabling libdiagnostics requires --enable-host-shared.
9646 --enable-host-shared typically slows the rest of the compiler down by
9647 a few %, so you must explicitly enable it.
9649 If you want to build both libdiagnostics and the regular compiler, it is often
9650 best to do this via two separate configure/builds, in separate
9651 directories, to avoid imposing the performance cost of
9652 --enable-host-shared on the regular compiler." "$LINENO" 5
9655 esac
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libdiagnostics" >&5
9658 $as_echo "$enable_libdiagnostics" >&6; }
9662 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9663 # default, so we check for them here
9664 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9665 # build of the Rust frontend in case a dep is missing.
9666 missing_rust_dynlibs=none
9668 save_LIBS="$LIBS"
9669 LIBS=
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9671 $as_echo_n "checking for library containing dlopen... " >&6; }
9672 if ${ac_cv_search_dlopen+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 ac_func_search_save_LIBS=$LIBS
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char dlopen ();
9687 main ()
9689 return dlopen ();
9691 return 0;
9693 _ACEOF
9694 for ac_lib in '' dl; do
9695 if test -z "$ac_lib"; then
9696 ac_res="none required"
9697 else
9698 ac_res=-l$ac_lib
9699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 ac_cv_search_dlopen=$ac_res
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext
9706 if ${ac_cv_search_dlopen+:} false; then :
9707 break
9709 done
9710 if ${ac_cv_search_dlopen+:} false; then :
9712 else
9713 ac_cv_search_dlopen=no
9715 rm conftest.$ac_ext
9716 LIBS=$ac_func_search_save_LIBS
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9719 $as_echo "$ac_cv_search_dlopen" >&6; }
9720 ac_res=$ac_cv_search_dlopen
9721 if test "$ac_res" != no; then :
9722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9727 $as_echo_n "checking for library containing pthread_create... " >&6; }
9728 if ${ac_cv_search_pthread_create+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 ac_func_search_save_LIBS=$LIBS
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 char pthread_create ();
9743 main ()
9745 return pthread_create ();
9747 return 0;
9749 _ACEOF
9750 for ac_lib in '' pthread; do
9751 if test -z "$ac_lib"; then
9752 ac_res="none required"
9753 else
9754 ac_res=-l$ac_lib
9755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9757 if ac_fn_c_try_link "$LINENO"; then :
9758 ac_cv_search_pthread_create=$ac_res
9760 rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext
9762 if ${ac_cv_search_pthread_create+:} false; then :
9763 break
9765 done
9766 if ${ac_cv_search_pthread_create+:} false; then :
9768 else
9769 ac_cv_search_pthread_create=no
9771 rm conftest.$ac_ext
9772 LIBS=$ac_func_search_save_LIBS
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9775 $as_echo "$ac_cv_search_pthread_create" >&6; }
9776 ac_res=$ac_cv_search_pthread_create
9777 if test "$ac_res" != no; then :
9778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9782 CRAB1_LIBS="$LIBS"
9783 LIBS="$save_LIBS"
9785 if test "$ac_cv_search_dlopen" = no; then
9786 missing_rust_dynlibs="libdl"
9789 if test "$ac_cv_search_pthread_create" = no; then
9790 missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
9793 CRAB1_LIBS="$CRAB1_LIBS"
9796 # If we are building PIC/PIE host executables, and we are building dependent
9797 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9798 # code.
9799 host_libs_picflag=
9800 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9801 host_libs_picflag='--with-pic'
9805 # By default, C and C++ are the only stage 1 languages.
9806 stage1_languages=,c,
9808 # Target libraries that we bootstrap.
9809 bootstrap_target_libs=,target-libgcc,
9811 # Figure out what language subdirectories are present.
9812 # Look if the user specified --enable-languages="..."; if not, use
9813 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9814 # go away some day.
9815 # NB: embedded tabs in this IF block -- do not untabify
9816 if test -d ${srcdir}/gcc; then
9817 if test x"${enable_languages+set}" != xset; then
9818 if test x"${LANGUAGES+set}" = xset; then
9819 enable_languages="${LANGUAGES}"
9820 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9821 else
9822 enable_languages=default
9824 else
9825 if test x"${enable_languages}" = x ||
9826 test x"${enable_languages}" = xyes;
9827 then
9828 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9829 exit 1
9832 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9834 # 'f95' is the old name for the 'fortran' language. We issue a warning
9835 # and make the substitution.
9836 case ,${enable_languages}, in
9837 *,f95,*)
9838 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
9839 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9841 esac
9843 # If bootstrapping, C++ must be enabled.
9844 case ",$enable_languages,:$enable_bootstrap" in
9845 *,c++,*:*) ;;
9846 *:yes)
9847 if test -f ${srcdir}/gcc/cp/config-lang.in; then
9848 enable_languages="${enable_languages},c++"
9849 else
9850 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
9853 esac
9855 # First scan to see if an enabled language requires some other language.
9856 # We assume that a given config-lang.in will list all the language
9857 # front ends it requires, even if some are required indirectly.
9858 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9859 case ${lang_frag} in
9860 ..) ;;
9861 # The odd quoting in the next line works around
9862 # an apparent bug in bash 1.12 on linux.
9863 ${srcdir}/gcc/[*]/config-lang.in) ;;
9865 # From the config-lang.in, get $language, $lang_requires, and
9866 # $lang_requires_boot_languages.
9867 language=
9868 lang_requires=
9869 lang_requires_boot_languages=
9870 # set srcdir during sourcing lang_frag to the gcc dir.
9871 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9872 # pollutes this shell
9873 saved_srcdir=${srcdir}
9874 srcdir=${srcdir}/gcc . ${lang_frag}
9875 srcdir=${saved_srcdir}
9876 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9877 case ,${enable_languages}, in
9878 *,$other,*) ;;
9879 *,default,*) ;;
9880 *,all,*) ;;
9881 *,$language,*)
9882 echo " \`$other' language required by \`$language'; enabling" 1>&2
9883 enable_languages="${enable_languages},${other}"
9885 esac
9886 done
9887 for other in ${lang_requires_boot_languages} ; do
9888 if test "$other" != "c"; then
9889 case ,${enable_stage1_languages}, in
9890 *,$other,*) ;;
9891 *,default,*) ;;
9892 *,all,*) ;;
9894 case ,${enable_languages}, in
9895 *,$language,*)
9896 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9897 enable_stage1_languages="$enable_stage1_languages,${other}"
9899 esac
9901 esac
9903 done
9905 esac
9906 done
9908 new_enable_languages=,c,
9910 # If LTO is enabled, add the LTO front end.
9911 if test "$enable_lto" = "yes" ; then
9912 case ,${enable_languages}, in
9913 *,lto,*) ;;
9914 *) enable_languages="${enable_languages},lto" ;;
9915 esac
9916 if test "${build_lto_plugin}" = "yes" ; then
9917 configdirs="$configdirs lto-plugin"
9921 # If we're building an offloading compiler, add the LTO front end.
9922 if test x"$enable_as_accelerator_for" != x ; then
9923 case ,${enable_languages}, in
9924 *,lto,*) ;;
9925 *) enable_languages="${enable_languages},lto" ;;
9926 esac
9929 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9930 potential_languages=,c,
9932 enabled_target_libs=
9933 disabled_target_libs=
9935 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9936 case ${lang_frag} in
9937 ..) ;;
9938 # The odd quoting in the next line works around
9939 # an apparent bug in bash 1.12 on linux.
9940 ${srcdir}/gcc/[*]/config-lang.in) ;;
9942 # From the config-lang.in, get $language, $target_libs,
9943 # $lang_dirs, $boot_language, and $build_by_default
9944 language=
9945 target_libs=
9946 lang_dirs=
9947 subdir_requires=
9948 boot_language=no
9949 build_by_default=yes
9950 # set srcdir during sourcing. See above about save & restore
9951 saved_srcdir=${srcdir}
9952 srcdir=${srcdir}/gcc . ${lang_frag}
9953 srcdir=${saved_srcdir}
9954 if test x${language} = x; then
9955 echo "${lang_frag} doesn't set \$language." 1>&2
9956 exit 1
9959 if test "$language" = "c++"; then
9960 boot_language=yes
9963 add_this_lang=no
9964 # C is always enabled, so no need to add it again
9965 if test "$language" != "c"; then
9966 case ,${enable_languages}, in
9967 *,${language},*)
9968 # Language was explicitly selected; include it
9969 add_this_lang=yes
9971 *,all,*)
9972 # All languages are enabled
9973 add_this_lang=all
9975 *,default,*)
9976 # 'default' was selected, select it if it is a default language
9977 add_this_lang=${build_by_default}
9979 esac
9982 # Disable languages that need other directories if these aren't available.
9983 for i in $subdir_requires; do
9984 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9985 case ${add_this_lang} in
9986 yes)
9987 # Specifically requested language; tell them.
9988 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9990 all)
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9992 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9993 add_this_lang=unsupported
9996 # Silently disable.
9997 add_this_lang=unsupported
9999 esac
10000 done
10002 # Disable Ada if no preexisting GNAT is available.
10003 case ${add_this_lang}:${language}:${have_gnat} in
10004 yes:ada:no)
10005 # Specifically requested language; tell them.
10006 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
10008 all:ada:no)
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10010 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10011 add_this_lang=unsupported
10013 *:ada:no)
10014 # Silently disable.
10015 add_this_lang=unsupported
10017 esac
10019 # Disable D if no preexisting GDC is available.
10020 case ${add_this_lang}:${language}:${have_gdc} in
10021 yes:d:no)
10022 # Specifically requested language; tell them.
10023 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
10025 all:d:no)
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10027 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10028 add_this_lang=unsupported
10030 *:d:no)
10031 # Silently disable.
10032 add_this_lang=unsupported
10034 esac
10036 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10037 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10038 *:rust:none)
10039 # Nothing to do - we're not missing any C libraries
10041 yes:rust:*)
10042 as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10043 add_this_lang=unsupported
10045 all:rust:*)
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10047 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10048 add_this_lang=unsupported
10050 *:rust:*)
10051 # Silently disable.
10052 add_this_lang=unsupported
10054 esac
10056 # Disable jit if -enable-host-shared not specified
10057 # but not if building for Mingw. All code in Windows
10058 # is position independent code (PIC).
10059 case $target in
10060 *mingw*) ;;
10062 case ${add_this_lang}:${language}:${host_shared} in
10063 yes:jit:no)
10064 # PR jit/64780: explicitly specify --enable-host-shared
10065 as_fn_error $? "
10066 Enabling language \"jit\" requires --enable-host-shared.
10068 --enable-host-shared typically slows the rest of the compiler down by
10069 a few %, so you must explicitly enable it.
10071 If you want to build both the jit and the regular compiler, it is often
10072 best to do this via two separate configure/builds, in separate
10073 directories, to avoid imposing the performance cost of
10074 --enable-host-shared on the regular compiler." "$LINENO" 5
10076 all:jit:no)
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10078 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10079 add_this_lang=unsupported
10081 *:jit:no)
10082 # Silently disable.
10083 add_this_lang=unsupported
10085 esac
10087 esac
10089 # Pre-conditions to consider whether cargo being supported.
10090 if test x"$have_cargo" = xyes \
10091 && test x"$build" != x"$host"; then
10092 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10093 # "'cargo' should build for the host system" is resolved:
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10095 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10096 have_cargo=no
10097 else
10098 # Assume that cargo-produced object files are compatible with what
10099 # we're going to build here.
10102 # Disable Rust if cargo is unavailable.
10103 case ${add_this_lang}:${language}:${have_cargo} in
10104 yes:rust:no)
10105 # Specifically requested language; tell them.
10106 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
10108 all:rust:no)
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10110 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10111 add_this_lang=unsupported
10113 *:rust:no)
10114 # Silently disable.
10115 add_this_lang=unsupported
10117 esac
10120 # Disable a language that is unsupported by the target.
10121 case "${add_this_lang}: $unsupported_languages " in
10122 no:*) ;;
10123 unsupported:*) ;;
10124 *:*" $language "*)
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10126 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10127 add_this_lang=unsupported
10129 esac
10131 case $add_this_lang in
10132 unsupported)
10133 # Remove language-dependent dirs.
10134 disabled_target_libs="$disabled_target_libs $target_libs"
10135 noconfigdirs="$noconfigdirs $lang_dirs"
10138 # Remove language-dependent dirs; still show language as supported.
10139 disabled_target_libs="$disabled_target_libs $target_libs"
10140 noconfigdirs="$noconfigdirs $lang_dirs"
10141 potential_languages="${potential_languages}${language},"
10143 all|yes)
10144 new_enable_languages="${new_enable_languages}${language},"
10145 potential_languages="${potential_languages}${language},"
10146 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
10147 enabled_target_libs="$enabled_target_libs $target_libs"
10148 case "${boot_language}:,$enable_stage1_languages," in
10149 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
10150 # Add to (comma-separated) list of stage 1 languages.
10151 case ",$stage1_languages," in
10152 *,$language,* | ,yes, | ,all,) ;;
10153 *) stage1_languages="${stage1_languages}${language}," ;;
10154 esac
10155 # We need to bootstrap any supporting libraries.
10156 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10158 esac
10160 esac
10162 esac
10163 done
10165 # Add target libraries which are only needed for disabled languages
10166 # to noconfigdirs.
10167 if test -n "$disabled_target_libs"; then
10168 for dir in $disabled_target_libs; do
10169 case " $enabled_target_libs " in
10170 *" ${dir} "*) ;;
10171 *) noconfigdirs="$noconfigdirs $dir" ;;
10172 esac
10173 done
10176 # Check whether --enable-stage1-languages was given.
10177 if test "${enable_stage1_languages+set}" = set; then :
10178 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10179 ,no,|,,)
10180 # Set it to something that will have no effect in the loop below
10181 enable_stage1_languages=c ;;
10182 ,yes,)
10183 enable_stage1_languages=`echo $new_enable_languages | \
10184 sed -e "s/^,//" -e "s/,$//" ` ;;
10185 *,all,*)
10186 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
10187 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10188 esac
10190 # Add "good" languages from enable_stage1_languages to stage1_languages,
10191 # while "bad" languages go in missing_languages. Leave no duplicates.
10192 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10193 case $potential_languages in
10194 *,$i,*)
10195 case $stage1_languages in
10196 *,$i,*) ;;
10197 *) stage1_languages="$stage1_languages$i," ;;
10198 esac ;;
10200 case $missing_languages in
10201 *,$i,*) ;;
10202 *) missing_languages="$missing_languages$i," ;;
10203 esac ;;
10204 esac
10205 done
10209 # Remove leading/trailing commas that were added for simplicity
10210 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10211 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10212 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10213 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10215 if test "x$missing_languages" != x; then
10216 as_fn_error $? "
10217 The following requested languages could not be built: ${missing_languages}
10218 Supported languages are: ${potential_languages}" "$LINENO" 5
10220 if test "x$new_enable_languages" != "x$enable_languages"; then
10221 echo The following languages will be built: ${new_enable_languages}
10222 enable_languages="$new_enable_languages"
10226 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10229 # Handle --disable-<component> generically.
10230 for dir in $configdirs $build_configdirs $target_configdirs ; do
10231 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10232 varname=`echo $dirname | sed -e s/+/_/g`
10233 if eval test x\${enable_${varname}} "=" xno ; then
10234 noconfigdirs="$noconfigdirs $dir"
10236 done
10238 # Check for Boehm's garbage collector
10239 # Check whether --enable-objc-gc was given.
10240 if test "${enable_objc_gc+set}" = set; then :
10241 enableval=$enable_objc_gc;
10245 # Check whether --with-target-bdw-gc was given.
10246 if test "${with_target_bdw_gc+set}" = set; then :
10247 withval=$with_target_bdw_gc;
10251 # Check whether --with-target-bdw-gc-include was given.
10252 if test "${with_target_bdw_gc_include+set}" = set; then :
10253 withval=$with_target_bdw_gc_include;
10257 # Check whether --with-target-bdw-gc-lib was given.
10258 if test "${with_target_bdw_gc_lib+set}" = set; then :
10259 withval=$with_target_bdw_gc_lib;
10263 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10265 $as_echo_n "checking for bdw garbage collector... " >&6; }
10266 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10268 $as_echo "using bdw-gc in default locations" >&6; }
10269 else
10270 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
10271 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10272 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
10273 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10276 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10279 esac
10281 # Disable libitm, libsanitizer, libvtv if we're not building C++
10282 case ,${enable_languages}, in
10283 *,c++,*)
10284 # Disable libitm, libsanitizer if we're not building libstdc++
10285 case "${noconfigdirs}" in
10286 *target-libstdc++-v3*)
10287 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
10289 *) ;;
10290 esac
10293 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10295 esac
10297 case ,${enable_languages}, in
10298 *,rust,*)
10299 case " ${noconfigdirs} " in
10300 *\ target-libstdc++-v3\ *)
10301 # Disable target libgrust if we're not building target libstdc++.
10302 noconfigdirs="$noconfigdirs target-libgrust"
10304 esac
10306 esac
10308 # If gcc/ is not in the source tree then we'll not be building a
10309 # target compiler, assume in that case we don't want to build any
10310 # target libraries or tools.
10312 # This was added primarily for the benefit for binutils-gdb who reuse
10313 # this configure script, but don't always have target tools available.
10314 if test ! -d ${srcdir}/gcc; then
10315 skipdirs="${skipdirs} ${target_configdirs}"
10318 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10319 # $build_configdirs and $target_configdirs.
10320 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10322 notsupp=""
10323 for dir in . $skipdirs $noconfigdirs ; do
10324 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10325 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10326 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10327 if test -r $srcdir/$dirname/configure ; then
10328 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10329 true
10330 else
10331 notsupp="$notsupp $dir"
10335 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10336 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10337 if test -r $srcdir/$dirname/configure ; then
10338 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10339 true
10340 else
10341 notsupp="$notsupp $dir"
10345 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10346 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10347 if test -r $srcdir/$dirname/configure ; then
10348 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10349 true
10350 else
10351 notsupp="$notsupp $dir"
10355 done
10357 # Quietly strip out all directories which aren't configurable in this tree.
10358 # This relies on all configurable subdirectories being autoconfiscated, which
10359 # is now the case.
10360 build_configdirs_all="$build_configdirs"
10361 build_configdirs=
10362 for i in ${build_configdirs_all} ; do
10363 j=`echo $i | sed -e s/build-//g`
10364 if test -f ${srcdir}/$j/configure ; then
10365 build_configdirs="${build_configdirs} $i"
10367 done
10369 configdirs_all="$configdirs"
10370 configdirs=
10371 for i in ${configdirs_all} ; do
10372 if test -f ${srcdir}/$i/configure ; then
10373 configdirs="${configdirs} $i"
10375 done
10377 target_configdirs_all="$target_configdirs"
10378 target_configdirs=
10379 for i in ${target_configdirs_all} ; do
10380 j=`echo $i | sed -e s/target-//g`
10381 if test -f ${srcdir}/$j/configure ; then
10382 target_configdirs="${target_configdirs} $i"
10384 done
10386 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10387 # so we have to add it after the preceding checks.
10388 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10389 then
10390 case " $configdirs " in
10391 *" libiberty "*)
10392 # If we can build libiberty, we can also build libiberty-linker-plugin.
10393 configdirs="$configdirs libiberty-linker-plugin"
10394 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
10395 --with-libiberty=../libiberty-linker-plugin";;
10397 as_fn_error $? "libiberty missing" "$LINENO" 5;;
10398 esac
10401 # Sometimes we have special requirements for the host libiberty.
10402 extra_host_libiberty_configure_flags=
10403 case " $configdirs " in
10404 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
10405 # When these are to be built as shared libraries, the same applies to
10406 # libiberty.
10407 extra_host_libiberty_configure_flags=--enable-shared
10409 esac
10412 # Sometimes we have special requirements for the host zlib.
10413 extra_host_zlib_configure_flags=
10414 case " $configdirs " in
10415 *" bfd "*)
10416 # When bfd is to be built as a shared library, the same applies to
10417 # zlib.
10418 if test "$enable_shared" = "yes"; then
10419 extra_host_zlib_configure_flags=--enable-host-shared
10422 esac
10425 # Produce a warning message for the subdirs we can't configure.
10426 # This isn't especially interesting in the Cygnus tree, but in the individual
10427 # FSF releases, it's important to let people know when their machine isn't
10428 # supported by the one or two programs in a package.
10430 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10431 # If $appdirs is non-empty, at least one of those directories must still
10432 # be configured, or we error out. (E.g., if the gas release supports a
10433 # specified target in some subdirs but not the gas subdir, we shouldn't
10434 # pretend that all is well.)
10435 if test -n "$appdirs" ; then
10436 for dir in $appdirs ; do
10437 if test -r $dir/Makefile.in ; then
10438 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10439 appdirs=""
10440 break
10442 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
10443 appdirs=""
10444 break
10447 done
10448 if test -n "$appdirs" ; then
10449 echo "*** This configuration is not supported by this package." 1>&2
10450 exit 1
10453 # Okay, some application will build, or we don't care to check. Still
10454 # notify of subdirs not getting built.
10455 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10456 echo " ${notsupp}" 1>&2
10457 echo " (Any other directories should still work fine.)" 1>&2
10460 case "$host" in
10461 *msdosdjgpp*)
10462 enable_gdbtk=no ;;
10463 esac
10465 # To find our prefix, in gcc_cv_tool_prefix.
10467 # The user is always right.
10468 if test "${PATH_SEPARATOR+set}" != set; then
10469 echo "#! /bin/sh" >conf$$.sh
10470 echo "exit 0" >>conf$$.sh
10471 chmod +x conf$$.sh
10472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10473 PATH_SEPARATOR=';'
10474 else
10475 PATH_SEPARATOR=:
10477 rm -f conf$$.sh
10481 get_gcc_base_ver="cat"
10483 # Check whether --with-gcc-major-version-only was given.
10484 if test "${with_gcc_major_version_only+set}" = set; then :
10485 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
10486 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
10496 if test "x$exec_prefix" = xNONE; then
10497 if test "x$prefix" = xNONE; then
10498 gcc_cv_tool_prefix=$ac_default_prefix
10499 else
10500 gcc_cv_tool_prefix=$prefix
10502 else
10503 gcc_cv_tool_prefix=$exec_prefix
10506 # If there is no compiler in the tree, use the PATH only. In any
10507 # case, if there is no compiler in the tree nobody should use
10508 # AS_FOR_TARGET and LD_FOR_TARGET.
10509 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
10510 if test x$with_gcc_major_version_only = xyes ; then
10511 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10512 else
10513 gcc_version=`cat $srcdir/gcc/BASE-VER`
10515 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10516 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10517 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10518 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10519 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10520 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10521 else
10522 gcc_cv_tool_dirs=
10525 if test x$build = x$target && test -n "$md_exec_prefix"; then
10526 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10531 copy_dirs=
10534 # Check whether --with-build-sysroot was given.
10535 if test "${with_build_sysroot+set}" = set; then :
10536 withval=$with_build_sysroot; if test x"$withval" != x ; then
10537 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
10539 else
10540 SYSROOT_CFLAGS_FOR_TARGET=
10546 # Check whether --with-debug-prefix-map was given.
10547 if test "${with_debug_prefix_map+set}" = set; then :
10548 withval=$with_debug_prefix_map; if test x"$withval" != x; then
10549 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10550 for debug_map in $withval; do
10551 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10552 done
10554 else
10555 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10560 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10561 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10562 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10563 # We want to ensure that TARGET libraries (which we know are built with
10564 # gcc) are built with "-O2 -g", so include those options when setting
10565 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10566 if test "x$CFLAGS_FOR_TARGET" = x; then
10567 if test "x${is_cross_compiler}" = xyes; then
10568 CFLAGS_FOR_TARGET="-g -O2"
10569 else
10570 CFLAGS_FOR_TARGET=$CFLAGS
10571 case " $CFLAGS " in
10572 *" -O2 "*) ;;
10573 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
10574 esac
10575 case " $CFLAGS " in
10576 *" -g "* | *" -g3 "*) ;;
10577 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
10578 esac
10583 if test "x$CXXFLAGS_FOR_TARGET" = x; then
10584 if test "x${is_cross_compiler}" = xyes; then
10585 CXXFLAGS_FOR_TARGET="-g -O2"
10586 else
10587 CXXFLAGS_FOR_TARGET=$CXXFLAGS
10588 case " $CXXFLAGS " in
10589 *" -O2 "*) ;;
10590 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
10591 esac
10592 case " $CXXFLAGS " in
10593 *" -g "* | *" -g3 "*) ;;
10594 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
10595 esac
10602 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10603 # the named directory are copied to $(tooldir)/sys-include.
10604 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
10605 if test x${is_cross_compiler} = xno ; then
10606 echo 1>&2 '***' --with-headers is only supported when cross compiling
10607 exit 1
10609 if test x"${with_headers}" != xyes ; then
10610 x=${gcc_cv_tool_prefix}
10611 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10615 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10616 # the name directories are copied to $(tooldir)/lib. Multiple directories
10617 # are permitted.
10618 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
10619 if test x${is_cross_compiler} = xno ; then
10620 echo 1>&2 '***' --with-libs is only supported when cross compiling
10621 exit 1
10623 if test x"${with_libs}" != xyes ; then
10624 # Copy the libraries in reverse order, so that files in the first named
10625 # library override files in subsequent libraries.
10626 x=${gcc_cv_tool_prefix}
10627 for l in ${with_libs}; do
10628 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10629 done
10633 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10635 # This is done by determining whether or not the appropriate directory
10636 # is available, and by checking whether or not specific configurations
10637 # have requested that this magic not happen.
10639 # The command line options always override the explicit settings in
10640 # configure.ac, and the settings in configure.ac override this magic.
10642 # If the default for a toolchain is to use GNU as and ld, and you don't
10643 # want to do that, then you should use the --without-gnu-as and
10644 # --without-gnu-ld options for the configure script. Similarly, if
10645 # the default is to use the included zlib and you don't want to do that,
10646 # you should use the --with-system-zlib option for the configure script.
10648 if test x${use_gnu_as} = x &&
10649 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
10650 with_gnu_as=yes
10651 extra_host_args="$extra_host_args --with-gnu-as"
10654 if test x${use_gnu_ld} = x &&
10655 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
10656 with_gnu_ld=yes
10657 extra_host_args="$extra_host_args --with-gnu-ld"
10660 if test x${use_included_zlib} = x &&
10661 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
10663 else
10664 with_system_zlib=yes
10665 extra_host_args="$extra_host_args --with-system-zlib"
10668 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10669 # can detect this case.
10671 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
10672 with_newlib=yes
10673 extra_host_args="$extra_host_args --with-newlib"
10676 # Handle ${copy_dirs}
10677 set fnord ${copy_dirs}
10678 shift
10679 while test $# != 0 ; do
10680 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
10682 else
10683 echo Copying $1 to $2
10685 # Use the install script to create the directory and all required
10686 # parent directories.
10687 if test -d $2 ; then
10689 else
10690 echo >config.temp
10691 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
10694 # Copy the directory, assuming we have tar.
10695 # FIXME: Should we use B in the second tar? Not all systems support it.
10696 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
10698 # It is the responsibility of the user to correctly adjust all
10699 # symlinks. If somebody can figure out how to handle them correctly
10700 # here, feel free to add the code.
10702 echo $1 > $2/COPIED
10704 shift; shift
10705 done
10707 # Determine a target-dependent exec_prefix that the installed
10708 # gcc will search in. Keep this list sorted by triplet, with
10709 # the *-*-osname triplets last.
10710 md_exec_prefix=
10711 case "${target}" in
10712 i[34567]86-pc-msdosdjgpp*)
10713 md_exec_prefix=/dev/env/DJDIR/bin
10715 *-*-hpux* | \
10716 *-*-nto-qnx* | \
10717 *-*-solaris2*)
10718 md_exec_prefix=/usr/ccs/bin
10720 esac
10722 extra_arflags_for_target=
10723 extra_nmflags_for_target=
10724 extra_ranlibflags_for_target=
10725 target_makefile_frag=/dev/null
10726 case "${target}" in
10727 spu-*-*)
10728 target_makefile_frag="config/mt-spu"
10730 loongarch*-*linux* | loongarch*-*gnu*)
10731 target_makefile_frag="config/mt-loongarch-gnu"
10733 loongarch*-*elf*)
10734 target_makefile_frag="config/mt-loongarch-elf"
10736 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
10737 target_makefile_frag="config/mt-sde"
10739 mipsisa*-*-elfoabi*)
10740 target_makefile_frag="config/mt-mips-elfoabi"
10742 mips*-*-*linux* | mips*-*-gnu*)
10743 target_makefile_frag="config/mt-mips-gnu"
10745 nios2-*-elf*)
10746 target_makefile_frag="config/mt-nios2-elf"
10748 *-*-linux-android*)
10749 target_makefile_frag="config/mt-android"
10751 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
10752 target_makefile_frag="config/mt-gnu"
10754 *-*-aix4.[3456789]* | *-*-aix[56789].*)
10755 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10756 # commands to handle both 32-bit and 64-bit objects. These flags are
10757 # harmless if we're using GNU nm or ar.
10758 extra_arflags_for_target=" -X32_64"
10759 extra_nmflags_for_target=" -B -X32_64"
10761 esac
10763 alphaieee_frag=/dev/null
10764 case $target in
10765 alpha*-*-*)
10766 # This just makes sure to use the -mieee option to build target libs.
10767 # This should probably be set individually by each library.
10768 alphaieee_frag="config/mt-alphaieee"
10770 esac
10772 # If --enable-target-optspace always use -Os instead of -O2 to build
10773 # the target libraries, similarly if it is not specified, use -Os
10774 # on selected platforms.
10775 ospace_frag=/dev/null
10776 case "${enable_target_optspace}:${target}" in
10777 yes:*)
10778 ospace_frag="config/mt-ospace"
10780 :d30v-*)
10781 ospace_frag="config/mt-d30v"
10783 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
10784 ospace_frag="config/mt-ospace"
10786 no:* | :*)
10789 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10791 esac
10793 # Some systems (e.g., one of the i386-aix systems the gas testers are
10794 # using) don't handle "\$" correctly, so don't use it here.
10795 tooldir='${exec_prefix}'/${target_noncanonical}
10796 build_tooldir=${tooldir}
10798 # Create a .gdbinit file which runs the one in srcdir
10799 # and tells GDB to look there for source files.
10801 if test -r ${srcdir}/.gdbinit ; then
10802 case ${srcdir} in
10803 .) ;;
10804 *) cat > ./.gdbinit <<EOF
10805 # ${NO_EDIT}
10806 dir ${srcdir}
10807 dir .
10808 source ${srcdir}/.gdbinit
10811 esac
10814 # Make sure that the compiler is able to generate an executable. If it
10815 # can't, we are probably in trouble. We don't care whether we can run the
10816 # executable--we might be using a cross compiler--we only care whether it
10817 # can be created. At this point the main configure script has set CC.
10818 we_are_ok=no
10819 echo "int main () { return 0; }" > conftest.c
10820 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10821 if test $? = 0 ; then
10822 if test -s conftest || test -s conftest.exe ; then
10823 we_are_ok=yes
10826 case $we_are_ok in
10828 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10829 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10830 rm -f conftest*
10831 exit 1
10833 esac
10834 rm -f conftest*
10836 # Decide which environment variable is used to find dynamic libraries.
10837 case "${host}" in
10838 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
10839 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
10840 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
10841 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
10842 esac
10844 # On systems where the dynamic library environment variable is PATH,
10845 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10846 # built executables to PATH.
10847 if test "$RPATH_ENVVAR" = PATH; then
10848 GCC_SHLIB_SUBDIR=/shlib
10849 else
10850 GCC_SHLIB_SUBDIR=
10853 # Adjust the toplevel makefile according to whether bootstrap was selected.
10854 case $enable_bootstrap in
10855 yes)
10856 bootstrap_suffix=bootstrap
10857 BUILD_CONFIG=bootstrap-debug
10860 bootstrap_suffix=no-bootstrap
10861 BUILD_CONFIG=
10863 esac
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10866 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10869 # Check whether --with-build-config was given.
10870 if test "${with_build_config+set}" = set; then :
10871 withval=$with_build_config; case $with_build_config in
10872 yes) with_build_config= ;;
10873 no) with_build_config= BUILD_CONFIG= ;;
10874 esac
10878 if test "x${with_build_config}" != x; then
10879 BUILD_CONFIG=$with_build_config
10880 else
10881 case $BUILD_CONFIG in
10882 bootstrap-debug)
10883 if echo "int f (void) { return 0; }" > conftest.c &&
10884 ${CC} -c conftest.c &&
10885 mv conftest.o conftest.o.g0 &&
10886 ${CC} -c -g conftest.c &&
10887 mv conftest.o conftest.o.g &&
10888 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
10890 else
10891 BUILD_CONFIG=
10893 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10895 esac
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10898 $as_echo "$BUILD_CONFIG" >&6; }
10901 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10903 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10904 # Check whether --enable-vtable-verify was given.
10905 if test "${enable_vtable_verify+set}" = set; then :
10906 enableval=$enable_vtable_verify; case "$enableval" in
10907 yes) enable_vtable_verify=yes ;;
10908 no) enable_vtable_verify=no ;;
10909 *) enable_vtable_verify=no;;
10910 esac
10911 else
10912 enable_vtable_verify=no
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
10916 $as_echo "$enable_vtable_verify" >&6; }
10918 # Record target_configdirs and the configure arguments for target and
10919 # build configuration in Makefile.
10920 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
10921 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
10922 bootstrap_fixincludes=no
10924 # If we are building libgomp, bootstrap it.
10925 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
10926 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
10929 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
10930 # or bootstrap-ubsan, bootstrap it.
10931 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
10932 case "$BUILD_CONFIG" in
10933 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
10934 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
10935 bootstrap_fixincludes=yes
10937 esac
10940 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10941 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
10942 test "$enable_vtable_verify" != no; then
10943 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
10946 # If we are building libatomic and the list of enabled languages includes the
10947 # D frontend, bootstrap it.
10948 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
10949 case ,${enable_languages}, in
10950 *,d,*)
10951 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
10953 esac
10956 # Determine whether gdb needs tk/tcl or not.
10957 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10958 # and in that case we want gdb to be built without tk. Ugh!
10959 # In fact I believe gdb is the *only* package directly dependent on tk,
10960 # so we should be able to put the 'maybe's in unconditionally and
10961 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10962 # 100% sure that that's safe though.
10964 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10965 case "$enable_gdbtk" in
10967 GDB_TK="" ;;
10968 yes)
10969 GDB_TK="${gdb_tk}" ;;
10971 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10972 # distro. Eventually someone will fix this and move Insight, nee
10973 # gdbtk to a separate directory.
10974 if test -d ${srcdir}/gdb/gdbtk ; then
10975 GDB_TK="${gdb_tk}"
10976 else
10977 GDB_TK=""
10980 esac
10981 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10982 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10984 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10985 # else does, only include them if one of these is built. The Makefile
10986 # provides the ordering, so it's enough here to add to the list.
10987 case " ${configdirs} " in
10988 *\ gdb\ *)
10989 configdirs="${configdirs} gnulib gdbsupport"
10991 *\ gdbserver\ *)
10992 configdirs="${configdirs} gnulib gdbsupport"
10994 *\ sim\ *)
10995 configdirs="${configdirs} gnulib"
10997 esac
10999 # Strip out unwanted targets.
11001 # While at that, we remove Makefiles if we were started for recursive
11002 # configuration, so that the top-level Makefile reconfigures them,
11003 # like we used to do when configure itself was recursive.
11005 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
11006 # but now we're fixing up the Makefile ourselves with the additional
11007 # commands passed to AC_CONFIG_FILES. Use separate variables
11008 # extrasub-{build,host,target} not because there is any reason to split
11009 # the substitutions up that way, but only to remain below the limit of
11010 # 99 commands in a script, for HP-UX sed.
11012 # Do not nest @if/@endif or @unless/@endunless pairs, because
11013 # configure will not warn you at all.
11015 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11016 yes:yes:*\ gold\ *:*,c++,*) ;;
11017 yes:yes:*\ gold\ *:*)
11018 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11020 esac
11022 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11023 # Note C++ is always enabled for stage1 now.
11024 case "$enable_bootstrap:${noconfigdirs}" in
11025 yes:*target-libstdc++-v3*)
11026 as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11028 esac
11031 extrasub_build=
11032 for module in ${build_configdirs} ; do
11033 if test -z "${no_recursion}" \
11034 && test -f ${build_subdir}/${module}/Makefile; then
11035 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11036 rm -f ${build_subdir}/${module}/Makefile
11038 extrasub_build="$extrasub_build
11039 /^@if build-$module\$/d
11040 /^@endif build-$module\$/d
11041 /^@unless build-$module\$/,/^@endunless build-$module\$/d
11042 /^@if build-$module-$bootstrap_suffix\$/d
11043 /^@endif build-$module-$bootstrap_suffix\$/d
11044 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11045 done
11046 extrasub_host=
11047 for module in ${configdirs} ; do
11048 if test -z "${no_recursion}"; then
11049 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
11050 if test -f ${file}; then
11051 echo 1>&2 "*** removing ${file} to force reconfigure"
11052 rm -f ${file}
11054 done
11056 case ${module},${bootstrap_fixincludes} in
11057 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
11058 *) host_bootstrap_suffix=$bootstrap_suffix ;;
11059 esac
11060 extrasub_host="$extrasub_host
11061 /^@if $module\$/d
11062 /^@endif $module\$/d
11063 /^@unless $module\$/,/^@endunless $module\$/d
11064 /^@if $module-$host_bootstrap_suffix\$/d
11065 /^@endif $module-$host_bootstrap_suffix\$/d
11066 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11067 done
11068 extrasub_target=
11069 for module in ${target_configdirs} ; do
11070 if test -z "${no_recursion}" \
11071 && test -f ${target_subdir}/${module}/Makefile; then
11072 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11073 rm -f ${target_subdir}/${module}/Makefile
11076 # We only bootstrap target libraries listed in bootstrap_target_libs.
11077 case $bootstrap_target_libs in
11078 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
11079 *) target_bootstrap_suffix=no-bootstrap ;;
11080 esac
11082 extrasub_target="$extrasub_target
11083 /^@if target-$module\$/d
11084 /^@endif target-$module\$/d
11085 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11086 /^@if target-$module-$target_bootstrap_suffix\$/d
11087 /^@endif target-$module-$target_bootstrap_suffix\$/d
11088 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11089 done
11091 # Do the final fixup along with target modules.
11092 extrasub_target="$extrasub_target
11093 /^@if /,/^@endif /d
11094 /^@unless /d
11095 /^@endunless /d"
11097 if test "$enable_pgo_build" != "no"; then
11098 extrasub_build="$extrasub_build
11099 /^@if pgo-build\$/d
11100 /^@endif pgo-build\$/d"
11103 # Create the serialization dependencies. This uses a temporary file.
11105 # Check whether --enable-serial-configure was given.
11106 if test "${enable_serial_configure+set}" = set; then :
11107 enableval=$enable_serial_configure;
11111 case ${enable_serial_configure} in
11112 yes)
11113 enable_serial_build_configure=yes
11114 enable_serial_host_configure=yes
11115 enable_serial_target_configure=yes
11117 esac
11119 # These force 'configure's to be done one at a time, to avoid problems
11120 # with contention over a shared config.cache.
11121 rm -f serdep.tmp
11122 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
11123 echo '# serdep.tmp' > serdep.tmp
11125 olditem=
11126 test "x${enable_serial_build_configure}" = xyes &&
11127 for item in ${build_configdirs} ; do
11128 case ${olditem} in
11129 "") ;;
11130 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
11131 esac
11132 olditem=${item}
11133 done
11134 olditem=
11135 test "x${enable_serial_host_configure}" = xyes &&
11136 for item in ${configdirs} ; do
11137 case ${olditem} in
11138 "") ;;
11139 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
11140 esac
11141 olditem=${item}
11142 done
11143 olditem=
11144 test "x${enable_serial_target_configure}" = xyes &&
11145 for item in ${target_configdirs} ; do
11146 case ${olditem} in
11147 "") ;;
11148 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
11149 esac
11150 olditem=${item}
11151 done
11152 serialization_dependencies=serdep.tmp
11155 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11156 # target, nonopt, and variable assignments. These are the ones we
11157 # might not want to pass down to subconfigures. The exception being
11158 # --cache-file=/dev/null, which is used to turn off the use of cache
11159 # files altogether, and which should be passed on to subconfigures.
11160 # Also strip program-prefix, program-suffix, and program-transform-name,
11161 # so that we can pass down a consistent program-transform-name.
11162 hbaseargs=
11163 bbaseargs=
11164 tbaseargs=
11165 keep_next=no
11166 skip_next=no
11167 eval "set -- $ac_configure_args"
11168 for ac_arg
11170 if test X"$skip_next" = X"yes"; then
11171 skip_next=no
11172 continue
11174 if test X"$keep_next" = X"yes"; then
11175 case $ac_arg in
11176 *\'*)
11177 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11178 esac
11179 hbaseargs="$hbaseargs '$ac_arg'"
11180 bbaseargs="$bbaseargs '$ac_arg'"
11181 tbaseargs="$tbaseargs '$ac_arg'"
11182 keep_next=no
11183 continue
11186 # Handle separated arguments. Based on the logic generated by
11187 # autoconf 2.59.
11188 case $ac_arg in
11189 *=* | --config-cache | -C | -disable-* | --disable-* \
11190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
11191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
11192 | -with-* | --with-* | -without-* | --without-* | --x)
11193 separate_arg=no
11196 separate_arg=yes
11199 separate_arg=no
11201 esac
11203 skip_targ=no
11204 skip_barg=no
11205 case $ac_arg in
11207 --with-* | --without-*)
11208 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11210 case $libopt in
11211 *[-_]include)
11212 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
11214 *[-_]lib)
11215 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
11217 *[-_]prefix)
11218 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11220 *[-_]type)
11221 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
11224 lib=$libopt
11226 esac
11229 case $lib in
11230 mpc | mpfr | gmp | isl)
11231 # If we're processing --with-$lib, --with-$lib-include or
11232 # --with-$lib-lib, for one of the libs above, and target is
11233 # different from host, don't pass the current argument to any
11234 # target library's configure.
11235 if test x$is_cross_compiler = xyes; then
11236 skip_targ=yes
11239 libintl | libiconv)
11240 # We don't want libintl (and co.) in anything but the host arguments.
11241 skip_targ=yes
11242 skip_barg=yes
11244 esac
11246 esac
11248 case "$ac_arg" in
11249 --cache-file=/dev/null | \
11250 -cache-file=/dev/null )
11251 # Handled here to avoid the test to skip args below.
11252 hbaseargs="$hbaseargs '$ac_arg'"
11253 bbaseargs="$bbaseargs '$ac_arg'"
11254 tbaseargs="$tbaseargs '$ac_arg'"
11255 # Assert: $separate_arg should always be no.
11256 keep_next=$separate_arg
11258 --no*)
11259 continue
11261 --c* | \
11262 --sr* | \
11263 --ho* | \
11264 --bu* | \
11265 --t* | \
11266 --program-* | \
11267 -cache_file* | \
11268 -srcdir* | \
11269 -host* | \
11270 -build* | \
11271 -target* | \
11272 -program-prefix* | \
11273 -program-suffix* | \
11274 -program-transform-name* )
11275 skip_next=$separate_arg
11276 continue
11279 # An option. Add it.
11280 case $ac_arg in
11281 *\'*)
11282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11283 esac
11284 hbaseargs="$hbaseargs '$ac_arg'"
11285 if test X"$skip_barg" = Xno; then
11286 bbaseargs="$bbaseargs '$ac_arg'"
11288 if test X"$skip_targ" = Xno; then
11289 tbaseargs="$tbaseargs '$ac_arg'"
11291 keep_next=$separate_arg
11294 # Either a variable assignment, or a nonopt (triplet). Don't
11295 # pass it down; let the Makefile handle this.
11296 continue
11298 esac
11299 done
11300 # Remove the initial space we just introduced and, as these will be
11301 # expanded by make, quote '$'.
11302 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11303 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11305 # Add in --program-transform-name, after --program-prefix and
11306 # --program-suffix have been applied to it. Autoconf has already
11307 # doubled dollar signs and backslashes in program_transform_name; we want
11308 # the backslashes un-doubled, and then the entire thing wrapped in single
11309 # quotes, because this will be expanded first by make and then by the shell.
11310 # Also, because we want to override the logic in subdir configure scripts to
11311 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11312 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11313 ${program_transform_name}
11314 EOF_SED
11315 gcc_transform_name=`cat conftestsed.out`
11316 rm -f conftestsed.out
11317 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11318 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11319 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11320 if test "$silent" = yes; then
11321 bbaseargs="$bbaseargs --silent"
11322 hbaseargs="$hbaseargs --silent"
11323 tbaseargs="$tbaseargs --silent"
11326 bbaseargs="$bbaseargs --disable-option-checking"
11327 hbaseargs="$hbaseargs --disable-option-checking"
11328 tbaseargs="$tbaseargs --disable-option-checking"
11330 if test "$enable_year2038" = no; then
11331 bbaseargs="$bbaseargs --disable-year2038"
11332 hbaseargs="$hbaseargs --disable-year2038"
11333 tbaseargs="$tbaseargs --disable-year2038"
11336 # Record and document user additions to sub configure arguments.
11341 # For the build-side libraries, we just need to pretend we're native,
11342 # and not use the same cache file. Multilibs are neither needed nor
11343 # desired. We can't even use the same cache file for all build-side
11344 # libraries, as they're compiled differently; some with C, some with
11345 # C++ or with different feature-enabling options.
11346 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11348 # For host modules, accept cache file option, or specification as blank.
11349 case "${cache_file}" in
11350 "") # empty
11351 cache_file_option="" ;;
11352 /* | [A-Za-z]:[\\/]* ) # absolute path
11353 cache_file_option="--cache-file=${cache_file}" ;;
11354 *) # relative path
11355 cache_file_option="--cache-file=../${cache_file}" ;;
11356 esac
11358 # Host dirs don't like to share a cache file either, horribly enough.
11359 # This seems to be due to autoconf 2.5x stupidity.
11360 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11362 target_configargs="$target_configargs ${tbaseargs}"
11364 # Passing a --with-cross-host argument lets the target libraries know
11365 # whether they are being built with a cross-compiler or being built
11366 # native. However, it would be better to use other mechanisms to make the
11367 # sorts of decisions they want to make on this basis. Please consider
11368 # this option to be deprecated. FIXME.
11369 if test x${is_cross_compiler} = xyes ; then
11370 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
11373 # Special user-friendly check for native x86_64-linux build, if
11374 # multilib is not explicitly enabled.
11375 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11376 x86_64-*linux*:yes:$build:$build:)
11377 # Make sure we have a development environment that handles 32-bit
11378 dev64=no
11379 echo "int main () { return 0; }" > conftest.c
11380 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11381 if test $? = 0 ; then
11382 if test -s conftest || test -s conftest.exe ; then
11383 dev64=yes
11386 rm -f conftest*
11387 if test x${dev64} != xyes ; then
11388 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
11391 esac
11393 # Default to --enable-multilib.
11394 if test x${enable_multilib} = x ; then
11395 target_configargs="--enable-multilib ${target_configargs}"
11398 # Pass --with-newlib if appropriate. Note that target_configdirs has
11399 # changed from the earlier setting of with_newlib.
11400 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
11401 target_configargs="--with-newlib ${target_configargs}"
11404 # Different target subdirs use different values of certain variables
11405 # (notably CXX). Worse, multilibs use *lots* of different values.
11406 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11407 # it doesn't automatically accept command-line overrides of them.
11408 # This means it's not safe for target subdirs to share a cache file,
11409 # which is disgusting, but there you have it. Hopefully this can be
11410 # fixed in future. It's still worthwhile to use a cache file for each
11411 # directory. I think.
11413 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11414 # We need to pass --target, as newer autoconf's requires consistency
11415 # for target_alias and gcc doesn't manage it consistently.
11416 target_configargs="--cache-file=./config.cache ${target_configargs}"
11418 FLAGS_FOR_TARGET=
11419 case " $target_configdirs " in
11420 *" newlib "*)
11421 case " $target_configargs " in
11422 *" --with-newlib "*)
11423 case "$target" in
11424 *-cygwin*)
11425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11427 esac
11429 # If we're not building GCC, don't discard standard headers.
11430 if test -d ${srcdir}/gcc; then
11431 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
11433 if test "${build}" != "${host}"; then
11434 # On Canadian crosses, CC_FOR_TARGET will have already been set
11435 # by `configure', so we won't have an opportunity to add -Bgcc/
11436 # to it. This is right: we don't want to search that directory
11437 # for binaries, but we want the header files in there, so add
11438 # them explicitly.
11439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11441 # Someone might think of using the pre-installed headers on
11442 # Canadian crosses, in case the installed compiler is not fully
11443 # compatible with the compiler being built. In this case, it
11444 # would be better to flag an error than risking having
11445 # incompatible object files being constructed. We can't
11446 # guarantee that an error will be flagged, but let's hope the
11447 # compiler will do it, when presented with incompatible header
11448 # files.
11452 case "${target}-${is_cross_compiler}" in
11453 i[3456789]86-*-linux*-no)
11454 # Here host == target, so we don't need to build gcc,
11455 # so we don't want to discard standard headers.
11456 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11459 # If we're building newlib, use its generic headers last, but search
11460 # for any libc-related directories first (so make it the last -B
11461 # switch).
11462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11464 # If we're building libgloss, find the startup file, simulator library
11465 # and linker script.
11466 case " $target_configdirs " in
11467 *" libgloss "*)
11468 # Look for startup file, simulator library and maybe linker script.
11469 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11470 # Look for libnosys.a in case the target needs it.
11471 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11472 # Most targets have the linker script in the source directory.
11473 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11475 esac
11477 esac
11479 esac
11481 esac
11483 case "$target" in
11484 x86_64-*mingw* | *-w64-mingw*)
11485 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11486 # however, use a symlink named 'mingw' in ${prefix} .
11487 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11489 *-mingw*)
11490 # MinGW can't be handled as Cygwin above since it does not use newlib.
11491 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'
11493 esac
11495 # Allow the user to override the flags for
11496 # our build compiler if desired.
11497 if test x"${build}" = x"${host}" ; then
11498 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
11499 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11500 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11501 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11504 # On Canadian crosses, we'll be searching the right directories for
11505 # the previously-installed cross compiler, so don't bother to add
11506 # flags for directories within the install tree of the compiler
11507 # being built; programs in there won't even run.
11508 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
11509 # Search for pre-installed headers if nothing else fits.
11510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11513 if test "x${use_gnu_ld}" = x &&
11514 echo " ${configdirs} " | grep " ld " > /dev/null ; then
11515 # Arrange for us to find uninstalled linker scripts.
11516 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11519 # Search for other target-specific linker scripts and such.
11520 case "${target}" in
11521 mep*)
11522 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11524 # The VxWorks support for shared libraries is getting in
11525 # incrementally. Make sure it doesn't get activated implicitly:
11526 *vxworks*)
11527 if test "${enable_shared-unset}" = unset ; then
11528 enable_shared=no
11529 # So the build of libraries knows ...
11530 target_configargs="${target_configargs} --disable-shared"
11531 # So gcc knows ...
11532 host_configargs="${host_configargs} --disable-shared"
11535 esac
11537 # Makefile fragments.
11538 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11540 eval fragval=\$$frag
11541 if test $fragval != /dev/null; then
11542 eval $frag=${srcdir}/$fragval
11544 done
11550 # Miscellanea: directories, flags, etc.
11559 # Build module lists & subconfigure args.
11563 # Host module lists & subconfigure args.
11568 # Target module lists & subconfigure args.
11572 # Build tools.
11593 # Generate default definitions for YACC, M4, LEX and other programs that run
11594 # on the build machine. These are used if the Makefile can't locate these
11595 # programs in objdir.
11596 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11598 for ac_prog in 'bison -y' byacc yacc
11600 # Extract the first word of "$ac_prog", so it can be a program name with args.
11601 set dummy $ac_prog; ac_word=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603 $as_echo_n "checking for $ac_word... " >&6; }
11604 if ${ac_cv_prog_YACC+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 if test -n "$YACC"; then
11608 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11609 else
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11617 ac_cv_prog_YACC="$ac_prog"
11618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 break 2
11621 done
11622 done
11623 IFS=$as_save_IFS
11627 YACC=$ac_cv_prog_YACC
11628 if test -n "$YACC"; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11630 $as_echo "$YACC" >&6; }
11631 else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633 $as_echo "no" >&6; }
11637 test -n "$YACC" && break
11638 done
11639 test -n "$YACC" || YACC="$MISSING bison -y"
11641 case " $build_configdirs " in
11642 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11643 esac
11645 for ac_prog in bison
11647 # Extract the first word of "$ac_prog", so it can be a program name with args.
11648 set dummy $ac_prog; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if ${ac_cv_prog_BISON+:} false; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 if test -n "$BISON"; then
11655 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11656 else
11657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $PATH
11660 IFS=$as_save_IFS
11661 test -z "$as_dir" && as_dir=.
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11664 ac_cv_prog_BISON="$ac_prog"
11665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11666 break 2
11668 done
11669 done
11670 IFS=$as_save_IFS
11674 BISON=$ac_cv_prog_BISON
11675 if test -n "$BISON"; then
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11677 $as_echo "$BISON" >&6; }
11678 else
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680 $as_echo "no" >&6; }
11684 test -n "$BISON" && break
11685 done
11686 test -n "$BISON" || BISON="$MISSING bison"
11688 case " $build_configdirs " in
11689 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11690 esac
11692 for ac_prog in gm4 gnum4 m4
11694 # Extract the first word of "$ac_prog", so it can be a program name with args.
11695 set dummy $ac_prog; 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_M4+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test -n "$M4"; then
11702 ac_cv_prog_M4="$M4" # 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_M4="$ac_prog"
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 M4=$ac_cv_prog_M4
11722 if test -n "$M4"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
11724 $as_echo "$M4" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11731 test -n "$M4" && break
11732 done
11733 test -n "$M4" || M4="$MISSING m4"
11735 case " $build_configdirs " in
11736 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11737 esac
11739 for ac_prog in flex lex
11741 # Extract the first word of "$ac_prog", so it can be a program name with args.
11742 set dummy $ac_prog; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if ${ac_cv_prog_LEX+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 if test -n "$LEX"; then
11749 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11750 else
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758 ac_cv_prog_LEX="$ac_prog"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11762 done
11763 done
11764 IFS=$as_save_IFS
11768 LEX=$ac_cv_prog_LEX
11769 if test -n "$LEX"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11771 $as_echo "$LEX" >&6; }
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11778 test -n "$LEX" && break
11779 done
11780 test -n "$LEX" || LEX="$MISSING flex"
11782 case " $build_configdirs " in
11783 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11784 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11785 esac
11787 for ac_prog in flex
11789 # Extract the first word of "$ac_prog", so it can be a program name with args.
11790 set dummy $ac_prog; ac_word=$2
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792 $as_echo_n "checking for $ac_word... " >&6; }
11793 if ${ac_cv_prog_FLEX+:} false; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 if test -n "$FLEX"; then
11797 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11798 else
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in $PATH
11802 IFS=$as_save_IFS
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11806 ac_cv_prog_FLEX="$ac_prog"
11807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11810 done
11811 done
11812 IFS=$as_save_IFS
11816 FLEX=$ac_cv_prog_FLEX
11817 if test -n "$FLEX"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11819 $as_echo "$FLEX" >&6; }
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11826 test -n "$FLEX" && break
11827 done
11828 test -n "$FLEX" || FLEX="$MISSING flex"
11830 case " $build_configdirs " in
11831 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11832 esac
11834 for ac_prog in makeinfo
11836 # Extract the first word of "$ac_prog", so it can be a program name with args.
11837 set dummy $ac_prog; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_prog_MAKEINFO+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 if test -n "$MAKEINFO"; then
11844 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11845 else
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11853 ac_cv_prog_MAKEINFO="$ac_prog"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11857 done
11858 done
11859 IFS=$as_save_IFS
11863 MAKEINFO=$ac_cv_prog_MAKEINFO
11864 if test -n "$MAKEINFO"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11866 $as_echo "$MAKEINFO" >&6; }
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11873 test -n "$MAKEINFO" && break
11874 done
11875 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
11877 case " $build_configdirs " in
11878 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11881 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11882 # higher, else we use the "missing" dummy.
11883 if ${MAKEINFO} --version \
11884 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11886 else
11887 MAKEINFO="$MISSING makeinfo"
11891 esac
11893 # FIXME: expect and dejagnu may become build tools?
11895 for ac_prog in expect
11897 # Extract the first word of "$ac_prog", so it can be a program name with args.
11898 set dummy $ac_prog; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if ${ac_cv_prog_EXPECT+:} false; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 if test -n "$EXPECT"; then
11905 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
11906 else
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11914 ac_cv_prog_EXPECT="$ac_prog"
11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916 break 2
11918 done
11919 done
11920 IFS=$as_save_IFS
11924 EXPECT=$ac_cv_prog_EXPECT
11925 if test -n "$EXPECT"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
11927 $as_echo "$EXPECT" >&6; }
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11934 test -n "$EXPECT" && break
11935 done
11936 test -n "$EXPECT" || EXPECT="expect"
11938 case " $configdirs " in
11939 *" expect "*)
11940 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
11942 esac
11944 for ac_prog in runtest
11946 # Extract the first word of "$ac_prog", so it can be a program name with args.
11947 set dummy $ac_prog; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_prog_RUNTEST+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test -n "$RUNTEST"; then
11954 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11955 else
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_RUNTEST="$ac_prog"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11967 done
11968 done
11969 IFS=$as_save_IFS
11973 RUNTEST=$ac_cv_prog_RUNTEST
11974 if test -n "$RUNTEST"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
11976 $as_echo "$RUNTEST" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11983 test -n "$RUNTEST" && break
11984 done
11985 test -n "$RUNTEST" || RUNTEST="runtest"
11987 case " $configdirs " in
11988 *" dejagnu "*)
11989 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11991 esac
11994 # Host tools.
11995 ncn_tool_prefix=
11996 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11997 ncn_target_tool_prefix=
11998 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
12002 if test -n "$AR"; then
12003 ac_cv_prog_AR=$AR
12004 elif test -n "$ac_cv_prog_AR"; then
12005 AR=$ac_cv_prog_AR
12008 if test -n "$ac_cv_prog_AR"; then
12009 for ncn_progname in ar; do
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if ${ac_cv_prog_AR+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 if test -n "$AR"; then
12018 ac_cv_prog_AR="$AR" # Let the user override the test.
12019 else
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12027 ac_cv_prog_AR="${ncn_progname}"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 break 2
12031 done
12032 done
12033 IFS=$as_save_IFS
12037 AR=$ac_cv_prog_AR
12038 if test -n "$AR"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12040 $as_echo "$AR" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12047 done
12050 for ncn_progname in ar; do
12051 if test -n "$ncn_tool_prefix"; then
12052 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12053 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if ${ac_cv_prog_AR+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 if test -n "$AR"; then
12060 ac_cv_prog_AR="$AR" # Let the user override the test.
12061 else
12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12069 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 break 2
12073 done
12074 done
12075 IFS=$as_save_IFS
12079 AR=$ac_cv_prog_AR
12080 if test -n "$AR"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12082 $as_echo "$AR" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12090 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12092 set dummy ${ncn_progname}; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_AR+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 if test -n "$AR"; then
12099 ac_cv_prog_AR="$AR" # Let the user override the test.
12100 else
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108 ac_cv_prog_AR="${ncn_progname}"
12109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110 break 2
12112 done
12113 done
12114 IFS=$as_save_IFS
12118 AR=$ac_cv_prog_AR
12119 if test -n "$AR"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12121 $as_echo "$AR" >&6; }
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12129 test -n "$ac_cv_prog_AR" && break
12130 done
12132 if test -z "$ac_cv_prog_AR" ; then
12133 set dummy ar
12134 if test $build = $host ; then
12135 AR="$2"
12136 else
12137 AR="${ncn_tool_prefix}$2"
12143 if test -n "$AS"; then
12144 ac_cv_prog_AS=$AS
12145 elif test -n "$ac_cv_prog_AS"; then
12146 AS=$ac_cv_prog_AS
12149 if test -n "$ac_cv_prog_AS"; then
12150 for ncn_progname in as; do
12151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12152 set dummy ${ncn_progname}; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if ${ac_cv_prog_AS+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 if test -n "$AS"; then
12159 ac_cv_prog_AS="$AS" # Let the user override the test.
12160 else
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_prog_AS="${ncn_progname}"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 break 2
12172 done
12173 done
12174 IFS=$as_save_IFS
12178 AS=$ac_cv_prog_AS
12179 if test -n "$AS"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12181 $as_echo "$AS" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12188 done
12191 for ncn_progname in as; do
12192 if test -n "$ncn_tool_prefix"; then
12193 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12194 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196 $as_echo_n "checking for $ac_word... " >&6; }
12197 if ${ac_cv_prog_AS+:} false; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 if test -n "$AS"; then
12201 ac_cv_prog_AS="$AS" # Let the user override the test.
12202 else
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12206 IFS=$as_save_IFS
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12210 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 break 2
12214 done
12215 done
12216 IFS=$as_save_IFS
12220 AS=$ac_cv_prog_AS
12221 if test -n "$AS"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12223 $as_echo "$AS" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12231 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12233 set dummy ${ncn_progname}; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_prog_AS+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 if test -n "$AS"; then
12240 ac_cv_prog_AS="$AS" # Let the user override the test.
12241 else
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243 for as_dir in $PATH
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249 ac_cv_prog_AS="${ncn_progname}"
12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 break 2
12253 done
12254 done
12255 IFS=$as_save_IFS
12259 AS=$ac_cv_prog_AS
12260 if test -n "$AS"; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12262 $as_echo "$AS" >&6; }
12263 else
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12270 test -n "$ac_cv_prog_AS" && break
12271 done
12273 if test -z "$ac_cv_prog_AS" ; then
12274 set dummy as
12275 if test $build = $host ; then
12276 AS="$2"
12277 else
12278 AS="${ncn_tool_prefix}$2"
12284 if test -n "$DLLTOOL"; then
12285 ac_cv_prog_DLLTOOL=$DLLTOOL
12286 elif test -n "$ac_cv_prog_DLLTOOL"; then
12287 DLLTOOL=$ac_cv_prog_DLLTOOL
12290 if test -n "$ac_cv_prog_DLLTOOL"; then
12291 for ncn_progname in dlltool; do
12292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12293 set dummy ${ncn_progname}; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_prog_DLLTOOL+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 if test -n "$DLLTOOL"; then
12300 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12301 else
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309 ac_cv_prog_DLLTOOL="${ncn_progname}"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311 break 2
12313 done
12314 done
12315 IFS=$as_save_IFS
12319 DLLTOOL=$ac_cv_prog_DLLTOOL
12320 if test -n "$DLLTOOL"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12322 $as_echo "$DLLTOOL" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12329 done
12332 for ncn_progname in dlltool; do
12333 if test -n "$ncn_tool_prefix"; then
12334 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12335 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337 $as_echo_n "checking for $ac_word... " >&6; }
12338 if ${ac_cv_prog_DLLTOOL+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 if test -n "$DLLTOOL"; then
12342 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12343 else
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12347 IFS=$as_save_IFS
12348 test -z "$as_dir" && as_dir=.
12349 for ac_exec_ext in '' $ac_executable_extensions; do
12350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12351 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 break 2
12355 done
12356 done
12357 IFS=$as_save_IFS
12361 DLLTOOL=$ac_cv_prog_DLLTOOL
12362 if test -n "$DLLTOOL"; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12364 $as_echo "$DLLTOOL" >&6; }
12365 else
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12372 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12374 set dummy ${ncn_progname}; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if ${ac_cv_prog_DLLTOOL+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 if test -n "$DLLTOOL"; then
12381 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12382 else
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12386 IFS=$as_save_IFS
12387 test -z "$as_dir" && as_dir=.
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390 ac_cv_prog_DLLTOOL="${ncn_progname}"
12391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12392 break 2
12394 done
12395 done
12396 IFS=$as_save_IFS
12400 DLLTOOL=$ac_cv_prog_DLLTOOL
12401 if test -n "$DLLTOOL"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12403 $as_echo "$DLLTOOL" >&6; }
12404 else
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12411 test -n "$ac_cv_prog_DLLTOOL" && break
12412 done
12414 if test -z "$ac_cv_prog_DLLTOOL" ; then
12415 set dummy dlltool
12416 if test $build = $host ; then
12417 DLLTOOL="$2"
12418 else
12419 DLLTOOL="${ncn_tool_prefix}$2"
12425 if test -n "$DSYMUTIL"; then
12426 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12427 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12431 if test -n "$ac_cv_prog_DSYMUTIL"; then
12432 for ncn_progname in dsymutil; do
12433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12434 set dummy ${ncn_progname}; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 if test -n "$DSYMUTIL"; then
12441 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12442 else
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 break 2
12454 done
12455 done
12456 IFS=$as_save_IFS
12460 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12461 if test -n "$DSYMUTIL"; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12463 $as_echo "$DSYMUTIL" >&6; }
12464 else
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12470 done
12473 for ncn_progname in dsymutil; do
12474 if test -n "$ncn_tool_prefix"; then
12475 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12476 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478 $as_echo_n "checking for $ac_word... " >&6; }
12479 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 if test -n "$DSYMUTIL"; then
12483 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12484 else
12485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486 for as_dir in $PATH
12488 IFS=$as_save_IFS
12489 test -z "$as_dir" && as_dir=.
12490 for ac_exec_ext in '' $ac_executable_extensions; do
12491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12492 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12494 break 2
12496 done
12497 done
12498 IFS=$as_save_IFS
12502 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12503 if test -n "$DSYMUTIL"; then
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12505 $as_echo "$DSYMUTIL" >&6; }
12506 else
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508 $as_echo "no" >&6; }
12513 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12515 set dummy ${ncn_progname}; ac_word=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517 $as_echo_n "checking for $ac_word... " >&6; }
12518 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 if test -n "$DSYMUTIL"; then
12522 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12523 else
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 break 2
12535 done
12536 done
12537 IFS=$as_save_IFS
12541 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12542 if test -n "$DSYMUTIL"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12544 $as_echo "$DSYMUTIL" >&6; }
12545 else
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12552 test -n "$ac_cv_prog_DSYMUTIL" && break
12553 done
12555 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12556 set dummy dsymutil
12557 if test $build = $host ; then
12558 DSYMUTIL="$2"
12559 else
12560 DSYMUTIL="${ncn_tool_prefix}$2"
12566 if test -n "$LD"; then
12567 ac_cv_prog_LD=$LD
12568 elif test -n "$ac_cv_prog_LD"; then
12569 LD=$ac_cv_prog_LD
12572 if test -n "$ac_cv_prog_LD"; then
12573 for ncn_progname in ld; do
12574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12575 set dummy ${ncn_progname}; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if ${ac_cv_prog_LD+:} false; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 if test -n "$LD"; then
12582 ac_cv_prog_LD="$LD" # Let the user override the test.
12583 else
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $PATH
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12591 ac_cv_prog_LD="${ncn_progname}"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12595 done
12596 done
12597 IFS=$as_save_IFS
12601 LD=$ac_cv_prog_LD
12602 if test -n "$LD"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12604 $as_echo "$LD" >&6; }
12605 else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12611 done
12614 for ncn_progname in ld; do
12615 if test -n "$ncn_tool_prefix"; then
12616 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12617 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_prog_LD+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 if test -n "$LD"; then
12624 ac_cv_prog_LD="$LD" # Let the user override the test.
12625 else
12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
12631 for ac_exec_ext in '' $ac_executable_extensions; do
12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635 break 2
12637 done
12638 done
12639 IFS=$as_save_IFS
12643 LD=$ac_cv_prog_LD
12644 if test -n "$LD"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12646 $as_echo "$LD" >&6; }
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12654 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12656 set dummy ${ncn_progname}; ac_word=$2
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658 $as_echo_n "checking for $ac_word... " >&6; }
12659 if ${ac_cv_prog_LD+:} false; then :
12660 $as_echo_n "(cached) " >&6
12661 else
12662 if test -n "$LD"; then
12663 ac_cv_prog_LD="$LD" # Let the user override the test.
12664 else
12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12666 for as_dir in $PATH
12668 IFS=$as_save_IFS
12669 test -z "$as_dir" && as_dir=.
12670 for ac_exec_ext in '' $ac_executable_extensions; do
12671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12672 ac_cv_prog_LD="${ncn_progname}"
12673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12674 break 2
12676 done
12677 done
12678 IFS=$as_save_IFS
12682 LD=$ac_cv_prog_LD
12683 if test -n "$LD"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12685 $as_echo "$LD" >&6; }
12686 else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12693 test -n "$ac_cv_prog_LD" && break
12694 done
12696 if test -z "$ac_cv_prog_LD" ; then
12697 set dummy ld
12698 if test $build = $host ; then
12699 LD="$2"
12700 else
12701 LD="${ncn_tool_prefix}$2"
12707 if test -n "$LIPO"; then
12708 ac_cv_prog_LIPO=$LIPO
12709 elif test -n "$ac_cv_prog_LIPO"; then
12710 LIPO=$ac_cv_prog_LIPO
12713 if test -n "$ac_cv_prog_LIPO"; then
12714 for ncn_progname in lipo; do
12715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12716 set dummy ${ncn_progname}; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if ${ac_cv_prog_LIPO+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 if test -n "$LIPO"; then
12723 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12724 else
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12732 ac_cv_prog_LIPO="${ncn_progname}"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12736 done
12737 done
12738 IFS=$as_save_IFS
12742 LIPO=$ac_cv_prog_LIPO
12743 if test -n "$LIPO"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12745 $as_echo "$LIPO" >&6; }
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12752 done
12755 for ncn_progname in lipo; do
12756 if test -n "$ncn_tool_prefix"; then
12757 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12758 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if ${ac_cv_prog_LIPO+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 if test -n "$LIPO"; then
12765 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12766 else
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12774 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12778 done
12779 done
12780 IFS=$as_save_IFS
12784 LIPO=$ac_cv_prog_LIPO
12785 if test -n "$LIPO"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12787 $as_echo "$LIPO" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12795 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12797 set dummy ${ncn_progname}; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if ${ac_cv_prog_LIPO+:} false; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 if test -n "$LIPO"; then
12804 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12805 else
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12813 ac_cv_prog_LIPO="${ncn_progname}"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12817 done
12818 done
12819 IFS=$as_save_IFS
12823 LIPO=$ac_cv_prog_LIPO
12824 if test -n "$LIPO"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12826 $as_echo "$LIPO" >&6; }
12827 else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12834 test -n "$ac_cv_prog_LIPO" && break
12835 done
12837 if test -z "$ac_cv_prog_LIPO" ; then
12838 set dummy lipo
12839 if test $build = $host ; then
12840 LIPO="$2"
12841 else
12842 LIPO="${ncn_tool_prefix}$2"
12848 if test -n "$NM"; then
12849 ac_cv_prog_NM=$NM
12850 elif test -n "$ac_cv_prog_NM"; then
12851 NM=$ac_cv_prog_NM
12854 if test -n "$ac_cv_prog_NM"; then
12855 for ncn_progname in nm; do
12856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12857 set dummy ${ncn_progname}; ac_word=$2
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859 $as_echo_n "checking for $ac_word... " >&6; }
12860 if ${ac_cv_prog_NM+:} false; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 if test -n "$NM"; then
12864 ac_cv_prog_NM="$NM" # Let the user override the test.
12865 else
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12873 ac_cv_prog_NM="${ncn_progname}"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 break 2
12877 done
12878 done
12879 IFS=$as_save_IFS
12883 NM=$ac_cv_prog_NM
12884 if test -n "$NM"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12886 $as_echo "$NM" >&6; }
12887 else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12893 done
12896 for ncn_progname in nm; do
12897 if test -n "$ncn_tool_prefix"; then
12898 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12899 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if ${ac_cv_prog_NM+:} false; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 if test -n "$NM"; then
12906 ac_cv_prog_NM="$NM" # Let the user override the test.
12907 else
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12915 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12919 done
12920 done
12921 IFS=$as_save_IFS
12925 NM=$ac_cv_prog_NM
12926 if test -n "$NM"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12928 $as_echo "$NM" >&6; }
12929 else
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12936 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
12937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12938 set dummy ${ncn_progname}; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12940 $as_echo_n "checking for $ac_word... " >&6; }
12941 if ${ac_cv_prog_NM+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 if test -n "$NM"; then
12945 ac_cv_prog_NM="$NM" # Let the user override the test.
12946 else
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $PATH
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12954 ac_cv_prog_NM="${ncn_progname}"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12958 done
12959 done
12960 IFS=$as_save_IFS
12964 NM=$ac_cv_prog_NM
12965 if test -n "$NM"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12967 $as_echo "$NM" >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12975 test -n "$ac_cv_prog_NM" && break
12976 done
12978 if test -z "$ac_cv_prog_NM" ; then
12979 set dummy nm
12980 if test $build = $host ; then
12981 NM="$2"
12982 else
12983 NM="${ncn_tool_prefix}$2"
12989 if test -n "$RANLIB"; then
12990 ac_cv_prog_RANLIB=$RANLIB
12991 elif test -n "$ac_cv_prog_RANLIB"; then
12992 RANLIB=$ac_cv_prog_RANLIB
12995 if test -n "$ac_cv_prog_RANLIB"; then
12996 for ncn_progname in ranlib; 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_RANLIB+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 if test -n "$RANLIB"; then
13005 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${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 RANLIB=$ac_cv_prog_RANLIB
13025 if test -n "$RANLIB"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13027 $as_echo "$RANLIB" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13034 done
13037 for ncn_progname in ranlib; do
13038 if test -n "$ncn_tool_prefix"; then
13039 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13040 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if ${ac_cv_prog_RANLIB+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 if test -n "$RANLIB"; then
13047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13048 else
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13056 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 break 2
13060 done
13061 done
13062 IFS=$as_save_IFS
13066 RANLIB=$ac_cv_prog_RANLIB
13067 if test -n "$RANLIB"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13069 $as_echo "$RANLIB" >&6; }
13070 else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13077 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13079 set dummy ${ncn_progname}; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if ${ac_cv_prog_RANLIB+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 if test -n "$RANLIB"; then
13086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13087 else
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13095 ac_cv_prog_RANLIB="${ncn_progname}"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13099 done
13100 done
13101 IFS=$as_save_IFS
13105 RANLIB=$ac_cv_prog_RANLIB
13106 if test -n "$RANLIB"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13108 $as_echo "$RANLIB" >&6; }
13109 else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 $as_echo "no" >&6; }
13116 test -n "$ac_cv_prog_RANLIB" && break
13117 done
13119 if test -z "$ac_cv_prog_RANLIB" ; then
13120 RANLIB="true"
13125 if test -n "$STRIP"; then
13126 ac_cv_prog_STRIP=$STRIP
13127 elif test -n "$ac_cv_prog_STRIP"; then
13128 STRIP=$ac_cv_prog_STRIP
13131 if test -n "$ac_cv_prog_STRIP"; then
13132 for ncn_progname in strip; do
13133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13134 set dummy ${ncn_progname}; ac_word=$2
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13136 $as_echo_n "checking for $ac_word... " >&6; }
13137 if ${ac_cv_prog_STRIP+:} false; then :
13138 $as_echo_n "(cached) " >&6
13139 else
13140 if test -n "$STRIP"; then
13141 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13142 else
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $PATH
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_STRIP="${ncn_progname}"
13151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13154 done
13155 done
13156 IFS=$as_save_IFS
13160 STRIP=$ac_cv_prog_STRIP
13161 if test -n "$STRIP"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13163 $as_echo "$STRIP" >&6; }
13164 else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13170 done
13173 for ncn_progname in strip; do
13174 if test -n "$ncn_tool_prefix"; then
13175 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13176 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if ${ac_cv_prog_STRIP+:} false; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 if test -n "$STRIP"; then
13183 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13184 else
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13192 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13194 break 2
13196 done
13197 done
13198 IFS=$as_save_IFS
13202 STRIP=$ac_cv_prog_STRIP
13203 if test -n "$STRIP"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13205 $as_echo "$STRIP" >&6; }
13206 else
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13213 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13215 set dummy ${ncn_progname}; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if ${ac_cv_prog_STRIP+:} false; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 if test -n "$STRIP"; then
13222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13223 else
13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13225 for as_dir in $PATH
13227 IFS=$as_save_IFS
13228 test -z "$as_dir" && as_dir=.
13229 for ac_exec_ext in '' $ac_executable_extensions; do
13230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13231 ac_cv_prog_STRIP="${ncn_progname}"
13232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13233 break 2
13235 done
13236 done
13237 IFS=$as_save_IFS
13241 STRIP=$ac_cv_prog_STRIP
13242 if test -n "$STRIP"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13244 $as_echo "$STRIP" >&6; }
13245 else
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13252 test -n "$ac_cv_prog_STRIP" && break
13253 done
13255 if test -z "$ac_cv_prog_STRIP" ; then
13256 STRIP="true"
13261 if test -n "$WINDRES"; then
13262 ac_cv_prog_WINDRES=$WINDRES
13263 elif test -n "$ac_cv_prog_WINDRES"; then
13264 WINDRES=$ac_cv_prog_WINDRES
13267 if test -n "$ac_cv_prog_WINDRES"; then
13268 for ncn_progname in windres; do
13269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13270 set dummy ${ncn_progname}; ac_word=$2
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13272 $as_echo_n "checking for $ac_word... " >&6; }
13273 if ${ac_cv_prog_WINDRES+:} false; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 if test -n "$WINDRES"; then
13277 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13278 else
13279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280 for as_dir in $PATH
13282 IFS=$as_save_IFS
13283 test -z "$as_dir" && as_dir=.
13284 for ac_exec_ext in '' $ac_executable_extensions; do
13285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13286 ac_cv_prog_WINDRES="${ncn_progname}"
13287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13288 break 2
13290 done
13291 done
13292 IFS=$as_save_IFS
13296 WINDRES=$ac_cv_prog_WINDRES
13297 if test -n "$WINDRES"; then
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13299 $as_echo "$WINDRES" >&6; }
13300 else
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13306 done
13309 for ncn_progname in windres; do
13310 if test -n "$ncn_tool_prefix"; then
13311 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13312 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13314 $as_echo_n "checking for $ac_word... " >&6; }
13315 if ${ac_cv_prog_WINDRES+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 if test -n "$WINDRES"; then
13319 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13320 else
13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322 for as_dir in $PATH
13324 IFS=$as_save_IFS
13325 test -z "$as_dir" && as_dir=.
13326 for ac_exec_ext in '' $ac_executable_extensions; do
13327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13328 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13330 break 2
13332 done
13333 done
13334 IFS=$as_save_IFS
13338 WINDRES=$ac_cv_prog_WINDRES
13339 if test -n "$WINDRES"; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13341 $as_echo "$WINDRES" >&6; }
13342 else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13349 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13351 set dummy ${ncn_progname}; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if ${ac_cv_prog_WINDRES+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 if test -n "$WINDRES"; then
13358 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13359 else
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 for as_dir in $PATH
13363 IFS=$as_save_IFS
13364 test -z "$as_dir" && as_dir=.
13365 for ac_exec_ext in '' $ac_executable_extensions; do
13366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13367 ac_cv_prog_WINDRES="${ncn_progname}"
13368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13369 break 2
13371 done
13372 done
13373 IFS=$as_save_IFS
13377 WINDRES=$ac_cv_prog_WINDRES
13378 if test -n "$WINDRES"; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13380 $as_echo "$WINDRES" >&6; }
13381 else
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383 $as_echo "no" >&6; }
13388 test -n "$ac_cv_prog_WINDRES" && break
13389 done
13391 if test -z "$ac_cv_prog_WINDRES" ; then
13392 set dummy windres
13393 if test $build = $host ; then
13394 WINDRES="$2"
13395 else
13396 WINDRES="${ncn_tool_prefix}$2"
13402 if test -n "$WINDMC"; then
13403 ac_cv_prog_WINDMC=$WINDMC
13404 elif test -n "$ac_cv_prog_WINDMC"; then
13405 WINDMC=$ac_cv_prog_WINDMC
13408 if test -n "$ac_cv_prog_WINDMC"; then
13409 for ncn_progname in windmc; do
13410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13411 set dummy ${ncn_progname}; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if ${ac_cv_prog_WINDMC+:} false; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 if test -n "$WINDMC"; then
13418 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13419 else
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13427 ac_cv_prog_WINDMC="${ncn_progname}"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13431 done
13432 done
13433 IFS=$as_save_IFS
13437 WINDMC=$ac_cv_prog_WINDMC
13438 if test -n "$WINDMC"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13440 $as_echo "$WINDMC" >&6; }
13441 else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13447 done
13450 for ncn_progname in windmc; do
13451 if test -n "$ncn_tool_prefix"; then
13452 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13453 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13455 $as_echo_n "checking for $ac_word... " >&6; }
13456 if ${ac_cv_prog_WINDMC+:} false; then :
13457 $as_echo_n "(cached) " >&6
13458 else
13459 if test -n "$WINDMC"; then
13460 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13461 else
13462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13463 for as_dir in $PATH
13465 IFS=$as_save_IFS
13466 test -z "$as_dir" && as_dir=.
13467 for ac_exec_ext in '' $ac_executable_extensions; do
13468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13469 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13471 break 2
13473 done
13474 done
13475 IFS=$as_save_IFS
13479 WINDMC=$ac_cv_prog_WINDMC
13480 if test -n "$WINDMC"; then
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13482 $as_echo "$WINDMC" >&6; }
13483 else
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13490 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13492 set dummy ${ncn_progname}; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 $as_echo_n "checking for $ac_word... " >&6; }
13495 if ${ac_cv_prog_WINDMC+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 if test -n "$WINDMC"; then
13499 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13500 else
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13508 ac_cv_prog_WINDMC="${ncn_progname}"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510 break 2
13512 done
13513 done
13514 IFS=$as_save_IFS
13518 WINDMC=$ac_cv_prog_WINDMC
13519 if test -n "$WINDMC"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13521 $as_echo "$WINDMC" >&6; }
13522 else
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13529 test -n "$ac_cv_prog_WINDMC" && break
13530 done
13532 if test -z "$ac_cv_prog_WINDMC" ; then
13533 set dummy windmc
13534 if test $build = $host ; then
13535 WINDMC="$2"
13536 else
13537 WINDMC="${ncn_tool_prefix}$2"
13543 if test -n "$OBJCOPY"; then
13544 ac_cv_prog_OBJCOPY=$OBJCOPY
13545 elif test -n "$ac_cv_prog_OBJCOPY"; then
13546 OBJCOPY=$ac_cv_prog_OBJCOPY
13549 if test -n "$ac_cv_prog_OBJCOPY"; then
13550 for ncn_progname in objcopy; do
13551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13552 set dummy ${ncn_progname}; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if ${ac_cv_prog_OBJCOPY+:} false; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 if test -n "$OBJCOPY"; then
13559 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13560 else
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13564 IFS=$as_save_IFS
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13568 ac_cv_prog_OBJCOPY="${ncn_progname}"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570 break 2
13572 done
13573 done
13574 IFS=$as_save_IFS
13578 OBJCOPY=$ac_cv_prog_OBJCOPY
13579 if test -n "$OBJCOPY"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13581 $as_echo "$OBJCOPY" >&6; }
13582 else
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13588 done
13591 for ncn_progname in objcopy; do
13592 if test -n "$ncn_tool_prefix"; then
13593 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13594 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13596 $as_echo_n "checking for $ac_word... " >&6; }
13597 if ${ac_cv_prog_OBJCOPY+:} false; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 if test -n "$OBJCOPY"; then
13601 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13602 else
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604 for as_dir in $PATH
13606 IFS=$as_save_IFS
13607 test -z "$as_dir" && as_dir=.
13608 for ac_exec_ext in '' $ac_executable_extensions; do
13609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13610 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13612 break 2
13614 done
13615 done
13616 IFS=$as_save_IFS
13620 OBJCOPY=$ac_cv_prog_OBJCOPY
13621 if test -n "$OBJCOPY"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13623 $as_echo "$OBJCOPY" >&6; }
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13631 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13632 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13633 set dummy ${ncn_progname}; ac_word=$2
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13635 $as_echo_n "checking for $ac_word... " >&6; }
13636 if ${ac_cv_prog_OBJCOPY+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 if test -n "$OBJCOPY"; then
13640 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13641 else
13642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13643 for as_dir in $PATH
13645 IFS=$as_save_IFS
13646 test -z "$as_dir" && as_dir=.
13647 for ac_exec_ext in '' $ac_executable_extensions; do
13648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13649 ac_cv_prog_OBJCOPY="${ncn_progname}"
13650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13651 break 2
13653 done
13654 done
13655 IFS=$as_save_IFS
13659 OBJCOPY=$ac_cv_prog_OBJCOPY
13660 if test -n "$OBJCOPY"; then
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13662 $as_echo "$OBJCOPY" >&6; }
13663 else
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 $as_echo "no" >&6; }
13670 test -n "$ac_cv_prog_OBJCOPY" && break
13671 done
13673 if test -z "$ac_cv_prog_OBJCOPY" ; then
13674 set dummy objcopy
13675 if test $build = $host ; then
13676 OBJCOPY="$2"
13677 else
13678 OBJCOPY="${ncn_tool_prefix}$2"
13684 if test -n "$OBJDUMP"; then
13685 ac_cv_prog_OBJDUMP=$OBJDUMP
13686 elif test -n "$ac_cv_prog_OBJDUMP"; then
13687 OBJDUMP=$ac_cv_prog_OBJDUMP
13690 if test -n "$ac_cv_prog_OBJDUMP"; then
13691 for ncn_progname in objdump; do
13692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13693 set dummy ${ncn_progname}; ac_word=$2
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695 $as_echo_n "checking for $ac_word... " >&6; }
13696 if ${ac_cv_prog_OBJDUMP+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 if test -n "$OBJDUMP"; then
13700 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13701 else
13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703 for as_dir in $PATH
13705 IFS=$as_save_IFS
13706 test -z "$as_dir" && as_dir=.
13707 for ac_exec_ext in '' $ac_executable_extensions; do
13708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13709 ac_cv_prog_OBJDUMP="${ncn_progname}"
13710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13711 break 2
13713 done
13714 done
13715 IFS=$as_save_IFS
13719 OBJDUMP=$ac_cv_prog_OBJDUMP
13720 if test -n "$OBJDUMP"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13722 $as_echo "$OBJDUMP" >&6; }
13723 else
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13729 done
13732 for ncn_progname in objdump; do
13733 if test -n "$ncn_tool_prefix"; then
13734 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13735 set dummy ${ncn_tool_prefix}${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_OBJDUMP+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741 if test -n "$OBJDUMP"; then
13742 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ncn_tool_prefix}${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 OBJDUMP=$ac_cv_prog_OBJDUMP
13762 if test -n "$OBJDUMP"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13764 $as_echo "$OBJDUMP" >&6; }
13765 else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13772 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13774 set dummy ${ncn_progname}; ac_word=$2
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776 $as_echo_n "checking for $ac_word... " >&6; }
13777 if ${ac_cv_prog_OBJDUMP+:} false; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 if test -n "$OBJDUMP"; then
13781 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13782 else
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13786 IFS=$as_save_IFS
13787 test -z "$as_dir" && as_dir=.
13788 for ac_exec_ext in '' $ac_executable_extensions; do
13789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13790 ac_cv_prog_OBJDUMP="${ncn_progname}"
13791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792 break 2
13794 done
13795 done
13796 IFS=$as_save_IFS
13800 OBJDUMP=$ac_cv_prog_OBJDUMP
13801 if test -n "$OBJDUMP"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13803 $as_echo "$OBJDUMP" >&6; }
13804 else
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13811 test -n "$ac_cv_prog_OBJDUMP" && break
13812 done
13814 if test -z "$ac_cv_prog_OBJDUMP" ; then
13815 set dummy objdump
13816 if test $build = $host ; then
13817 OBJDUMP="$2"
13818 else
13819 OBJDUMP="${ncn_tool_prefix}$2"
13825 if test -n "$OTOOL"; then
13826 ac_cv_prog_OTOOL=$OTOOL
13827 elif test -n "$ac_cv_prog_OTOOL"; then
13828 OTOOL=$ac_cv_prog_OTOOL
13831 if test -n "$ac_cv_prog_OTOOL"; then
13832 for ncn_progname in otool; do
13833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13834 set dummy ${ncn_progname}; ac_word=$2
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13836 $as_echo_n "checking for $ac_word... " >&6; }
13837 if ${ac_cv_prog_OTOOL+:} false; then :
13838 $as_echo_n "(cached) " >&6
13839 else
13840 if test -n "$OTOOL"; then
13841 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13842 else
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13850 ac_cv_prog_OTOOL="${ncn_progname}"
13851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13854 done
13855 done
13856 IFS=$as_save_IFS
13860 OTOOL=$ac_cv_prog_OTOOL
13861 if test -n "$OTOOL"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13863 $as_echo "$OTOOL" >&6; }
13864 else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866 $as_echo "no" >&6; }
13870 done
13873 for ncn_progname in otool; do
13874 if test -n "$ncn_tool_prefix"; then
13875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13876 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878 $as_echo_n "checking for $ac_word... " >&6; }
13879 if ${ac_cv_prog_OTOOL+:} false; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 if test -n "$OTOOL"; then
13883 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13884 else
13885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
13891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13892 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13896 done
13897 done
13898 IFS=$as_save_IFS
13902 OTOOL=$ac_cv_prog_OTOOL
13903 if test -n "$OTOOL"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13905 $as_echo "$OTOOL" >&6; }
13906 else
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908 $as_echo "no" >&6; }
13913 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
13914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13915 set dummy ${ncn_progname}; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if ${ac_cv_prog_OTOOL+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 if test -n "$OTOOL"; then
13922 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931 ac_cv_prog_OTOOL="${ncn_progname}"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 break 2
13935 done
13936 done
13937 IFS=$as_save_IFS
13941 OTOOL=$ac_cv_prog_OTOOL
13942 if test -n "$OTOOL"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13944 $as_echo "$OTOOL" >&6; }
13945 else
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13952 test -n "$ac_cv_prog_OTOOL" && break
13953 done
13955 if test -z "$ac_cv_prog_OTOOL" ; then
13956 set dummy otool
13957 if test $build = $host ; then
13958 OTOOL="$2"
13959 else
13960 OTOOL="${ncn_tool_prefix}$2"
13966 if test -n "$READELF"; then
13967 ac_cv_prog_READELF=$READELF
13968 elif test -n "$ac_cv_prog_READELF"; then
13969 READELF=$ac_cv_prog_READELF
13972 if test -n "$ac_cv_prog_READELF"; then
13973 for ncn_progname in readelf; do
13974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13975 set dummy ${ncn_progname}; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977 $as_echo_n "checking for $ac_word... " >&6; }
13978 if ${ac_cv_prog_READELF+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 if test -n "$READELF"; then
13982 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13983 else
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13987 IFS=$as_save_IFS
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991 ac_cv_prog_READELF="${ncn_progname}"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 break 2
13995 done
13996 done
13997 IFS=$as_save_IFS
14001 READELF=$ac_cv_prog_READELF
14002 if test -n "$READELF"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14004 $as_echo "$READELF" >&6; }
14005 else
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007 $as_echo "no" >&6; }
14011 done
14014 for ncn_progname in readelf; do
14015 if test -n "$ncn_tool_prefix"; then
14016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14019 $as_echo_n "checking for $ac_word... " >&6; }
14020 if ${ac_cv_prog_READELF+:} false; then :
14021 $as_echo_n "(cached) " >&6
14022 else
14023 if test -n "$READELF"; then
14024 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14025 else
14026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14027 for as_dir in $PATH
14029 IFS=$as_save_IFS
14030 test -z "$as_dir" && as_dir=.
14031 for ac_exec_ext in '' $ac_executable_extensions; do
14032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14033 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
14034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14035 break 2
14037 done
14038 done
14039 IFS=$as_save_IFS
14043 READELF=$ac_cv_prog_READELF
14044 if test -n "$READELF"; then
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14046 $as_echo "$READELF" >&6; }
14047 else
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14049 $as_echo "no" >&6; }
14054 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14056 set dummy ${ncn_progname}; 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_prog_READELF+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 if test -n "$READELF"; then
14063 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14064 else
14065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066 for as_dir in $PATH
14068 IFS=$as_save_IFS
14069 test -z "$as_dir" && as_dir=.
14070 for ac_exec_ext in '' $ac_executable_extensions; do
14071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14072 ac_cv_prog_READELF="${ncn_progname}"
14073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14074 break 2
14076 done
14077 done
14078 IFS=$as_save_IFS
14082 READELF=$ac_cv_prog_READELF
14083 if test -n "$READELF"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14085 $as_echo "$READELF" >&6; }
14086 else
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 $as_echo "no" >&6; }
14093 test -n "$ac_cv_prog_READELF" && break
14094 done
14096 if test -z "$ac_cv_prog_READELF" ; then
14097 set dummy readelf
14098 if test $build = $host ; then
14099 READELF="$2"
14100 else
14101 READELF="${ncn_tool_prefix}$2"
14111 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
14115 $as_echo_n "checking for -plugin option... " >&6; }
14117 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14118 plugin_option=
14119 for plugin in $plugin_names; do
14120 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14121 if test x$plugin_so = x$plugin; then
14122 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14124 if test x$plugin_so != x$plugin; then
14125 plugin_option="--plugin $plugin_so"
14126 break
14128 done
14129 if test -n "$ac_tool_prefix"; then
14130 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14131 set dummy ${ac_tool_prefix}ar; ac_word=$2
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14133 $as_echo_n "checking for $ac_word... " >&6; }
14134 if ${ac_cv_prog_AR+:} false; then :
14135 $as_echo_n "(cached) " >&6
14136 else
14137 if test -n "$AR"; then
14138 ac_cv_prog_AR="$AR" # Let the user override the test.
14139 else
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14143 IFS=$as_save_IFS
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14147 ac_cv_prog_AR="${ac_tool_prefix}ar"
14148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14149 break 2
14151 done
14152 done
14153 IFS=$as_save_IFS
14157 AR=$ac_cv_prog_AR
14158 if test -n "$AR"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14160 $as_echo "$AR" >&6; }
14161 else
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14163 $as_echo "no" >&6; }
14168 if test -z "$ac_cv_prog_AR"; then
14169 ac_ct_AR=$AR
14170 # Extract the first word of "ar", so it can be a program name with args.
14171 set dummy ar; ac_word=$2
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14173 $as_echo_n "checking for $ac_word... " >&6; }
14174 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 if test -n "$ac_ct_AR"; then
14178 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14179 else
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $PATH
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_prog_ac_ct_AR="ar"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14191 done
14192 done
14193 IFS=$as_save_IFS
14197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14198 if test -n "$ac_ct_AR"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14200 $as_echo "$ac_ct_AR" >&6; }
14201 else
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14206 if test "x$ac_ct_AR" = x; then
14207 AR=""
14208 else
14209 case $cross_compiling:$ac_tool_warned in
14210 yes:)
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14213 ac_tool_warned=yes ;;
14214 esac
14215 AR=$ac_ct_AR
14217 else
14218 AR="$ac_cv_prog_AR"
14221 if test "${AR}" = "" ; then
14222 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
14224 touch conftest.c
14225 ${AR} $plugin_option rc conftest.a conftest.c
14226 if test "$?" != 0; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
14228 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
14229 plugin_option=
14231 rm -f conftest.*
14232 if test -n "$plugin_option"; then
14233 PLUGIN_OPTION="$plugin_option"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
14235 $as_echo "$plugin_option" >&6; }
14236 else
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14241 AR_PLUGIN_OPTION=
14242 RANLIB_PLUGIN_OPTION=
14243 if test -n "$PLUGIN_OPTION"; then
14244 if $AR --help 2>&1 | grep -q "\--plugin"; then
14245 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14247 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
14248 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14254 # Target tools.
14256 # Check whether --with-build-time-tools was given.
14257 if test "${with_build_time_tools+set}" = set; then :
14258 withval=$with_build_time_tools; case x"$withval" in
14259 x/*) ;;
14261 with_build_time_tools=
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
14263 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
14265 esac
14266 else
14267 with_build_time_tools=
14273 if test -n "$CC_FOR_TARGET"; then
14274 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14275 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14276 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14279 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14280 for ncn_progname in cc gcc; do
14281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14282 set dummy ${ncn_progname}; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 if test -n "$CC_FOR_TARGET"; then
14289 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14290 else
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14298 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14302 done
14303 done
14304 IFS=$as_save_IFS
14308 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14309 if test -n "$CC_FOR_TARGET"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14311 $as_echo "$CC_FOR_TARGET" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14318 done
14321 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14322 for ncn_progname in cc gcc; do
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14324 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14325 if test -x $with_build_time_tools/${ncn_progname}; then
14326 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14328 $as_echo "yes" >&6; }
14329 break
14330 else
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14334 done
14337 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14338 for ncn_progname in cc gcc; do
14339 if test -n "$ncn_target_tool_prefix"; then
14340 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14341 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14343 $as_echo_n "checking for $ac_word... " >&6; }
14344 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 if test -n "$CC_FOR_TARGET"; then
14348 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14349 else
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 for ac_exec_ext in '' $ac_executable_extensions; do
14356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14357 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14359 break 2
14361 done
14362 done
14363 IFS=$as_save_IFS
14367 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14368 if test -n "$CC_FOR_TARGET"; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14370 $as_echo "$CC_FOR_TARGET" >&6; }
14371 else
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14373 $as_echo "no" >&6; }
14378 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14380 set dummy ${ncn_progname}; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382 $as_echo_n "checking for $ac_word... " >&6; }
14383 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 if test -n "$CC_FOR_TARGET"; then
14387 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14388 else
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14392 IFS=$as_save_IFS
14393 test -z "$as_dir" && as_dir=.
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14396 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14398 break 2
14400 done
14401 done
14402 IFS=$as_save_IFS
14406 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14407 if test -n "$CC_FOR_TARGET"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14409 $as_echo "$CC_FOR_TARGET" >&6; }
14410 else
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412 $as_echo "no" >&6; }
14417 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14418 done
14421 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14422 set dummy cc gcc
14423 if test $build = $target ; then
14424 CC_FOR_TARGET="$2"
14425 else
14426 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14428 else
14429 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14434 if test -n "$CXX_FOR_TARGET"; then
14435 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14436 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14437 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14440 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14441 for ncn_progname in c++ g++ cxx gxx; do
14442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14443 set dummy ${ncn_progname}; ac_word=$2
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14445 $as_echo_n "checking for $ac_word... " >&6; }
14446 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14447 $as_echo_n "(cached) " >&6
14448 else
14449 if test -n "$CXX_FOR_TARGET"; then
14450 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14451 else
14452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14453 for as_dir in $PATH
14455 IFS=$as_save_IFS
14456 test -z "$as_dir" && as_dir=.
14457 for ac_exec_ext in '' $ac_executable_extensions; do
14458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14459 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14461 break 2
14463 done
14464 done
14465 IFS=$as_save_IFS
14469 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14470 if test -n "$CXX_FOR_TARGET"; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14472 $as_echo "$CXX_FOR_TARGET" >&6; }
14473 else
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14475 $as_echo "no" >&6; }
14479 done
14482 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14483 for ncn_progname in c++ g++ cxx gxx; do
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14485 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14486 if test -x $with_build_time_tools/${ncn_progname}; then
14487 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14489 $as_echo "yes" >&6; }
14490 break
14491 else
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14493 $as_echo "no" >&6; }
14495 done
14498 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14499 for ncn_progname in c++ g++ cxx gxx; do
14500 if test -n "$ncn_target_tool_prefix"; then
14501 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14502 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14504 $as_echo_n "checking for $ac_word... " >&6; }
14505 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14506 $as_echo_n "(cached) " >&6
14507 else
14508 if test -n "$CXX_FOR_TARGET"; then
14509 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14510 else
14511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14512 for as_dir in $PATH
14514 IFS=$as_save_IFS
14515 test -z "$as_dir" && as_dir=.
14516 for ac_exec_ext in '' $ac_executable_extensions; do
14517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14518 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14520 break 2
14522 done
14523 done
14524 IFS=$as_save_IFS
14528 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14529 if test -n "$CXX_FOR_TARGET"; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14531 $as_echo "$CXX_FOR_TARGET" >&6; }
14532 else
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14534 $as_echo "no" >&6; }
14539 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14541 set dummy ${ncn_progname}; ac_word=$2
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14543 $as_echo_n "checking for $ac_word... " >&6; }
14544 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14545 $as_echo_n "(cached) " >&6
14546 else
14547 if test -n "$CXX_FOR_TARGET"; then
14548 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14549 else
14550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14551 for as_dir in $PATH
14553 IFS=$as_save_IFS
14554 test -z "$as_dir" && as_dir=.
14555 for ac_exec_ext in '' $ac_executable_extensions; do
14556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14557 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14559 break 2
14561 done
14562 done
14563 IFS=$as_save_IFS
14567 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14568 if test -n "$CXX_FOR_TARGET"; then
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14570 $as_echo "$CXX_FOR_TARGET" >&6; }
14571 else
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14573 $as_echo "no" >&6; }
14578 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14579 done
14582 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14583 set dummy c++ g++ cxx gxx
14584 if test $build = $target ; then
14585 CXX_FOR_TARGET="$2"
14586 else
14587 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14589 else
14590 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14595 if test -n "$GCC_FOR_TARGET"; then
14596 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14597 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14598 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14601 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14602 for ncn_progname in gcc; do
14603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14604 set dummy ${ncn_progname}; ac_word=$2
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14606 $as_echo_n "checking for $ac_word... " >&6; }
14607 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14608 $as_echo_n "(cached) " >&6
14609 else
14610 if test -n "$GCC_FOR_TARGET"; then
14611 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14612 else
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14616 IFS=$as_save_IFS
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14620 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14622 break 2
14624 done
14625 done
14626 IFS=$as_save_IFS
14630 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14631 if test -n "$GCC_FOR_TARGET"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14633 $as_echo "$GCC_FOR_TARGET" >&6; }
14634 else
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14636 $as_echo "no" >&6; }
14640 done
14643 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14644 for ncn_progname in gcc; do
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14646 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14647 if test -x $with_build_time_tools/${ncn_progname}; then
14648 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14650 $as_echo "yes" >&6; }
14651 break
14652 else
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 $as_echo "no" >&6; }
14656 done
14659 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14660 for ncn_progname in gcc; do
14661 if test -n "$ncn_target_tool_prefix"; then
14662 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14663 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14665 $as_echo_n "checking for $ac_word... " >&6; }
14666 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14667 $as_echo_n "(cached) " >&6
14668 else
14669 if test -n "$GCC_FOR_TARGET"; then
14670 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14671 else
14672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673 for as_dir in $PATH
14675 IFS=$as_save_IFS
14676 test -z "$as_dir" && as_dir=.
14677 for ac_exec_ext in '' $ac_executable_extensions; do
14678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14679 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14681 break 2
14683 done
14684 done
14685 IFS=$as_save_IFS
14689 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14690 if test -n "$GCC_FOR_TARGET"; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14692 $as_echo "$GCC_FOR_TARGET" >&6; }
14693 else
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14695 $as_echo "no" >&6; }
14700 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14702 set dummy ${ncn_progname}; ac_word=$2
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14704 $as_echo_n "checking for $ac_word... " >&6; }
14705 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 if test -n "$GCC_FOR_TARGET"; then
14709 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14710 else
14711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712 for as_dir in $PATH
14714 IFS=$as_save_IFS
14715 test -z "$as_dir" && as_dir=.
14716 for ac_exec_ext in '' $ac_executable_extensions; do
14717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14718 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14720 break 2
14722 done
14723 done
14724 IFS=$as_save_IFS
14728 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14729 if test -n "$GCC_FOR_TARGET"; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14731 $as_echo "$GCC_FOR_TARGET" >&6; }
14732 else
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14734 $as_echo "no" >&6; }
14739 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14740 done
14743 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14744 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14745 else
14746 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14751 if test -n "$GFORTRAN_FOR_TARGET"; then
14752 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14753 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14754 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14757 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14758 for ncn_progname in gfortran; do
14759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14760 set dummy ${ncn_progname}; ac_word=$2
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14762 $as_echo_n "checking for $ac_word... " >&6; }
14763 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 if test -n "$GFORTRAN_FOR_TARGET"; then
14767 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14768 else
14769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770 for as_dir in $PATH
14772 IFS=$as_save_IFS
14773 test -z "$as_dir" && as_dir=.
14774 for ac_exec_ext in '' $ac_executable_extensions; do
14775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14776 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14778 break 2
14780 done
14781 done
14782 IFS=$as_save_IFS
14786 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14787 if test -n "$GFORTRAN_FOR_TARGET"; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14789 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14790 else
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14792 $as_echo "no" >&6; }
14796 done
14799 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14800 for ncn_progname in gfortran; do
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14802 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14803 if test -x $with_build_time_tools/${ncn_progname}; then
14804 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14806 $as_echo "yes" >&6; }
14807 break
14808 else
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 $as_echo "no" >&6; }
14812 done
14815 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14816 for ncn_progname in gfortran; do
14817 if test -n "$ncn_target_tool_prefix"; then
14818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14819 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14821 $as_echo_n "checking for $ac_word... " >&6; }
14822 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 if test -n "$GFORTRAN_FOR_TARGET"; then
14826 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14827 else
14828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14829 for as_dir in $PATH
14831 IFS=$as_save_IFS
14832 test -z "$as_dir" && as_dir=.
14833 for ac_exec_ext in '' $ac_executable_extensions; do
14834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14835 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14837 break 2
14839 done
14840 done
14841 IFS=$as_save_IFS
14845 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14846 if test -n "$GFORTRAN_FOR_TARGET"; then
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14848 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14849 else
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14851 $as_echo "no" >&6; }
14856 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14858 set dummy ${ncn_progname}; ac_word=$2
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14860 $as_echo_n "checking for $ac_word... " >&6; }
14861 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14862 $as_echo_n "(cached) " >&6
14863 else
14864 if test -n "$GFORTRAN_FOR_TARGET"; then
14865 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14866 else
14867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14868 for as_dir in $PATH
14870 IFS=$as_save_IFS
14871 test -z "$as_dir" && as_dir=.
14872 for ac_exec_ext in '' $ac_executable_extensions; do
14873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14874 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14876 break 2
14878 done
14879 done
14880 IFS=$as_save_IFS
14884 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14885 if test -n "$GFORTRAN_FOR_TARGET"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14887 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14888 else
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14895 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14896 done
14899 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
14900 set dummy gfortran
14901 if test $build = $target ; then
14902 GFORTRAN_FOR_TARGET="$2"
14903 else
14904 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
14906 else
14907 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
14912 if test -n "$GOC_FOR_TARGET"; then
14913 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
14914 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14915 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14918 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14919 for ncn_progname in gccgo; do
14920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14921 set dummy ${ncn_progname}; ac_word=$2
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14923 $as_echo_n "checking for $ac_word... " >&6; }
14924 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14925 $as_echo_n "(cached) " >&6
14926 else
14927 if test -n "$GOC_FOR_TARGET"; then
14928 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14929 else
14930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14931 for as_dir in $PATH
14933 IFS=$as_save_IFS
14934 test -z "$as_dir" && as_dir=.
14935 for ac_exec_ext in '' $ac_executable_extensions; do
14936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14937 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14939 break 2
14941 done
14942 done
14943 IFS=$as_save_IFS
14947 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14948 if test -n "$GOC_FOR_TARGET"; then
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14950 $as_echo "$GOC_FOR_TARGET" >&6; }
14951 else
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14953 $as_echo "no" >&6; }
14957 done
14960 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14961 for ncn_progname in gccgo; do
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14963 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14964 if test -x $with_build_time_tools/${ncn_progname}; then
14965 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14967 $as_echo "yes" >&6; }
14968 break
14969 else
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14971 $as_echo "no" >&6; }
14973 done
14976 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14977 for ncn_progname in gccgo; do
14978 if test -n "$ncn_target_tool_prefix"; then
14979 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14980 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14982 $as_echo_n "checking for $ac_word... " >&6; }
14983 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 if test -n "$GOC_FOR_TARGET"; then
14987 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14988 else
14989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14990 for as_dir in $PATH
14992 IFS=$as_save_IFS
14993 test -z "$as_dir" && as_dir=.
14994 for ac_exec_ext in '' $ac_executable_extensions; do
14995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14996 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14998 break 2
15000 done
15001 done
15002 IFS=$as_save_IFS
15006 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15007 if test -n "$GOC_FOR_TARGET"; then
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15009 $as_echo "$GOC_FOR_TARGET" >&6; }
15010 else
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012 $as_echo "no" >&6; }
15017 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15019 set dummy ${ncn_progname}; ac_word=$2
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15021 $as_echo_n "checking for $ac_word... " >&6; }
15022 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 if test -n "$GOC_FOR_TARGET"; then
15026 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15027 else
15028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15029 for as_dir in $PATH
15031 IFS=$as_save_IFS
15032 test -z "$as_dir" && as_dir=.
15033 for ac_exec_ext in '' $ac_executable_extensions; do
15034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15035 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15037 break 2
15039 done
15040 done
15041 IFS=$as_save_IFS
15045 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15046 if test -n "$GOC_FOR_TARGET"; then
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15048 $as_echo "$GOC_FOR_TARGET" >&6; }
15049 else
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15051 $as_echo "no" >&6; }
15056 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15057 done
15060 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15061 set dummy gccgo
15062 if test $build = $target ; then
15063 GOC_FOR_TARGET="$2"
15064 else
15065 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15067 else
15068 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15073 if test -n "$GDC_FOR_TARGET"; then
15074 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15075 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15076 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15079 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15080 for ncn_progname in gdc; do
15081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15082 set dummy ${ncn_progname}; ac_word=$2
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15084 $as_echo_n "checking for $ac_word... " >&6; }
15085 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 if test -n "$GDC_FOR_TARGET"; then
15089 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15090 else
15091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15092 for as_dir in $PATH
15094 IFS=$as_save_IFS
15095 test -z "$as_dir" && as_dir=.
15096 for ac_exec_ext in '' $ac_executable_extensions; do
15097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15098 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15100 break 2
15102 done
15103 done
15104 IFS=$as_save_IFS
15108 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15109 if test -n "$GDC_FOR_TARGET"; then
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15111 $as_echo "$GDC_FOR_TARGET" >&6; }
15112 else
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15114 $as_echo "no" >&6; }
15118 done
15121 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15122 for ncn_progname in gdc; do
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15124 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15125 if test -x $with_build_time_tools/${ncn_progname}; then
15126 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15128 $as_echo "yes" >&6; }
15129 break
15130 else
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15132 $as_echo "no" >&6; }
15134 done
15137 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15138 for ncn_progname in gdc; do
15139 if test -n "$ncn_target_tool_prefix"; then
15140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15141 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15143 $as_echo_n "checking for $ac_word... " >&6; }
15144 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15145 $as_echo_n "(cached) " >&6
15146 else
15147 if test -n "$GDC_FOR_TARGET"; then
15148 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15149 else
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15153 IFS=$as_save_IFS
15154 test -z "$as_dir" && as_dir=.
15155 for ac_exec_ext in '' $ac_executable_extensions; do
15156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15159 break 2
15161 done
15162 done
15163 IFS=$as_save_IFS
15167 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15168 if test -n "$GDC_FOR_TARGET"; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15170 $as_echo "$GDC_FOR_TARGET" >&6; }
15171 else
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15173 $as_echo "no" >&6; }
15178 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15180 set dummy ${ncn_progname}; ac_word=$2
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15182 $as_echo_n "checking for $ac_word... " >&6; }
15183 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15184 $as_echo_n "(cached) " >&6
15185 else
15186 if test -n "$GDC_FOR_TARGET"; then
15187 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15188 else
15189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15190 for as_dir in $PATH
15192 IFS=$as_save_IFS
15193 test -z "$as_dir" && as_dir=.
15194 for ac_exec_ext in '' $ac_executable_extensions; do
15195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15196 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15198 break 2
15200 done
15201 done
15202 IFS=$as_save_IFS
15206 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15207 if test -n "$GDC_FOR_TARGET"; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15209 $as_echo "$GDC_FOR_TARGET" >&6; }
15210 else
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15212 $as_echo "no" >&6; }
15217 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15218 done
15221 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15222 set dummy gdc
15223 if test $build = $target ; then
15224 GDC_FOR_TARGET="$2"
15225 else
15226 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15228 else
15229 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15234 if test -n "$GM2_FOR_TARGET"; then
15235 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15236 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15237 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15240 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15241 for ncn_progname in gm2; do
15242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15243 set dummy ${ncn_progname}; ac_word=$2
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15245 $as_echo_n "checking for $ac_word... " >&6; }
15246 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15247 $as_echo_n "(cached) " >&6
15248 else
15249 if test -n "$GM2_FOR_TARGET"; then
15250 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15251 else
15252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $PATH
15255 IFS=$as_save_IFS
15256 test -z "$as_dir" && as_dir=.
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15261 break 2
15263 done
15264 done
15265 IFS=$as_save_IFS
15269 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15270 if test -n "$GM2_FOR_TARGET"; then
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15272 $as_echo "$GM2_FOR_TARGET" >&6; }
15273 else
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15275 $as_echo "no" >&6; }
15279 done
15282 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15283 for ncn_progname in gm2; do
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15285 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15286 if test -x $with_build_time_tools/${ncn_progname}; then
15287 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15289 $as_echo "yes" >&6; }
15290 break
15291 else
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15293 $as_echo "no" >&6; }
15295 done
15298 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15299 for ncn_progname in gm2; do
15300 if test -n "$ncn_target_tool_prefix"; then
15301 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15302 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15304 $as_echo_n "checking for $ac_word... " >&6; }
15305 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15306 $as_echo_n "(cached) " >&6
15307 else
15308 if test -n "$GM2_FOR_TARGET"; then
15309 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15310 else
15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 for as_dir in $PATH
15314 IFS=$as_save_IFS
15315 test -z "$as_dir" && as_dir=.
15316 for ac_exec_ext in '' $ac_executable_extensions; do
15317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15318 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15320 break 2
15322 done
15323 done
15324 IFS=$as_save_IFS
15328 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15329 if test -n "$GM2_FOR_TARGET"; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15331 $as_echo "$GM2_FOR_TARGET" >&6; }
15332 else
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334 $as_echo "no" >&6; }
15339 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15341 set dummy ${ncn_progname}; ac_word=$2
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15343 $as_echo_n "checking for $ac_word... " >&6; }
15344 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15345 $as_echo_n "(cached) " >&6
15346 else
15347 if test -n "$GM2_FOR_TARGET"; then
15348 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15349 else
15350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15351 for as_dir in $PATH
15353 IFS=$as_save_IFS
15354 test -z "$as_dir" && as_dir=.
15355 for ac_exec_ext in '' $ac_executable_extensions; do
15356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15357 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15359 break 2
15361 done
15362 done
15363 IFS=$as_save_IFS
15367 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15368 if test -n "$GM2_FOR_TARGET"; then
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15370 $as_echo "$GM2_FOR_TARGET" >&6; }
15371 else
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373 $as_echo "no" >&6; }
15378 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15379 done
15382 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15383 set dummy gm2
15384 if test $build = $target ; then
15385 GM2_FOR_TARGET="$2"
15386 else
15387 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15389 else
15390 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15395 cat > conftest.c << \EOF
15396 #ifdef __GNUC__
15397 gcc_yay;
15398 #endif
15400 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15401 have_gcc_for_target=yes
15402 else
15403 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15404 have_gcc_for_target=no
15406 rm conftest.c
15411 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15412 if test -n "$with_build_time_tools"; then
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
15414 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
15415 if test -x $with_build_time_tools/ar; then
15416 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15417 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
15419 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15420 else
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15422 $as_echo "no" >&6; }
15424 elif test $build != $host && test $have_gcc_for_target = yes; then
15425 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15426 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15427 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15430 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15431 # Extract the first word of "ar", so it can be a program name with args.
15432 set dummy ar; ac_word=$2
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15434 $as_echo_n "checking for $ac_word... " >&6; }
15435 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15436 $as_echo_n "(cached) " >&6
15437 else
15438 case $AR_FOR_TARGET in
15439 [\\/]* | ?:[\\/]*)
15440 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15444 for as_dir in $gcc_cv_tool_dirs
15446 IFS=$as_save_IFS
15447 test -z "$as_dir" && as_dir=.
15448 for ac_exec_ext in '' $ac_executable_extensions; do
15449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15450 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15452 break 2
15454 done
15455 done
15456 IFS=$as_save_IFS
15459 esac
15461 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15462 if test -n "$AR_FOR_TARGET"; then
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15464 $as_echo "$AR_FOR_TARGET" >&6; }
15465 else
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15467 $as_echo "no" >&6; }
15472 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15475 if test -n "$AR_FOR_TARGET"; then
15476 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15477 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15478 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15481 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15482 for ncn_progname in ar; do
15483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15484 set dummy ${ncn_progname}; ac_word=$2
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15486 $as_echo_n "checking for $ac_word... " >&6; }
15487 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15488 $as_echo_n "(cached) " >&6
15489 else
15490 if test -n "$AR_FOR_TARGET"; then
15491 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15492 else
15493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15494 for as_dir in $PATH
15496 IFS=$as_save_IFS
15497 test -z "$as_dir" && as_dir=.
15498 for ac_exec_ext in '' $ac_executable_extensions; do
15499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15500 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15502 break 2
15504 done
15505 done
15506 IFS=$as_save_IFS
15510 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15511 if test -n "$AR_FOR_TARGET"; then
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15513 $as_echo "$AR_FOR_TARGET" >&6; }
15514 else
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15520 done
15523 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15524 for ncn_progname in ar; do
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15526 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15527 if test -x $with_build_time_tools/${ncn_progname}; then
15528 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15530 $as_echo "yes" >&6; }
15531 break
15532 else
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15534 $as_echo "no" >&6; }
15536 done
15539 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15540 for ncn_progname in ar; do
15541 if test -n "$ncn_target_tool_prefix"; then
15542 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15543 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15545 $as_echo_n "checking for $ac_word... " >&6; }
15546 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15547 $as_echo_n "(cached) " >&6
15548 else
15549 if test -n "$AR_FOR_TARGET"; then
15550 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15551 else
15552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15553 for as_dir in $PATH
15555 IFS=$as_save_IFS
15556 test -z "$as_dir" && as_dir=.
15557 for ac_exec_ext in '' $ac_executable_extensions; do
15558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15559 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15561 break 2
15563 done
15564 done
15565 IFS=$as_save_IFS
15569 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15570 if test -n "$AR_FOR_TARGET"; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15572 $as_echo "$AR_FOR_TARGET" >&6; }
15573 else
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15575 $as_echo "no" >&6; }
15580 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15582 set dummy ${ncn_progname}; ac_word=$2
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15584 $as_echo_n "checking for $ac_word... " >&6; }
15585 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15586 $as_echo_n "(cached) " >&6
15587 else
15588 if test -n "$AR_FOR_TARGET"; then
15589 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15590 else
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $PATH
15594 IFS=$as_save_IFS
15595 test -z "$as_dir" && as_dir=.
15596 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15600 break 2
15602 done
15603 done
15604 IFS=$as_save_IFS
15608 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15609 if test -n "$AR_FOR_TARGET"; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15611 $as_echo "$AR_FOR_TARGET" >&6; }
15612 else
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 $as_echo "no" >&6; }
15619 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15620 done
15623 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15624 set dummy ar
15625 if test $build = $target ; then
15626 AR_FOR_TARGET="$2"
15627 else
15628 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15630 else
15631 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15634 else
15635 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15641 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15642 if test -n "$with_build_time_tools"; then
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
15644 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
15645 if test -x $with_build_time_tools/as; then
15646 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15647 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
15649 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15650 else
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15654 elif test $build != $host && test $have_gcc_for_target = yes; then
15655 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15656 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15657 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15660 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15661 # Extract the first word of "as", so it can be a program name with args.
15662 set dummy as; ac_word=$2
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15664 $as_echo_n "checking for $ac_word... " >&6; }
15665 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 case $AS_FOR_TARGET in
15669 [\\/]* | ?:[\\/]*)
15670 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15674 for as_dir in $gcc_cv_tool_dirs
15676 IFS=$as_save_IFS
15677 test -z "$as_dir" && as_dir=.
15678 for ac_exec_ext in '' $ac_executable_extensions; do
15679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15680 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15682 break 2
15684 done
15685 done
15686 IFS=$as_save_IFS
15689 esac
15691 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15692 if test -n "$AS_FOR_TARGET"; then
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15694 $as_echo "$AS_FOR_TARGET" >&6; }
15695 else
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15697 $as_echo "no" >&6; }
15702 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15705 if test -n "$AS_FOR_TARGET"; then
15706 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15707 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15708 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15711 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15712 for ncn_progname in as; do
15713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15714 set dummy ${ncn_progname}; ac_word=$2
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15716 $as_echo_n "checking for $ac_word... " >&6; }
15717 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15718 $as_echo_n "(cached) " >&6
15719 else
15720 if test -n "$AS_FOR_TARGET"; then
15721 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15722 else
15723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15724 for as_dir in $PATH
15726 IFS=$as_save_IFS
15727 test -z "$as_dir" && as_dir=.
15728 for ac_exec_ext in '' $ac_executable_extensions; do
15729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15730 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15732 break 2
15734 done
15735 done
15736 IFS=$as_save_IFS
15740 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15741 if test -n "$AS_FOR_TARGET"; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15743 $as_echo "$AS_FOR_TARGET" >&6; }
15744 else
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15750 done
15753 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15754 for ncn_progname in as; do
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15756 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15757 if test -x $with_build_time_tools/${ncn_progname}; then
15758 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15760 $as_echo "yes" >&6; }
15761 break
15762 else
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15764 $as_echo "no" >&6; }
15766 done
15769 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15770 for ncn_progname in as; do
15771 if test -n "$ncn_target_tool_prefix"; then
15772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15773 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15775 $as_echo_n "checking for $ac_word... " >&6; }
15776 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15777 $as_echo_n "(cached) " >&6
15778 else
15779 if test -n "$AS_FOR_TARGET"; then
15780 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15781 else
15782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15783 for as_dir in $PATH
15785 IFS=$as_save_IFS
15786 test -z "$as_dir" && as_dir=.
15787 for ac_exec_ext in '' $ac_executable_extensions; do
15788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15789 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15791 break 2
15793 done
15794 done
15795 IFS=$as_save_IFS
15799 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15800 if test -n "$AS_FOR_TARGET"; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15802 $as_echo "$AS_FOR_TARGET" >&6; }
15803 else
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15805 $as_echo "no" >&6; }
15810 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15812 set dummy ${ncn_progname}; ac_word=$2
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15814 $as_echo_n "checking for $ac_word... " >&6; }
15815 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15816 $as_echo_n "(cached) " >&6
15817 else
15818 if test -n "$AS_FOR_TARGET"; then
15819 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15820 else
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $PATH
15824 IFS=$as_save_IFS
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15830 break 2
15832 done
15833 done
15834 IFS=$as_save_IFS
15838 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15839 if test -n "$AS_FOR_TARGET"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15841 $as_echo "$AS_FOR_TARGET" >&6; }
15842 else
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15844 $as_echo "no" >&6; }
15849 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15850 done
15853 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15854 set dummy as
15855 if test $build = $target ; then
15856 AS_FOR_TARGET="$2"
15857 else
15858 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15860 else
15861 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15864 else
15865 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15871 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15872 if test -n "$with_build_time_tools"; then
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
15874 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
15875 if test -x $with_build_time_tools/dlltool; then
15876 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15877 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15879 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15880 else
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882 $as_echo "no" >&6; }
15884 elif test $build != $host && test $have_gcc_for_target = yes; then
15885 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15886 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15887 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15890 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15891 # Extract the first word of "dlltool", so it can be a program name with args.
15892 set dummy dlltool; ac_word=$2
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15894 $as_echo_n "checking for $ac_word... " >&6; }
15895 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15896 $as_echo_n "(cached) " >&6
15897 else
15898 case $DLLTOOL_FOR_TARGET in
15899 [\\/]* | ?:[\\/]*)
15900 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
15903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15904 for as_dir in $gcc_cv_tool_dirs
15906 IFS=$as_save_IFS
15907 test -z "$as_dir" && as_dir=.
15908 for ac_exec_ext in '' $ac_executable_extensions; do
15909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15910 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15912 break 2
15914 done
15915 done
15916 IFS=$as_save_IFS
15919 esac
15921 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15922 if test -n "$DLLTOOL_FOR_TARGET"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15924 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15925 else
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15927 $as_echo "no" >&6; }
15932 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15935 if test -n "$DLLTOOL_FOR_TARGET"; then
15936 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15937 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15938 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15941 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15942 for ncn_progname in dlltool; do
15943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15944 set dummy ${ncn_progname}; ac_word=$2
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15946 $as_echo_n "checking for $ac_word... " >&6; }
15947 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15948 $as_echo_n "(cached) " >&6
15949 else
15950 if test -n "$DLLTOOL_FOR_TARGET"; then
15951 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15952 else
15953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15954 for as_dir in $PATH
15956 IFS=$as_save_IFS
15957 test -z "$as_dir" && as_dir=.
15958 for ac_exec_ext in '' $ac_executable_extensions; do
15959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15960 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15962 break 2
15964 done
15965 done
15966 IFS=$as_save_IFS
15970 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15971 if test -n "$DLLTOOL_FOR_TARGET"; then
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15973 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15974 else
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15976 $as_echo "no" >&6; }
15980 done
15983 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15984 for ncn_progname in dlltool; do
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15986 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15987 if test -x $with_build_time_tools/${ncn_progname}; then
15988 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15990 $as_echo "yes" >&6; }
15991 break
15992 else
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994 $as_echo "no" >&6; }
15996 done
15999 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16000 for ncn_progname in dlltool; do
16001 if test -n "$ncn_target_tool_prefix"; then
16002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16003 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16005 $as_echo_n "checking for $ac_word... " >&6; }
16006 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16007 $as_echo_n "(cached) " >&6
16008 else
16009 if test -n "$DLLTOOL_FOR_TARGET"; then
16010 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16011 else
16012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16013 for as_dir in $PATH
16015 IFS=$as_save_IFS
16016 test -z "$as_dir" && as_dir=.
16017 for ac_exec_ext in '' $ac_executable_extensions; do
16018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16019 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16021 break 2
16023 done
16024 done
16025 IFS=$as_save_IFS
16029 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16030 if test -n "$DLLTOOL_FOR_TARGET"; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16032 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16033 else
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16035 $as_echo "no" >&6; }
16040 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16042 set dummy ${ncn_progname}; ac_word=$2
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16044 $as_echo_n "checking for $ac_word... " >&6; }
16045 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16046 $as_echo_n "(cached) " >&6
16047 else
16048 if test -n "$DLLTOOL_FOR_TARGET"; then
16049 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16050 else
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $PATH
16054 IFS=$as_save_IFS
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16060 break 2
16062 done
16063 done
16064 IFS=$as_save_IFS
16068 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16069 if test -n "$DLLTOOL_FOR_TARGET"; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16071 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16072 else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 $as_echo "no" >&6; }
16079 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16080 done
16083 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16084 set dummy dlltool
16085 if test $build = $target ; then
16086 DLLTOOL_FOR_TARGET="$2"
16087 else
16088 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16090 else
16091 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16094 else
16095 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16101 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16102 if test -n "$with_build_time_tools"; then
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
16104 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
16105 if test -x $with_build_time_tools/dsymutil; then
16106 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16107 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16109 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16110 else
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112 $as_echo "no" >&6; }
16114 elif test $build != $host && test $have_gcc_for_target = yes; then
16115 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16116 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16117 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16120 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16121 # Extract the first word of "dsymutil", so it can be a program name with args.
16122 set dummy dsymutil; ac_word=$2
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16124 $as_echo_n "checking for $ac_word... " >&6; }
16125 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16126 $as_echo_n "(cached) " >&6
16127 else
16128 case $DSYMUTIL_FOR_TARGET in
16129 [\\/]* | ?:[\\/]*)
16130 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16134 for as_dir in $gcc_cv_tool_dirs
16136 IFS=$as_save_IFS
16137 test -z "$as_dir" && as_dir=.
16138 for ac_exec_ext in '' $ac_executable_extensions; do
16139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16140 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16142 break 2
16144 done
16145 done
16146 IFS=$as_save_IFS
16149 esac
16151 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16152 if test -n "$DSYMUTIL_FOR_TARGET"; then
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16154 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16155 else
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16157 $as_echo "no" >&6; }
16162 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16165 if test -n "$DSYMUTIL_FOR_TARGET"; then
16166 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16167 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16168 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16171 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16172 for ncn_progname in dsymutil; do
16173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16174 set dummy ${ncn_progname}; ac_word=$2
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16176 $as_echo_n "checking for $ac_word... " >&6; }
16177 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16178 $as_echo_n "(cached) " >&6
16179 else
16180 if test -n "$DSYMUTIL_FOR_TARGET"; then
16181 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16182 else
16183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16184 for as_dir in $PATH
16186 IFS=$as_save_IFS
16187 test -z "$as_dir" && as_dir=.
16188 for ac_exec_ext in '' $ac_executable_extensions; do
16189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16190 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16192 break 2
16194 done
16195 done
16196 IFS=$as_save_IFS
16200 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16201 if test -n "$DSYMUTIL_FOR_TARGET"; then
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16203 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16204 else
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206 $as_echo "no" >&6; }
16210 done
16213 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16214 for ncn_progname in dsymutil; do
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16216 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16217 if test -x $with_build_time_tools/${ncn_progname}; then
16218 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16220 $as_echo "yes" >&6; }
16221 break
16222 else
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16224 $as_echo "no" >&6; }
16226 done
16229 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16230 for ncn_progname in dsymutil; do
16231 if test -n "$ncn_target_tool_prefix"; then
16232 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16233 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16235 $as_echo_n "checking for $ac_word... " >&6; }
16236 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16237 $as_echo_n "(cached) " >&6
16238 else
16239 if test -n "$DSYMUTIL_FOR_TARGET"; then
16240 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16241 else
16242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16243 for as_dir in $PATH
16245 IFS=$as_save_IFS
16246 test -z "$as_dir" && as_dir=.
16247 for ac_exec_ext in '' $ac_executable_extensions; do
16248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16249 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16251 break 2
16253 done
16254 done
16255 IFS=$as_save_IFS
16259 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16260 if test -n "$DSYMUTIL_FOR_TARGET"; then
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16262 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16263 else
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16265 $as_echo "no" >&6; }
16270 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16272 set dummy ${ncn_progname}; ac_word=$2
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16274 $as_echo_n "checking for $ac_word... " >&6; }
16275 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16276 $as_echo_n "(cached) " >&6
16277 else
16278 if test -n "$DSYMUTIL_FOR_TARGET"; then
16279 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16280 else
16281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282 for as_dir in $PATH
16284 IFS=$as_save_IFS
16285 test -z "$as_dir" && as_dir=.
16286 for ac_exec_ext in '' $ac_executable_extensions; do
16287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16288 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16290 break 2
16292 done
16293 done
16294 IFS=$as_save_IFS
16298 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16299 if test -n "$DSYMUTIL_FOR_TARGET"; then
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16301 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16302 else
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304 $as_echo "no" >&6; }
16309 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16310 done
16313 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16314 set dummy dsymutil
16315 if test $build = $target ; then
16316 DSYMUTIL_FOR_TARGET="$2"
16317 else
16318 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16320 else
16321 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16324 else
16325 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16331 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16332 if test -n "$with_build_time_tools"; then
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
16334 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
16335 if test -x $with_build_time_tools/ld; then
16336 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16337 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
16339 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16340 else
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342 $as_echo "no" >&6; }
16344 elif test $build != $host && test $have_gcc_for_target = yes; then
16345 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16346 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16347 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16350 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16351 # Extract the first word of "ld", so it can be a program name with args.
16352 set dummy ld; ac_word=$2
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16354 $as_echo_n "checking for $ac_word... " >&6; }
16355 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16356 $as_echo_n "(cached) " >&6
16357 else
16358 case $LD_FOR_TARGET in
16359 [\\/]* | ?:[\\/]*)
16360 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16364 for as_dir in $gcc_cv_tool_dirs
16366 IFS=$as_save_IFS
16367 test -z "$as_dir" && as_dir=.
16368 for ac_exec_ext in '' $ac_executable_extensions; do
16369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16370 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16372 break 2
16374 done
16375 done
16376 IFS=$as_save_IFS
16379 esac
16381 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16382 if test -n "$LD_FOR_TARGET"; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16384 $as_echo "$LD_FOR_TARGET" >&6; }
16385 else
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16387 $as_echo "no" >&6; }
16392 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16395 if test -n "$LD_FOR_TARGET"; then
16396 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16397 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16398 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16401 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16402 for ncn_progname in ld; do
16403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16404 set dummy ${ncn_progname}; ac_word=$2
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16406 $as_echo_n "checking for $ac_word... " >&6; }
16407 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16408 $as_echo_n "(cached) " >&6
16409 else
16410 if test -n "$LD_FOR_TARGET"; then
16411 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16412 else
16413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16414 for as_dir in $PATH
16416 IFS=$as_save_IFS
16417 test -z "$as_dir" && as_dir=.
16418 for ac_exec_ext in '' $ac_executable_extensions; do
16419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16420 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16422 break 2
16424 done
16425 done
16426 IFS=$as_save_IFS
16430 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16431 if test -n "$LD_FOR_TARGET"; then
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16433 $as_echo "$LD_FOR_TARGET" >&6; }
16434 else
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16436 $as_echo "no" >&6; }
16440 done
16443 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16444 for ncn_progname in ld; do
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16446 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16447 if test -x $with_build_time_tools/${ncn_progname}; then
16448 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16450 $as_echo "yes" >&6; }
16451 break
16452 else
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16454 $as_echo "no" >&6; }
16456 done
16459 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16460 for ncn_progname in ld; do
16461 if test -n "$ncn_target_tool_prefix"; then
16462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16463 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16465 $as_echo_n "checking for $ac_word... " >&6; }
16466 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16467 $as_echo_n "(cached) " >&6
16468 else
16469 if test -n "$LD_FOR_TARGET"; then
16470 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16471 else
16472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16473 for as_dir in $PATH
16475 IFS=$as_save_IFS
16476 test -z "$as_dir" && as_dir=.
16477 for ac_exec_ext in '' $ac_executable_extensions; do
16478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16479 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16481 break 2
16483 done
16484 done
16485 IFS=$as_save_IFS
16489 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16490 if test -n "$LD_FOR_TARGET"; then
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16492 $as_echo "$LD_FOR_TARGET" >&6; }
16493 else
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16495 $as_echo "no" >&6; }
16500 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16502 set dummy ${ncn_progname}; ac_word=$2
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16504 $as_echo_n "checking for $ac_word... " >&6; }
16505 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16506 $as_echo_n "(cached) " >&6
16507 else
16508 if test -n "$LD_FOR_TARGET"; then
16509 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16510 else
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16514 IFS=$as_save_IFS
16515 test -z "$as_dir" && as_dir=.
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16520 break 2
16522 done
16523 done
16524 IFS=$as_save_IFS
16528 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16529 if test -n "$LD_FOR_TARGET"; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16531 $as_echo "$LD_FOR_TARGET" >&6; }
16532 else
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16539 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16540 done
16543 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16544 set dummy ld
16545 if test $build = $target ; then
16546 LD_FOR_TARGET="$2"
16547 else
16548 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16550 else
16551 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16554 else
16555 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16561 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16562 if test -n "$with_build_time_tools"; then
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
16564 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
16565 if test -x $with_build_time_tools/lipo; then
16566 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16567 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
16569 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16570 else
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16574 elif test $build != $host && test $have_gcc_for_target = yes; then
16575 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16576 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16577 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16580 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16581 # Extract the first word of "lipo", so it can be a program name with args.
16582 set dummy lipo; ac_word=$2
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16584 $as_echo_n "checking for $ac_word... " >&6; }
16585 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16586 $as_echo_n "(cached) " >&6
16587 else
16588 case $LIPO_FOR_TARGET in
16589 [\\/]* | ?:[\\/]*)
16590 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $gcc_cv_tool_dirs
16596 IFS=$as_save_IFS
16597 test -z "$as_dir" && as_dir=.
16598 for ac_exec_ext in '' $ac_executable_extensions; do
16599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16602 break 2
16604 done
16605 done
16606 IFS=$as_save_IFS
16609 esac
16611 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16612 if test -n "$LIPO_FOR_TARGET"; then
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16614 $as_echo "$LIPO_FOR_TARGET" >&6; }
16615 else
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16617 $as_echo "no" >&6; }
16622 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16625 if test -n "$LIPO_FOR_TARGET"; then
16626 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16627 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16628 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16631 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16632 for ncn_progname in lipo; do
16633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16634 set dummy ${ncn_progname}; ac_word=$2
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16636 $as_echo_n "checking for $ac_word... " >&6; }
16637 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16638 $as_echo_n "(cached) " >&6
16639 else
16640 if test -n "$LIPO_FOR_TARGET"; then
16641 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16642 else
16643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16644 for as_dir in $PATH
16646 IFS=$as_save_IFS
16647 test -z "$as_dir" && as_dir=.
16648 for ac_exec_ext in '' $ac_executable_extensions; do
16649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16650 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16652 break 2
16654 done
16655 done
16656 IFS=$as_save_IFS
16660 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16661 if test -n "$LIPO_FOR_TARGET"; then
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16663 $as_echo "$LIPO_FOR_TARGET" >&6; }
16664 else
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16666 $as_echo "no" >&6; }
16670 done
16673 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16674 for ncn_progname in lipo; do
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16676 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16677 if test -x $with_build_time_tools/${ncn_progname}; then
16678 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16680 $as_echo "yes" >&6; }
16681 break
16682 else
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684 $as_echo "no" >&6; }
16686 done
16689 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16690 for ncn_progname in lipo; do
16691 if test -n "$ncn_target_tool_prefix"; then
16692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16695 $as_echo_n "checking for $ac_word... " >&6; }
16696 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16697 $as_echo_n "(cached) " >&6
16698 else
16699 if test -n "$LIPO_FOR_TARGET"; then
16700 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16701 else
16702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16703 for as_dir in $PATH
16705 IFS=$as_save_IFS
16706 test -z "$as_dir" && as_dir=.
16707 for ac_exec_ext in '' $ac_executable_extensions; do
16708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16709 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16711 break 2
16713 done
16714 done
16715 IFS=$as_save_IFS
16719 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16720 if test -n "$LIPO_FOR_TARGET"; then
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16722 $as_echo "$LIPO_FOR_TARGET" >&6; }
16723 else
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16725 $as_echo "no" >&6; }
16730 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16732 set dummy ${ncn_progname}; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 if test -n "$LIPO_FOR_TARGET"; then
16739 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16740 else
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16744 IFS=$as_save_IFS
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16750 break 2
16752 done
16753 done
16754 IFS=$as_save_IFS
16758 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16759 if test -n "$LIPO_FOR_TARGET"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16761 $as_echo "$LIPO_FOR_TARGET" >&6; }
16762 else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16769 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16770 done
16773 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16774 set dummy lipo
16775 if test $build = $target ; then
16776 LIPO_FOR_TARGET="$2"
16777 else
16778 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16780 else
16781 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16784 else
16785 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16791 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16792 if test -n "$with_build_time_tools"; then
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
16794 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
16795 if test -x $with_build_time_tools/nm; then
16796 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16797 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
16799 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16800 else
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16802 $as_echo "no" >&6; }
16804 elif test $build != $host && test $have_gcc_for_target = yes; then
16805 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16806 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16807 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16810 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16811 # Extract the first word of "nm", so it can be a program name with args.
16812 set dummy nm; ac_word=$2
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16814 $as_echo_n "checking for $ac_word... " >&6; }
16815 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16816 $as_echo_n "(cached) " >&6
16817 else
16818 case $NM_FOR_TARGET in
16819 [\\/]* | ?:[\\/]*)
16820 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16824 for as_dir in $gcc_cv_tool_dirs
16826 IFS=$as_save_IFS
16827 test -z "$as_dir" && as_dir=.
16828 for ac_exec_ext in '' $ac_executable_extensions; do
16829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16830 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16832 break 2
16834 done
16835 done
16836 IFS=$as_save_IFS
16839 esac
16841 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16842 if test -n "$NM_FOR_TARGET"; then
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16844 $as_echo "$NM_FOR_TARGET" >&6; }
16845 else
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16847 $as_echo "no" >&6; }
16852 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16855 if test -n "$NM_FOR_TARGET"; then
16856 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16857 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16858 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16861 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16862 for ncn_progname in nm; do
16863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16864 set dummy ${ncn_progname}; ac_word=$2
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16866 $as_echo_n "checking for $ac_word... " >&6; }
16867 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16868 $as_echo_n "(cached) " >&6
16869 else
16870 if test -n "$NM_FOR_TARGET"; then
16871 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16872 else
16873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16874 for as_dir in $PATH
16876 IFS=$as_save_IFS
16877 test -z "$as_dir" && as_dir=.
16878 for ac_exec_ext in '' $ac_executable_extensions; do
16879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16880 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16882 break 2
16884 done
16885 done
16886 IFS=$as_save_IFS
16890 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16891 if test -n "$NM_FOR_TARGET"; then
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16893 $as_echo "$NM_FOR_TARGET" >&6; }
16894 else
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16900 done
16903 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
16904 for ncn_progname in nm; do
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16906 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16907 if test -x $with_build_time_tools/${ncn_progname}; then
16908 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16910 $as_echo "yes" >&6; }
16911 break
16912 else
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914 $as_echo "no" >&6; }
16916 done
16919 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
16920 for ncn_progname in nm; do
16921 if test -n "$ncn_target_tool_prefix"; then
16922 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16923 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16925 $as_echo_n "checking for $ac_word... " >&6; }
16926 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16927 $as_echo_n "(cached) " >&6
16928 else
16929 if test -n "$NM_FOR_TARGET"; then
16930 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16931 else
16932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16933 for as_dir in $PATH
16935 IFS=$as_save_IFS
16936 test -z "$as_dir" && as_dir=.
16937 for ac_exec_ext in '' $ac_executable_extensions; do
16938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16939 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16941 break 2
16943 done
16944 done
16945 IFS=$as_save_IFS
16949 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16950 if test -n "$NM_FOR_TARGET"; then
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16952 $as_echo "$NM_FOR_TARGET" >&6; }
16953 else
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16955 $as_echo "no" >&6; }
16960 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16962 set dummy ${ncn_progname}; ac_word=$2
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16964 $as_echo_n "checking for $ac_word... " >&6; }
16965 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16966 $as_echo_n "(cached) " >&6
16967 else
16968 if test -n "$NM_FOR_TARGET"; then
16969 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16970 else
16971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16972 for as_dir in $PATH
16974 IFS=$as_save_IFS
16975 test -z "$as_dir" && as_dir=.
16976 for ac_exec_ext in '' $ac_executable_extensions; do
16977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16978 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16980 break 2
16982 done
16983 done
16984 IFS=$as_save_IFS
16988 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16989 if test -n "$NM_FOR_TARGET"; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16991 $as_echo "$NM_FOR_TARGET" >&6; }
16992 else
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994 $as_echo "no" >&6; }
16999 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
17000 done
17003 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17004 set dummy nm
17005 if test $build = $target ; then
17006 NM_FOR_TARGET="$2"
17007 else
17008 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
17010 else
17011 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
17014 else
17015 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
17021 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17022 if test -n "$with_build_time_tools"; then
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
17024 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
17025 if test -x $with_build_time_tools/objcopy; then
17026 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
17027 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17029 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17030 else
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17034 elif test $build != $host && test $have_gcc_for_target = yes; then
17035 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17036 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
17037 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17040 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17041 # Extract the first word of "objcopy", so it can be a program name with args.
17042 set dummy objcopy; ac_word=$2
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17044 $as_echo_n "checking for $ac_word... " >&6; }
17045 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
17046 $as_echo_n "(cached) " >&6
17047 else
17048 case $OBJCOPY_FOR_TARGET in
17049 [\\/]* | ?:[\\/]*)
17050 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17054 for as_dir in $gcc_cv_tool_dirs
17056 IFS=$as_save_IFS
17057 test -z "$as_dir" && as_dir=.
17058 for ac_exec_ext in '' $ac_executable_extensions; do
17059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17060 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17062 break 2
17064 done
17065 done
17066 IFS=$as_save_IFS
17069 esac
17071 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17072 if test -n "$OBJCOPY_FOR_TARGET"; then
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17074 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17075 else
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077 $as_echo "no" >&6; }
17082 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17085 if test -n "$OBJCOPY_FOR_TARGET"; then
17086 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17087 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17088 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17091 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17092 for ncn_progname in objcopy; do
17093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17094 set dummy ${ncn_progname}; ac_word=$2
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17096 $as_echo_n "checking for $ac_word... " >&6; }
17097 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 if test -n "$OBJCOPY_FOR_TARGET"; then
17101 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17102 else
17103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17104 for as_dir in $PATH
17106 IFS=$as_save_IFS
17107 test -z "$as_dir" && as_dir=.
17108 for ac_exec_ext in '' $ac_executable_extensions; do
17109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17110 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17112 break 2
17114 done
17115 done
17116 IFS=$as_save_IFS
17120 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17121 if test -n "$OBJCOPY_FOR_TARGET"; then
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17123 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17124 else
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17130 done
17133 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17134 for ncn_progname in objcopy; do
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17136 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17137 if test -x $with_build_time_tools/${ncn_progname}; then
17138 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17140 $as_echo "yes" >&6; }
17141 break
17142 else
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17144 $as_echo "no" >&6; }
17146 done
17149 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17150 for ncn_progname in objcopy; do
17151 if test -n "$ncn_target_tool_prefix"; then
17152 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17153 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17155 $as_echo_n "checking for $ac_word... " >&6; }
17156 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17157 $as_echo_n "(cached) " >&6
17158 else
17159 if test -n "$OBJCOPY_FOR_TARGET"; then
17160 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17161 else
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH
17165 IFS=$as_save_IFS
17166 test -z "$as_dir" && as_dir=.
17167 for ac_exec_ext in '' $ac_executable_extensions; do
17168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17169 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17171 break 2
17173 done
17174 done
17175 IFS=$as_save_IFS
17179 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17180 if test -n "$OBJCOPY_FOR_TARGET"; then
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17182 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17183 else
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17185 $as_echo "no" >&6; }
17190 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17192 set dummy ${ncn_progname}; ac_word=$2
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17194 $as_echo_n "checking for $ac_word... " >&6; }
17195 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17196 $as_echo_n "(cached) " >&6
17197 else
17198 if test -n "$OBJCOPY_FOR_TARGET"; then
17199 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17200 else
17201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17202 for as_dir in $PATH
17204 IFS=$as_save_IFS
17205 test -z "$as_dir" && as_dir=.
17206 for ac_exec_ext in '' $ac_executable_extensions; do
17207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17208 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17210 break 2
17212 done
17213 done
17214 IFS=$as_save_IFS
17218 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17219 if test -n "$OBJCOPY_FOR_TARGET"; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17221 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17222 else
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17229 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17230 done
17233 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17234 set dummy objcopy
17235 if test $build = $target ; then
17236 OBJCOPY_FOR_TARGET="$2"
17237 else
17238 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17240 else
17241 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17244 else
17245 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17251 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17252 if test -n "$with_build_time_tools"; then
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
17254 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
17255 if test -x $with_build_time_tools/objdump; then
17256 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17257 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17259 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17260 else
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17264 elif test $build != $host && test $have_gcc_for_target = yes; then
17265 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17266 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17267 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17270 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17271 # Extract the first word of "objdump", so it can be a program name with args.
17272 set dummy objdump; ac_word=$2
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17274 $as_echo_n "checking for $ac_word... " >&6; }
17275 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17276 $as_echo_n "(cached) " >&6
17277 else
17278 case $OBJDUMP_FOR_TARGET in
17279 [\\/]* | ?:[\\/]*)
17280 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17284 for as_dir in $gcc_cv_tool_dirs
17286 IFS=$as_save_IFS
17287 test -z "$as_dir" && as_dir=.
17288 for ac_exec_ext in '' $ac_executable_extensions; do
17289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17290 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17292 break 2
17294 done
17295 done
17296 IFS=$as_save_IFS
17299 esac
17301 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17302 if test -n "$OBJDUMP_FOR_TARGET"; then
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17304 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17305 else
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17307 $as_echo "no" >&6; }
17312 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17315 if test -n "$OBJDUMP_FOR_TARGET"; then
17316 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17317 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17318 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17321 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17322 for ncn_progname in objdump; do
17323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17324 set dummy ${ncn_progname}; ac_word=$2
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17326 $as_echo_n "checking for $ac_word... " >&6; }
17327 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17328 $as_echo_n "(cached) " >&6
17329 else
17330 if test -n "$OBJDUMP_FOR_TARGET"; then
17331 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17332 else
17333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17334 for as_dir in $PATH
17336 IFS=$as_save_IFS
17337 test -z "$as_dir" && as_dir=.
17338 for ac_exec_ext in '' $ac_executable_extensions; do
17339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17340 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17342 break 2
17344 done
17345 done
17346 IFS=$as_save_IFS
17350 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17351 if test -n "$OBJDUMP_FOR_TARGET"; then
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17353 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17354 else
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17356 $as_echo "no" >&6; }
17360 done
17363 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17364 for ncn_progname in objdump; do
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17366 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17367 if test -x $with_build_time_tools/${ncn_progname}; then
17368 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17370 $as_echo "yes" >&6; }
17371 break
17372 else
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17374 $as_echo "no" >&6; }
17376 done
17379 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17380 for ncn_progname in objdump; do
17381 if test -n "$ncn_target_tool_prefix"; then
17382 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17383 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17385 $as_echo_n "checking for $ac_word... " >&6; }
17386 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17387 $as_echo_n "(cached) " >&6
17388 else
17389 if test -n "$OBJDUMP_FOR_TARGET"; then
17390 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17391 else
17392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393 for as_dir in $PATH
17395 IFS=$as_save_IFS
17396 test -z "$as_dir" && as_dir=.
17397 for ac_exec_ext in '' $ac_executable_extensions; do
17398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17399 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17401 break 2
17403 done
17404 done
17405 IFS=$as_save_IFS
17409 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17410 if test -n "$OBJDUMP_FOR_TARGET"; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17412 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17413 else
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415 $as_echo "no" >&6; }
17420 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17422 set dummy ${ncn_progname}; ac_word=$2
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17424 $as_echo_n "checking for $ac_word... " >&6; }
17425 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17426 $as_echo_n "(cached) " >&6
17427 else
17428 if test -n "$OBJDUMP_FOR_TARGET"; then
17429 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17430 else
17431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17434 IFS=$as_save_IFS
17435 test -z "$as_dir" && as_dir=.
17436 for ac_exec_ext in '' $ac_executable_extensions; do
17437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17438 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17440 break 2
17442 done
17443 done
17444 IFS=$as_save_IFS
17448 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17449 if test -n "$OBJDUMP_FOR_TARGET"; then
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17451 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17452 else
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17454 $as_echo "no" >&6; }
17459 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17460 done
17463 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17464 set dummy objdump
17465 if test $build = $target ; then
17466 OBJDUMP_FOR_TARGET="$2"
17467 else
17468 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17470 else
17471 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17474 else
17475 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17481 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17482 if test -n "$with_build_time_tools"; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
17484 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
17485 if test -x $with_build_time_tools/otool; then
17486 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17487 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17489 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17490 else
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17492 $as_echo "no" >&6; }
17494 elif test $build != $host && test $have_gcc_for_target = yes; then
17495 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17496 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17497 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17500 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17501 # Extract the first word of "otool", so it can be a program name with args.
17502 set dummy otool; ac_word=$2
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17504 $as_echo_n "checking for $ac_word... " >&6; }
17505 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 case $OTOOL_FOR_TARGET in
17509 [\\/]* | ?:[\\/]*)
17510 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17514 for as_dir in $gcc_cv_tool_dirs
17516 IFS=$as_save_IFS
17517 test -z "$as_dir" && as_dir=.
17518 for ac_exec_ext in '' $ac_executable_extensions; do
17519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17520 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17522 break 2
17524 done
17525 done
17526 IFS=$as_save_IFS
17529 esac
17531 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17532 if test -n "$OTOOL_FOR_TARGET"; then
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17534 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17535 else
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17537 $as_echo "no" >&6; }
17542 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17545 if test -n "$OTOOL_FOR_TARGET"; then
17546 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17547 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17548 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17551 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17552 for ncn_progname in otool; do
17553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17554 set dummy ${ncn_progname}; ac_word=$2
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17556 $as_echo_n "checking for $ac_word... " >&6; }
17557 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17558 $as_echo_n "(cached) " >&6
17559 else
17560 if test -n "$OTOOL_FOR_TARGET"; then
17561 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17562 else
17563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17564 for as_dir in $PATH
17566 IFS=$as_save_IFS
17567 test -z "$as_dir" && as_dir=.
17568 for ac_exec_ext in '' $ac_executable_extensions; do
17569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17570 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17572 break 2
17574 done
17575 done
17576 IFS=$as_save_IFS
17580 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17581 if test -n "$OTOOL_FOR_TARGET"; then
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17583 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17584 else
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17586 $as_echo "no" >&6; }
17590 done
17593 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17594 for ncn_progname in otool; do
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17596 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17597 if test -x $with_build_time_tools/${ncn_progname}; then
17598 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17600 $as_echo "yes" >&6; }
17601 break
17602 else
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17604 $as_echo "no" >&6; }
17606 done
17609 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17610 for ncn_progname in otool; do
17611 if test -n "$ncn_target_tool_prefix"; then
17612 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17613 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17615 $as_echo_n "checking for $ac_word... " >&6; }
17616 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17617 $as_echo_n "(cached) " >&6
17618 else
17619 if test -n "$OTOOL_FOR_TARGET"; then
17620 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17621 else
17622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17623 for as_dir in $PATH
17625 IFS=$as_save_IFS
17626 test -z "$as_dir" && as_dir=.
17627 for ac_exec_ext in '' $ac_executable_extensions; do
17628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17629 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17631 break 2
17633 done
17634 done
17635 IFS=$as_save_IFS
17639 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17640 if test -n "$OTOOL_FOR_TARGET"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17642 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17643 else
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17645 $as_echo "no" >&6; }
17650 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17652 set dummy ${ncn_progname}; ac_word=$2
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17654 $as_echo_n "checking for $ac_word... " >&6; }
17655 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17656 $as_echo_n "(cached) " >&6
17657 else
17658 if test -n "$OTOOL_FOR_TARGET"; then
17659 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17660 else
17661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17662 for as_dir in $PATH
17664 IFS=$as_save_IFS
17665 test -z "$as_dir" && as_dir=.
17666 for ac_exec_ext in '' $ac_executable_extensions; do
17667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17668 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17670 break 2
17672 done
17673 done
17674 IFS=$as_save_IFS
17678 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17679 if test -n "$OTOOL_FOR_TARGET"; then
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17681 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17682 else
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17684 $as_echo "no" >&6; }
17689 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17690 done
17693 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17694 set dummy otool
17695 if test $build = $target ; then
17696 OTOOL_FOR_TARGET="$2"
17697 else
17698 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17700 else
17701 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17704 else
17705 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17711 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17712 if test -n "$with_build_time_tools"; then
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
17714 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
17715 if test -x $with_build_time_tools/ranlib; then
17716 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17717 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17719 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17720 else
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17722 $as_echo "no" >&6; }
17724 elif test $build != $host && test $have_gcc_for_target = yes; then
17725 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17726 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17727 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17730 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17731 # Extract the first word of "ranlib", so it can be a program name with args.
17732 set dummy ranlib; ac_word=$2
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17734 $as_echo_n "checking for $ac_word... " >&6; }
17735 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17736 $as_echo_n "(cached) " >&6
17737 else
17738 case $RANLIB_FOR_TARGET in
17739 [\\/]* | ?:[\\/]*)
17740 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17744 for as_dir in $gcc_cv_tool_dirs
17746 IFS=$as_save_IFS
17747 test -z "$as_dir" && as_dir=.
17748 for ac_exec_ext in '' $ac_executable_extensions; do
17749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17750 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17752 break 2
17754 done
17755 done
17756 IFS=$as_save_IFS
17759 esac
17761 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17762 if test -n "$RANLIB_FOR_TARGET"; then
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17764 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17765 else
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17767 $as_echo "no" >&6; }
17772 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17775 if test -n "$RANLIB_FOR_TARGET"; then
17776 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17777 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17778 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17781 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17782 for ncn_progname in ranlib; do
17783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17784 set dummy ${ncn_progname}; ac_word=$2
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17786 $as_echo_n "checking for $ac_word... " >&6; }
17787 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17788 $as_echo_n "(cached) " >&6
17789 else
17790 if test -n "$RANLIB_FOR_TARGET"; then
17791 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17792 else
17793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17794 for as_dir in $PATH
17796 IFS=$as_save_IFS
17797 test -z "$as_dir" && as_dir=.
17798 for ac_exec_ext in '' $ac_executable_extensions; do
17799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17800 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17802 break 2
17804 done
17805 done
17806 IFS=$as_save_IFS
17810 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17811 if test -n "$RANLIB_FOR_TARGET"; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17813 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17814 else
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816 $as_echo "no" >&6; }
17820 done
17823 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17824 for ncn_progname in ranlib; do
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17826 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17827 if test -x $with_build_time_tools/${ncn_progname}; then
17828 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17830 $as_echo "yes" >&6; }
17831 break
17832 else
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17834 $as_echo "no" >&6; }
17836 done
17839 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17840 for ncn_progname in ranlib; do
17841 if test -n "$ncn_target_tool_prefix"; then
17842 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17843 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17845 $as_echo_n "checking for $ac_word... " >&6; }
17846 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17847 $as_echo_n "(cached) " >&6
17848 else
17849 if test -n "$RANLIB_FOR_TARGET"; then
17850 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17851 else
17852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17853 for as_dir in $PATH
17855 IFS=$as_save_IFS
17856 test -z "$as_dir" && as_dir=.
17857 for ac_exec_ext in '' $ac_executable_extensions; do
17858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17859 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17861 break 2
17863 done
17864 done
17865 IFS=$as_save_IFS
17869 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17870 if test -n "$RANLIB_FOR_TARGET"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17872 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17873 else
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17875 $as_echo "no" >&6; }
17880 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17882 set dummy ${ncn_progname}; ac_word=$2
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17884 $as_echo_n "checking for $ac_word... " >&6; }
17885 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17886 $as_echo_n "(cached) " >&6
17887 else
17888 if test -n "$RANLIB_FOR_TARGET"; then
17889 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17890 else
17891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17892 for as_dir in $PATH
17894 IFS=$as_save_IFS
17895 test -z "$as_dir" && as_dir=.
17896 for ac_exec_ext in '' $ac_executable_extensions; do
17897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17898 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17900 break 2
17902 done
17903 done
17904 IFS=$as_save_IFS
17908 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17909 if test -n "$RANLIB_FOR_TARGET"; then
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17911 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17912 else
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17919 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
17920 done
17923 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
17924 set dummy ranlib
17925 if test $build = $target ; then
17926 RANLIB_FOR_TARGET="$2"
17927 else
17928 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
17930 else
17931 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
17934 else
17935 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17941 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17942 if test -n "$with_build_time_tools"; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
17944 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
17945 if test -x $with_build_time_tools/readelf; then
17946 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
17947 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
17949 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17950 else
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952 $as_echo "no" >&6; }
17954 elif test $build != $host && test $have_gcc_for_target = yes; then
17955 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17956 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17957 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17960 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17961 # Extract the first word of "readelf", so it can be a program name with args.
17962 set dummy readelf; ac_word=$2
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17964 $as_echo_n "checking for $ac_word... " >&6; }
17965 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 case $READELF_FOR_TARGET in
17969 [\\/]* | ?:[\\/]*)
17970 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17974 for as_dir in $gcc_cv_tool_dirs
17976 IFS=$as_save_IFS
17977 test -z "$as_dir" && as_dir=.
17978 for ac_exec_ext in '' $ac_executable_extensions; do
17979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17980 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17982 break 2
17984 done
17985 done
17986 IFS=$as_save_IFS
17989 esac
17991 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17992 if test -n "$READELF_FOR_TARGET"; then
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17994 $as_echo "$READELF_FOR_TARGET" >&6; }
17995 else
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17997 $as_echo "no" >&6; }
18002 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18005 if test -n "$READELF_FOR_TARGET"; then
18006 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
18007 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18008 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18011 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18012 for ncn_progname in readelf; do
18013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18014 set dummy ${ncn_progname}; ac_word=$2
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18016 $as_echo_n "checking for $ac_word... " >&6; }
18017 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18018 $as_echo_n "(cached) " >&6
18019 else
18020 if test -n "$READELF_FOR_TARGET"; then
18021 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18022 else
18023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18024 for as_dir in $PATH
18026 IFS=$as_save_IFS
18027 test -z "$as_dir" && as_dir=.
18028 for ac_exec_ext in '' $ac_executable_extensions; do
18029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18030 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18032 break 2
18034 done
18035 done
18036 IFS=$as_save_IFS
18040 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18041 if test -n "$READELF_FOR_TARGET"; then
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18043 $as_echo "$READELF_FOR_TARGET" >&6; }
18044 else
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18046 $as_echo "no" >&6; }
18050 done
18053 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18054 for ncn_progname in readelf; do
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18056 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18057 if test -x $with_build_time_tools/${ncn_progname}; then
18058 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18060 $as_echo "yes" >&6; }
18061 break
18062 else
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18064 $as_echo "no" >&6; }
18066 done
18069 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18070 for ncn_progname in readelf; do
18071 if test -n "$ncn_target_tool_prefix"; then
18072 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18073 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18075 $as_echo_n "checking for $ac_word... " >&6; }
18076 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18077 $as_echo_n "(cached) " >&6
18078 else
18079 if test -n "$READELF_FOR_TARGET"; then
18080 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18081 else
18082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18083 for as_dir in $PATH
18085 IFS=$as_save_IFS
18086 test -z "$as_dir" && as_dir=.
18087 for ac_exec_ext in '' $ac_executable_extensions; do
18088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18089 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18091 break 2
18093 done
18094 done
18095 IFS=$as_save_IFS
18099 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18100 if test -n "$READELF_FOR_TARGET"; then
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18102 $as_echo "$READELF_FOR_TARGET" >&6; }
18103 else
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18105 $as_echo "no" >&6; }
18110 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18112 set dummy ${ncn_progname}; ac_word=$2
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18114 $as_echo_n "checking for $ac_word... " >&6; }
18115 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18116 $as_echo_n "(cached) " >&6
18117 else
18118 if test -n "$READELF_FOR_TARGET"; then
18119 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18120 else
18121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18122 for as_dir in $PATH
18124 IFS=$as_save_IFS
18125 test -z "$as_dir" && as_dir=.
18126 for ac_exec_ext in '' $ac_executable_extensions; do
18127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18128 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18130 break 2
18132 done
18133 done
18134 IFS=$as_save_IFS
18138 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18139 if test -n "$READELF_FOR_TARGET"; then
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18141 $as_echo "$READELF_FOR_TARGET" >&6; }
18142 else
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18144 $as_echo "no" >&6; }
18149 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18150 done
18153 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18154 set dummy readelf
18155 if test $build = $target ; then
18156 READELF_FOR_TARGET="$2"
18157 else
18158 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18160 else
18161 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18164 else
18165 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18171 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18172 if test -n "$with_build_time_tools"; then
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
18174 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
18175 if test -x $with_build_time_tools/strip; then
18176 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18177 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
18179 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18180 else
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 $as_echo "no" >&6; }
18184 elif test $build != $host && test $have_gcc_for_target = yes; then
18185 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18186 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18187 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18190 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18191 # Extract the first word of "strip", so it can be a program name with args.
18192 set dummy strip; ac_word=$2
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18194 $as_echo_n "checking for $ac_word... " >&6; }
18195 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18196 $as_echo_n "(cached) " >&6
18197 else
18198 case $STRIP_FOR_TARGET in
18199 [\\/]* | ?:[\\/]*)
18200 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18204 for as_dir in $gcc_cv_tool_dirs
18206 IFS=$as_save_IFS
18207 test -z "$as_dir" && as_dir=.
18208 for ac_exec_ext in '' $ac_executable_extensions; do
18209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18210 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18212 break 2
18214 done
18215 done
18216 IFS=$as_save_IFS
18219 esac
18221 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18222 if test -n "$STRIP_FOR_TARGET"; then
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18224 $as_echo "$STRIP_FOR_TARGET" >&6; }
18225 else
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227 $as_echo "no" >&6; }
18232 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18235 if test -n "$STRIP_FOR_TARGET"; then
18236 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18237 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18238 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18241 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18242 for ncn_progname in strip; do
18243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18244 set dummy ${ncn_progname}; ac_word=$2
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18246 $as_echo_n "checking for $ac_word... " >&6; }
18247 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18248 $as_echo_n "(cached) " >&6
18249 else
18250 if test -n "$STRIP_FOR_TARGET"; then
18251 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18252 else
18253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18254 for as_dir in $PATH
18256 IFS=$as_save_IFS
18257 test -z "$as_dir" && as_dir=.
18258 for ac_exec_ext in '' $ac_executable_extensions; do
18259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18260 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18262 break 2
18264 done
18265 done
18266 IFS=$as_save_IFS
18270 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18271 if test -n "$STRIP_FOR_TARGET"; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18273 $as_echo "$STRIP_FOR_TARGET" >&6; }
18274 else
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18276 $as_echo "no" >&6; }
18280 done
18283 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18284 for ncn_progname in strip; do
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18286 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18287 if test -x $with_build_time_tools/${ncn_progname}; then
18288 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18290 $as_echo "yes" >&6; }
18291 break
18292 else
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18294 $as_echo "no" >&6; }
18296 done
18299 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18300 for ncn_progname in strip; do
18301 if test -n "$ncn_target_tool_prefix"; then
18302 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18303 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18305 $as_echo_n "checking for $ac_word... " >&6; }
18306 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18307 $as_echo_n "(cached) " >&6
18308 else
18309 if test -n "$STRIP_FOR_TARGET"; then
18310 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18311 else
18312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18315 IFS=$as_save_IFS
18316 test -z "$as_dir" && as_dir=.
18317 for ac_exec_ext in '' $ac_executable_extensions; do
18318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18319 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18321 break 2
18323 done
18324 done
18325 IFS=$as_save_IFS
18329 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18330 if test -n "$STRIP_FOR_TARGET"; then
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18332 $as_echo "$STRIP_FOR_TARGET" >&6; }
18333 else
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18335 $as_echo "no" >&6; }
18340 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18342 set dummy ${ncn_progname}; ac_word=$2
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18344 $as_echo_n "checking for $ac_word... " >&6; }
18345 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18346 $as_echo_n "(cached) " >&6
18347 else
18348 if test -n "$STRIP_FOR_TARGET"; then
18349 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18350 else
18351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18352 for as_dir in $PATH
18354 IFS=$as_save_IFS
18355 test -z "$as_dir" && as_dir=.
18356 for ac_exec_ext in '' $ac_executable_extensions; do
18357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18358 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18360 break 2
18362 done
18363 done
18364 IFS=$as_save_IFS
18368 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18369 if test -n "$STRIP_FOR_TARGET"; then
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18371 $as_echo "$STRIP_FOR_TARGET" >&6; }
18372 else
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18374 $as_echo "no" >&6; }
18379 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18380 done
18383 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18384 set dummy strip
18385 if test $build = $target ; then
18386 STRIP_FOR_TARGET="$2"
18387 else
18388 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18390 else
18391 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18394 else
18395 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18401 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18402 if test -n "$with_build_time_tools"; then
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
18404 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
18405 if test -x $with_build_time_tools/windres; then
18406 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18407 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18409 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18410 else
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18412 $as_echo "no" >&6; }
18414 elif test $build != $host && test $have_gcc_for_target = yes; then
18415 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18416 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18417 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18420 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18421 # Extract the first word of "windres", so it can be a program name with args.
18422 set dummy windres; ac_word=$2
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18424 $as_echo_n "checking for $ac_word... " >&6; }
18425 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18426 $as_echo_n "(cached) " >&6
18427 else
18428 case $WINDRES_FOR_TARGET in
18429 [\\/]* | ?:[\\/]*)
18430 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434 for as_dir in $gcc_cv_tool_dirs
18436 IFS=$as_save_IFS
18437 test -z "$as_dir" && as_dir=.
18438 for ac_exec_ext in '' $ac_executable_extensions; do
18439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18440 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18442 break 2
18444 done
18445 done
18446 IFS=$as_save_IFS
18449 esac
18451 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18452 if test -n "$WINDRES_FOR_TARGET"; then
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18454 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18455 else
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18457 $as_echo "no" >&6; }
18462 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18465 if test -n "$WINDRES_FOR_TARGET"; then
18466 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18467 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18468 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18471 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18472 for ncn_progname in windres; do
18473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18474 set dummy ${ncn_progname}; ac_word=$2
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18476 $as_echo_n "checking for $ac_word... " >&6; }
18477 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18478 $as_echo_n "(cached) " >&6
18479 else
18480 if test -n "$WINDRES_FOR_TARGET"; then
18481 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18482 else
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18486 IFS=$as_save_IFS
18487 test -z "$as_dir" && as_dir=.
18488 for ac_exec_ext in '' $ac_executable_extensions; do
18489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18490 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18492 break 2
18494 done
18495 done
18496 IFS=$as_save_IFS
18500 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18501 if test -n "$WINDRES_FOR_TARGET"; then
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18503 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18504 else
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18506 $as_echo "no" >&6; }
18510 done
18513 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18514 for ncn_progname in windres; do
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18516 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18517 if test -x $with_build_time_tools/${ncn_progname}; then
18518 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18520 $as_echo "yes" >&6; }
18521 break
18522 else
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18524 $as_echo "no" >&6; }
18526 done
18529 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18530 for ncn_progname in windres; do
18531 if test -n "$ncn_target_tool_prefix"; then
18532 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18533 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18535 $as_echo_n "checking for $ac_word... " >&6; }
18536 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18537 $as_echo_n "(cached) " >&6
18538 else
18539 if test -n "$WINDRES_FOR_TARGET"; then
18540 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18541 else
18542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18543 for as_dir in $PATH
18545 IFS=$as_save_IFS
18546 test -z "$as_dir" && as_dir=.
18547 for ac_exec_ext in '' $ac_executable_extensions; do
18548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18549 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18551 break 2
18553 done
18554 done
18555 IFS=$as_save_IFS
18559 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18560 if test -n "$WINDRES_FOR_TARGET"; then
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18562 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18563 else
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 $as_echo "no" >&6; }
18570 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18572 set dummy ${ncn_progname}; ac_word=$2
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18574 $as_echo_n "checking for $ac_word... " >&6; }
18575 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18576 $as_echo_n "(cached) " >&6
18577 else
18578 if test -n "$WINDRES_FOR_TARGET"; then
18579 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18580 else
18581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18582 for as_dir in $PATH
18584 IFS=$as_save_IFS
18585 test -z "$as_dir" && as_dir=.
18586 for ac_exec_ext in '' $ac_executable_extensions; do
18587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18588 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18590 break 2
18592 done
18593 done
18594 IFS=$as_save_IFS
18598 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18599 if test -n "$WINDRES_FOR_TARGET"; then
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18601 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18602 else
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18604 $as_echo "no" >&6; }
18609 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18610 done
18613 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18614 set dummy windres
18615 if test $build = $target ; then
18616 WINDRES_FOR_TARGET="$2"
18617 else
18618 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18620 else
18621 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18624 else
18625 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18631 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18632 if test -n "$with_build_time_tools"; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
18634 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
18635 if test -x $with_build_time_tools/windmc; then
18636 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18637 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18639 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18640 else
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18644 elif test $build != $host && test $have_gcc_for_target = yes; then
18645 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18646 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18647 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18650 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18651 # Extract the first word of "windmc", so it can be a program name with args.
18652 set dummy windmc; ac_word=$2
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18654 $as_echo_n "checking for $ac_word... " >&6; }
18655 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18656 $as_echo_n "(cached) " >&6
18657 else
18658 case $WINDMC_FOR_TARGET in
18659 [\\/]* | ?:[\\/]*)
18660 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664 for as_dir in $gcc_cv_tool_dirs
18666 IFS=$as_save_IFS
18667 test -z "$as_dir" && as_dir=.
18668 for ac_exec_ext in '' $ac_executable_extensions; do
18669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18670 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18672 break 2
18674 done
18675 done
18676 IFS=$as_save_IFS
18679 esac
18681 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18682 if test -n "$WINDMC_FOR_TARGET"; then
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18684 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18685 else
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18687 $as_echo "no" >&6; }
18692 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18695 if test -n "$WINDMC_FOR_TARGET"; then
18696 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18697 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18698 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18701 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18702 for ncn_progname in windmc; do
18703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18704 set dummy ${ncn_progname}; ac_word=$2
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18706 $as_echo_n "checking for $ac_word... " >&6; }
18707 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18708 $as_echo_n "(cached) " >&6
18709 else
18710 if test -n "$WINDMC_FOR_TARGET"; then
18711 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18712 else
18713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714 for as_dir in $PATH
18716 IFS=$as_save_IFS
18717 test -z "$as_dir" && as_dir=.
18718 for ac_exec_ext in '' $ac_executable_extensions; do
18719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18720 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18722 break 2
18724 done
18725 done
18726 IFS=$as_save_IFS
18730 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18731 if test -n "$WINDMC_FOR_TARGET"; then
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18733 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18734 else
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18736 $as_echo "no" >&6; }
18740 done
18743 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18744 for ncn_progname in windmc; do
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18746 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18747 if test -x $with_build_time_tools/${ncn_progname}; then
18748 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18750 $as_echo "yes" >&6; }
18751 break
18752 else
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18754 $as_echo "no" >&6; }
18756 done
18759 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18760 for ncn_progname in windmc; do
18761 if test -n "$ncn_target_tool_prefix"; then
18762 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18763 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18765 $as_echo_n "checking for $ac_word... " >&6; }
18766 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18767 $as_echo_n "(cached) " >&6
18768 else
18769 if test -n "$WINDMC_FOR_TARGET"; then
18770 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18771 else
18772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773 for as_dir in $PATH
18775 IFS=$as_save_IFS
18776 test -z "$as_dir" && as_dir=.
18777 for ac_exec_ext in '' $ac_executable_extensions; do
18778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18779 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18781 break 2
18783 done
18784 done
18785 IFS=$as_save_IFS
18789 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18790 if test -n "$WINDMC_FOR_TARGET"; then
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18792 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18793 else
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18795 $as_echo "no" >&6; }
18800 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18802 set dummy ${ncn_progname}; ac_word=$2
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18804 $as_echo_n "checking for $ac_word... " >&6; }
18805 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18806 $as_echo_n "(cached) " >&6
18807 else
18808 if test -n "$WINDMC_FOR_TARGET"; then
18809 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18810 else
18811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18812 for as_dir in $PATH
18814 IFS=$as_save_IFS
18815 test -z "$as_dir" && as_dir=.
18816 for ac_exec_ext in '' $ac_executable_extensions; do
18817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18818 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18820 break 2
18822 done
18823 done
18824 IFS=$as_save_IFS
18828 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18829 if test -n "$WINDMC_FOR_TARGET"; then
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18831 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18832 else
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834 $as_echo "no" >&6; }
18839 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18840 done
18843 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18844 set dummy windmc
18845 if test $build = $target ; then
18846 WINDMC_FOR_TARGET="$2"
18847 else
18848 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18850 else
18851 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18854 else
18855 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18859 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
18862 $as_echo_n "checking where to find the target ar... " >&6; }
18863 if test "x${build}" != "x${host}" ; then
18864 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18865 # We already found the complete path
18866 ac_dir=`dirname $AR_FOR_TARGET`
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18868 $as_echo "pre-installed in $ac_dir" >&6; }
18869 else
18870 # Canadian cross, just use what we found
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18872 $as_echo "pre-installed" >&6; }
18874 else
18875 ok=yes
18876 case " ${configdirs} " in
18877 *" binutils "*) ;;
18878 *) ok=no ;;
18879 esac
18881 if test $ok = yes; then
18882 # An in-tree tool is available and we can use it
18883 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18885 $as_echo "just compiled" >&6; }
18886 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18887 # We already found the complete path
18888 ac_dir=`dirname $AR_FOR_TARGET`
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18890 $as_echo "pre-installed in $ac_dir" >&6; }
18891 elif test "x$target" = "x$host"; then
18892 # We can use an host tool
18893 AR_FOR_TARGET='$(AR)'
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18895 $as_echo "host tool" >&6; }
18896 else
18897 # We need a cross tool
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18899 $as_echo "pre-installed" >&6; }
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
18904 $as_echo_n "checking where to find the target as... " >&6; }
18905 if test "x${build}" != "x${host}" ; then
18906 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18907 # We already found the complete path
18908 ac_dir=`dirname $AS_FOR_TARGET`
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18910 $as_echo "pre-installed in $ac_dir" >&6; }
18911 else
18912 # Canadian cross, just use what we found
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18914 $as_echo "pre-installed" >&6; }
18916 else
18917 ok=yes
18918 case " ${configdirs} " in
18919 *" gas "*) ;;
18920 *) ok=no ;;
18921 esac
18923 if test $ok = yes; then
18924 # An in-tree tool is available and we can use it
18925 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18927 $as_echo "just compiled" >&6; }
18928 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
18929 # We already found the complete path
18930 ac_dir=`dirname $AS_FOR_TARGET`
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18932 $as_echo "pre-installed in $ac_dir" >&6; }
18933 elif test "x$target" = "x$host"; then
18934 # We can use an host tool
18935 AS_FOR_TARGET='$(AS)'
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18937 $as_echo "host tool" >&6; }
18938 else
18939 # We need a cross tool
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18941 $as_echo "pre-installed" >&6; }
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
18946 $as_echo_n "checking where to find the target cc... " >&6; }
18947 if test "x${build}" != "x${host}" ; then
18948 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18949 # We already found the complete path
18950 ac_dir=`dirname $CC_FOR_TARGET`
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18952 $as_echo "pre-installed in $ac_dir" >&6; }
18953 else
18954 # Canadian cross, just use what we found
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18956 $as_echo "pre-installed" >&6; }
18958 else
18959 ok=yes
18960 case " ${configdirs} " in
18961 *" gcc "*) ;;
18962 *) ok=no ;;
18963 esac
18965 if test $ok = yes; then
18966 # An in-tree tool is available and we can use it
18967 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18969 $as_echo "just compiled" >&6; }
18970 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
18971 # We already found the complete path
18972 ac_dir=`dirname $CC_FOR_TARGET`
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18974 $as_echo "pre-installed in $ac_dir" >&6; }
18975 elif test "x$target" = "x$host"; then
18976 # We can use an host tool
18977 CC_FOR_TARGET='$(CC)'
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18979 $as_echo "host tool" >&6; }
18980 else
18981 # We need a cross tool
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18983 $as_echo "pre-installed" >&6; }
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
18988 $as_echo_n "checking where to find the target c++... " >&6; }
18989 if test "x${build}" != "x${host}" ; then
18990 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
18991 # We already found the complete path
18992 ac_dir=`dirname $CXX_FOR_TARGET`
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18994 $as_echo "pre-installed in $ac_dir" >&6; }
18995 else
18996 # Canadian cross, just use what we found
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18998 $as_echo "pre-installed" >&6; }
19000 else
19001 ok=yes
19002 case " ${configdirs} " in
19003 *" gcc "*) ;;
19004 *) ok=no ;;
19005 esac
19006 case ,${enable_languages}, in
19007 *,c++,*) ;;
19008 *) ok=no ;;
19009 esac
19010 if test $ok = yes; then
19011 # An in-tree tool is available and we can use it
19012 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'
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19014 $as_echo "just compiled" >&6; }
19015 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19016 # We already found the complete path
19017 ac_dir=`dirname $CXX_FOR_TARGET`
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19019 $as_echo "pre-installed in $ac_dir" >&6; }
19020 elif test "x$target" = "x$host"; then
19021 # We can use an host tool
19022 CXX_FOR_TARGET='$(CXX)'
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19024 $as_echo "host tool" >&6; }
19025 else
19026 # We need a cross tool
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19028 $as_echo "pre-installed" >&6; }
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19033 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19034 if test "x${build}" != "x${host}" ; then
19035 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19036 # We already found the complete path
19037 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19039 $as_echo "pre-installed in $ac_dir" >&6; }
19040 else
19041 # Canadian cross, just use what we found
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19043 $as_echo "pre-installed" >&6; }
19045 else
19046 ok=yes
19047 case " ${configdirs} " in
19048 *" gcc "*) ;;
19049 *) ok=no ;;
19050 esac
19051 case ,${enable_languages}, in
19052 *,c++,*) ;;
19053 *) ok=no ;;
19054 esac
19055 if test $ok = yes; then
19056 # An in-tree tool is available and we can use it
19057 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'
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19059 $as_echo "just compiled" >&6; }
19060 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19061 # We already found the complete path
19062 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19064 $as_echo "pre-installed in $ac_dir" >&6; }
19065 elif test "x$target" = "x$host"; then
19066 # We can use an host tool
19067 RAW_CXX_FOR_TARGET='$(CXX)'
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19069 $as_echo "host tool" >&6; }
19070 else
19071 # We need a cross tool
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19073 $as_echo "pre-installed" >&6; }
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
19078 $as_echo_n "checking where to find the target dlltool... " >&6; }
19079 if test "x${build}" != "x${host}" ; then
19080 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19081 # We already found the complete path
19082 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19084 $as_echo "pre-installed in $ac_dir" >&6; }
19085 else
19086 # Canadian cross, just use what we found
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19088 $as_echo "pre-installed" >&6; }
19090 else
19091 ok=yes
19092 case " ${configdirs} " in
19093 *" binutils "*) ;;
19094 *) ok=no ;;
19095 esac
19097 if test $ok = yes; then
19098 # An in-tree tool is available and we can use it
19099 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19101 $as_echo "just compiled" >&6; }
19102 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19103 # We already found the complete path
19104 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19106 $as_echo "pre-installed in $ac_dir" >&6; }
19107 elif test "x$target" = "x$host"; then
19108 # We can use an host tool
19109 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19111 $as_echo "host tool" >&6; }
19112 else
19113 # We need a cross tool
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19115 $as_echo "pre-installed" >&6; }
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
19120 $as_echo_n "checking where to find the target dsymutil... " >&6; }
19121 if test "x${build}" != "x${host}" ; then
19122 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19123 # We already found the complete path
19124 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19126 $as_echo "pre-installed in $ac_dir" >&6; }
19127 else
19128 # Canadian cross, just use what we found
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19130 $as_echo "pre-installed" >&6; }
19132 else
19133 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19134 # We already found the complete path
19135 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19137 $as_echo "pre-installed in $ac_dir" >&6; }
19138 elif test "x$target" = "x$host"; then
19139 # We can use an host tool
19140 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19142 $as_echo "host tool" >&6; }
19143 else
19144 # We need a cross tool
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19146 $as_echo "pre-installed" >&6; }
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
19151 $as_echo_n "checking where to find the target gcc... " >&6; }
19152 if test "x${build}" != "x${host}" ; then
19153 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19154 # We already found the complete path
19155 ac_dir=`dirname $GCC_FOR_TARGET`
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19157 $as_echo "pre-installed in $ac_dir" >&6; }
19158 else
19159 # Canadian cross, just use what we found
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19161 $as_echo "pre-installed" >&6; }
19163 else
19164 ok=yes
19165 case " ${configdirs} " in
19166 *" gcc "*) ;;
19167 *) ok=no ;;
19168 esac
19170 if test $ok = yes; then
19171 # An in-tree tool is available and we can use it
19172 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19174 $as_echo "just compiled" >&6; }
19175 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19176 # We already found the complete path
19177 ac_dir=`dirname $GCC_FOR_TARGET`
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19179 $as_echo "pre-installed in $ac_dir" >&6; }
19180 elif test "x$target" = "x$host"; then
19181 # We can use an host tool
19182 GCC_FOR_TARGET='$()'
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19184 $as_echo "host tool" >&6; }
19185 else
19186 # We need a cross tool
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19188 $as_echo "pre-installed" >&6; }
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
19193 $as_echo_n "checking where to find the target gfortran... " >&6; }
19194 if test "x${build}" != "x${host}" ; then
19195 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19196 # We already found the complete path
19197 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19199 $as_echo "pre-installed in $ac_dir" >&6; }
19200 else
19201 # Canadian cross, just use what we found
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19203 $as_echo "pre-installed" >&6; }
19205 else
19206 ok=yes
19207 case " ${configdirs} " in
19208 *" gcc "*) ;;
19209 *) ok=no ;;
19210 esac
19211 case ,${enable_languages}, in
19212 *,fortran,*) ;;
19213 *) ok=no ;;
19214 esac
19215 if test $ok = yes; then
19216 # An in-tree tool is available and we can use it
19217 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19219 $as_echo "just compiled" >&6; }
19220 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19221 # We already found the complete path
19222 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19224 $as_echo "pre-installed in $ac_dir" >&6; }
19225 elif test "x$target" = "x$host"; then
19226 # We can use an host tool
19227 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19229 $as_echo "host tool" >&6; }
19230 else
19231 # We need a cross tool
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19233 $as_echo "pre-installed" >&6; }
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
19238 $as_echo_n "checking where to find the target gccgo... " >&6; }
19239 if test "x${build}" != "x${host}" ; then
19240 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19241 # We already found the complete path
19242 ac_dir=`dirname $GOC_FOR_TARGET`
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19244 $as_echo "pre-installed in $ac_dir" >&6; }
19245 else
19246 # Canadian cross, just use what we found
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19248 $as_echo "pre-installed" >&6; }
19250 else
19251 ok=yes
19252 case " ${configdirs} " in
19253 *" gcc "*) ;;
19254 *) ok=no ;;
19255 esac
19256 case ,${enable_languages}, in
19257 *,go,*) ;;
19258 *) ok=no ;;
19259 esac
19260 if test $ok = yes; then
19261 # An in-tree tool is available and we can use it
19262 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19264 $as_echo "just compiled" >&6; }
19265 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19266 # We already found the complete path
19267 ac_dir=`dirname $GOC_FOR_TARGET`
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19269 $as_echo "pre-installed in $ac_dir" >&6; }
19270 elif test "x$target" = "x$host"; then
19271 # We can use an host tool
19272 GOC_FOR_TARGET='$(GOC)'
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19274 $as_echo "host tool" >&6; }
19275 else
19276 # We need a cross tool
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19278 $as_echo "pre-installed" >&6; }
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
19283 $as_echo_n "checking where to find the target gdc... " >&6; }
19284 if test "x${build}" != "x${host}" ; then
19285 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19286 # We already found the complete path
19287 ac_dir=`dirname $GDC_FOR_TARGET`
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19289 $as_echo "pre-installed in $ac_dir" >&6; }
19290 else
19291 # Canadian cross, just use what we found
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19293 $as_echo "pre-installed" >&6; }
19295 else
19296 ok=yes
19297 case " ${configdirs} " in
19298 *" gcc "*) ;;
19299 *) ok=no ;;
19300 esac
19301 case ,${enable_languages}, in
19302 *,d,*) ;;
19303 *) ok=no ;;
19304 esac
19305 if test $ok = yes; then
19306 # An in-tree tool is available and we can use it
19307 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19309 $as_echo "just compiled" >&6; }
19310 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19311 # We already found the complete path
19312 ac_dir=`dirname $GDC_FOR_TARGET`
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19314 $as_echo "pre-installed in $ac_dir" >&6; }
19315 elif test "x$target" = "x$host"; then
19316 # We can use an host tool
19317 GDC_FOR_TARGET='$(GDC)'
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19319 $as_echo "host tool" >&6; }
19320 else
19321 # We need a cross tool
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19323 $as_echo "pre-installed" >&6; }
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
19328 $as_echo_n "checking where to find the target gm2... " >&6; }
19329 if test "x${build}" != "x${host}" ; then
19330 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19331 # We already found the complete path
19332 ac_dir=`dirname $GM2_FOR_TARGET`
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19334 $as_echo "pre-installed in $ac_dir" >&6; }
19335 else
19336 # Canadian cross, just use what we found
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19338 $as_echo "pre-installed" >&6; }
19340 else
19341 ok=yes
19342 case " ${configdirs} " in
19343 *" gcc "*) ;;
19344 *) ok=no ;;
19345 esac
19346 case ,${enable_languages}, in
19347 *,m2,*) ;;
19348 *) ok=no ;;
19349 esac
19350 if test $ok = yes; then
19351 # An in-tree tool is available and we can use it
19352 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19354 $as_echo "just compiled" >&6; }
19355 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19356 # We already found the complete path
19357 ac_dir=`dirname $GM2_FOR_TARGET`
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19359 $as_echo "pre-installed in $ac_dir" >&6; }
19360 elif test "x$target" = "x$host"; then
19361 # We can use an host tool
19362 GM2_FOR_TARGET='$(GM2)'
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19364 $as_echo "host tool" >&6; }
19365 else
19366 # We need a cross tool
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19368 $as_echo "pre-installed" >&6; }
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
19373 $as_echo_n "checking where to find the target ld... " >&6; }
19374 if test "x${build}" != "x${host}" ; then
19375 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19376 # We already found the complete path
19377 ac_dir=`dirname $LD_FOR_TARGET`
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19379 $as_echo "pre-installed in $ac_dir" >&6; }
19380 else
19381 # Canadian cross, just use what we found
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19383 $as_echo "pre-installed" >&6; }
19385 else
19386 ok=yes
19387 case " ${configdirs} " in
19388 *" ld "*) ;;
19389 *) ok=no ;;
19390 esac
19392 if test $ok = yes; then
19393 # An in-tree tool is available and we can use it
19394 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19396 $as_echo "just compiled" >&6; }
19397 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19398 # We already found the complete path
19399 ac_dir=`dirname $LD_FOR_TARGET`
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19401 $as_echo "pre-installed in $ac_dir" >&6; }
19402 elif test "x$target" = "x$host"; then
19403 # We can use an host tool
19404 LD_FOR_TARGET='$(LD)'
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19406 $as_echo "host tool" >&6; }
19407 else
19408 # We need a cross tool
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19410 $as_echo "pre-installed" >&6; }
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
19415 $as_echo_n "checking where to find the target lipo... " >&6; }
19416 if test "x${build}" != "x${host}" ; then
19417 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19418 # We already found the complete path
19419 ac_dir=`dirname $LIPO_FOR_TARGET`
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19421 $as_echo "pre-installed in $ac_dir" >&6; }
19422 else
19423 # Canadian cross, just use what we found
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19425 $as_echo "pre-installed" >&6; }
19427 else
19428 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19429 # We already found the complete path
19430 ac_dir=`dirname $LIPO_FOR_TARGET`
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19432 $as_echo "pre-installed in $ac_dir" >&6; }
19433 elif test "x$target" = "x$host"; then
19434 # We can use an host tool
19435 LIPO_FOR_TARGET='$(LIPO)'
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19437 $as_echo "host tool" >&6; }
19438 else
19439 # We need a cross tool
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19441 $as_echo "pre-installed" >&6; }
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
19446 $as_echo_n "checking where to find the target nm... " >&6; }
19447 if test "x${build}" != "x${host}" ; then
19448 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19449 # We already found the complete path
19450 ac_dir=`dirname $NM_FOR_TARGET`
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19452 $as_echo "pre-installed in $ac_dir" >&6; }
19453 else
19454 # Canadian cross, just use what we found
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19456 $as_echo "pre-installed" >&6; }
19458 else
19459 ok=yes
19460 case " ${configdirs} " in
19461 *" binutils "*) ;;
19462 *) ok=no ;;
19463 esac
19465 if test $ok = yes; then
19466 # An in-tree tool is available and we can use it
19467 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19469 $as_echo "just compiled" >&6; }
19470 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19471 # We already found the complete path
19472 ac_dir=`dirname $NM_FOR_TARGET`
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19474 $as_echo "pre-installed in $ac_dir" >&6; }
19475 elif test "x$target" = "x$host"; then
19476 # We can use an host tool
19477 NM_FOR_TARGET='$(NM)'
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19479 $as_echo "host tool" >&6; }
19480 else
19481 # We need a cross tool
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19483 $as_echo "pre-installed" >&6; }
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
19488 $as_echo_n "checking where to find the target objcopy... " >&6; }
19489 if test "x${build}" != "x${host}" ; then
19490 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19491 # We already found the complete path
19492 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19494 $as_echo "pre-installed in $ac_dir" >&6; }
19495 else
19496 # Canadian cross, just use what we found
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19498 $as_echo "pre-installed" >&6; }
19500 else
19501 ok=yes
19502 case " ${configdirs} " in
19503 *" binutils "*) ;;
19504 *) ok=no ;;
19505 esac
19507 if test $ok = yes; then
19508 # An in-tree tool is available and we can use it
19509 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19511 $as_echo "just compiled" >&6; }
19512 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19513 # We already found the complete path
19514 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19516 $as_echo "pre-installed in $ac_dir" >&6; }
19517 elif test "x$target" = "x$host"; then
19518 # We can use an host tool
19519 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19521 $as_echo "host tool" >&6; }
19522 else
19523 # We need a cross tool
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19525 $as_echo "pre-installed" >&6; }
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
19530 $as_echo_n "checking where to find the target objdump... " >&6; }
19531 if test "x${build}" != "x${host}" ; then
19532 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19533 # We already found the complete path
19534 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19536 $as_echo "pre-installed in $ac_dir" >&6; }
19537 else
19538 # Canadian cross, just use what we found
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19540 $as_echo "pre-installed" >&6; }
19542 else
19543 ok=yes
19544 case " ${configdirs} " in
19545 *" binutils "*) ;;
19546 *) ok=no ;;
19547 esac
19549 if test $ok = yes; then
19550 # An in-tree tool is available and we can use it
19551 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19553 $as_echo "just compiled" >&6; }
19554 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19555 # We already found the complete path
19556 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19558 $as_echo "pre-installed in $ac_dir" >&6; }
19559 elif test "x$target" = "x$host"; then
19560 # We can use an host tool
19561 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19563 $as_echo "host tool" >&6; }
19564 else
19565 # We need a cross tool
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19567 $as_echo "pre-installed" >&6; }
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
19572 $as_echo_n "checking where to find the target otool... " >&6; }
19573 if test "x${build}" != "x${host}" ; then
19574 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19575 # We already found the complete path
19576 ac_dir=`dirname $OTOOL_FOR_TARGET`
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19578 $as_echo "pre-installed in $ac_dir" >&6; }
19579 else
19580 # Canadian cross, just use what we found
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19582 $as_echo "pre-installed" >&6; }
19584 else
19585 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19586 # We already found the complete path
19587 ac_dir=`dirname $OTOOL_FOR_TARGET`
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19589 $as_echo "pre-installed in $ac_dir" >&6; }
19590 elif test "x$target" = "x$host"; then
19591 # We can use an host tool
19592 OTOOL_FOR_TARGET='$(OTOOL)'
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19594 $as_echo "host tool" >&6; }
19595 else
19596 # We need a cross tool
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19598 $as_echo "pre-installed" >&6; }
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
19603 $as_echo_n "checking where to find the target ranlib... " >&6; }
19604 if test "x${build}" != "x${host}" ; then
19605 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19606 # We already found the complete path
19607 ac_dir=`dirname $RANLIB_FOR_TARGET`
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19609 $as_echo "pre-installed in $ac_dir" >&6; }
19610 else
19611 # Canadian cross, just use what we found
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19613 $as_echo "pre-installed" >&6; }
19615 else
19616 ok=yes
19617 case " ${configdirs} " in
19618 *" binutils "*) ;;
19619 *) ok=no ;;
19620 esac
19622 if test $ok = yes; then
19623 # An in-tree tool is available and we can use it
19624 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19626 $as_echo "just compiled" >&6; }
19627 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19628 # We already found the complete path
19629 ac_dir=`dirname $RANLIB_FOR_TARGET`
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19631 $as_echo "pre-installed in $ac_dir" >&6; }
19632 elif test "x$target" = "x$host"; then
19633 # We can use an host tool
19634 RANLIB_FOR_TARGET='$(RANLIB)'
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19636 $as_echo "host tool" >&6; }
19637 else
19638 # We need a cross tool
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19640 $as_echo "pre-installed" >&6; }
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
19645 $as_echo_n "checking where to find the target readelf... " >&6; }
19646 if test "x${build}" != "x${host}" ; then
19647 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19648 # We already found the complete path
19649 ac_dir=`dirname $READELF_FOR_TARGET`
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19651 $as_echo "pre-installed in $ac_dir" >&6; }
19652 else
19653 # Canadian cross, just use what we found
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19655 $as_echo "pre-installed" >&6; }
19657 else
19658 ok=yes
19659 case " ${configdirs} " in
19660 *" binutils "*) ;;
19661 *) ok=no ;;
19662 esac
19664 if test $ok = yes; then
19665 # An in-tree tool is available and we can use it
19666 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19668 $as_echo "just compiled" >&6; }
19669 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19670 # We already found the complete path
19671 ac_dir=`dirname $READELF_FOR_TARGET`
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19673 $as_echo "pre-installed in $ac_dir" >&6; }
19674 elif test "x$target" = "x$host"; then
19675 # We can use an host tool
19676 READELF_FOR_TARGET='$(READELF)'
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19678 $as_echo "host tool" >&6; }
19679 else
19680 # We need a cross tool
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19682 $as_echo "pre-installed" >&6; }
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
19687 $as_echo_n "checking where to find the target strip... " >&6; }
19688 if test "x${build}" != "x${host}" ; then
19689 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19690 # We already found the complete path
19691 ac_dir=`dirname $STRIP_FOR_TARGET`
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19693 $as_echo "pre-installed in $ac_dir" >&6; }
19694 else
19695 # Canadian cross, just use what we found
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19697 $as_echo "pre-installed" >&6; }
19699 else
19700 ok=yes
19701 case " ${configdirs} " in
19702 *" binutils "*) ;;
19703 *) ok=no ;;
19704 esac
19706 if test $ok = yes; then
19707 # An in-tree tool is available and we can use it
19708 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19710 $as_echo "just compiled" >&6; }
19711 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19712 # We already found the complete path
19713 ac_dir=`dirname $STRIP_FOR_TARGET`
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19715 $as_echo "pre-installed in $ac_dir" >&6; }
19716 elif test "x$target" = "x$host"; then
19717 # We can use an host tool
19718 STRIP_FOR_TARGET='$(STRIP)'
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19720 $as_echo "host tool" >&6; }
19721 else
19722 # We need a cross tool
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19724 $as_echo "pre-installed" >&6; }
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
19729 $as_echo_n "checking where to find the target windres... " >&6; }
19730 if test "x${build}" != "x${host}" ; then
19731 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19732 # We already found the complete path
19733 ac_dir=`dirname $WINDRES_FOR_TARGET`
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19735 $as_echo "pre-installed in $ac_dir" >&6; }
19736 else
19737 # Canadian cross, just use what we found
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19739 $as_echo "pre-installed" >&6; }
19741 else
19742 ok=yes
19743 case " ${configdirs} " in
19744 *" binutils "*) ;;
19745 *) ok=no ;;
19746 esac
19748 if test $ok = yes; then
19749 # An in-tree tool is available and we can use it
19750 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19752 $as_echo "just compiled" >&6; }
19753 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19754 # We already found the complete path
19755 ac_dir=`dirname $WINDRES_FOR_TARGET`
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19757 $as_echo "pre-installed in $ac_dir" >&6; }
19758 elif test "x$target" = "x$host"; then
19759 # We can use an host tool
19760 WINDRES_FOR_TARGET='$(WINDRES)'
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19762 $as_echo "host tool" >&6; }
19763 else
19764 # We need a cross tool
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19766 $as_echo "pre-installed" >&6; }
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
19771 $as_echo_n "checking where to find the target windmc... " >&6; }
19772 if test "x${build}" != "x${host}" ; then
19773 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19774 # We already found the complete path
19775 ac_dir=`dirname $WINDMC_FOR_TARGET`
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19777 $as_echo "pre-installed in $ac_dir" >&6; }
19778 else
19779 # Canadian cross, just use what we found
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19781 $as_echo "pre-installed" >&6; }
19783 else
19784 ok=yes
19785 case " ${configdirs} " in
19786 *" binutils "*) ;;
19787 *) ok=no ;;
19788 esac
19790 if test $ok = yes; then
19791 # An in-tree tool is available and we can use it
19792 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19794 $as_echo "just compiled" >&6; }
19795 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19796 # We already found the complete path
19797 ac_dir=`dirname $WINDMC_FOR_TARGET`
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19799 $as_echo "pre-installed in $ac_dir" >&6; }
19800 elif test "x$target" = "x$host"; then
19801 # We can use an host tool
19802 WINDMC_FOR_TARGET='$(WINDMC)'
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19804 $as_echo "host tool" >&6; }
19805 else
19806 # We need a cross tool
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19808 $as_echo "pre-installed" >&6; }
19816 # Certain tools may need extra flags.
19817 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
19818 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
19819 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
19821 # When building target libraries, except in a Canadian cross, we use
19822 # the same toolchain as the compiler we just built.
19823 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
19824 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
19825 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
19826 if test $host = $build; then
19827 case " $configdirs " in
19828 *" gcc "*)
19829 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
19830 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
19831 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
19833 esac
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
19841 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19842 # Check whether --enable-maintainer-mode was given.
19843 if test "${enable_maintainer_mode+set}" = set; then :
19844 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19845 else
19846 USE_MAINTAINER_MODE=no
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
19850 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19853 if test "$USE_MAINTAINER_MODE" = yes; then
19854 MAINTAINER_MODE_TRUE=
19855 MAINTAINER_MODE_FALSE='#'
19856 else
19857 MAINTAINER_MODE_TRUE='#'
19858 MAINTAINER_MODE_FALSE=
19860 MAINT=$MAINTAINER_MODE_TRUE
19862 # ---------------------
19863 # GCC bootstrap support
19864 # ---------------------
19866 # Stage specific cflags for build.
19867 stage1_cflags="-g"
19868 case $build in
19869 vax-*-*)
19870 case ${GCC} in
19871 yes) stage1_cflags="-g -Wa,-J" ;;
19872 *) stage1_cflags="-g -J" ;;
19873 esac ;;
19874 esac
19878 # Enable --enable-checking in stage1 of the compiler.
19879 # Check whether --enable-stage1-checking was given.
19880 if test "${enable_stage1_checking+set}" = set; then :
19881 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
19882 else
19883 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
19884 # For --disable-checking or implicit --enable-checking=release, avoid
19885 # setting --enable-checking=gc in the default stage1 checking for LTO
19886 # bootstraps. See PR62077.
19887 case $BUILD_CONFIG in
19888 *lto*)
19889 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
19891 stage1_checking=--enable-checking=yes,types;;
19892 esac
19893 if test "x$enable_checking" = x && \
19894 test -d ${srcdir}/gcc && \
19895 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
19896 stage1_checking=--enable-checking=yes,types,extra
19898 else
19899 stage1_checking=--enable-checking=$enable_checking,types
19905 # Enable -Werror in bootstrap stage2 and later.
19906 # Check whether --enable-werror was given.
19907 if test "${enable_werror+set}" = set; then :
19908 enableval=$enable_werror;
19909 case ${enable_werror} in
19910 yes) stage2_werror_flag="--enable-werror-always" ;;
19911 *) stage2_werror_flag="" ;;
19912 esac
19914 else
19916 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
19917 case $BUILD_CONFIG in
19918 bootstrap-debug)
19919 stage2_werror_flag="--enable-werror-always" ;;
19921 stage2_werror_flag="--enable-werror-always" ;;
19922 esac
19930 # Specify what files to not compare during bootstrap.
19932 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
19933 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
19934 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
19935 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
19936 case "$target" in
19937 hppa*64*-*-hpux*) ;;
19938 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
19939 esac
19942 ac_config_files="$ac_config_files Makefile"
19944 cat >confcache <<\_ACEOF
19945 # This file is a shell script that caches the results of configure
19946 # tests run on this system so they can be shared between configure
19947 # scripts and configure runs, see configure's option --config-cache.
19948 # It is not useful on other systems. If it contains results you don't
19949 # want to keep, you may remove or edit it.
19951 # config.status only pays attention to the cache file if you give it
19952 # the --recheck option to rerun configure.
19954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19956 # following values.
19958 _ACEOF
19960 # The following way of writing the cache mishandles newlines in values,
19961 # but we know of no workaround that is simple, portable, and efficient.
19962 # So, we kill variables containing newlines.
19963 # Ultrix sh set writes to stderr and can't be redirected directly,
19964 # and sets the high bit in the cache file unless we assign to the vars.
19966 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19967 eval ac_val=\$$ac_var
19968 case $ac_val in #(
19969 *${as_nl}*)
19970 case $ac_var in #(
19971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19973 esac
19974 case $ac_var in #(
19975 _ | IFS | as_nl) ;; #(
19976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19977 *) { eval $ac_var=; unset $ac_var;} ;;
19978 esac ;;
19979 esac
19980 done
19982 (set) 2>&1 |
19983 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19984 *${as_nl}ac_space=\ *)
19985 # `set' does not quote correctly, so add quotes: double-quote
19986 # substitution turns \\\\ into \\, and sed turns \\ into \.
19987 sed -n \
19988 "s/'/'\\\\''/g;
19989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19990 ;; #(
19992 # `set' quotes correctly as required by POSIX, so do not add quotes.
19993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19995 esac |
19996 sort
19998 sed '
19999 /^ac_cv_env_/b end
20000 t clear
20001 :clear
20002 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20003 t end
20004 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20005 :end' >>confcache
20006 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20007 if test -w "$cache_file"; then
20008 if test "x$cache_file" != "x/dev/null"; then
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20010 $as_echo "$as_me: updating cache $cache_file" >&6;}
20011 if test ! -f "$cache_file" || test -h "$cache_file"; then
20012 cat confcache >"$cache_file"
20013 else
20014 case $cache_file in #(
20015 */* | ?:*)
20016 mv -f confcache "$cache_file"$$ &&
20017 mv -f "$cache_file"$$ "$cache_file" ;; #(
20019 mv -f confcache "$cache_file" ;;
20020 esac
20023 else
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20025 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20028 rm -f confcache
20030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20031 # Let make expand exec_prefix.
20032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20034 # Transform confdefs.h into DEFS.
20035 # Protect against shell expansion while executing Makefile rules.
20036 # Protect against Makefile macro expansion.
20038 # If the first sed substitution is executed (which looks for macros that
20039 # take arguments), then branch to the quote section. Otherwise,
20040 # look for a macro that doesn't take arguments.
20041 ac_script='
20042 :mline
20043 /\\$/{
20045 s,\\\n,,
20046 b mline
20048 t clear
20049 :clear
20050 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20051 t quote
20052 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20053 t quote
20054 b any
20055 :quote
20056 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20057 s/\[/\\&/g
20058 s/\]/\\&/g
20059 s/\$/$$/g
20061 :any
20064 s/^\n//
20065 s/\n/ /g
20069 DEFS=`sed -n "$ac_script" confdefs.h`
20072 ac_libobjs=
20073 ac_ltlibobjs=
20075 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20076 # 1. Remove the extension, and $U if already installed.
20077 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20078 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20079 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20080 # will be set to the directory where LIBOBJS objects are built.
20081 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20082 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20083 done
20084 LIBOBJS=$ac_libobjs
20086 LTLIBOBJS=$ac_ltlibobjs
20090 : "${CONFIG_STATUS=./config.status}"
20091 ac_write_fail=0
20092 ac_clean_files_save=$ac_clean_files
20093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20096 as_write_fail=0
20097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20098 #! $SHELL
20099 # Generated by $as_me.
20100 # Run this file to recreate the current configuration.
20101 # Compiler output produced by configure, useful for debugging
20102 # configure, is in config.log if it exists.
20104 debug=false
20105 ac_cs_recheck=false
20106 ac_cs_silent=false
20108 SHELL=\${CONFIG_SHELL-$SHELL}
20109 export SHELL
20110 _ASEOF
20111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20112 ## -------------------- ##
20113 ## M4sh Initialization. ##
20114 ## -------------------- ##
20116 # Be more Bourne compatible
20117 DUALCASE=1; export DUALCASE # for MKS sh
20118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20119 emulate sh
20120 NULLCMD=:
20121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20122 # is contrary to our usage. Disable this feature.
20123 alias -g '${1+"$@"}'='"$@"'
20124 setopt NO_GLOB_SUBST
20125 else
20126 case `(set -o) 2>/dev/null` in #(
20127 *posix*) :
20128 set -o posix ;; #(
20129 *) :
20131 esac
20135 as_nl='
20137 export as_nl
20138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20142 # Prefer a ksh shell builtin over an external printf program on Solaris,
20143 # but without wasting forks for bash or zsh.
20144 if test -z "$BASH_VERSION$ZSH_VERSION" \
20145 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20146 as_echo='print -r --'
20147 as_echo_n='print -rn --'
20148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20149 as_echo='printf %s\n'
20150 as_echo_n='printf %s'
20151 else
20152 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20153 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20154 as_echo_n='/usr/ucb/echo -n'
20155 else
20156 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20157 as_echo_n_body='eval
20158 arg=$1;
20159 case $arg in #(
20160 *"$as_nl"*)
20161 expr "X$arg" : "X\\(.*\\)$as_nl";
20162 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20163 esac;
20164 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20166 export as_echo_n_body
20167 as_echo_n='sh -c $as_echo_n_body as_echo'
20169 export as_echo_body
20170 as_echo='sh -c $as_echo_body as_echo'
20173 # The user is always right.
20174 if test "${PATH_SEPARATOR+set}" != set; then
20175 PATH_SEPARATOR=:
20176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20177 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20178 PATH_SEPARATOR=';'
20183 # IFS
20184 # We need space, tab and new line, in precisely that order. Quoting is
20185 # there to prevent editors from complaining about space-tab.
20186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20187 # splitting by setting IFS to empty value.)
20188 IFS=" "" $as_nl"
20190 # Find who we are. Look in the path if we contain no directory separator.
20191 as_myself=
20192 case $0 in #((
20193 *[\\/]* ) as_myself=$0 ;;
20194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20195 for as_dir in $PATH
20197 IFS=$as_save_IFS
20198 test -z "$as_dir" && as_dir=.
20199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20200 done
20201 IFS=$as_save_IFS
20204 esac
20205 # We did not find ourselves, most probably we were run as `sh COMMAND'
20206 # in which case we are not to be found in the path.
20207 if test "x$as_myself" = x; then
20208 as_myself=$0
20210 if test ! -f "$as_myself"; then
20211 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20212 exit 1
20215 # Unset variables that we do not need and which cause bugs (e.g. in
20216 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20217 # suppresses any "Segmentation fault" message there. '((' could
20218 # trigger a bug in pdksh 5.2.14.
20219 for as_var in BASH_ENV ENV MAIL MAILPATH
20220 do eval test x\${$as_var+set} = xset \
20221 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20222 done
20223 PS1='$ '
20224 PS2='> '
20225 PS4='+ '
20227 # NLS nuisances.
20228 LC_ALL=C
20229 export LC_ALL
20230 LANGUAGE=C
20231 export LANGUAGE
20233 # CDPATH.
20234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20238 # ----------------------------------------
20239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20241 # script with STATUS, using 1 if that was 0.
20242 as_fn_error ()
20244 as_status=$1; test $as_status -eq 0 && as_status=1
20245 if test "$4"; then
20246 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20247 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20249 $as_echo "$as_me: error: $2" >&2
20250 as_fn_exit $as_status
20251 } # as_fn_error
20254 # as_fn_set_status STATUS
20255 # -----------------------
20256 # Set $? to STATUS, without forking.
20257 as_fn_set_status ()
20259 return $1
20260 } # as_fn_set_status
20262 # as_fn_exit STATUS
20263 # -----------------
20264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20265 as_fn_exit ()
20267 set +e
20268 as_fn_set_status $1
20269 exit $1
20270 } # as_fn_exit
20272 # as_fn_unset VAR
20273 # ---------------
20274 # Portably unset VAR.
20275 as_fn_unset ()
20277 { eval $1=; unset $1;}
20279 as_unset=as_fn_unset
20280 # as_fn_append VAR VALUE
20281 # ----------------------
20282 # Append the text in VALUE to the end of the definition contained in VAR. Take
20283 # advantage of any shell optimizations that allow amortized linear growth over
20284 # repeated appends, instead of the typical quadratic growth present in naive
20285 # implementations.
20286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20287 eval 'as_fn_append ()
20289 eval $1+=\$2
20291 else
20292 as_fn_append ()
20294 eval $1=\$$1\$2
20296 fi # as_fn_append
20298 # as_fn_arith ARG...
20299 # ------------------
20300 # Perform arithmetic evaluation on the ARGs, and store the result in the
20301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20302 # must be portable across $(()) and expr.
20303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20304 eval 'as_fn_arith ()
20306 as_val=$(( $* ))
20308 else
20309 as_fn_arith ()
20311 as_val=`expr "$@" || test $? -eq 1`
20313 fi # as_fn_arith
20316 if expr a : '\(a\)' >/dev/null 2>&1 &&
20317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20318 as_expr=expr
20319 else
20320 as_expr=false
20323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20324 as_basename=basename
20325 else
20326 as_basename=false
20329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20330 as_dirname=dirname
20331 else
20332 as_dirname=false
20335 as_me=`$as_basename -- "$0" ||
20336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20337 X"$0" : 'X\(//\)$' \| \
20338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20339 $as_echo X/"$0" |
20340 sed '/^.*\/\([^/][^/]*\)\/*$/{
20341 s//\1/
20344 /^X\/\(\/\/\)$/{
20345 s//\1/
20348 /^X\/\(\/\).*/{
20349 s//\1/
20352 s/.*/./; q'`
20354 # Avoid depending upon Character Ranges.
20355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20358 as_cr_digits='0123456789'
20359 as_cr_alnum=$as_cr_Letters$as_cr_digits
20361 ECHO_C= ECHO_N= ECHO_T=
20362 case `echo -n x` in #(((((
20363 -n*)
20364 case `echo 'xy\c'` in
20365 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20366 xy) ECHO_C='\c';;
20367 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20368 ECHO_T=' ';;
20369 esac;;
20371 ECHO_N='-n';;
20372 esac
20374 rm -f conf$$ conf$$.exe conf$$.file
20375 if test -d conf$$.dir; then
20376 rm -f conf$$.dir/conf$$.file
20377 else
20378 rm -f conf$$.dir
20379 mkdir conf$$.dir 2>/dev/null
20381 if (echo >conf$$.file) 2>/dev/null; then
20382 if ln -s conf$$.file conf$$ 2>/dev/null; then
20383 as_ln_s='ln -s'
20384 # ... but there are two gotchas:
20385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20387 # In both cases, we have to default to `cp -pR'.
20388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20389 as_ln_s='cp -pR'
20390 elif ln conf$$.file conf$$ 2>/dev/null; then
20391 as_ln_s=ln
20392 else
20393 as_ln_s='cp -pR'
20395 else
20396 as_ln_s='cp -pR'
20398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20399 rmdir conf$$.dir 2>/dev/null
20402 # as_fn_mkdir_p
20403 # -------------
20404 # Create "$as_dir" as a directory, including parents if necessary.
20405 as_fn_mkdir_p ()
20408 case $as_dir in #(
20409 -*) as_dir=./$as_dir;;
20410 esac
20411 test -d "$as_dir" || eval $as_mkdir_p || {
20412 as_dirs=
20413 while :; do
20414 case $as_dir in #(
20415 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20416 *) as_qdir=$as_dir;;
20417 esac
20418 as_dirs="'$as_qdir' $as_dirs"
20419 as_dir=`$as_dirname -- "$as_dir" ||
20420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20421 X"$as_dir" : 'X\(//\)[^/]' \| \
20422 X"$as_dir" : 'X\(//\)$' \| \
20423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20424 $as_echo X"$as_dir" |
20425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20426 s//\1/
20429 /^X\(\/\/\)[^/].*/{
20430 s//\1/
20433 /^X\(\/\/\)$/{
20434 s//\1/
20437 /^X\(\/\).*/{
20438 s//\1/
20441 s/.*/./; q'`
20442 test -d "$as_dir" && break
20443 done
20444 test -z "$as_dirs" || eval "mkdir $as_dirs"
20445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20448 } # as_fn_mkdir_p
20449 if mkdir -p . 2>/dev/null; then
20450 as_mkdir_p='mkdir -p "$as_dir"'
20451 else
20452 test -d ./-p && rmdir ./-p
20453 as_mkdir_p=false
20457 # as_fn_executable_p FILE
20458 # -----------------------
20459 # Test if FILE is an executable regular file.
20460 as_fn_executable_p ()
20462 test -f "$1" && test -x "$1"
20463 } # as_fn_executable_p
20464 as_test_x='test -x'
20465 as_executable_p=as_fn_executable_p
20467 # Sed expression to map a string onto a valid CPP name.
20468 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20470 # Sed expression to map a string onto a valid variable name.
20471 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20474 exec 6>&1
20475 ## ----------------------------------- ##
20476 ## Main body of $CONFIG_STATUS script. ##
20477 ## ----------------------------------- ##
20478 _ASEOF
20479 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20482 # Save the log message, to keep $0 and so on meaningful, and to
20483 # report actual input values of CONFIG_FILES etc. instead of their
20484 # values after options handling.
20485 ac_log="
20486 This file was extended by $as_me, which was
20487 generated by GNU Autoconf 2.69. Invocation command line was
20489 CONFIG_FILES = $CONFIG_FILES
20490 CONFIG_HEADERS = $CONFIG_HEADERS
20491 CONFIG_LINKS = $CONFIG_LINKS
20492 CONFIG_COMMANDS = $CONFIG_COMMANDS
20493 $ $0 $@
20495 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20498 _ACEOF
20500 case $ac_config_files in *"
20501 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20502 esac
20506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20507 # Files that config.status was made for.
20508 config_files="$ac_config_files"
20510 _ACEOF
20512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20513 ac_cs_usage="\
20514 \`$as_me' instantiates files and other configuration actions
20515 from templates according to the current configuration. Unless the files
20516 and actions are specified as TAGs, all are instantiated by default.
20518 Usage: $0 [OPTION]... [TAG]...
20520 -h, --help print this help, then exit
20521 -V, --version print version number and configuration settings, then exit
20522 --config print configuration, then exit
20523 -q, --quiet, --silent
20524 do not print progress messages
20525 -d, --debug don't remove temporary files
20526 --recheck update $as_me by reconfiguring in the same conditions
20527 --file=FILE[:TEMPLATE]
20528 instantiate the configuration file FILE
20530 Configuration files:
20531 $config_files
20533 Report bugs to the package provider."
20535 _ACEOF
20536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20537 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20538 ac_cs_version="\\
20539 config.status
20540 configured by $0, generated by GNU Autoconf 2.69,
20541 with options \\"\$ac_cs_config\\"
20543 Copyright (C) 2012 Free Software Foundation, Inc.
20544 This config.status script is free software; the Free Software Foundation
20545 gives unlimited permission to copy, distribute and modify it."
20547 ac_pwd='$ac_pwd'
20548 srcdir='$srcdir'
20549 INSTALL='$INSTALL'
20550 AWK='$AWK'
20551 test -n "\$AWK" || AWK=awk
20552 _ACEOF
20554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20555 # The default lists apply if the user does not specify any file.
20556 ac_need_defaults=:
20557 while test $# != 0
20559 case $1 in
20560 --*=?*)
20561 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20562 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20563 ac_shift=:
20565 --*=)
20566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20567 ac_optarg=
20568 ac_shift=:
20571 ac_option=$1
20572 ac_optarg=$2
20573 ac_shift=shift
20575 esac
20577 case $ac_option in
20578 # Handling of the options.
20579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20580 ac_cs_recheck=: ;;
20581 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20582 $as_echo "$ac_cs_version"; exit ;;
20583 --config | --confi | --conf | --con | --co | --c )
20584 $as_echo "$ac_cs_config"; exit ;;
20585 --debug | --debu | --deb | --de | --d | -d )
20586 debug=: ;;
20587 --file | --fil | --fi | --f )
20588 $ac_shift
20589 case $ac_optarg in
20590 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20591 '') as_fn_error $? "missing file argument" ;;
20592 esac
20593 as_fn_append CONFIG_FILES " '$ac_optarg'"
20594 ac_need_defaults=false;;
20595 --he | --h | --help | --hel | -h )
20596 $as_echo "$ac_cs_usage"; exit ;;
20597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20598 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20599 ac_cs_silent=: ;;
20601 # This is an error.
20602 -*) as_fn_error $? "unrecognized option: \`$1'
20603 Try \`$0 --help' for more information." ;;
20605 *) as_fn_append ac_config_targets " $1"
20606 ac_need_defaults=false ;;
20608 esac
20609 shift
20610 done
20612 ac_configure_extra_args=
20614 if $ac_cs_silent; then
20615 exec 6>/dev/null
20616 ac_configure_extra_args="$ac_configure_extra_args --silent"
20619 _ACEOF
20620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20621 if \$ac_cs_recheck; then
20622 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20623 shift
20624 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20625 CONFIG_SHELL='$SHELL'
20626 export CONFIG_SHELL
20627 exec "\$@"
20630 _ACEOF
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20632 exec 5>>config.log
20634 echo
20635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20636 ## Running $as_me. ##
20637 _ASBOX
20638 $as_echo "$ac_log"
20639 } >&5
20641 _ACEOF
20642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20644 # INIT-COMMANDS
20646 extrasub_build="$extrasub_build"
20647 extrasub_host="$extrasub_host"
20648 extrasub_target="$extrasub_target"
20650 _ACEOF
20652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20654 # Handling of arguments.
20655 for ac_config_target in $ac_config_targets
20657 case $ac_config_target in
20658 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20660 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20661 esac
20662 done
20665 # If the user did not use the arguments to specify the items to instantiate,
20666 # then the envvar interface is used. Set only those that are not.
20667 # We use the long form for the default assignment because of an extremely
20668 # bizarre bug on SunOS 4.1.3.
20669 if $ac_need_defaults; then
20670 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20673 # Have a temporary directory for convenience. Make it in the build tree
20674 # simply because there is no reason against having it here, and in addition,
20675 # creating and moving files from /tmp can sometimes cause problems.
20676 # Hook for its removal unless debugging.
20677 # Note that there is a small window in which the directory will not be cleaned:
20678 # after its creation but before its name has been assigned to `$tmp'.
20679 $debug ||
20681 tmp= ac_tmp=
20682 trap 'exit_status=$?
20683 : "${ac_tmp:=$tmp}"
20684 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20686 trap 'as_fn_exit 1' 1 2 13 15
20688 # Create a (secure) tmp directory for tmp files.
20691 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20692 test -d "$tmp"
20693 } ||
20695 tmp=./conf$$-$RANDOM
20696 (umask 077 && mkdir "$tmp")
20697 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20698 ac_tmp=$tmp
20700 # Set up the scripts for CONFIG_FILES section.
20701 # No need to generate them if there are no CONFIG_FILES.
20702 # This happens for instance with `./config.status config.h'.
20703 if test -n "$CONFIG_FILES"; then
20705 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20706 ac_cs_awk_getline=:
20707 ac_cs_awk_pipe_init=
20708 ac_cs_awk_read_file='
20709 while ((getline aline < (F[key])) > 0)
20710 print(aline)
20711 close(F[key])'
20712 ac_cs_awk_pipe_fini=
20713 else
20714 ac_cs_awk_getline=false
20715 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20716 ac_cs_awk_read_file='
20717 print "|#_!!_#|"
20718 print "cat " F[key] " &&"
20719 '$ac_cs_awk_pipe_init
20720 # The final `:' finishes the AND list.
20721 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20723 ac_cr=`echo X | tr X '\015'`
20724 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20725 # But we know of no other shell where ac_cr would be empty at this
20726 # point, so we can use a bashism as a fallback.
20727 if test "x$ac_cr" = x; then
20728 eval ac_cr=\$\'\\r\'
20730 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20731 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20732 ac_cs_awk_cr='\\r'
20733 else
20734 ac_cs_awk_cr=$ac_cr
20737 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20738 _ACEOF
20740 # Create commands to substitute file output variables.
20742 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20743 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20744 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20745 echo "_ACAWK" &&
20746 echo "_ACEOF"
20747 } >conf$$files.sh &&
20748 . ./conf$$files.sh ||
20749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20750 rm -f conf$$files.sh
20753 echo "cat >conf$$subs.awk <<_ACEOF" &&
20754 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20755 echo "_ACEOF"
20756 } >conf$$subs.sh ||
20757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20758 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20759 ac_delim='%!_!# '
20760 for ac_last_try in false false false false false :; do
20761 . ./conf$$subs.sh ||
20762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20764 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20765 if test $ac_delim_n = $ac_delim_num; then
20766 break
20767 elif $ac_last_try; then
20768 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20769 else
20770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20772 done
20773 rm -f conf$$subs.sh
20775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20776 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20777 _ACEOF
20778 sed -n '
20780 s/^/S["/; s/!.*/"]=/
20783 s/^[^!]*!//
20784 :repl
20785 t repl
20786 s/'"$ac_delim"'$//
20787 t delim
20790 s/\(.\{148\}\)..*/\1/
20791 t more1
20792 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20795 b repl
20796 :more1
20797 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20800 s/.\{148\}//
20801 t nl
20802 :delim
20804 s/\(.\{148\}\)..*/\1/
20805 t more2
20806 s/["\\]/\\&/g; s/^/"/; s/$/"/
20809 :more2
20810 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20813 s/.\{148\}//
20814 t delim
20815 ' <conf$$subs.awk | sed '
20816 /^[^""]/{
20818 s/\n//
20820 ' >>$CONFIG_STATUS || ac_write_fail=1
20821 rm -f conf$$subs.awk
20822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20823 _ACAWK
20824 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20825 for (key in S) S_is_set[key] = 1
20826 FS = "\a"
20827 \$ac_cs_awk_pipe_init
20830 line = $ 0
20831 nfields = split(line, field, "@")
20832 substed = 0
20833 len = length(field[1])
20834 for (i = 2; i < nfields; i++) {
20835 key = field[i]
20836 keylen = length(key)
20837 if (S_is_set[key]) {
20838 value = S[key]
20839 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20840 len += length(value) + length(field[++i])
20841 substed = 1
20842 } else
20843 len += 1 + keylen
20845 if (nfields == 3 && !substed) {
20846 key = field[2]
20847 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20848 \$ac_cs_awk_read_file
20849 next
20852 print line
20854 \$ac_cs_awk_pipe_fini
20855 _ACAWK
20856 _ACEOF
20857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20858 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20859 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20860 else
20862 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20863 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20864 _ACEOF
20866 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20867 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20868 # trailing colons and then remove the whole line if VPATH becomes empty
20869 # (actually we leave an empty line to preserve line numbers).
20870 if test "x$srcdir" = x.; then
20871 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20873 s///
20874 s/^/:/
20875 s/[ ]*$/:/
20876 s/:\$(srcdir):/:/g
20877 s/:\${srcdir}:/:/g
20878 s/:@srcdir@:/:/g
20879 s/^:*//
20880 s/:*$//
20882 s/\(=[ ]*\).*/\1/
20884 s/\n//
20885 s/^[^=]*=[ ]*$//
20889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20890 fi # test -n "$CONFIG_FILES"
20893 eval set X " :F $CONFIG_FILES "
20894 shift
20895 for ac_tag
20897 case $ac_tag in
20898 :[FHLC]) ac_mode=$ac_tag; continue;;
20899 esac
20900 case $ac_mode$ac_tag in
20901 :[FHL]*:*);;
20902 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20903 :[FH]-) ac_tag=-:-;;
20904 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20905 esac
20906 ac_save_IFS=$IFS
20907 IFS=:
20908 set x $ac_tag
20909 IFS=$ac_save_IFS
20910 shift
20911 ac_file=$1
20912 shift
20914 case $ac_mode in
20915 :L) ac_source=$1;;
20916 :[FH])
20917 ac_file_inputs=
20918 for ac_f
20920 case $ac_f in
20921 -) ac_f="$ac_tmp/stdin";;
20922 *) # Look for the file first in the build tree, then in the source tree
20923 # (if the path is not absolute). The absolute path cannot be DOS-style,
20924 # because $ac_f cannot contain `:'.
20925 test -f "$ac_f" ||
20926 case $ac_f in
20927 [\\/$]*) false;;
20928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20929 esac ||
20930 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20931 esac
20932 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20933 as_fn_append ac_file_inputs " '$ac_f'"
20934 done
20936 # Let's still pretend it is `configure' which instantiates (i.e., don't
20937 # use $as_me), people would be surprised to read:
20938 # /* config.h. Generated by config.status. */
20939 configure_input='Generated from '`
20940 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20941 `' by configure.'
20942 if test x"$ac_file" != x-; then
20943 configure_input="$ac_file. $configure_input"
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20945 $as_echo "$as_me: creating $ac_file" >&6;}
20947 # Neutralize special characters interpreted by sed in replacement strings.
20948 case $configure_input in #(
20949 *\&* | *\|* | *\\* )
20950 ac_sed_conf_input=`$as_echo "$configure_input" |
20951 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20952 *) ac_sed_conf_input=$configure_input;;
20953 esac
20955 case $ac_tag in
20956 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20958 esac
20960 esac
20962 ac_dir=`$as_dirname -- "$ac_file" ||
20963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20964 X"$ac_file" : 'X\(//\)[^/]' \| \
20965 X"$ac_file" : 'X\(//\)$' \| \
20966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20967 $as_echo X"$ac_file" |
20968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20969 s//\1/
20972 /^X\(\/\/\)[^/].*/{
20973 s//\1/
20976 /^X\(\/\/\)$/{
20977 s//\1/
20980 /^X\(\/\).*/{
20981 s//\1/
20984 s/.*/./; q'`
20985 as_dir="$ac_dir"; as_fn_mkdir_p
20986 ac_builddir=.
20988 case "$ac_dir" in
20989 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20991 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20992 # A ".." for each directory in $ac_dir_suffix.
20993 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20994 case $ac_top_builddir_sub in
20995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20997 esac ;;
20998 esac
20999 ac_abs_top_builddir=$ac_pwd
21000 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21001 # for backward compatibility:
21002 ac_top_builddir=$ac_top_build_prefix
21004 case $srcdir in
21005 .) # We are building in place.
21006 ac_srcdir=.
21007 ac_top_srcdir=$ac_top_builddir_sub
21008 ac_abs_top_srcdir=$ac_pwd ;;
21009 [\\/]* | ?:[\\/]* ) # Absolute name.
21010 ac_srcdir=$srcdir$ac_dir_suffix;
21011 ac_top_srcdir=$srcdir
21012 ac_abs_top_srcdir=$srcdir ;;
21013 *) # Relative name.
21014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21015 ac_top_srcdir=$ac_top_build_prefix$srcdir
21016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21017 esac
21018 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21021 case $ac_mode in
21024 # CONFIG_FILE
21027 case $INSTALL in
21028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21029 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21030 esac
21031 _ACEOF
21033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21034 # If the template does not know about datarootdir, expand it.
21035 # FIXME: This hack should be removed a few years after 2.60.
21036 ac_datarootdir_hack=; ac_datarootdir_seen=
21037 ac_sed_dataroot='
21038 /datarootdir/ {
21042 /@datadir@/p
21043 /@docdir@/p
21044 /@infodir@/p
21045 /@localedir@/p
21046 /@mandir@/p'
21047 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21048 *datarootdir*) ac_datarootdir_seen=yes;;
21049 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21051 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21052 _ACEOF
21053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21054 ac_datarootdir_hack='
21055 s&@datadir@&$datadir&g
21056 s&@docdir@&$docdir&g
21057 s&@infodir@&$infodir&g
21058 s&@localedir@&$localedir&g
21059 s&@mandir@&$mandir&g
21060 s&\\\${datarootdir}&$datarootdir&g' ;;
21061 esac
21062 _ACEOF
21064 # Neutralize VPATH when `$srcdir' = `.'.
21065 # Shell code in configure.ac might set extrasub.
21066 # FIXME: do we really want to maintain this feature?
21067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21068 ac_sed_extra="$ac_vpsub
21069 $extrasub
21070 _ACEOF
21071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21074 s|@configure_input@|$ac_sed_conf_input|;t t
21075 s&@top_builddir@&$ac_top_builddir_sub&;t t
21076 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21077 s&@srcdir@&$ac_srcdir&;t t
21078 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21079 s&@top_srcdir@&$ac_top_srcdir&;t t
21080 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21081 s&@builddir@&$ac_builddir&;t t
21082 s&@abs_builddir@&$ac_abs_builddir&;t t
21083 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21084 s&@INSTALL@&$ac_INSTALL&;t t
21085 $ac_datarootdir_hack
21087 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21088 if $ac_cs_awk_getline; then
21089 $AWK -f "$ac_tmp/subs.awk"
21090 else
21091 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21092 fi \
21093 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21096 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21098 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21100 which seems to be undefined. Please make sure it is defined" >&5
21101 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21102 which seems to be undefined. Please make sure it is defined" >&2;}
21104 rm -f "$ac_tmp/stdin"
21105 case $ac_file in
21106 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21107 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21108 esac \
21109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21114 esac
21117 case $ac_file$ac_mode in
21118 "Makefile":F) sed "$extrasub_build" Makefile |
21119 sed "$extrasub_host" |
21120 sed "$extrasub_target" > mf$$
21121 mv -f mf$$ Makefile ;;
21123 esac
21124 done # for ac_tag
21127 as_fn_exit 0
21128 _ACEOF
21129 ac_clean_files=$ac_clean_files_save
21131 test $ac_write_fail = 0 ||
21132 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21135 # configure is writing to config.log, and then calls config.status.
21136 # config.status does its own redirection, appending to config.log.
21137 # Unfortunately, on DOS this fails, as config.log is still kept open
21138 # by configure, so config.status won't be able to write to it; its
21139 # output is simply discarded. So we exec the FD to /dev/null,
21140 # effectively closing config.log, so it can be properly (re)opened and
21141 # appended to by config.status. When coming back to configure, we
21142 # need to make the FD available again.
21143 if test "$no_create" != yes; then
21144 ac_cs_success=:
21145 ac_config_status_args=
21146 test "$silent" = yes &&
21147 ac_config_status_args="$ac_config_status_args --quiet"
21148 exec 5>/dev/null
21149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21150 exec 5>>config.log
21151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21152 # would make configure fail if this is the last instruction.
21153 $ac_cs_success || as_fn_exit 1
21155 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21157 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}