Add documentation for the MIPS assembler's -march=from-abi command line option
[binutils-gdb.git] / configure
blobdd743c58663d663737808a8c3e9d7fc311d25b83
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 PICFLAG
694 host_shared
695 gcc_host_pie
696 host_pie
697 extra_linker_plugin_flags
698 extra_linker_plugin_configure_flags
699 islinc
700 isllibs
701 poststage1_ldflags
702 poststage1_libs
703 stage1_ldflags
704 stage1_libs
705 extra_isl_gmp_configure_flags
706 extra_mpc_mpfr_configure_flags
707 extra_mpc_gmp_configure_flags
708 extra_mpfr_configure_flags
709 gmpinc
710 gmplibs
711 PGO_BUILD_LTO_CFLAGS
712 PGO_BUILD_USE_CFLAGS
713 PGO_BUILD_GEN_CFLAGS
714 HAVE_CXX11_FOR_BUILD
715 HAVE_CXX11
716 do_compare
718 GNATMAKE
719 GNATBIND
720 ac_ct_CXX
721 CXXFLAGS
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
730 target_subdir
731 host_subdir
732 build_subdir
733 build_libsubdir
736 LN_S
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_os
742 target_vendor
743 target_cpu
744 target
745 host_os
746 host_vendor
747 host_cpu
748 host
749 target_noncanonical
750 host_noncanonical
751 build_noncanonical
752 build_os
753 build_vendor
754 build_cpu
755 build
756 TOPLEVEL_CONFIGURE_ARGUMENTS
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files='serialization_dependencies
796 host_makefile_frag
797 target_makefile_frag
798 alphaieee_frag
799 ospace_frag'
800 ac_user_opts='
801 enable_option_checking
802 with_build_libsubdir
803 with_system_zlib
804 with_zstd
805 enable_as_accelerator_for
806 enable_offload_targets
807 enable_offload_defaulted
808 enable_gold
809 enable_ld
810 enable_gprofng
811 enable_compressed_debug_sections
812 enable_default_compressed_debug_sections_algorithm
813 enable_year2038
814 enable_libquadmath
815 enable_libquadmath_support
816 enable_libada
817 enable_libgm2
818 enable_libssp
819 enable_libstdcxx
820 enable_bootstrap
821 enable_pgo_build
822 with_mpc
823 with_mpc_include
824 with_mpc_lib
825 with_mpfr
826 with_mpfr_include
827 with_mpfr_lib
828 with_gmp
829 with_gmp_include
830 with_gmp_lib
831 with_stage1_libs
832 with_static_standard_libraries
833 with_stage1_ldflags
834 with_boot_libs
835 with_boot_ldflags
836 with_isl
837 with_isl_include
838 with_isl_lib
839 enable_isl_version_check
840 enable_lto
841 enable_linker_plugin_configure_flags
842 enable_linker_plugin_flags
843 enable_host_pie
844 enable_host_shared
845 enable_stage1_languages
846 enable_objc_gc
847 with_target_bdw_gc
848 with_target_bdw_gc_include
849 with_target_bdw_gc_lib
850 with_gcc_major_version_only
851 with_build_sysroot
852 with_debug_prefix_map
853 with_build_config
854 enable_vtable_verify
855 enable_serial_configure
856 with_build_time_tools
857 enable_maintainer_mode
858 enable_stage1_checking
859 enable_werror
861 ac_precious_vars='build_alias
862 host_alias
863 target_alias
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
870 CXXFLAGS
872 build_configargs
873 host_configargs
874 target_configargs
877 DLLTOOL
878 DSYMUTIL
880 LIPO
882 RANLIB
883 STRIP
884 WINDRES
885 WINDMC
886 OBJCOPY
887 OBJDUMP
888 OTOOL
889 READELF
890 CC_FOR_TARGET
891 CXX_FOR_TARGET
892 GCC_FOR_TARGET
893 GFORTRAN_FOR_TARGET
894 GOC_FOR_TARGET
895 GDC_FOR_TARGET
896 GM2_FOR_TARGET
897 AR_FOR_TARGET
898 AS_FOR_TARGET
899 DLLTOOL_FOR_TARGET
900 DSYMUTIL_FOR_TARGET
901 LD_FOR_TARGET
902 LIPO_FOR_TARGET
903 NM_FOR_TARGET
904 OBJCOPY_FOR_TARGET
905 OBJDUMP_FOR_TARGET
906 OTOOL_FOR_TARGET
907 RANLIB_FOR_TARGET
908 READELF_FOR_TARGET
909 STRIP_FOR_TARGET
910 WINDRES_FOR_TARGET
911 WINDMC_FOR_TARGET'
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 ac_unrecognized_opts=
918 ac_unrecognized_sep=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE}'
953 infodir='${datarootdir}/info'
954 htmldir='${docdir}'
955 dvidir='${docdir}'
956 pdfdir='${docdir}'
957 psdir='${docdir}'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
962 ac_prev=
963 ac_dashdash=
964 for ac_option
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
969 ac_prev=
970 continue
973 case $ac_option in
974 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *=) ac_optarg= ;;
976 *) ac_optarg=yes ;;
977 esac
979 # Accept the important Cygnus configure options, so we can diagnose typos.
981 case $ac_dashdash$ac_option in
983 ac_dashdash=yes ;;
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988 bindir=$ac_optarg ;;
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1005 -datadir | --datadir | --datadi | --datad)
1006 ac_prev=datadir ;;
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1017 -disable-* | --disable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
1043 -enable-* | --enable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=\$ac_optarg ;;
1059 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061 | --exec | --exe | --ex)
1062 ac_prev=exec_prefix ;;
1063 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065 | --exec=* | --exe=* | --ex=*)
1066 exec_prefix=$ac_optarg ;;
1068 -gas | --gas | --ga | --g)
1069 # Obsolete; use --with-gas.
1070 with_gas=yes ;;
1072 -help | --help | --hel | --he | -h)
1073 ac_init_help=long ;;
1074 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075 ac_init_help=recursive ;;
1076 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077 ac_init_help=short ;;
1079 -host | --host | --hos | --ho)
1080 ac_prev=host_alias ;;
1081 -host=* | --host=* | --hos=* | --ho=*)
1082 host_alias=$ac_optarg ;;
1084 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 ac_prev=htmldir ;;
1086 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 | --ht=*)
1088 htmldir=$ac_optarg ;;
1090 -includedir | --includedir | --includedi | --included | --include \
1091 | --includ | --inclu | --incl | --inc)
1092 ac_prev=includedir ;;
1093 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094 | --includ=* | --inclu=* | --incl=* | --inc=*)
1095 includedir=$ac_optarg ;;
1097 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 ac_prev=infodir ;;
1099 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1100 infodir=$ac_optarg ;;
1102 -libdir | --libdir | --libdi | --libd)
1103 ac_prev=libdir ;;
1104 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1105 libdir=$ac_optarg ;;
1107 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108 | --libexe | --libex | --libe)
1109 ac_prev=libexecdir ;;
1110 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111 | --libexe=* | --libex=* | --libe=*)
1112 libexecdir=$ac_optarg ;;
1114 -localedir | --localedir | --localedi | --localed | --locale)
1115 ac_prev=localedir ;;
1116 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117 localedir=$ac_optarg ;;
1119 -localstatedir | --localstatedir | --localstatedi | --localstated \
1120 | --localstate | --localstat | --localsta | --localst | --locals)
1121 ac_prev=localstatedir ;;
1122 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1123 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1124 localstatedir=$ac_optarg ;;
1126 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 ac_prev=mandir ;;
1128 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1129 mandir=$ac_optarg ;;
1131 -nfp | --nfp | --nf)
1132 # Obsolete; use --without-fp.
1133 with_fp=no ;;
1135 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1136 | --no-cr | --no-c | -n)
1137 no_create=yes ;;
1139 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 no_recursion=yes ;;
1143 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145 | --oldin | --oldi | --old | --ol | --o)
1146 ac_prev=oldincludedir ;;
1147 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1150 oldincludedir=$ac_optarg ;;
1152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 ac_prev=prefix ;;
1154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1155 prefix=$ac_optarg ;;
1157 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158 | --program-pre | --program-pr | --program-p)
1159 ac_prev=program_prefix ;;
1160 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1162 program_prefix=$ac_optarg ;;
1164 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165 | --program-suf | --program-su | --program-s)
1166 ac_prev=program_suffix ;;
1167 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1169 program_suffix=$ac_optarg ;;
1171 -program-transform-name | --program-transform-name \
1172 | --program-transform-nam | --program-transform-na \
1173 | --program-transform-n | --program-transform- \
1174 | --program-transform | --program-transfor \
1175 | --program-transfo | --program-transf \
1176 | --program-trans | --program-tran \
1177 | --progr-tra | --program-tr | --program-t)
1178 ac_prev=program_transform_name ;;
1179 -program-transform-name=* | --program-transform-name=* \
1180 | --program-transform-nam=* | --program-transform-na=* \
1181 | --program-transform-n=* | --program-transform-=* \
1182 | --program-transform=* | --program-transfor=* \
1183 | --program-transfo=* | --program-transf=* \
1184 | --program-trans=* | --program-tran=* \
1185 | --progr-tra=* | --program-tr=* | --program-t=*)
1186 program_transform_name=$ac_optarg ;;
1188 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 ac_prev=pdfdir ;;
1190 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191 pdfdir=$ac_optarg ;;
1193 -psdir | --psdir | --psdi | --psd | --ps)
1194 ac_prev=psdir ;;
1195 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 psdir=$ac_optarg ;;
1198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199 | -silent | --silent | --silen | --sile | --sil)
1200 silent=yes ;;
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
1206 sbindir=$ac_optarg ;;
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
1217 sharedstatedir=$ac_optarg ;;
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
1222 site=$ac_optarg ;;
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1227 srcdir=$ac_optarg ;;
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1234 sysconfdir=$ac_optarg ;;
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
1237 ac_prev=target_alias ;;
1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1239 target_alias=$ac_optarg ;;
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
1247 -with-* | --with-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1256 "with_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=\$ac_optarg ;;
1263 -without-* | --without-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1307 esac
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319 esac
1320 done
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $? "missing argument to $ac_option"
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1354 done
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375 test "$silent" = yes && exec 6>/dev/null
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1404 /^X\(\/\/\)$/{
1405 s//\1/
1408 /^X\(\/\).*/{
1409 s//\1/
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1417 else
1418 ac_srcdir_defaulted=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 case $srcdir in
1439 *" "*)
1440 as_fn_error $? "path to source, $srcdir, contains spaces"
1442 esac
1443 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459 \`configure' configures this package to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1468 Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 [PREFIX]
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1512 _ACEOF
1514 cat <<\_ACEOF
1516 Program names:
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1521 System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525 _ACEOF
1528 if test -n "$ac_init_help"; then
1530 cat <<\_ACEOF
1532 Optional Features:
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-as-accelerator-for=ARG
1537 build as offload target compiler. Specify offload
1538 host triple by ARG
1539 --enable-offload-targets=LIST
1540 enable offloading to devices from comma-separated
1541 LIST of TARGET[=DIR]. Use optional path to find
1542 offload target compiler during the build
1543 --enable-offload-defaulted
1544 If enabled, configured but not installed offload compilers and
1545 libgomp plugins are silently ignored. Useful for distribution
1546 compilers where those are in separate optional packages.
1548 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1549 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1550 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1551 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1552 Enable compressed debug sections for gas, gold or ld
1553 by default
1554 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1555 Default compression algorithm for
1556 --enable-compressed-debug-sections.
1557 --enable-year2038 enable support for timestamps past the year 2038
1558 --disable-libquadmath do not build libquadmath directory
1559 --disable-libquadmath-support
1560 disable libquadmath support for Fortran
1561 --enable-libada build libada directory
1562 --enable-libgm2 build libgm2 directory
1563 --enable-libssp build libssp directory
1564 --disable-libstdcxx do not build libstdc++-v3 directory
1565 --enable-bootstrap enable bootstrapping [yes if native build]
1566 --enable-pgo-build[=lto]
1567 enable the PGO build
1568 --disable-isl-version-check
1569 disable check for isl version
1570 --enable-lto enable link time optimization support
1571 --enable-linker-plugin-configure-flags=FLAGS
1572 additional flags for configuring linker plugins
1573 [none]
1574 --enable-linker-plugin-flags=FLAGS
1575 additional flags for configuring and building linker
1576 plugins [none]
1577 --enable-host-pie build position independent host executables
1578 --enable-host-shared build host code as shared libraries
1579 --enable-stage1-languages[=all]
1580 choose additional languages to build during stage1.
1581 Mostly useful for compiler development
1582 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1583 Objective-C runtime
1584 --enable-vtable-verify Enable vtable verification feature
1585 --enable-serial-[{host,target,build}-]configure
1586 force sequential configuration of sub-packages for
1587 the host, target or build machine, or all
1588 sub-packages
1589 --enable-maintainer-mode
1590 enable make rules and dependencies not useful (and
1591 sometimes confusing) to the casual installer
1592 --enable-stage1-checking[=all]
1593 choose additional checking for stage1 of the
1594 compiler
1595 --enable-werror enable -Werror in bootstrap stage2 and later
1597 Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-build-libsubdir=DIR Directory where to find libraries for build system
1601 --with-system-zlib use installed libz
1602 --with-zstd Support zstd compressed debug sections
1603 (default=auto)
1604 --with-mpc=PATH specify prefix directory for installed MPC package.
1605 Equivalent to --with-mpc-include=PATH/include plus
1606 --with-mpc-lib=PATH/lib
1607 --with-mpc-include=PATH specify directory for installed MPC include files
1608 --with-mpc-lib=PATH specify directory for the installed MPC library
1609 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1610 Equivalent to --with-mpfr-include=PATH/include plus
1611 --with-mpfr-lib=PATH/lib
1612 --with-mpfr-include=PATH
1613 specify directory for installed MPFR include files
1614 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1615 --with-gmp=PATH specify prefix directory for the installed GMP
1616 package. Equivalent to
1617 --with-gmp-include=PATH/include plus
1618 --with-gmp-lib=PATH/lib
1619 --with-gmp-include=PATH specify directory for installed GMP include files
1620 --with-gmp-lib=PATH specify directory for the installed GMP library
1621 --with-stage1-libs=LIBS libraries for stage1
1622 --with-static-standard-libraries
1623 use -static-libstdc++ and -static-libgcc
1624 (default=auto)
1625 --with-stage1-ldflags=FLAGS
1626 linker flags for stage1
1627 --with-boot-libs=LIBS libraries for stage2 and later
1628 --with-boot-ldflags=FLAGS
1629 linker flags for stage2 and later
1630 --with-isl=PATH Specify prefix directory for the installed isl
1631 package. Equivalent to
1632 --with-isl-include=PATH/include plus
1633 --with-isl-lib=PATH/lib
1634 --with-isl-include=PATH Specify directory for installed isl include files
1635 --with-isl-lib=PATH Specify the directory for the installed isl library
1636 --with-target-bdw-gc=PATHLIST
1637 specify prefix directory for installed bdw-gc
1638 package. Equivalent to
1639 --with-target-bdw-gc-include=PATH/include plus
1640 --with-target-bdw-gc-lib=PATH/lib
1641 --with-target-bdw-gc-include=PATHLIST
1642 specify directories for installed bdw-gc include
1643 files
1644 --with-target-bdw-gc-lib=PATHLIST
1645 specify directories for installed bdw-gc library
1646 --with-gcc-major-version-only
1647 use only GCC major number in filesystem paths
1648 --with-build-sysroot=SYSROOT
1649 use sysroot as the system root during the build
1650 --with-debug-prefix-map='A=B C=D ...'
1651 map A to B, C to D ... in debug information
1652 --with-build-config='NAME NAME2...'
1653 use config/NAME.mk build configuration
1654 --with-build-time-tools=PATH
1655 use given path to find target tools during the build
1657 Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
1662 LIBS libraries to pass to the linker, e.g. -l<library>
1663 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1664 you have headers in a nonstandard directory <include dir>
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
1667 build_configargs
1668 additional configure arguments for build directories
1669 host_configargs
1670 additional configure arguments for host directories
1671 target_configargs
1672 additional configure arguments for target directories
1673 AR AR for the host
1674 AS AS for the host
1675 DLLTOOL DLLTOOL for the host
1676 DSYMUTIL DSYMUTIL for the host
1677 LD LD for the host
1678 LIPO LIPO for the host
1679 NM NM for the host
1680 RANLIB RANLIB for the host
1681 STRIP STRIP for the host
1682 WINDRES WINDRES for the host
1683 WINDMC WINDMC for the host
1684 OBJCOPY OBJCOPY for the host
1685 OBJDUMP OBJDUMP for the host
1686 OTOOL OTOOL for the host
1687 READELF READELF for the host
1688 CC_FOR_TARGET
1689 CC for the target
1690 CXX_FOR_TARGET
1691 CXX for the target
1692 GCC_FOR_TARGET
1693 GCC for the target
1694 GFORTRAN_FOR_TARGET
1695 GFORTRAN for the target
1696 GOC_FOR_TARGET
1697 GOC for the target
1698 GDC_FOR_TARGET
1699 GDC for the target
1700 GM2_FOR_TARGET
1701 GM2 for the target
1702 AR_FOR_TARGET
1703 AR for the target
1704 AS_FOR_TARGET
1705 AS for the target
1706 DLLTOOL_FOR_TARGET
1707 DLLTOOL for the target
1708 DSYMUTIL_FOR_TARGET
1709 DSYMUTIL for the target
1710 LD_FOR_TARGET
1711 LD for the target
1712 LIPO_FOR_TARGET
1713 LIPO for the target
1714 NM_FOR_TARGET
1715 NM for the target
1716 OBJCOPY_FOR_TARGET
1717 OBJCOPY for the target
1718 OBJDUMP_FOR_TARGET
1719 OBJDUMP for the target
1720 OTOOL_FOR_TARGET
1721 OTOOL for the target
1722 RANLIB_FOR_TARGET
1723 RANLIB for the target
1724 READELF_FOR_TARGET
1725 READELF for the target
1726 STRIP_FOR_TARGET
1727 STRIP for the target
1728 WINDRES_FOR_TARGET
1729 WINDRES for the target
1730 WINDMC_FOR_TARGET
1731 WINDMC for the target
1733 Use these variables to override the choices made by `configure' or to help
1734 it to find libraries and programs with nonstandard names/locations.
1736 Report bugs to the package provider.
1737 _ACEOF
1738 ac_status=$?
1741 if test "$ac_init_help" = "recursive"; then
1742 # If there are subdirs, report their specific --help.
1743 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1744 test -d "$ac_dir" ||
1745 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1746 continue
1747 ac_builddir=.
1749 case "$ac_dir" in
1750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1753 # A ".." for each directory in $ac_dir_suffix.
1754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1755 case $ac_top_builddir_sub in
1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1758 esac ;;
1759 esac
1760 ac_abs_top_builddir=$ac_pwd
1761 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1762 # for backward compatibility:
1763 ac_top_builddir=$ac_top_build_prefix
1765 case $srcdir in
1766 .) # We are building in place.
1767 ac_srcdir=.
1768 ac_top_srcdir=$ac_top_builddir_sub
1769 ac_abs_top_srcdir=$ac_pwd ;;
1770 [\\/]* | ?:[\\/]* ) # Absolute name.
1771 ac_srcdir=$srcdir$ac_dir_suffix;
1772 ac_top_srcdir=$srcdir
1773 ac_abs_top_srcdir=$srcdir ;;
1774 *) # Relative name.
1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776 ac_top_srcdir=$ac_top_build_prefix$srcdir
1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1778 esac
1779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1781 cd "$ac_dir" || { ac_status=$?; continue; }
1782 # Check for guested configure.
1783 if test -f "$ac_srcdir/configure.gnu"; then
1784 echo &&
1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786 elif test -f "$ac_srcdir/configure"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure" --help=recursive
1789 else
1790 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791 fi || ac_status=$?
1792 cd "$ac_pwd" || { ac_status=$?; break; }
1793 done
1796 test -n "$ac_init_help" && exit $ac_status
1797 if $ac_init_version; then
1798 cat <<\_ACEOF
1799 configure
1800 generated by GNU Autoconf 2.69
1802 Copyright (C) 2012 Free Software Foundation, Inc.
1803 This configure script is free software; the Free Software Foundation
1804 gives unlimited permission to copy, distribute and modify it.
1805 _ACEOF
1806 exit
1809 ## ------------------------ ##
1810 ## Autoconf initialization. ##
1811 ## ------------------------ ##
1813 # ac_fn_c_try_compile LINENO
1814 # --------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_c_try_compile ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1844 ac_retval=1
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1849 } # ac_fn_c_try_compile
1851 # ac_fn_cxx_try_compile LINENO
1852 # ----------------------------
1853 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_cxx_try_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext
1858 if { { ac_try="$ac_compile"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_compile") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_cxx_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest.$ac_objext; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=1
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1887 } # ac_fn_cxx_try_compile
1889 # ac_fn_cxx_try_link LINENO
1890 # -------------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_cxx_try_link ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897 case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_cxx_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
1916 test -x conftest$ac_exeext
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1933 } # ac_fn_cxx_try_link
1935 # ac_fn_c_try_link LINENO
1936 # -----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_c_try_link ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1943 case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest$ac_exeext && {
1961 test "$cross_compiling" = yes ||
1962 test -x conftest$ac_exeext
1963 }; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=1
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1979 } # ac_fn_c_try_link
1980 cat >config.log <<_ACEOF
1981 This file contains any messages produced by compilers while
1982 running configure, to aid debugging if configure makes a mistake.
1984 It was created by $as_me, which was
1985 generated by GNU Autoconf 2.69. Invocation command line was
1987 $ $0 $@
1989 _ACEOF
1990 exec 5>>config.log
1992 cat <<_ASUNAME
1993 ## --------- ##
1994 ## Platform. ##
1995 ## --------- ##
1997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014 _ASUNAME
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 $as_echo "PATH: $as_dir"
2022 done
2023 IFS=$as_save_IFS
2025 } >&5
2027 cat >&5 <<_ACEOF
2030 ## ----------- ##
2031 ## Core tests. ##
2032 ## ----------- ##
2034 _ACEOF
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_configure_args=
2043 ac_configure_args0=
2044 ac_configure_args1=
2045 ac_must_keep_next=false
2046 for ac_pass in 1 2
2048 for ac_arg
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
2055 *\'*)
2056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 esac
2058 case $ac_pass in
2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2061 as_fn_append ac_configure_args1 " '$ac_arg'"
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2077 as_fn_append ac_configure_args " '$ac_arg'"
2079 esac
2080 done
2081 done
2082 { ac_configure_args0=; unset ac_configure_args0;}
2083 { ac_configure_args1=; unset ac_configure_args1;}
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log. We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2093 echo
2095 $as_echo "## ---------------- ##
2096 ## Cache variables. ##
2097 ## ---------------- ##"
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
2116 (set) 2>&1 |
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
2119 sed -n \
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2126 esac |
2127 sort
2129 echo
2131 $as_echo "## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##"
2134 echo
2135 for ac_var in $ac_subst_vars
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
2142 done | sort
2143 echo
2145 if test -n "$ac_subst_files"; then
2146 $as_echo "## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##"
2149 echo
2150 for ac_var in $ac_subst_files
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2161 if test -s confdefs.h; then
2162 $as_echo "## ----------- ##
2163 ## confdefs.h. ##
2164 ## ----------- ##"
2165 echo
2166 cat confdefs.h
2167 echo
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2172 } >&5
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2175 exit $exit_status
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2185 $as_echo "/* confdefs.h */" > confdefs.h
2187 # Predefined preprocessor variables.
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2191 _ACEOF
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195 _ACEOF
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2199 _ACEOF
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2203 _ACEOF
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207 _ACEOF
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2211 _ACEOF
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2216 ac_site_file1=NONE
2217 ac_site_file2=NONE
2218 if test -n "$CONFIG_SITE"; then
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1=./$CONFIG_SITE;;
2222 */*) ac_site_file1=$CONFIG_SITE;;
2223 *) ac_site_file1=./$CONFIG_SITE;;
2224 esac
2225 elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2228 else
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
2232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 test "x$ac_site_file" = xNONE && continue
2235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238 sed 's/^/| /' "$ac_site_file" >&5
2239 . "$ac_site_file" \
2240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 as_fn_error $? "failed to load site script $ac_site_file
2243 See \`config.log' for more details" "$LINENO" 5; }
2245 done
2247 if test -r "$cache_file"; then
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252 $as_echo "$as_me: loading cache $cache_file" >&6;}
2253 case $cache_file in
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
2256 esac
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260 $as_echo "$as_me: creating cache $cache_file" >&6;}
2261 >$cache_file
2264 # Check that the precious variables saved in the cache have kept the same
2265 # value.
2266 ac_cache_corrupted=false
2267 for ac_var in $ac_precious_vars; do
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
2272 case $ac_old_set,$ac_new_set in
2273 set,)
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2277 ,set)
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2281 ,);;
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x $ac_old_val`
2286 ac_new_val_w=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted=:
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2300 fi;;
2301 esac
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2304 case $ac_new_val in
2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2307 esac
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2311 esac
2313 done
2314 if $ac_cache_corrupted; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2321 ## -------------------- ##
2322 ## Main body of script. ##
2323 ## -------------------- ##
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 progname=$0
2339 # if PWD already has a value, it is probably wrong.
2340 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2342 # Export original configure arguments for use by sub-configures.
2343 # Quote arguments with shell meta charatcers.
2344 TOPLEVEL_CONFIGURE_ARGUMENTS=
2345 set -- "$progname" "$@"
2346 for ac_arg
2348 case "$ac_arg" in
2349 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2350 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2351 # if the argument is of the form -foo=baz, quote the baz part only
2352 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2353 *) ;;
2354 esac
2355 # Add the quoted argument to the list.
2356 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2357 done
2358 if test "$silent" = yes; then
2359 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2361 # Remove the initial space we just introduced and, as these will be
2362 # expanded by make, quote '$'.
2363 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2366 # Find the build, host, and target systems.
2367 ac_aux_dir=
2368 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2369 if test -f "$ac_dir/install-sh"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/install-sh -c"
2372 break
2373 elif test -f "$ac_dir/install.sh"; then
2374 ac_aux_dir=$ac_dir
2375 ac_install_sh="$ac_aux_dir/install.sh -c"
2376 break
2377 elif test -f "$ac_dir/shtool"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/shtool install -c"
2380 break
2382 done
2383 if test -z "$ac_aux_dir"; then
2384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2387 # These three variables are undocumented and unsupported,
2388 # and are intended to be withdrawn in a future Autoconf release.
2389 # They can cause serious problems if a builder's source tree is in a directory
2390 # whose full name contains unusual characters.
2391 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2392 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2393 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2396 # Make sure we can run config.sub.
2397 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2398 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2401 $as_echo_n "checking build system type... " >&6; }
2402 if ${ac_cv_build+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 ac_build_alias=$build_alias
2406 test "x$ac_build_alias" = x &&
2407 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2408 test "x$ac_build_alias" = x &&
2409 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2410 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2415 $as_echo "$ac_cv_build" >&6; }
2416 case $ac_cv_build in
2417 *-*-*) ;;
2418 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2419 esac
2420 build=$ac_cv_build
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_build
2423 shift
2424 build_cpu=$1
2425 build_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 build_os=$*
2430 IFS=$ac_save_IFS
2431 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2434 case ${build_alias} in
2435 "") build_noncanonical=${build} ;;
2436 *) build_noncanonical=${build_alias} ;;
2437 esac
2441 case ${host_alias} in
2442 "") host_noncanonical=${build_noncanonical} ;;
2443 *) host_noncanonical=${host_alias} ;;
2444 esac
2448 case ${target_alias} in
2449 "") target_noncanonical=${host_noncanonical} ;;
2450 *) target_noncanonical=${target_alias} ;;
2451 esac
2456 test "$host_noncanonical" = "$target_noncanonical" &&
2457 test "$program_prefix$program_suffix$program_transform_name" = \
2458 NONENONEs,x,x, &&
2459 program_transform_name=s,y,y,
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462 $as_echo_n "checking host system type... " >&6; }
2463 if ${ac_cv_host+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test "x$host_alias" = x; then
2467 ac_cv_host=$ac_cv_build
2468 else
2469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475 $as_echo "$ac_cv_host" >&6; }
2476 case $ac_cv_host in
2477 *-*-*) ;;
2478 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2479 esac
2480 host=$ac_cv_host
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_host
2483 shift
2484 host_cpu=$1
2485 host_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 host_os=$*
2490 IFS=$ac_save_IFS
2491 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495 $as_echo_n "checking target system type... " >&6; }
2496 if ${ac_cv_target+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test "x$target_alias" = x; then
2500 ac_cv_target=$ac_cv_host
2501 else
2502 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508 $as_echo "$ac_cv_target" >&6; }
2509 case $ac_cv_target in
2510 *-*-*) ;;
2511 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2512 esac
2513 target=$ac_cv_target
2514 ac_save_IFS=$IFS; IFS='-'
2515 set x $ac_cv_target
2516 shift
2517 target_cpu=$1
2518 target_vendor=$2
2519 shift; shift
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2522 target_os=$*
2523 IFS=$ac_save_IFS
2524 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2527 # The aliases save the names the user supplied, while $host etc.
2528 # will get canonicalized.
2529 test -n "$target_alias" &&
2530 test "$program_prefix$program_suffix$program_transform_name" = \
2531 NONENONEs,x,x, &&
2532 program_prefix=${target_alias}-
2534 test "$program_prefix" != NONE &&
2535 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2536 # Use a double $ so make ignores it.
2537 test "$program_suffix" != NONE &&
2538 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2539 # Double any \ or $.
2540 # By default was `s,x,x', remove it if useless.
2541 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2542 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546 # Get 'install' or 'install-sh' and its variants.
2547 # Find a good install program. We prefer a C program (faster),
2548 # so one script is as good as another. But avoid the broken or
2549 # incompatible versions:
2550 # SysV /etc/install, /usr/sbin/install
2551 # SunOS /usr/etc/install
2552 # IRIX /sbin/install
2553 # AIX /bin/install
2554 # AmigaOS /C/install, which installs bootblocks on floppy discs
2555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2558 # OS/2's system install, which has a completely different semantic
2559 # ./install, which can be erroneously created by make from ./install.sh.
2560 # Reject install programs that cannot install multiple files.
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2562 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2563 if test -z "$INSTALL"; then
2564 if ${ac_cv_path_install+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 # Account for people who put trailing slashes in PATH elements.
2573 case $as_dir/ in #((
2574 ./ | .// | /[cC]/* | \
2575 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2576 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2577 /usr/ucb/* ) ;;
2579 # OSF1 and SCO ODT 3.0 have their own names for install.
2580 # Don't use installbsd from OSF since it installs stuff as root
2581 # by default.
2582 for ac_prog in ginstall scoinst install; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2585 if test $ac_prog = install &&
2586 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2587 # AIX install. It has an incompatible calling convention.
2589 elif test $ac_prog = install &&
2590 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2591 # program-specific install script used by HP pwplus--don't use.
2593 else
2594 rm -rf conftest.one conftest.two conftest.dir
2595 echo one > conftest.one
2596 echo two > conftest.two
2597 mkdir conftest.dir
2598 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2599 test -s conftest.one && test -s conftest.two &&
2600 test -s conftest.dir/conftest.one &&
2601 test -s conftest.dir/conftest.two
2602 then
2603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2604 break 3
2608 done
2609 done
2611 esac
2613 done
2614 IFS=$as_save_IFS
2616 rm -rf conftest.one conftest.two conftest.dir
2619 if test "${ac_cv_path_install+set}" = set; then
2620 INSTALL=$ac_cv_path_install
2621 else
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for INSTALL within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
2626 INSTALL=$ac_install_sh
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2630 $as_echo "$INSTALL" >&6; }
2632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633 # It thinks the first close brace ends the variable substitution.
2634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2641 $as_echo_n "checking whether ln works... " >&6; }
2642 if ${acx_cv_prog_LN+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 rm -f conftestdata_t
2646 echo >conftestdata_f
2647 if ln conftestdata_f conftestdata_t 2>/dev/null
2648 then
2649 acx_cv_prog_LN=ln
2650 else
2651 acx_cv_prog_LN=no
2653 rm -f conftestdata_f conftestdata_t
2656 if test $acx_cv_prog_LN = no; then
2657 LN="cp"
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2659 $as_echo "no, using $LN" >&6; }
2660 else
2661 LN="$acx_cv_prog_LN"
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2667 $as_echo_n "checking whether ln -s works... " >&6; }
2668 LN_S=$as_ln_s
2669 if test "$LN_S" = "ln -s"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 $as_echo "yes" >&6; }
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2674 $as_echo "no, using $LN_S" >&6; }
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2678 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2679 if ${ac_cv_path_SED+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2683 for ac_i in 1 2 3 4 5 6 7; do
2684 ac_script="$ac_script$as_nl$ac_script"
2685 done
2686 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2687 { ac_script=; unset ac_script;}
2688 if test -z "$SED"; then
2689 ac_path_SED_found=false
2690 # Loop through the user's path and test for each of PROGNAME-LIST
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_prog in sed gsed; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2699 as_fn_executable_p "$ac_path_SED" || continue
2700 # Check for GNU ac_path_SED and select it if it is found.
2701 # Check for GNU $ac_path_SED
2702 case `"$ac_path_SED" --version 2>&1` in
2703 *GNU*)
2704 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2706 ac_count=0
2707 $as_echo_n 0123456789 >"conftest.in"
2708 while :
2710 cat "conftest.in" "conftest.in" >"conftest.tmp"
2711 mv "conftest.tmp" "conftest.in"
2712 cp "conftest.in" "conftest.nl"
2713 $as_echo '' >> "conftest.nl"
2714 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2716 as_fn_arith $ac_count + 1 && ac_count=$as_val
2717 if test $ac_count -gt ${ac_path_SED_max-0}; then
2718 # Best one so far, save it but keep looking for a better one
2719 ac_cv_path_SED="$ac_path_SED"
2720 ac_path_SED_max=$ac_count
2722 # 10*(2^10) chars as input seems more than enough
2723 test $ac_count -gt 10 && break
2724 done
2725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2726 esac
2728 $ac_path_SED_found && break 3
2729 done
2730 done
2731 done
2732 IFS=$as_save_IFS
2733 if test -z "$ac_cv_path_SED"; then
2734 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2736 else
2737 ac_cv_path_SED=$SED
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2742 $as_echo "$ac_cv_path_SED" >&6; }
2743 SED="$ac_cv_path_SED"
2744 rm -f conftest.sed
2746 for ac_prog in gawk mawk nawk awk
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749 set dummy $ac_prog; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_AWK+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$AWK"; then
2756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_AWK="$ac_prog"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2769 done
2770 done
2771 IFS=$as_save_IFS
2775 AWK=$ac_cv_prog_AWK
2776 if test -n "$AWK"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2778 $as_echo "$AWK" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2785 test -n "$AWK" && break
2786 done
2789 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2791 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2792 # a relative path.
2793 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2794 INSTALL="${srcpwd}/install-sh -c"
2797 # Set srcdir to "." if that's what it is.
2798 # This is important for multilib support.
2799 pwd=`${PWDCMD-pwd}`
2800 if test "${pwd}" = "${srcpwd}" ; then
2801 srcdir=.
2804 topsrcdir=$srcpwd
2806 extra_host_args=
2808 ### To add a new directory to the tree, first choose whether it is a target
2809 ### or a host dependent tool. Then put it into the appropriate list
2810 ### (library or tools, host or target), doing a dependency sort.
2812 # Subdirs will be configured in the order listed in build_configdirs,
2813 # configdirs, or target_configdirs; see the serialization section below.
2815 # Dependency sorting is only needed when *configuration* must be done in
2816 # a particular order. In all cases a dependency should be specified in
2817 # the Makefile, whether or not it's implicitly specified here.
2819 # Double entries in build_configdirs, configdirs, or target_configdirs may
2820 # cause circular dependencies and break everything horribly.
2822 # these library is used by various programs built for the build
2823 # environment
2825 build_libs="build-libiberty build-libcpp"
2827 # these tools are built for the build environment
2828 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2830 # these libraries are used by various programs built for the host environment
2832 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2834 # these tools are built for the host environment
2835 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2836 # know that we are building the simulator.
2837 # binutils, gas and ld appear in that order because it makes sense to run
2838 # "make check" in that particular order.
2839 # If --enable-gold is used, "gold" may replace "ld".
2840 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"
2842 # these libraries are built for the target environment, and are built after
2843 # the host libraries and the host tools (which may be a cross compiler)
2844 # Note that libiberty is not a target library.
2845 target_libraries="target-libgcc \
2846 target-libbacktrace \
2847 target-libgloss \
2848 target-newlib \
2849 target-libgomp \
2850 target-libatomic \
2851 target-libitm \
2852 target-libstdc++-v3 \
2853 target-libsanitizer \
2854 target-libvtv \
2855 target-libssp \
2856 target-libquadmath \
2857 target-libgfortran \
2858 target-libffi \
2859 target-libobjc \
2860 target-libada \
2861 target-libgm2 \
2862 target-libgo \
2863 target-libphobos \
2864 target-zlib"
2866 # these tools are built using the target libraries, and are intended to
2867 # run only in the target environment
2869 # note: any program that *uses* libraries that are in the "target_libraries"
2870 # list belongs in this list.
2872 target_tools="target-rda"
2874 ################################################################################
2876 ## All tools belong in one of the four categories, and are assigned above
2877 ## We assign ${configdirs} this way to remove all embedded newlines. This
2878 ## is important because configure will choke if they ever get through.
2879 ## ${configdirs} is directories we build using the host tools.
2880 ## ${target_configdirs} is directories we build using the target tools.
2881 configdirs=`echo ${host_libs} ${host_tools}`
2882 target_configdirs=`echo ${target_libraries} ${target_tools}`
2883 build_configdirs=`echo ${build_libs} ${build_tools}`
2887 ################################################################################
2889 srcname="gnu development package"
2891 # This gets set non-empty for some net releases of packages.
2892 appdirs=""
2894 # Define is_cross_compiler to save on calls to 'test'.
2895 is_cross_compiler=
2896 if test x"${host}" = x"${target}" ; then
2897 is_cross_compiler=no
2898 else
2899 is_cross_compiler=yes
2902 # Find the build and target subdir names.
2904 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2905 # have matching libraries, they should use host libraries: Makefile.tpl
2906 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2907 # However, they still use the build modules, because the corresponding
2908 # host modules (e.g. bison) are only built for the host when bootstrap
2909 # finishes. So:
2910 # - build_subdir is where we find build modules, and never changes.
2911 # - build_libsubdir is where we find build libraries, and can be overridden.
2913 # Prefix 'build-' so this never conflicts with target_subdir.
2914 build_subdir="build-${build_noncanonical}"
2916 # Check whether --with-build-libsubdir was given.
2917 if test "${with_build_libsubdir+set}" = set; then :
2918 withval=$with_build_libsubdir; build_libsubdir="$withval"
2919 else
2920 build_libsubdir="$build_subdir"
2923 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2924 if ( test $srcdir = . && test -d gcc ) \
2925 || test -d $srcdir/../host-${host_noncanonical}; then
2926 host_subdir="host-${host_noncanonical}"
2927 else
2928 host_subdir=.
2930 # No prefix.
2931 target_subdir=${target_noncanonical}
2933 # Be sure to cover against remnants of an in-tree build.
2934 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2935 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2936 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2939 # Skipdirs are removed silently.
2940 skipdirs=
2941 # Noconfigdirs are removed loudly.
2942 noconfigdirs=""
2944 use_gnu_ld=
2945 # Make sure we don't let GNU ld be added if we didn't want it.
2946 if test x$with_gnu_ld = xno ; then
2947 use_gnu_ld=no
2948 noconfigdirs="$noconfigdirs ld gold"
2951 use_gnu_as=
2952 # Make sure we don't let GNU as be added if we didn't want it.
2953 if test x$with_gnu_as = xno ; then
2954 use_gnu_as=no
2955 noconfigdirs="$noconfigdirs gas"
2958 use_included_zlib=
2960 # Check whether --with-system-zlib was given.
2961 if test "${with_system_zlib+set}" = set; then :
2962 withval=$with_system_zlib;
2965 # Make sure we don't let ZLIB be added if we didn't want it.
2966 if test x$with_system_zlib = xyes ; then
2967 use_included_zlib=no
2968 noconfigdirs="$noconfigdirs zlib"
2971 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2972 # is provided.
2973 if test x$with_system_readline = xyes ; then
2974 noconfigdirs="$noconfigdirs readline"
2978 # Check whether --with-zstd was given.
2979 if test "${with_zstd+set}" = set; then :
2980 withval=$with_zstd;
2984 # some tools are so dependent upon X11 that if we're not building with X,
2985 # it's not even worth trying to configure, much less build, that tool.
2987 case ${with_x} in
2988 yes | "") ;; # the default value for this tree is that X11 is available
2990 skipdirs="${skipdirs} tk itcl libgui"
2991 # We won't be able to build gdbtk without X.
2992 enable_gdbtk=no
2994 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2995 esac
2997 # Some are only suitable for cross toolchains.
2998 # Remove these if host=target.
2999 cross_only="target-libgloss target-newlib target-opcodes"
3001 case $is_cross_compiler in
3002 no) skipdirs="${skipdirs} ${cross_only}" ;;
3003 esac
3005 # If both --with-headers and --with-libs are specified, default to
3006 # --without-newlib.
3007 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3008 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3009 if test x"${with_newlib}" = x ; then
3010 with_newlib=no
3014 # Recognize --with-newlib/--without-newlib.
3015 case ${with_newlib} in
3016 no) skipdirs="${skipdirs} target-newlib" ;;
3017 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3018 esac
3020 # Check whether --enable-as-accelerator-for was given.
3021 if test "${enable_as_accelerator_for+set}" = set; then :
3022 enableval=$enable_as_accelerator_for;
3026 # Check whether --enable-offload-targets was given.
3027 if test "${enable_offload_targets+set}" = set; then :
3028 enableval=$enable_offload_targets;
3029 if test x"$enable_offload_targets" = x; then
3030 as_fn_error $? "no offload targets specified" "$LINENO" 5
3033 else
3034 enable_offload_targets=
3038 # Check whether --enable-offload-defaulted was given.
3039 if test "${enable_offload_defaulted+set}" = set; then :
3040 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3041 else
3042 enable_offload_defaulted=
3046 # Handle --enable-gold, --enable-ld.
3047 # --disable-gold [--enable-ld]
3048 # Build only ld. Default option.
3049 # --enable-gold [--enable-ld]
3050 # Build both gold and ld. Install gold as "ld.gold", install ld
3051 # as "ld.bfd" and "ld".
3052 # --enable-gold=default [--enable-ld]
3053 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3054 # install ld as "ld.bfd".
3055 # --enable-gold[=default] --disable-ld
3056 # Build only gold, which is then installed as both "ld.gold" and "ld".
3057 # --enable-gold --enable-ld=default
3058 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3059 # and ld.bfd).
3060 # In other words, ld is default
3061 # --enable-gold=default --enable-ld=default
3062 # Error.
3064 default_ld=
3065 # Check whether --enable-gold was given.
3066 if test "${enable_gold+set}" = set; then :
3067 enableval=$enable_gold; ENABLE_GOLD=$enableval
3068 else
3069 ENABLE_GOLD=no
3072 case "${ENABLE_GOLD}" in
3073 yes|default)
3074 # Check for ELF target.
3075 is_elf=no
3076 case "${target}" in
3077 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3078 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3079 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3080 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3081 case "${target}" in
3082 *-*-linux*aout* | *-*-linux*oldld*)
3085 is_elf=yes
3087 esac
3088 esac
3090 if test "$is_elf" = "yes"; then
3091 # Check for target supported by gold.
3092 case "${target}" in
3093 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3094 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3095 configdirs="$configdirs gold"
3096 if test x${ENABLE_GOLD} = xdefault; then
3097 default_ld=gold
3099 ENABLE_GOLD=yes
3101 esac
3107 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3109 esac
3111 # Check whether --enable-ld was given.
3112 if test "${enable_ld+set}" = set; then :
3113 enableval=$enable_ld; ENABLE_LD=$enableval
3114 else
3115 ENABLE_LD=yes
3119 case "${ENABLE_LD}" in
3120 default)
3121 if test x${default_ld} != x; then
3122 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3125 yes)
3128 if test x${ENABLE_GOLD} != xyes; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3130 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3132 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3135 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3137 esac
3139 # Check whether --enable-gprofng was given.
3140 if test "${enable_gprofng+set}" = set; then :
3141 enableval=$enable_gprofng; enable_gprofng=$enableval
3142 else
3143 enable_gprofng=yes
3146 if test "$enable_gprofng" = "yes"; then
3147 case "${target}" in
3148 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3149 configdirs="$configdirs gprofng"
3151 esac
3155 # PR gas/19109
3156 # Decide the default method for compressing debug sections.
3157 # Provide a configure time option to override our default.
3158 # Check whether --enable-compressed_debug_sections was given.
3159 if test "${enable_compressed_debug_sections+set}" = set; then :
3160 enableval=$enable_compressed_debug_sections;
3161 if test x"$enable_compressed_debug_sections" = xyes; then
3162 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3165 else
3166 enable_compressed_debug_sections=
3170 # Select default compression algorithm.
3171 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3172 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3173 enableval=$enable_default_compressed_debug_sections_algorithm;
3174 else
3175 default_compressed_debug_sections_algorithm=
3179 # Configure extra directories which are host specific
3181 case "${host}" in
3182 *-cygwin*)
3183 configdirs="$configdirs libtermcap" ;;
3184 esac
3186 # A target can indicate whether a language isn't supported for some reason.
3187 # Only spaces may be used in this macro; not newlines or tabs.
3188 unsupported_languages=
3190 # Remove more programs from consideration, based on the host or
3191 # target this usually means that a port of the program doesn't
3192 # exist yet.
3194 case "${host}" in
3195 i[3456789]86-*-msdosdjgpp*)
3196 noconfigdirs="$noconfigdirs tcl tk itcl"
3198 esac
3200 # Default to --disable-year2038 until we can handle differences between
3201 # projects that use gnulib (which understands year 2038) and projects that
3202 # do not (like BFD).
3203 # Check whether --enable-year2038 was given.
3204 if test "${enable_year2038+set}" = set; then :
3205 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3206 else
3207 ENABLE_YEAR2038=no
3210 enable_year2038=
3211 if test "${ENABLE_YEAR2038}" = "no" ; then
3212 enable_year2038=no
3215 # Check whether --enable-libquadmath was given.
3216 if test "${enable_libquadmath+set}" = set; then :
3217 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3218 else
3219 ENABLE_LIBQUADMATH=yes
3222 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3223 noconfigdirs="$noconfigdirs target-libquadmath"
3227 # Check whether --enable-libquadmath-support was given.
3228 if test "${enable_libquadmath_support+set}" = set; then :
3229 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3230 else
3231 ENABLE_LIBQUADMATH_SUPPORT=yes
3234 enable_libquadmath_support=
3235 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3236 enable_libquadmath_support=no
3240 # Check whether --enable-libada was given.
3241 if test "${enable_libada+set}" = set; then :
3242 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3243 else
3244 ENABLE_LIBADA=yes
3247 if test "${ENABLE_LIBADA}" != "yes" ; then
3248 noconfigdirs="$noconfigdirs gnattools"
3251 # Check whether --enable-libgm2 was given.
3252 if test "${enable_libgm2+set}" = set; then :
3253 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3254 else
3255 ENABLE_LIBGM2=no
3258 if test "${ENABLE_LIBGM2}" != "yes" ; then
3259 noconfigdirs="$noconfigdirs gm2tools"
3262 # Check whether --enable-libssp was given.
3263 if test "${enable_libssp+set}" = set; then :
3264 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3265 else
3266 ENABLE_LIBSSP=yes
3270 # Check whether --enable-libstdcxx was given.
3271 if test "${enable_libstdcxx+set}" = set; then :
3272 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3273 else
3274 ENABLE_LIBSTDCXX=default
3277 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3278 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3281 # Enable libgomp by default on hosted POSIX systems, and a few others.
3282 if test x$enable_libgomp = x ; then
3283 case "${target}" in
3284 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3286 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3288 *-*-solaris2* | *-*-hpux11*)
3290 *-*-darwin* | *-*-aix*)
3292 nvptx*-*-* | amdgcn*-*-*)
3295 noconfigdirs="$noconfigdirs target-libgomp"
3297 esac
3300 # Disable libatomic on unsupported systems.
3301 if test -d ${srcdir}/libatomic; then
3302 if test x$enable_libatomic = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3304 $as_echo_n "checking for libatomic support... " >&6; }
3305 if (srcdir=${srcdir}/libatomic; \
3306 . ${srcdir}/configure.tgt; \
3307 test -n "$UNSUPPORTED")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libatomic"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3319 # Disable libitm on unsupported systems.
3320 if test -d ${srcdir}/libitm; then
3321 if test x$enable_libitm = x; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3323 $as_echo_n "checking for libitm support... " >&6; }
3324 if (srcdir=${srcdir}/libitm; \
3325 . ${srcdir}/configure.tgt; \
3326 test -n "$UNSUPPORTED")
3327 then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 noconfigdirs="$noconfigdirs target-libitm"
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3338 # Disable libsanitizer on unsupported systems.
3339 if test -d ${srcdir}/libsanitizer; then
3340 if test x$enable_libsanitizer = x; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3342 $as_echo_n "checking for libsanitizer support... " >&6; }
3343 if (srcdir=${srcdir}/libsanitizer; \
3344 . ${srcdir}/configure.tgt; \
3345 test -n "$UNSUPPORTED")
3346 then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 noconfigdirs="$noconfigdirs target-libsanitizer"
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3357 # Disable libvtv on unsupported systems.
3358 if test -d ${srcdir}/libvtv; then
3359 if test x$enable_libvtv = x; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3361 $as_echo_n "checking for libvtv support... " >&6; }
3362 if (srcdir=${srcdir}/libvtv; \
3363 . ${srcdir}/configure.tgt; \
3364 test "$VTV_SUPPORTED" != "yes")
3365 then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 noconfigdirs="$noconfigdirs target-libvtv"
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3376 # Disable libquadmath for some systems.
3377 case "${target}" in
3378 avr-*-*)
3379 noconfigdirs="$noconfigdirs target-libquadmath"
3381 # libquadmath is unused on AIX and libquadmath build process use of
3382 # LD_LIBRARY_PATH can break AIX bootstrap.
3383 powerpc-*-aix* | rs6000-*-aix*)
3384 noconfigdirs="$noconfigdirs target-libquadmath"
3386 esac
3388 # Disable libssp for some systems.
3389 case "${target}" in
3390 avr-*-*)
3391 # No hosted I/O support.
3392 noconfigdirs="$noconfigdirs target-libssp"
3394 bpf-*-*)
3395 noconfigdirs="$noconfigdirs target-libssp"
3397 powerpc-*-aix* | rs6000-*-aix*)
3398 noconfigdirs="$noconfigdirs target-libssp"
3400 pru-*-*)
3401 # No hosted I/O support.
3402 noconfigdirs="$noconfigdirs target-libssp"
3404 rl78-*-*)
3405 # libssp uses a misaligned load to trigger a fault, but the RL78
3406 # doesn't fault for those - instead, it gives a build-time error
3407 # for explicit misaligned loads.
3408 noconfigdirs="$noconfigdirs target-libssp"
3410 visium-*-*)
3411 # No hosted I/O support.
3412 noconfigdirs="$noconfigdirs target-libssp"
3414 esac
3416 # Disable libstdc++-v3 for some systems.
3417 # Allow user to override this if they pass --enable-libstdcxx
3418 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3419 case "${target}" in
3420 *-*-vxworks*)
3421 # VxWorks uses the Dinkumware C++ library.
3422 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3424 amdgcn*-*-*)
3425 # Not ported/fails to build when using newlib.
3426 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3428 arm*-wince-pe*)
3429 # the C++ libraries don't build on top of CE's C libraries
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3432 avr-*-*)
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3435 bpf-*-*)
3436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3438 ft32-*-*)
3439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3441 esac
3444 # Disable C++ on systems where it is known to not work.
3445 # For testing, you can override this with --enable-languages=c++.
3446 case ,${enable_languages}, in
3447 *,c++,*)
3450 case "${target}" in
3451 bpf-*-*)
3452 unsupported_languages="$unsupported_languages c++"
3454 esac
3456 esac
3458 # Disable Objc on systems where it is known to not work.
3459 # For testing, you can override this with --enable-languages=objc.
3460 case ,${enable_languages}, in
3461 *,objc,*)
3464 case "${target}" in
3465 bpf-*-*)
3466 unsupported_languages="$unsupported_languages objc"
3468 esac
3470 esac
3472 # Disable D on systems where it is known to not work.
3473 # For testing, you can override this with --enable-languages=d.
3474 case ,${enable_languages}, in
3475 *,d,*)
3478 case "${target}" in
3479 bpf-*-*)
3480 unsupported_languages="$unsupported_languages d"
3482 esac
3484 esac
3486 # Disable libphobos on unsupported systems.
3487 # For testing, you can override this with --enable-libphobos.
3488 if test -d ${srcdir}/libphobos; then
3489 if test x$enable_libphobos = x; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3491 $as_echo_n "checking for libphobos support... " >&6; }
3492 if (srcdir=${srcdir}/libphobos; \
3493 . ${srcdir}/configure.tgt; \
3494 test "$LIBPHOBOS_SUPPORTED" != "yes")
3495 then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 noconfigdirs="$noconfigdirs target-libphobos"
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3506 # Disable Fortran for some systems.
3507 case "${target}" in
3508 mmix-*-*)
3509 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3510 unsupported_languages="$unsupported_languages fortran"
3512 bpf-*-*)
3513 unsupported_languages="$unsupported_languages fortran"
3515 esac
3517 # Disable libffi for some systems.
3518 case "${target}" in
3519 powerpc-*-darwin*)
3521 i[3456789]86-*-darwin*)
3523 x86_64-*-darwin[912]*)
3525 *-*-darwin*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3528 *-*-netware*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3531 *-*-phoenix*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3534 *-*-rtems*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3537 *-*-tpf*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3540 *-*-uclinux*)
3541 noconfigdirs="$noconfigdirs target-libffi"
3543 *-*-vxworks*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3546 aarch64*-*-freebsd*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3549 alpha*-*-*vms*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3552 arm*-*-freebsd*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3555 arm-wince-pe)
3556 noconfigdirs="$noconfigdirs target-libffi"
3558 arm*-*-symbianelf*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3561 bpf-*-*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3564 cris-*-* | crisv32-*-*)
3565 case "${target}" in
3566 *-*-linux*)
3568 *) # See PR46792 regarding target-libffi.
3569 noconfigdirs="$noconfigdirs target-libffi";;
3570 esac
3572 hppa*64*-*-hpux*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3575 hppa*-hp-hpux11*)
3577 hppa*-*-hpux*)
3578 noconfigdirs="$noconfigdirs target-libffi"
3580 ia64*-*-*vms*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3583 i[3456789]86-w64-mingw*)
3584 noconfigdirs="$noconfigdirs target-libffi"
3586 i[3456789]86-*-mingw*)
3587 noconfigdirs="$noconfigdirs target-libffi"
3589 x86_64-*-mingw*)
3590 noconfigdirs="$noconfigdirs target-libffi"
3592 mmix-*-*)
3593 noconfigdirs="$noconfigdirs target-libffi"
3595 powerpc-*-aix*)
3597 rs6000-*-aix*)
3599 ft32-*-*)
3600 noconfigdirs="$noconfigdirs target-libffi"
3602 *-*-lynxos*)
3603 noconfigdirs="$noconfigdirs target-libffi"
3605 esac
3607 # Disable the go frontend on systems where it is known to not work. Please keep
3608 # this in sync with contrib/config-list.mk.
3609 case "${target}" in
3610 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3611 unsupported_languages="$unsupported_languages go"
3613 esac
3615 # Only allow gdbserver on some systems.
3616 if test -d ${srcdir}/gdbserver; then
3617 if test x$enable_gdbserver = x; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3619 $as_echo_n "checking for gdbserver support... " >&6; }
3620 if (srcdir=${srcdir}/gdbserver; \
3621 . ${srcdir}/configure.srv; \
3622 test -n "$UNSUPPORTED")
3623 then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 noconfigdirs="$noconfigdirs gdbserver"
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3634 # Disable libgo for some systems where it is known to not work.
3635 # For testing, you can easily override this with --enable-libgo.
3636 if test x$enable_libgo = x; then
3637 case "${target}" in
3638 *-*-darwin*)
3639 # PR 46986
3640 noconfigdirs="$noconfigdirs target-libgo"
3642 *-*-cygwin* | *-*-mingw*)
3643 noconfigdirs="$noconfigdirs target-libgo"
3645 bpf-*-*)
3646 noconfigdirs="$noconfigdirs target-libgo"
3648 esac
3651 # Default libgloss CPU subdirectory.
3652 libgloss_dir="$target_cpu"
3654 case "${target}" in
3655 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3656 libgloss_dir=wince
3658 aarch64*-*-* )
3659 libgloss_dir=aarch64
3661 arm*-*-*)
3662 libgloss_dir=arm
3664 cris-*-* | crisv32-*-*)
3665 libgloss_dir=cris
3667 kvx-*-elf)
3668 libgloss_dir=kvx-elf
3670 kvx-*-mbr)
3671 libgloss_dir=kvx-mbr
3673 kvx-*-cos)
3674 libgloss_dir=kvx-cos
3676 hppa*-*-*)
3677 libgloss_dir=pa
3679 i[3456789]86-*-*)
3680 libgloss_dir=i386
3682 loongarch*-*-*)
3683 libgloss_dir=loongarch
3685 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3686 libgloss_dir=m68hc11
3688 m68*-*-* | fido-*-*)
3689 libgloss_dir=m68k
3691 mips*-*-*)
3692 libgloss_dir=mips
3694 powerpc*-*-*)
3695 libgloss_dir=rs6000
3697 pru-*-*)
3698 libgloss_dir=pru
3700 sparc*-*-*)
3701 libgloss_dir=sparc
3703 esac
3705 # Disable newlib and libgloss for various target OSes.
3706 case "${target}" in
3707 alpha*-dec-osf*)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 i[3456789]86-*-linux*)
3711 # This section makes it possible to build newlib natively on linux.
3712 # If we are using a cross compiler then don't configure newlib.
3713 if test x${is_cross_compiler} != xno ; then
3714 noconfigdirs="$noconfigdirs target-newlib"
3716 noconfigdirs="$noconfigdirs target-libgloss"
3717 # If we are not using a cross compiler, do configure newlib.
3718 # Note however, that newlib will only be configured in this situation
3719 # if the --with-newlib option has been given, because otherwise
3720 # 'target-newlib' will appear in skipdirs.
3722 i[3456789]86-*-rdos*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 sparc-*-sunos4*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 bpf-*-*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 *-*-aix*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 *-*-beos*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3740 *-*-chorusos)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3743 *-*-dragonfly*)
3744 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 *-*-freebsd*)
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3750 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3752 *-*-lynxos*)
3753 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 *-*-mingw*)
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 *-*-netbsd*)
3759 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761 *-*-netware*)
3762 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 *-*-tpf*)
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3767 *-*-uclinux*)
3768 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3770 *-*-vxworks*)
3771 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 esac
3775 case "${target}" in
3776 *-*-chorusos)
3778 aarch64-*-darwin*)
3779 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3780 noconfigdirs="$noconfigdirs sim target-rda"
3782 amdgcn*-*-*)
3784 arm-*-darwin*)
3785 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3786 noconfigdirs="$noconfigdirs sim target-rda"
3788 powerpc-*-darwin*)
3789 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3790 noconfigdirs="$noconfigdirs sim target-rda"
3792 i[3456789]86-*-darwin*)
3793 noconfigdirs="$noconfigdirs ld gprof"
3794 noconfigdirs="$noconfigdirs sim target-rda"
3796 x86_64-*-darwin[912]*)
3797 noconfigdirs="$noconfigdirs ld gas gprof"
3798 noconfigdirs="$noconfigdirs sim target-rda"
3800 *-*-darwin*)
3801 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3802 noconfigdirs="$noconfigdirs sim target-rda"
3804 *-*-dragonfly*)
3806 *-*-freebsd*)
3807 if test "x$with_gmp" = x \
3808 && ! test -d ${srcdir}/gmp \
3809 && test -f /usr/local/include/gmp.h; then
3810 with_gmp=/usr/local
3813 *-*-kaos*)
3814 # Remove unsupported stuff on all kaOS configurations.
3815 noconfigdirs="$noconfigdirs target-libgloss"
3817 *-*-netbsd*)
3819 *-*-netware*)
3821 *-*-phoenix*)
3822 noconfigdirs="$noconfigdirs target-libgloss"
3824 *-*-rtems*)
3825 noconfigdirs="$noconfigdirs target-libgloss"
3827 # The tpf target doesn't support gdb yet.
3828 *-*-tpf*)
3829 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3831 *-*-uclinux*)
3832 noconfigdirs="$noconfigdirs target-rda"
3834 *-*-vxworks*)
3836 alpha*-dec-osf*)
3837 # ld works, but does not support shared libraries.
3838 # gas doesn't generate exception information.
3839 noconfigdirs="$noconfigdirs gas ld"
3841 alpha*-*-*vms*)
3842 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3844 alpha*-*-*)
3845 # newlib is not 64 bit ready
3846 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3848 bpf-*-*)
3849 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3851 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3852 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3854 arc*-*-*)
3855 noconfigdirs="$noconfigdirs sim"
3857 arm-*-pe*)
3858 noconfigdirs="$noconfigdirs target-libgloss"
3860 arm-*-riscix*)
3861 noconfigdirs="$noconfigdirs ld target-libgloss"
3863 avr-*-*)
3864 if test x${with_avrlibc} != xno; then
3865 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3868 c4x-*-* | tic4x-*-*)
3869 noconfigdirs="$noconfigdirs target-libgloss"
3871 tic54x-*-*)
3872 noconfigdirs="$noconfigdirs target-libgloss gdb"
3874 d10v-*-*)
3875 noconfigdirs="$noconfigdirs target-libgloss"
3877 d30v-*-*)
3878 noconfigdirs="$noconfigdirs gdb"
3880 fr30-*-elf*)
3881 noconfigdirs="$noconfigdirs gdb"
3883 ft32-*-*)
3884 noconfigdirs="$noconfigdirs target-rda gprof"
3886 moxie-*-*)
3887 noconfigdirs="$noconfigdirs"
3889 h8300*-*-*)
3890 noconfigdirs="$noconfigdirs target-libgloss"
3892 h8500-*-*)
3893 noconfigdirs="$noconfigdirs target-libgloss"
3895 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3897 hppa*64*-*-hpux*)
3898 noconfigdirs="$noconfigdirs gdb"
3900 hppa*-*-hpux11*)
3901 noconfigdirs="$noconfigdirs gdb ld"
3903 hppa*64*-*-linux*)
3905 hppa*-*-linux*)
3907 hppa*-*-*elf* | \
3908 hppa*-*-lites* | \
3909 hppa*-*-openbsd* | \
3910 hppa*64*-*-*)
3912 hppa*-*-pro*)
3914 hppa*-*-*)
3915 noconfigdirs="$noconfigdirs ld"
3917 i960-*-*)
3918 noconfigdirs="$noconfigdirs gdb"
3920 ia64*-*-elf*)
3921 # No gdb support yet.
3922 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3924 ia64*-**-hpux*)
3925 # No ld support yet.
3926 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3928 ia64*-*-*vms*)
3929 # No ld support yet.
3930 noconfigdirs="$noconfigdirs libgui itcl ld"
3932 i[3456789]86-w64-mingw*)
3934 i[3456789]86-*-mingw*)
3935 target_configdirs="$target_configdirs target-winsup"
3937 *-*-cygwin*)
3938 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3939 noconfigdirs="$noconfigdirs target-libgloss"
3940 # always build newlib if winsup directory is present.
3941 if test -d "$srcdir/winsup/cygwin"; then
3942 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3943 elif test -d "$srcdir/newlib"; then
3944 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3947 i[3456789]86-*-pe)
3948 noconfigdirs="$noconfigdirs target-libgloss"
3950 i[3456789]86-*-sco3.2v5*)
3951 # The linker does not yet know about weak symbols in COFF,
3952 # and is not configured to handle mixed ELF and COFF.
3953 noconfigdirs="$noconfigdirs ld target-libgloss"
3955 i[3456789]86-*-sco*)
3956 noconfigdirs="$noconfigdirs gprof target-libgloss"
3958 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3959 noconfigdirs="$noconfigdirs target-libgloss"
3961 i[3456789]86-*-sysv4*)
3962 noconfigdirs="$noconfigdirs target-libgloss"
3964 i[3456789]86-*-beos*)
3965 noconfigdirs="$noconfigdirs gdb"
3967 i[3456789]86-*-rdos*)
3968 noconfigdirs="$noconfigdirs gdb"
3970 kvx-*-*)
3971 noconfigdirs="$noconfigdirs gdb gdbserver sim"
3973 mmix-*-*)
3974 noconfigdirs="$noconfigdirs gdb"
3976 mt-*-*)
3977 noconfigdirs="$noconfigdirs sim"
3979 nfp-*-*)
3980 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3981 noconfigdirs="$noconfigdirs $target_libraries"
3983 pdp11-*-*)
3984 noconfigdirs="$noconfigdirs gdb gprof"
3986 powerpc-*-aix*)
3987 # copied from rs6000-*-* entry
3988 noconfigdirs="$noconfigdirs gprof"
3990 powerpc*-*-winnt* | powerpc*-*-pe*)
3991 target_configdirs="$target_configdirs target-winsup"
3992 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3993 # always build newlib.
3994 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3996 # This is temporary until we can link against shared libraries
3997 powerpcle-*-solaris*)
3998 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4000 powerpc-*-beos*)
4001 noconfigdirs="$noconfigdirs gdb"
4003 rs6000-*-lynxos*)
4004 noconfigdirs="$noconfigdirs gprof"
4006 rs6000-*-aix*)
4007 noconfigdirs="$noconfigdirs gprof"
4009 rs6000-*-*)
4010 noconfigdirs="$noconfigdirs gprof"
4012 m68k-apollo-*)
4013 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4015 microblaze*)
4016 noconfigdirs="$noconfigdirs gprof"
4018 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4019 if test x$with_newlib = xyes; then
4020 noconfigdirs="$noconfigdirs gprof"
4023 mips*-*-irix5*)
4024 noconfigdirs="$noconfigdirs gprof target-libgloss"
4026 mips*-*-irix6*)
4027 noconfigdirs="$noconfigdirs gprof target-libgloss"
4029 mips*-*-bsd*)
4030 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4032 mips*-*-linux*)
4034 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4035 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4036 noconfigdirs="$noconfigdirs ld gas gprof"
4038 mips*-*-*)
4039 noconfigdirs="$noconfigdirs gprof"
4041 nvptx*-*-*)
4042 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4044 sh-*-*)
4045 case "${target}" in
4046 sh*-*-elf)
4049 noconfigdirs="$noconfigdirs target-libgloss" ;;
4050 esac
4052 sparc-*-sunos4*)
4053 if test x${is_cross_compiler} = xno ; then
4054 use_gnu_ld=no
4057 tic6x-*-*)
4058 noconfigdirs="$noconfigdirs sim"
4060 tilepro*-*-* | tilegx*-*-*)
4061 noconfigdirs="$noconfigdirs sim"
4063 v810-*-*)
4064 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4066 vax-*-*)
4067 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4069 wasm32-*-*)
4070 noconfigdirs="$noconfigdirs ld"
4072 loongarch*-*-linux*)
4074 loongarch*-*-*)
4075 noconfigdirs="$noconfigdirs gprof"
4077 esac
4079 # If we aren't building newlib, then don't build libgloss, since libgloss
4080 # depends upon some newlib header files.
4081 case "${noconfigdirs}" in
4082 *target-libgloss*) ;;
4083 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4084 esac
4086 # Work in distributions that contain no compiler tools, like Autoconf.
4087 host_makefile_frag=/dev/null
4088 if test -d ${srcdir}/config ; then
4089 case "${host}" in
4090 i[3456789]86-*-msdosdjgpp*)
4091 host_makefile_frag="config/mh-djgpp"
4093 *-cygwin*)
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4096 $as_echo_n "checking to see if cat works as expected... " >&6; }
4097 echo a >cygwin-cat-check
4098 if test `cat cygwin-cat-check` = a ; then
4099 rm cygwin-cat-check
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4101 $as_echo "yes" >&6; }
4102 else
4103 rm cygwin-cat-check
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105 $as_echo "no" >&6; }
4106 as_fn_error $? "The cat command does not ignore carriage return characters.
4107 Please either mount the build directory in binary mode or run the following
4108 commands before running any configure script:
4109 set -o igncr
4110 export SHELLOPTS
4111 " "$LINENO" 5
4114 host_makefile_frag="config/mh-cygwin"
4116 *-mingw*)
4117 host_makefile_frag="config/mh-mingw"
4119 alpha*-linux*)
4120 host_makefile_frag="config/mh-alpha-linux"
4122 hppa*-hp-hpux*)
4123 host_makefile_frag="config/mh-pa"
4125 hppa*-*)
4126 host_makefile_frag="config/mh-pa"
4128 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4129 host_makefile_frag="config/mh-darwin"
4131 powerpc-*-aix*)
4132 host_makefile_frag="config/mh-ppc-aix"
4134 rs6000-*-aix*)
4135 host_makefile_frag="config/mh-ppc-aix"
4137 esac
4140 if test "${build}" != "${host}" ; then
4141 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4142 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4143 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4144 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4145 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4146 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4147 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4148 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4149 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4150 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4151 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4152 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4153 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4154 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4155 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4156 else
4157 AR_FOR_BUILD="\$(AR)"
4158 AS_FOR_BUILD="\$(AS)"
4159 CC_FOR_BUILD="\$(CC)"
4160 CXX_FOR_BUILD="\$(CXX)"
4161 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4162 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4163 GOC_FOR_BUILD="\$(GOC)"
4164 GDC_FOR_BUILD="\$(GDC)"
4165 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4166 LD_FOR_BUILD="\$(LD)"
4167 NM_FOR_BUILD="\$(NM)"
4168 RANLIB_FOR_BUILD="\$(RANLIB)"
4169 WINDRES_FOR_BUILD="\$(WINDRES)"
4170 WINDMC_FOR_BUILD="\$(WINDMC)"
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 if test -n "$ac_tool_prefix"; then
4179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4180 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_CC+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC="$CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4200 done
4201 done
4202 IFS=$as_save_IFS
4206 CC=$ac_cv_prog_CC
4207 if test -n "$CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209 $as_echo "$CC" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4217 if test -z "$ac_cv_prog_CC"; then
4218 ac_ct_CC=$CC
4219 # Extract the first word of "gcc", so it can be a program name with args.
4220 set dummy gcc; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if test -n "$ac_ct_CC"; then
4227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_ac_ct_CC="gcc"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4240 done
4241 done
4242 IFS=$as_save_IFS
4246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4247 if test -n "$ac_ct_CC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4249 $as_echo "$ac_ct_CC" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4255 if test "x$ac_ct_CC" = x; then
4256 CC=""
4257 else
4258 case $cross_compiling:$ac_tool_warned in
4259 yes:)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4262 ac_tool_warned=yes ;;
4263 esac
4264 CC=$ac_ct_CC
4266 else
4267 CC="$ac_cv_prog_CC"
4270 if test -z "$CC"; then
4271 if test -n "$ac_tool_prefix"; then
4272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4273 set dummy ${ac_tool_prefix}cc; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_CC+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_CC="${ac_tool_prefix}cc"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4293 done
4294 done
4295 IFS=$as_save_IFS
4299 CC=$ac_cv_prog_CC
4300 if test -n "$CC"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4302 $as_echo "$CC" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4311 if test -z "$CC"; then
4312 # Extract the first word of "cc", so it can be a program name with args.
4313 set dummy cc; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_prog_CC+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if test -n "$CC"; then
4320 ac_cv_prog_CC="$CC" # Let the user override the test.
4321 else
4322 ac_prog_rejected=no
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4331 ac_prog_rejected=yes
4332 continue
4334 ac_cv_prog_CC="cc"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4338 done
4339 done
4340 IFS=$as_save_IFS
4342 if test $ac_prog_rejected = yes; then
4343 # We found a bogon in the path, so make sure we never use it.
4344 set dummy $ac_cv_prog_CC
4345 shift
4346 if test $# != 0; then
4347 # We chose a different compiler from the bogus one.
4348 # However, it has the same basename, so the bogon will be chosen
4349 # first if we set CC to just the basename; use the full file name.
4350 shift
4351 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4356 CC=$ac_cv_prog_CC
4357 if test -n "$CC"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4359 $as_echo "$CC" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4367 if test -z "$CC"; then
4368 if test -n "$ac_tool_prefix"; then
4369 for ac_prog in cl.exe
4371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374 $as_echo_n "checking for $ac_word... " >&6; }
4375 if ${ac_cv_prog_CC+:} false; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 if test -n "$CC"; then
4379 ac_cv_prog_CC="$CC" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4392 done
4393 done
4394 IFS=$as_save_IFS
4398 CC=$ac_cv_prog_CC
4399 if test -n "$CC"; then
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4401 $as_echo "$CC" >&6; }
4402 else
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404 $as_echo "no" >&6; }
4408 test -n "$CC" && break
4409 done
4411 if test -z "$CC"; then
4412 ac_ct_CC=$CC
4413 for ac_prog in cl.exe
4415 # Extract the first word of "$ac_prog", so it can be a program name with args.
4416 set dummy $ac_prog; ac_word=$2
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test -n "$ac_ct_CC"; then
4423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432 ac_cv_prog_ac_ct_CC="$ac_prog"
4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
4436 done
4437 done
4438 IFS=$as_save_IFS
4442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4443 if test -n "$ac_ct_CC"; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4445 $as_echo "$ac_ct_CC" >&6; }
4446 else
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4452 test -n "$ac_ct_CC" && break
4453 done
4455 if test "x$ac_ct_CC" = x; then
4456 CC=""
4457 else
4458 case $cross_compiling:$ac_tool_warned in
4459 yes:)
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4462 ac_tool_warned=yes ;;
4463 esac
4464 CC=$ac_ct_CC
4471 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473 as_fn_error $? "no acceptable C compiler found in \$PATH
4474 See \`config.log' for more details" "$LINENO" 5; }
4476 # Provide some information about the compiler.
4477 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4478 set X $ac_compile
4479 ac_compiler=$2
4480 for ac_option in --version -v -V -qversion; do
4481 { { ac_try="$ac_compiler $ac_option >&5"
4482 case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485 esac
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 $as_echo "$ac_try_echo"; } >&5
4488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4489 ac_status=$?
4490 if test -s conftest.err; then
4491 sed '10a\
4492 ... rest of stderr output deleted ...
4493 10q' conftest.err >conftest.er1
4494 cat conftest.er1 >&5
4496 rm -f conftest.er1 conftest.err
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }
4499 done
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4505 main ()
4509 return 0;
4511 _ACEOF
4512 ac_clean_files_save=$ac_clean_files
4513 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4514 # Try to create an executable without -o first, disregard a.out.
4515 # It will help us diagnose broken compilers, and finding out an intuition
4516 # of exeext.
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4518 $as_echo_n "checking whether the C compiler works... " >&6; }
4519 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4521 # The possible output files:
4522 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4524 ac_rmfiles=
4525 for ac_file in $ac_files
4527 case $ac_file in
4528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4529 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4530 esac
4531 done
4532 rm -f $ac_rmfiles
4534 if { { ac_try="$ac_link_default"
4535 case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540 $as_echo "$ac_try_echo"; } >&5
4541 (eval "$ac_link_default") 2>&5
4542 ac_status=$?
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }; then :
4545 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4546 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4547 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4548 # so that the user can short-circuit this test for compilers unknown to
4549 # Autoconf.
4550 for ac_file in $ac_files ''
4552 test -f "$ac_file" || continue
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4556 [ab].out )
4557 # We found the default executable, but exeext='' is most
4558 # certainly right.
4559 break;;
4560 *.* )
4561 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4562 then :; else
4563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4565 # We set ac_cv_exeext here because the later test for it is not
4566 # safe: cross compilers may not add the suffix if given an `-o'
4567 # argument, so we may need to know it at that point already.
4568 # Even if this section looks crufty: it has the advantage of
4569 # actually working.
4570 break;;
4572 break;;
4573 esac
4574 done
4575 test "$ac_cv_exeext" = no && ac_cv_exeext=
4577 else
4578 ac_file=''
4580 if test -z "$ac_file"; then :
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4583 $as_echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4588 as_fn_error 77 "C compiler cannot create executables
4589 See \`config.log' for more details" "$LINENO" 5; }
4590 else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4592 $as_echo "yes" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4595 $as_echo_n "checking for C compiler default output file name... " >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4597 $as_echo "$ac_file" >&6; }
4598 ac_exeext=$ac_cv_exeext
4600 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4601 ac_clean_files=$ac_clean_files_save
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4603 $as_echo_n "checking for suffix of executables... " >&6; }
4604 if { { ac_try="$ac_link"
4605 case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608 esac
4609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4610 $as_echo "$ac_try_echo"; } >&5
4611 (eval "$ac_link") 2>&5
4612 ac_status=$?
4613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4614 test $ac_status = 0; }; then :
4615 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4616 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4617 # work properly (i.e., refer to `conftest.exe'), while it won't with
4618 # `rm'.
4619 for ac_file in conftest.exe conftest conftest.*; do
4620 test -f "$ac_file" || continue
4621 case $ac_file in
4622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4623 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4624 break;;
4625 * ) break;;
4626 esac
4627 done
4628 else
4629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4631 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4632 See \`config.log' for more details" "$LINENO" 5; }
4634 rm -f conftest conftest$ac_cv_exeext
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4636 $as_echo "$ac_cv_exeext" >&6; }
4638 rm -f conftest.$ac_ext
4639 EXEEXT=$ac_cv_exeext
4640 ac_exeext=$EXEEXT
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <stdio.h>
4645 main ()
4647 FILE *f = fopen ("conftest.out", "w");
4648 return ferror (f) || fclose (f) != 0;
4651 return 0;
4653 _ACEOF
4654 ac_clean_files="$ac_clean_files conftest.out"
4655 # Check that the compiler produces executables we can run. If not, either
4656 # the compiler is broken, or we cross compile.
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4658 $as_echo_n "checking whether we are cross compiling... " >&6; }
4659 if test "$cross_compiling" != yes; then
4660 { { ac_try="$ac_link"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666 $as_echo "$ac_try_echo"; } >&5
4667 (eval "$ac_link") 2>&5
4668 ac_status=$?
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }
4671 if { ac_try='./conftest$ac_cv_exeext'
4672 { { case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675 esac
4676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677 $as_echo "$ac_try_echo"; } >&5
4678 (eval "$ac_try") 2>&5
4679 ac_status=$?
4680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4681 test $ac_status = 0; }; }; then
4682 cross_compiling=no
4683 else
4684 if test "$cross_compiling" = maybe; then
4685 cross_compiling=yes
4686 else
4687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689 as_fn_error $? "cannot run C compiled programs.
4690 If you meant to cross compile, use \`--host'.
4691 See \`config.log' for more details" "$LINENO" 5; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4696 $as_echo "$cross_compiling" >&6; }
4698 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4699 ac_clean_files=$ac_clean_files_save
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4701 $as_echo_n "checking for suffix of object files... " >&6; }
4702 if ${ac_cv_objext+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4709 main ()
4713 return 0;
4715 _ACEOF
4716 rm -f conftest.o conftest.obj
4717 if { { ac_try="$ac_compile"
4718 case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721 esac
4722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723 $as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_compile") 2>&5
4725 ac_status=$?
4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }; then :
4728 for ac_file in conftest.o conftest.obj conftest.*; do
4729 test -f "$ac_file" || continue;
4730 case $ac_file in
4731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4732 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4733 break;;
4734 esac
4735 done
4736 else
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4742 as_fn_error $? "cannot compute suffix of object files: cannot compile
4743 See \`config.log' for more details" "$LINENO" 5; }
4745 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4748 $as_echo "$ac_cv_objext" >&6; }
4749 OBJEXT=$ac_cv_objext
4750 ac_objext=$OBJEXT
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4752 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4753 if ${ac_cv_c_compiler_gnu+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4760 main ()
4762 #ifndef __GNUC__
4763 choke me
4764 #endif
4767 return 0;
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_compiler_gnu=yes
4772 else
4773 ac_compiler_gnu=no
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4780 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4781 if test $ac_compiler_gnu = yes; then
4782 GCC=yes
4783 else
4784 GCC=
4786 ac_test_CFLAGS=${CFLAGS+set}
4787 ac_save_CFLAGS=$CFLAGS
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4789 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4790 if ${ac_cv_prog_cc_g+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 ac_save_c_werror_flag=$ac_c_werror_flag
4794 ac_c_werror_flag=yes
4795 ac_cv_prog_cc_g=no
4796 CFLAGS="-g"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4801 main ()
4805 return 0;
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_prog_cc_g=yes
4810 else
4811 CFLAGS=""
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 :
4825 else
4826 ac_c_werror_flag=$ac_save_c_werror_flag
4827 CFLAGS="-g"
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4832 main ()
4836 return 0;
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840 ac_cv_prog_cc_g=yes
4842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 ac_c_werror_flag=$ac_save_c_werror_flag
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4850 $as_echo "$ac_cv_prog_cc_g" >&6; }
4851 if test "$ac_test_CFLAGS" = set; then
4852 CFLAGS=$ac_save_CFLAGS
4853 elif test $ac_cv_prog_cc_g = yes; then
4854 if test "$GCC" = yes; then
4855 CFLAGS="-g -O2"
4856 else
4857 CFLAGS="-g"
4859 else
4860 if test "$GCC" = yes; then
4861 CFLAGS="-O2"
4862 else
4863 CFLAGS=
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4867 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4868 if ${ac_cv_prog_cc_c89+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 ac_cv_prog_cc_c89=no
4872 ac_save_CC=$CC
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 #include <stdarg.h>
4876 #include <stdio.h>
4877 struct stat;
4878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4879 struct buf { int x; };
4880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4881 static char *e (p, i)
4882 char **p;
4883 int i;
4885 return p[i];
4887 static char *f (char * (*g) (char **, int), char **p, ...)
4889 char *s;
4890 va_list v;
4891 va_start (v,p);
4892 s = g (p, va_arg (v,int));
4893 va_end (v);
4894 return s;
4897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4898 function prototypes and stuff, but not '\xHH' hex character constants.
4899 These don't provoke an error unfortunately, instead are silently treated
4900 as 'x'. The following induces an error, until -std is added to get
4901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4902 array size at least. It's necessary to write '\x00'==0 to get something
4903 that's true only with -std. */
4904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4906 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4907 inside strings and character constants. */
4908 #define FOO(x) 'x'
4909 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4911 int test (int i, double x);
4912 struct s1 {int (*f) (int a);};
4913 struct s2 {int (*f) (double a);};
4914 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4915 int argc;
4916 char **argv;
4918 main ()
4920 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4922 return 0;
4924 _ACEOF
4925 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4928 CC="$ac_save_CC $ac_arg"
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 ac_cv_prog_cc_c89=$ac_arg
4932 rm -f core conftest.err conftest.$ac_objext
4933 test "x$ac_cv_prog_cc_c89" != "xno" && break
4934 done
4935 rm -f conftest.$ac_ext
4936 CC=$ac_save_CC
4939 # AC_CACHE_VAL
4940 case "x$ac_cv_prog_cc_c89" in
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4943 $as_echo "none needed" >&6; } ;;
4944 xno)
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4946 $as_echo "unsupported" >&6; } ;;
4948 CC="$CC $ac_cv_prog_cc_c89"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4950 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4951 esac
4952 if test "x$ac_cv_prog_cc_c89" != xno; then :
4956 ac_ext=c
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4963 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4964 if ${ac_cv_prog_cc_c99+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 ac_cv_prog_cc_c99=no
4968 ac_save_CC=$CC
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <stdarg.h>
4972 #include <stdbool.h>
4973 #include <stdlib.h>
4974 #include <wchar.h>
4975 #include <stdio.h>
4977 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4978 #define debug(...) fprintf (stderr, __VA_ARGS__)
4979 #define showlist(...) puts (#__VA_ARGS__)
4980 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4981 static void
4982 test_varargs_macros (void)
4984 int x = 1234;
4985 int y = 5678;
4986 debug ("Flag");
4987 debug ("X = %d\n", x);
4988 showlist (The first, second, and third items.);
4989 report (x>y, "x is %d but y is %d", x, y);
4992 // Check long long types.
4993 #define BIG64 18446744073709551615ull
4994 #define BIG32 4294967295ul
4995 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4996 #if !BIG_OK
4997 your preprocessor is broken;
4998 #endif
4999 #if BIG_OK
5000 #else
5001 your preprocessor is broken;
5002 #endif
5003 static long long int bignum = -9223372036854775807LL;
5004 static unsigned long long int ubignum = BIG64;
5006 struct incomplete_array
5008 int datasize;
5009 double data[];
5012 struct named_init {
5013 int number;
5014 const wchar_t *name;
5015 double average;
5018 typedef const char *ccp;
5020 static inline int
5021 test_restrict (ccp restrict text)
5023 // See if C++-style comments work.
5024 // Iterate through items via the restricted pointer.
5025 // Also check for declarations in for loops.
5026 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5027 continue;
5028 return 0;
5031 // Check varargs and va_copy.
5032 static void
5033 test_varargs (const char *format, ...)
5035 va_list args;
5036 va_start (args, format);
5037 va_list args_copy;
5038 va_copy (args_copy, args);
5040 const char *str;
5041 int number;
5042 float fnumber;
5044 while (*format)
5046 switch (*format++)
5048 case 's': // string
5049 str = va_arg (args_copy, const char *);
5050 break;
5051 case 'd': // int
5052 number = va_arg (args_copy, int);
5053 break;
5054 case 'f': // float
5055 fnumber = va_arg (args_copy, double);
5056 break;
5057 default:
5058 break;
5061 va_end (args_copy);
5062 va_end (args);
5066 main ()
5069 // Check bool.
5070 _Bool success = false;
5072 // Check restrict.
5073 if (test_restrict ("String literal") == 0)
5074 success = true;
5075 char *restrict newvar = "Another string";
5077 // Check varargs.
5078 test_varargs ("s, d' f .", "string", 65, 34.234);
5079 test_varargs_macros ();
5081 // Check flexible array members.
5082 struct incomplete_array *ia =
5083 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5084 ia->datasize = 10;
5085 for (int i = 0; i < ia->datasize; ++i)
5086 ia->data[i] = i * 1.234;
5088 // Check named initializers.
5089 struct named_init ni = {
5090 .number = 34,
5091 .name = L"Test wide string",
5092 .average = 543.34343,
5095 ni.number = 58;
5097 int dynamic_array[ni.number];
5098 dynamic_array[ni.number - 1] = 543;
5100 // work around unused variable warnings
5101 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5102 || dynamic_array[ni.number - 1] != 543);
5105 return 0;
5107 _ACEOF
5108 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5110 CC="$ac_save_CC $ac_arg"
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_prog_cc_c99=$ac_arg
5114 rm -f core conftest.err conftest.$ac_objext
5115 test "x$ac_cv_prog_cc_c99" != "xno" && break
5116 done
5117 rm -f conftest.$ac_ext
5118 CC=$ac_save_CC
5121 # AC_CACHE_VAL
5122 case "x$ac_cv_prog_cc_c99" in
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5125 $as_echo "none needed" >&6; } ;;
5126 xno)
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5128 $as_echo "unsupported" >&6; } ;;
5130 CC="$CC $ac_cv_prog_cc_c99"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5132 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5133 esac
5134 if test "x$ac_cv_prog_cc_c99" != xno; then :
5139 ac_ext=cpp
5140 ac_cpp='$CXXCPP $CPPFLAGS'
5141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5144 if test -z "$CXX"; then
5145 if test -n "$CCC"; then
5146 CXX=$CCC
5147 else
5148 if test -n "$ac_tool_prefix"; then
5149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_CXX+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$CXX"; then
5159 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5178 CXX=$ac_cv_prog_CXX
5179 if test -n "$CXX"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5181 $as_echo "$CXX" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 test -n "$CXX" && break
5189 done
5191 if test -z "$CXX"; then
5192 ac_ct_CXX=$CXX
5193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5195 # Extract the first word of "$ac_prog", so it can be a program name with args.
5196 set dummy $ac_prog; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$ac_ct_CXX"; then
5203 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5216 done
5217 done
5218 IFS=$as_save_IFS
5222 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5223 if test -n "$ac_ct_CXX"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5225 $as_echo "$ac_ct_CXX" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5232 test -n "$ac_ct_CXX" && break
5233 done
5235 if test "x$ac_ct_CXX" = x; then
5236 CXX="g++"
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239 yes:)
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242 ac_tool_warned=yes ;;
5243 esac
5244 CXX=$ac_ct_CXX
5250 # Provide some information about the compiler.
5251 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5252 set X $ac_compile
5253 ac_compiler=$2
5254 for ac_option in --version -v -V -qversion; do
5255 { { ac_try="$ac_compiler $ac_option >&5"
5256 case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259 esac
5260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5261 $as_echo "$ac_try_echo"; } >&5
5262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5263 ac_status=$?
5264 if test -s conftest.err; then
5265 sed '10a\
5266 ... rest of stderr output deleted ...
5267 10q' conftest.err >conftest.er1
5268 cat conftest.er1 >&5
5270 rm -f conftest.er1 conftest.err
5271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5272 test $ac_status = 0; }
5273 done
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5276 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5277 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5284 main ()
5286 #ifndef __GNUC__
5287 choke me
5288 #endif
5291 return 0;
5293 _ACEOF
5294 if ac_fn_cxx_try_compile "$LINENO"; then :
5295 ac_compiler_gnu=yes
5296 else
5297 ac_compiler_gnu=no
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5304 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5305 if test $ac_compiler_gnu = yes; then
5306 GXX=yes
5307 else
5308 GXX=
5310 ac_test_CXXFLAGS=${CXXFLAGS+set}
5311 ac_save_CXXFLAGS=$CXXFLAGS
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5313 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5314 if ${ac_cv_prog_cxx_g+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5318 ac_cxx_werror_flag=yes
5319 ac_cv_prog_cxx_g=no
5320 CXXFLAGS="-g"
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5325 main ()
5329 return 0;
5331 _ACEOF
5332 if ac_fn_cxx_try_compile "$LINENO"; then :
5333 ac_cv_prog_cxx_g=yes
5334 else
5335 CXXFLAGS=""
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 :
5349 else
5350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5351 CXXFLAGS="-g"
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5356 main ()
5360 return 0;
5362 _ACEOF
5363 if ac_fn_cxx_try_compile "$LINENO"; then :
5364 ac_cv_prog_cxx_g=yes
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5374 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5375 if test "$ac_test_CXXFLAGS" = set; then
5376 CXXFLAGS=$ac_save_CXXFLAGS
5377 elif test $ac_cv_prog_cxx_g = yes; then
5378 if test "$GXX" = yes; then
5379 CXXFLAGS="-g -O2"
5380 else
5381 CXXFLAGS="-g"
5383 else
5384 if test "$GXX" = yes; then
5385 CXXFLAGS="-O2"
5386 else
5387 CXXFLAGS=
5390 ac_ext=c
5391 ac_cpp='$CPP $CPPFLAGS'
5392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 # We must set the default linker to the linker used by gcc for the correct
5398 # operation of libtool. If LD is not defined and we are using gcc, try to
5399 # set the LD default to the ld used by gcc.
5400 if test -z "$LD"; then
5401 if test "$GCC" = yes; then
5402 case $build in
5403 *-*-mingw*)
5404 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5406 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5407 esac
5408 case $gcc_prog_ld in
5409 # Accept absolute paths.
5410 [\\/]* | [A-Za-z]:[\\/]*)
5411 LD="$gcc_prog_ld" ;;
5412 esac
5416 # Check whether -static-libstdc++ -static-libgcc is supported.
5417 have_static_libs=no
5418 if test "$GCC" = yes; then
5419 saved_LDFLAGS="$LDFLAGS"
5421 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5423 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5424 ac_ext=cpp
5425 ac_cpp='$CXXCPP $CPPFLAGS'
5426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5434 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5435 #error -static-libstdc++ not implemented
5436 #endif
5437 int main() {}
5438 _ACEOF
5439 if ac_fn_cxx_try_link "$LINENO"; then :
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5441 $as_echo "yes" >&6; }; have_static_libs=yes
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5446 rm -f core conftest.err conftest.$ac_objext \
5447 conftest$ac_exeext conftest.$ac_ext
5448 ac_ext=c
5449 ac_cpp='$CPP $CPPFLAGS'
5450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5455 LDFLAGS="$saved_LDFLAGS"
5461 if test -n "$ac_tool_prefix"; then
5462 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5463 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_GNATBIND+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$GNATBIND"; then
5470 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5483 done
5484 done
5485 IFS=$as_save_IFS
5489 GNATBIND=$ac_cv_prog_GNATBIND
5490 if test -n "$GNATBIND"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5492 $as_echo "$GNATBIND" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5500 if test -z "$ac_cv_prog_GNATBIND"; then
5501 ac_ct_GNATBIND=$GNATBIND
5502 # Extract the first word of "gnatbind", so it can be a program name with args.
5503 set dummy gnatbind; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 if test -n "$ac_ct_GNATBIND"; then
5510 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5523 done
5524 done
5525 IFS=$as_save_IFS
5529 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5530 if test -n "$ac_ct_GNATBIND"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5532 $as_echo "$ac_ct_GNATBIND" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5538 if test "x$ac_ct_GNATBIND" = x; then
5539 GNATBIND="no"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 GNATBIND=$ac_ct_GNATBIND
5549 else
5550 GNATBIND="$ac_cv_prog_GNATBIND"
5553 if test -n "$ac_tool_prefix"; then
5554 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5555 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_prog_GNATMAKE+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -n "$GNATMAKE"; then
5562 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5575 done
5576 done
5577 IFS=$as_save_IFS
5581 GNATMAKE=$ac_cv_prog_GNATMAKE
5582 if test -n "$GNATMAKE"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5584 $as_echo "$GNATMAKE" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5592 if test -z "$ac_cv_prog_GNATMAKE"; then
5593 ac_ct_GNATMAKE=$GNATMAKE
5594 # Extract the first word of "gnatmake", so it can be a program name with args.
5595 set dummy gnatmake; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -n "$ac_ct_GNATMAKE"; then
5602 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5615 done
5616 done
5617 IFS=$as_save_IFS
5621 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5622 if test -n "$ac_ct_GNATMAKE"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5624 $as_echo "$ac_ct_GNATMAKE" >&6; }
5625 else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5630 if test "x$ac_ct_GNATMAKE" = x; then
5631 GNATMAKE="no"
5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634 yes:)
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637 ac_tool_warned=yes ;;
5638 esac
5639 GNATMAKE=$ac_ct_GNATMAKE
5641 else
5642 GNATMAKE="$ac_cv_prog_GNATMAKE"
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5646 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5647 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 cat >conftest.adb <<EOF
5651 pragma Warnings (Off);
5652 with System.CRTL;
5653 pragma Warnings (On);
5654 use type System.CRTL.int64;
5655 procedure conftest is begin null; end conftest;
5657 acx_cv_cc_gcc_supports_ada=no
5658 # There is a bug in old released versions of GCC which causes the
5659 # driver to exit successfully when the appropriate language module
5660 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5661 # Therefore we must check for the error message as well as an
5662 # unsuccessful exit.
5663 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5664 # given a .adb file, but produce no object file. So we must check
5665 # if an object file was really produced to guard against this.
5666 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5667 if test x"$errors" = x && test -f conftest.$ac_objext; then
5668 acx_cv_cc_gcc_supports_ada=yes
5670 rm -f conftest.*
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5673 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5675 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5676 have_gnat=yes
5677 else
5678 have_gnat=no
5683 if test -n "$ac_tool_prefix"; then
5684 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5685 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_prog_GDC+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$GDC"; then
5692 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5705 done
5706 done
5707 IFS=$as_save_IFS
5711 GDC=$ac_cv_prog_GDC
5712 if test -n "$GDC"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5714 $as_echo "$GDC" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5722 if test -z "$ac_cv_prog_GDC"; then
5723 ac_ct_GDC=$GDC
5724 # Extract the first word of "gdc", so it can be a program name with args.
5725 set dummy gdc; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$ac_ct_GDC"; then
5732 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_ac_ct_GDC="gdc"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5747 IFS=$as_save_IFS
5751 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5752 if test -n "$ac_ct_GDC"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5754 $as_echo "$ac_ct_GDC" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5760 if test "x$ac_ct_GDC" = x; then
5761 GDC="no"
5762 else
5763 case $cross_compiling:$ac_tool_warned in
5764 yes:)
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767 ac_tool_warned=yes ;;
5768 esac
5769 GDC=$ac_ct_GDC
5771 else
5772 GDC="$ac_cv_prog_GDC"
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5776 $as_echo_n "checking whether the D compiler works... " >&6; }
5777 if ${acx_cv_d_compiler_works+:} false; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 cat >conftest.d <<EOF
5781 module conftest; int main() { return 0; }
5783 acx_cv_d_compiler_works=no
5784 if test "x$GDC" != xno; then
5785 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5786 if test x"$errors" = x && test -f conftest.$ac_objext; then
5787 acx_cv_d_compiler_works=yes
5789 rm -f conftest.*
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5793 $as_echo "$acx_cv_d_compiler_works" >&6; }
5794 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5795 have_gdc=yes
5796 else
5797 have_gdc=no
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5801 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5802 if ${gcc_cv_prog_cmp_skip+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 echo abfoo >t1
5806 echo cdfoo >t2
5807 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5808 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5809 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5811 else
5812 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5815 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5816 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5818 else
5819 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5822 rm t1 t2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5826 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5827 do_compare="$gcc_cv_prog_cmp_skip"
5831 # Check whether --enable-bootstrap was given.
5832 if test "${enable_bootstrap+set}" = set; then :
5833 enableval=$enable_bootstrap;
5834 else
5835 enable_bootstrap=default
5839 # Issue errors and warnings for invalid/strange bootstrap combinations.
5840 if test -r $srcdir/gcc/configure; then
5841 have_compiler=yes
5842 else
5843 have_compiler=no
5846 case "$have_compiler:$host:$target:$enable_bootstrap" in
5847 *:*:*:no) ;;
5849 # Default behavior. Enable bootstrap if we have a compiler
5850 # and we are in a native configuration.
5851 yes:$build:$build:default)
5852 enable_bootstrap=yes ;;
5854 *:*:*:default)
5855 enable_bootstrap=no ;;
5857 # We have a compiler and we are in a native configuration, bootstrap is ok
5858 yes:$build:$build:yes)
5861 # Other configurations, but we have a compiler. Assume the user knows
5862 # what he's doing.
5863 yes:*:*:yes)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5865 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5868 # No compiler: if they passed --enable-bootstrap explicitly, fail
5869 no:*:*:yes)
5870 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5872 # Fail if wrong command line
5874 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5876 esac
5878 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5879 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5880 # require C++11 (or higher).
5881 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5882 CXX="$CXX -std=c++11"
5883 elif test "$have_compiler" = yes; then
5884 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5885 ac_ext=cpp
5886 ac_cpp='$CXXCPP $CPPFLAGS'
5887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5890 ac_success=no
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5893 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5894 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5901 // If the compiler admits that it is not ready for C++11, why torture it?
5902 // Hopefully, this will speed up the test.
5904 #ifndef __cplusplus
5906 #error "This is not a C++ compiler"
5908 #elif __cplusplus < 201103L
5910 #error "This is not a C++11 compiler"
5912 #else
5914 namespace cxx11
5917 namespace test_static_assert
5920 template <typename T>
5921 struct check
5923 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5928 namespace test_final_override
5931 struct Base
5933 virtual ~Base() {}
5934 virtual void f() {}
5937 struct Derived : public Base
5939 virtual ~Derived() override {}
5940 virtual void f() override {}
5945 namespace test_double_right_angle_brackets
5948 template < typename T >
5949 struct check {};
5951 typedef check<void> single_type;
5952 typedef check<check<void>> double_type;
5953 typedef check<check<check<void>>> triple_type;
5954 typedef check<check<check<check<void>>>> quadruple_type;
5958 namespace test_decltype
5964 int a = 1;
5965 decltype(a) b = 2;
5966 return a + b;
5971 namespace test_type_deduction
5974 template < typename T1, typename T2 >
5975 struct is_same
5977 static const bool value = false;
5980 template < typename T >
5981 struct is_same<T, T>
5983 static const bool value = true;
5986 template < typename T1, typename T2 >
5987 auto
5988 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5990 return a1 + a2;
5994 test(const int c, volatile int v)
5996 static_assert(is_same<int, decltype(0)>::value == true, "");
5997 static_assert(is_same<int, decltype(c)>::value == false, "");
5998 static_assert(is_same<int, decltype(v)>::value == false, "");
5999 auto ac = c;
6000 auto av = v;
6001 auto sumi = ac + av + 'x';
6002 auto sumf = ac + av + 1.0;
6003 static_assert(is_same<int, decltype(ac)>::value == true, "");
6004 static_assert(is_same<int, decltype(av)>::value == true, "");
6005 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6006 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6007 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6008 return (sumf > 0.0) ? sumi : add(c, v);
6013 namespace test_noexcept
6016 int f() { return 0; }
6017 int g() noexcept { return 0; }
6019 static_assert(noexcept(f()) == false, "");
6020 static_assert(noexcept(g()) == true, "");
6024 namespace test_constexpr
6027 template < typename CharT >
6028 unsigned long constexpr
6029 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6031 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6034 template < typename CharT >
6035 unsigned long constexpr
6036 strlen_c(const CharT *const s) noexcept
6038 return strlen_c_r(s, 0UL);
6041 static_assert(strlen_c("") == 0UL, "");
6042 static_assert(strlen_c("1") == 1UL, "");
6043 static_assert(strlen_c("example") == 7UL, "");
6044 static_assert(strlen_c("another\0example") == 7UL, "");
6048 namespace test_rvalue_references
6051 template < int N >
6052 struct answer
6054 static constexpr int value = N;
6057 answer<1> f(int&) { return answer<1>(); }
6058 answer<2> f(const int&) { return answer<2>(); }
6059 answer<3> f(int&&) { return answer<3>(); }
6061 void
6062 test()
6064 int i = 0;
6065 const int c = 0;
6066 static_assert(decltype(f(i))::value == 1, "");
6067 static_assert(decltype(f(c))::value == 2, "");
6068 static_assert(decltype(f(0))::value == 3, "");
6073 namespace test_uniform_initialization
6076 struct test
6078 static const int zero {};
6079 static const int one {1};
6082 static_assert(test::zero == 0, "");
6083 static_assert(test::one == 1, "");
6087 namespace test_lambdas
6090 void
6091 test1()
6093 auto lambda1 = [](){};
6094 auto lambda2 = lambda1;
6095 lambda1();
6096 lambda2();
6100 test2()
6102 auto a = [](int i, int j){ return i + j; }(1, 2);
6103 auto b = []() -> int { return '0'; }();
6104 auto c = [=](){ return a + b; }();
6105 auto d = [&](){ return c; }();
6106 auto e = [a, &b](int x) mutable {
6107 const auto identity = [](int y){ return y; };
6108 for (auto i = 0; i < a; ++i)
6109 a += b--;
6110 return x + identity(a + b);
6111 }(0);
6112 return a + b + c + d + e;
6116 test3()
6118 const auto nullary = [](){ return 0; };
6119 const auto unary = [](int x){ return x; };
6120 using nullary_t = decltype(nullary);
6121 using unary_t = decltype(unary);
6122 const auto higher1st = [](nullary_t f){ return f(); };
6123 const auto higher2nd = [unary](nullary_t f1){
6124 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6126 return higher1st(nullary) + higher2nd(nullary)(unary);
6131 namespace test_variadic_templates
6134 template <int...>
6135 struct sum;
6137 template <int N0, int... N1toN>
6138 struct sum<N0, N1toN...>
6140 static constexpr auto value = N0 + sum<N1toN...>::value;
6143 template <>
6144 struct sum<>
6146 static constexpr auto value = 0;
6149 static_assert(sum<>::value == 0, "");
6150 static_assert(sum<1>::value == 1, "");
6151 static_assert(sum<23>::value == 23, "");
6152 static_assert(sum<1, 2>::value == 3, "");
6153 static_assert(sum<5, 5, 11>::value == 21, "");
6154 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6158 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6159 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6160 // because of this.
6161 namespace test_template_alias_sfinae
6164 struct foo {};
6166 template<typename T>
6167 using member = typename T::member_type;
6169 template<typename T>
6170 void func(...) {}
6172 template<typename T>
6173 void func(member<T>*) {}
6175 void test();
6177 void test() { func<foo>(0); }
6181 } // namespace cxx11
6183 #endif // __cplusplus >= 201103L
6187 _ACEOF
6188 if ac_fn_cxx_try_compile "$LINENO"; then :
6189 ax_cv_cxx_compile_cxx11=yes
6190 else
6191 ax_cv_cxx_compile_cxx11=no
6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6196 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6197 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6198 ac_success=yes
6201 if test x$ac_success = xno; then
6202 for alternative in ${ax_cxx_compile_alternatives}; do
6203 switch="-std=gnu++${alternative}"
6204 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6206 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6207 if eval \${$cachevar+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 ac_save_CXX="$CXX"
6211 CXX="$CXX $switch"
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6216 // If the compiler admits that it is not ready for C++11, why torture it?
6217 // Hopefully, this will speed up the test.
6219 #ifndef __cplusplus
6221 #error "This is not a C++ compiler"
6223 #elif __cplusplus < 201103L
6225 #error "This is not a C++11 compiler"
6227 #else
6229 namespace cxx11
6232 namespace test_static_assert
6235 template <typename T>
6236 struct check
6238 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6243 namespace test_final_override
6246 struct Base
6248 virtual ~Base() {}
6249 virtual void f() {}
6252 struct Derived : public Base
6254 virtual ~Derived() override {}
6255 virtual void f() override {}
6260 namespace test_double_right_angle_brackets
6263 template < typename T >
6264 struct check {};
6266 typedef check<void> single_type;
6267 typedef check<check<void>> double_type;
6268 typedef check<check<check<void>>> triple_type;
6269 typedef check<check<check<check<void>>>> quadruple_type;
6273 namespace test_decltype
6279 int a = 1;
6280 decltype(a) b = 2;
6281 return a + b;
6286 namespace test_type_deduction
6289 template < typename T1, typename T2 >
6290 struct is_same
6292 static const bool value = false;
6295 template < typename T >
6296 struct is_same<T, T>
6298 static const bool value = true;
6301 template < typename T1, typename T2 >
6302 auto
6303 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6305 return a1 + a2;
6309 test(const int c, volatile int v)
6311 static_assert(is_same<int, decltype(0)>::value == true, "");
6312 static_assert(is_same<int, decltype(c)>::value == false, "");
6313 static_assert(is_same<int, decltype(v)>::value == false, "");
6314 auto ac = c;
6315 auto av = v;
6316 auto sumi = ac + av + 'x';
6317 auto sumf = ac + av + 1.0;
6318 static_assert(is_same<int, decltype(ac)>::value == true, "");
6319 static_assert(is_same<int, decltype(av)>::value == true, "");
6320 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6321 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6322 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6323 return (sumf > 0.0) ? sumi : add(c, v);
6328 namespace test_noexcept
6331 int f() { return 0; }
6332 int g() noexcept { return 0; }
6334 static_assert(noexcept(f()) == false, "");
6335 static_assert(noexcept(g()) == true, "");
6339 namespace test_constexpr
6342 template < typename CharT >
6343 unsigned long constexpr
6344 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6346 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6349 template < typename CharT >
6350 unsigned long constexpr
6351 strlen_c(const CharT *const s) noexcept
6353 return strlen_c_r(s, 0UL);
6356 static_assert(strlen_c("") == 0UL, "");
6357 static_assert(strlen_c("1") == 1UL, "");
6358 static_assert(strlen_c("example") == 7UL, "");
6359 static_assert(strlen_c("another\0example") == 7UL, "");
6363 namespace test_rvalue_references
6366 template < int N >
6367 struct answer
6369 static constexpr int value = N;
6372 answer<1> f(int&) { return answer<1>(); }
6373 answer<2> f(const int&) { return answer<2>(); }
6374 answer<3> f(int&&) { return answer<3>(); }
6376 void
6377 test()
6379 int i = 0;
6380 const int c = 0;
6381 static_assert(decltype(f(i))::value == 1, "");
6382 static_assert(decltype(f(c))::value == 2, "");
6383 static_assert(decltype(f(0))::value == 3, "");
6388 namespace test_uniform_initialization
6391 struct test
6393 static const int zero {};
6394 static const int one {1};
6397 static_assert(test::zero == 0, "");
6398 static_assert(test::one == 1, "");
6402 namespace test_lambdas
6405 void
6406 test1()
6408 auto lambda1 = [](){};
6409 auto lambda2 = lambda1;
6410 lambda1();
6411 lambda2();
6415 test2()
6417 auto a = [](int i, int j){ return i + j; }(1, 2);
6418 auto b = []() -> int { return '0'; }();
6419 auto c = [=](){ return a + b; }();
6420 auto d = [&](){ return c; }();
6421 auto e = [a, &b](int x) mutable {
6422 const auto identity = [](int y){ return y; };
6423 for (auto i = 0; i < a; ++i)
6424 a += b--;
6425 return x + identity(a + b);
6426 }(0);
6427 return a + b + c + d + e;
6431 test3()
6433 const auto nullary = [](){ return 0; };
6434 const auto unary = [](int x){ return x; };
6435 using nullary_t = decltype(nullary);
6436 using unary_t = decltype(unary);
6437 const auto higher1st = [](nullary_t f){ return f(); };
6438 const auto higher2nd = [unary](nullary_t f1){
6439 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6441 return higher1st(nullary) + higher2nd(nullary)(unary);
6446 namespace test_variadic_templates
6449 template <int...>
6450 struct sum;
6452 template <int N0, int... N1toN>
6453 struct sum<N0, N1toN...>
6455 static constexpr auto value = N0 + sum<N1toN...>::value;
6458 template <>
6459 struct sum<>
6461 static constexpr auto value = 0;
6464 static_assert(sum<>::value == 0, "");
6465 static_assert(sum<1>::value == 1, "");
6466 static_assert(sum<23>::value == 23, "");
6467 static_assert(sum<1, 2>::value == 3, "");
6468 static_assert(sum<5, 5, 11>::value == 21, "");
6469 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6473 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6474 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6475 // because of this.
6476 namespace test_template_alias_sfinae
6479 struct foo {};
6481 template<typename T>
6482 using member = typename T::member_type;
6484 template<typename T>
6485 void func(...) {}
6487 template<typename T>
6488 void func(member<T>*) {}
6490 void test();
6492 void test() { func<foo>(0); }
6496 } // namespace cxx11
6498 #endif // __cplusplus >= 201103L
6502 _ACEOF
6503 if ac_fn_cxx_try_compile "$LINENO"; then :
6504 eval $cachevar=yes
6505 else
6506 eval $cachevar=no
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 CXX="$ac_save_CXX"
6511 eval ac_res=\$$cachevar
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6513 $as_echo "$ac_res" >&6; }
6514 if eval test x\$$cachevar = xyes; then
6515 CXX="$CXX $switch"
6516 if test -n "$CXXCPP" ; then
6517 CXXCPP="$CXXCPP $switch"
6519 ac_success=yes
6520 break
6522 done
6525 if test x$ac_success = xno; then
6526 for alternative in ${ax_cxx_compile_alternatives}; do
6527 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6528 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6530 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6531 if eval \${$cachevar+:} false; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 ac_save_CXX="$CXX"
6535 CXX="$CXX $switch"
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6540 // If the compiler admits that it is not ready for C++11, why torture it?
6541 // Hopefully, this will speed up the test.
6543 #ifndef __cplusplus
6545 #error "This is not a C++ compiler"
6547 #elif __cplusplus < 201103L
6549 #error "This is not a C++11 compiler"
6551 #else
6553 namespace cxx11
6556 namespace test_static_assert
6559 template <typename T>
6560 struct check
6562 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6567 namespace test_final_override
6570 struct Base
6572 virtual ~Base() {}
6573 virtual void f() {}
6576 struct Derived : public Base
6578 virtual ~Derived() override {}
6579 virtual void f() override {}
6584 namespace test_double_right_angle_brackets
6587 template < typename T >
6588 struct check {};
6590 typedef check<void> single_type;
6591 typedef check<check<void>> double_type;
6592 typedef check<check<check<void>>> triple_type;
6593 typedef check<check<check<check<void>>>> quadruple_type;
6597 namespace test_decltype
6603 int a = 1;
6604 decltype(a) b = 2;
6605 return a + b;
6610 namespace test_type_deduction
6613 template < typename T1, typename T2 >
6614 struct is_same
6616 static const bool value = false;
6619 template < typename T >
6620 struct is_same<T, T>
6622 static const bool value = true;
6625 template < typename T1, typename T2 >
6626 auto
6627 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6629 return a1 + a2;
6633 test(const int c, volatile int v)
6635 static_assert(is_same<int, decltype(0)>::value == true, "");
6636 static_assert(is_same<int, decltype(c)>::value == false, "");
6637 static_assert(is_same<int, decltype(v)>::value == false, "");
6638 auto ac = c;
6639 auto av = v;
6640 auto sumi = ac + av + 'x';
6641 auto sumf = ac + av + 1.0;
6642 static_assert(is_same<int, decltype(ac)>::value == true, "");
6643 static_assert(is_same<int, decltype(av)>::value == true, "");
6644 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6645 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6646 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6647 return (sumf > 0.0) ? sumi : add(c, v);
6652 namespace test_noexcept
6655 int f() { return 0; }
6656 int g() noexcept { return 0; }
6658 static_assert(noexcept(f()) == false, "");
6659 static_assert(noexcept(g()) == true, "");
6663 namespace test_constexpr
6666 template < typename CharT >
6667 unsigned long constexpr
6668 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6670 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6673 template < typename CharT >
6674 unsigned long constexpr
6675 strlen_c(const CharT *const s) noexcept
6677 return strlen_c_r(s, 0UL);
6680 static_assert(strlen_c("") == 0UL, "");
6681 static_assert(strlen_c("1") == 1UL, "");
6682 static_assert(strlen_c("example") == 7UL, "");
6683 static_assert(strlen_c("another\0example") == 7UL, "");
6687 namespace test_rvalue_references
6690 template < int N >
6691 struct answer
6693 static constexpr int value = N;
6696 answer<1> f(int&) { return answer<1>(); }
6697 answer<2> f(const int&) { return answer<2>(); }
6698 answer<3> f(int&&) { return answer<3>(); }
6700 void
6701 test()
6703 int i = 0;
6704 const int c = 0;
6705 static_assert(decltype(f(i))::value == 1, "");
6706 static_assert(decltype(f(c))::value == 2, "");
6707 static_assert(decltype(f(0))::value == 3, "");
6712 namespace test_uniform_initialization
6715 struct test
6717 static const int zero {};
6718 static const int one {1};
6721 static_assert(test::zero == 0, "");
6722 static_assert(test::one == 1, "");
6726 namespace test_lambdas
6729 void
6730 test1()
6732 auto lambda1 = [](){};
6733 auto lambda2 = lambda1;
6734 lambda1();
6735 lambda2();
6739 test2()
6741 auto a = [](int i, int j){ return i + j; }(1, 2);
6742 auto b = []() -> int { return '0'; }();
6743 auto c = [=](){ return a + b; }();
6744 auto d = [&](){ return c; }();
6745 auto e = [a, &b](int x) mutable {
6746 const auto identity = [](int y){ return y; };
6747 for (auto i = 0; i < a; ++i)
6748 a += b--;
6749 return x + identity(a + b);
6750 }(0);
6751 return a + b + c + d + e;
6755 test3()
6757 const auto nullary = [](){ return 0; };
6758 const auto unary = [](int x){ return x; };
6759 using nullary_t = decltype(nullary);
6760 using unary_t = decltype(unary);
6761 const auto higher1st = [](nullary_t f){ return f(); };
6762 const auto higher2nd = [unary](nullary_t f1){
6763 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6765 return higher1st(nullary) + higher2nd(nullary)(unary);
6770 namespace test_variadic_templates
6773 template <int...>
6774 struct sum;
6776 template <int N0, int... N1toN>
6777 struct sum<N0, N1toN...>
6779 static constexpr auto value = N0 + sum<N1toN...>::value;
6782 template <>
6783 struct sum<>
6785 static constexpr auto value = 0;
6788 static_assert(sum<>::value == 0, "");
6789 static_assert(sum<1>::value == 1, "");
6790 static_assert(sum<23>::value == 23, "");
6791 static_assert(sum<1, 2>::value == 3, "");
6792 static_assert(sum<5, 5, 11>::value == 21, "");
6793 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6797 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6798 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6799 // because of this.
6800 namespace test_template_alias_sfinae
6803 struct foo {};
6805 template<typename T>
6806 using member = typename T::member_type;
6808 template<typename T>
6809 void func(...) {}
6811 template<typename T>
6812 void func(member<T>*) {}
6814 void test();
6816 void test() { func<foo>(0); }
6820 } // namespace cxx11
6822 #endif // __cplusplus >= 201103L
6826 _ACEOF
6827 if ac_fn_cxx_try_compile "$LINENO"; then :
6828 eval $cachevar=yes
6829 else
6830 eval $cachevar=no
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 CXX="$ac_save_CXX"
6835 eval ac_res=\$$cachevar
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6837 $as_echo "$ac_res" >&6; }
6838 if eval test x\$$cachevar = xyes; then
6839 CXX="$CXX $switch"
6840 if test -n "$CXXCPP" ; then
6841 CXXCPP="$CXXCPP $switch"
6843 ac_success=yes
6844 break
6846 done
6847 if test x$ac_success = xyes; then
6848 break
6850 done
6853 ac_ext=c
6854 ac_cpp='$CPP $CPPFLAGS'
6855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6860 if test x$ac_success = xno; then
6861 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6864 if test x$ac_success = xno; then
6865 HAVE_CXX11=0
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6867 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6868 else
6869 HAVE_CXX11=1
6871 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6877 if test "${build}" != "${host}"; then
6878 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6879 ac_ext=cpp
6880 ac_cpp='$CXXCPP $CPPFLAGS'
6881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6884 ac_success=no
6885 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6886 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6887 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6888 CXX="$CXX_FOR_BUILD"
6889 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6890 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6892 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6893 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6900 // If the compiler admits that it is not ready for C++11, why torture it?
6901 // Hopefully, this will speed up the test.
6903 #ifndef __cplusplus
6905 #error "This is not a C++ compiler"
6907 #elif __cplusplus < 201103L
6909 #error "This is not a C++11 compiler"
6911 #else
6913 namespace cxx11
6916 namespace test_static_assert
6919 template <typename T>
6920 struct check
6922 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6927 namespace test_final_override
6930 struct Base
6932 virtual ~Base() {}
6933 virtual void f() {}
6936 struct Derived : public Base
6938 virtual ~Derived() override {}
6939 virtual void f() override {}
6944 namespace test_double_right_angle_brackets
6947 template < typename T >
6948 struct check {};
6950 typedef check<void> single_type;
6951 typedef check<check<void>> double_type;
6952 typedef check<check<check<void>>> triple_type;
6953 typedef check<check<check<check<void>>>> quadruple_type;
6957 namespace test_decltype
6963 int a = 1;
6964 decltype(a) b = 2;
6965 return a + b;
6970 namespace test_type_deduction
6973 template < typename T1, typename T2 >
6974 struct is_same
6976 static const bool value = false;
6979 template < typename T >
6980 struct is_same<T, T>
6982 static const bool value = true;
6985 template < typename T1, typename T2 >
6986 auto
6987 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6989 return a1 + a2;
6993 test(const int c, volatile int v)
6995 static_assert(is_same<int, decltype(0)>::value == true, "");
6996 static_assert(is_same<int, decltype(c)>::value == false, "");
6997 static_assert(is_same<int, decltype(v)>::value == false, "");
6998 auto ac = c;
6999 auto av = v;
7000 auto sumi = ac + av + 'x';
7001 auto sumf = ac + av + 1.0;
7002 static_assert(is_same<int, decltype(ac)>::value == true, "");
7003 static_assert(is_same<int, decltype(av)>::value == true, "");
7004 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7005 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7006 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7007 return (sumf > 0.0) ? sumi : add(c, v);
7012 namespace test_noexcept
7015 int f() { return 0; }
7016 int g() noexcept { return 0; }
7018 static_assert(noexcept(f()) == false, "");
7019 static_assert(noexcept(g()) == true, "");
7023 namespace test_constexpr
7026 template < typename CharT >
7027 unsigned long constexpr
7028 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7030 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7033 template < typename CharT >
7034 unsigned long constexpr
7035 strlen_c(const CharT *const s) noexcept
7037 return strlen_c_r(s, 0UL);
7040 static_assert(strlen_c("") == 0UL, "");
7041 static_assert(strlen_c("1") == 1UL, "");
7042 static_assert(strlen_c("example") == 7UL, "");
7043 static_assert(strlen_c("another\0example") == 7UL, "");
7047 namespace test_rvalue_references
7050 template < int N >
7051 struct answer
7053 static constexpr int value = N;
7056 answer<1> f(int&) { return answer<1>(); }
7057 answer<2> f(const int&) { return answer<2>(); }
7058 answer<3> f(int&&) { return answer<3>(); }
7060 void
7061 test()
7063 int i = 0;
7064 const int c = 0;
7065 static_assert(decltype(f(i))::value == 1, "");
7066 static_assert(decltype(f(c))::value == 2, "");
7067 static_assert(decltype(f(0))::value == 3, "");
7072 namespace test_uniform_initialization
7075 struct test
7077 static const int zero {};
7078 static const int one {1};
7081 static_assert(test::zero == 0, "");
7082 static_assert(test::one == 1, "");
7086 namespace test_lambdas
7089 void
7090 test1()
7092 auto lambda1 = [](){};
7093 auto lambda2 = lambda1;
7094 lambda1();
7095 lambda2();
7099 test2()
7101 auto a = [](int i, int j){ return i + j; }(1, 2);
7102 auto b = []() -> int { return '0'; }();
7103 auto c = [=](){ return a + b; }();
7104 auto d = [&](){ return c; }();
7105 auto e = [a, &b](int x) mutable {
7106 const auto identity = [](int y){ return y; };
7107 for (auto i = 0; i < a; ++i)
7108 a += b--;
7109 return x + identity(a + b);
7110 }(0);
7111 return a + b + c + d + e;
7115 test3()
7117 const auto nullary = [](){ return 0; };
7118 const auto unary = [](int x){ return x; };
7119 using nullary_t = decltype(nullary);
7120 using unary_t = decltype(unary);
7121 const auto higher1st = [](nullary_t f){ return f(); };
7122 const auto higher2nd = [unary](nullary_t f1){
7123 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7125 return higher1st(nullary) + higher2nd(nullary)(unary);
7130 namespace test_variadic_templates
7133 template <int...>
7134 struct sum;
7136 template <int N0, int... N1toN>
7137 struct sum<N0, N1toN...>
7139 static constexpr auto value = N0 + sum<N1toN...>::value;
7142 template <>
7143 struct sum<>
7145 static constexpr auto value = 0;
7148 static_assert(sum<>::value == 0, "");
7149 static_assert(sum<1>::value == 1, "");
7150 static_assert(sum<23>::value == 23, "");
7151 static_assert(sum<1, 2>::value == 3, "");
7152 static_assert(sum<5, 5, 11>::value == 21, "");
7153 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7157 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7158 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7159 // because of this.
7160 namespace test_template_alias_sfinae
7163 struct foo {};
7165 template<typename T>
7166 using member = typename T::member_type;
7168 template<typename T>
7169 void func(...) {}
7171 template<typename T>
7172 void func(member<T>*) {}
7174 void test();
7176 void test() { func<foo>(0); }
7180 } // namespace cxx11
7182 #endif // __cplusplus >= 201103L
7186 _ACEOF
7187 if ac_fn_cxx_try_compile "$LINENO"; then :
7188 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7189 else
7190 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7195 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7196 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7197 ac_success=yes
7200 if test x$ac_success = xno; then
7201 for alternative in ${ax_cxx_compile_alternatives}; do
7202 switch="-std=gnu++${alternative}"
7203 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7205 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7206 if eval \${$cachevar+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 ac_save_CXX="$CXX"
7210 CXX="$CXX $switch"
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7215 // If the compiler admits that it is not ready for C++11, why torture it?
7216 // Hopefully, this will speed up the test.
7218 #ifndef __cplusplus
7220 #error "This is not a C++ compiler"
7222 #elif __cplusplus < 201103L
7224 #error "This is not a C++11 compiler"
7226 #else
7228 namespace cxx11
7231 namespace test_static_assert
7234 template <typename T>
7235 struct check
7237 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7242 namespace test_final_override
7245 struct Base
7247 virtual ~Base() {}
7248 virtual void f() {}
7251 struct Derived : public Base
7253 virtual ~Derived() override {}
7254 virtual void f() override {}
7259 namespace test_double_right_angle_brackets
7262 template < typename T >
7263 struct check {};
7265 typedef check<void> single_type;
7266 typedef check<check<void>> double_type;
7267 typedef check<check<check<void>>> triple_type;
7268 typedef check<check<check<check<void>>>> quadruple_type;
7272 namespace test_decltype
7278 int a = 1;
7279 decltype(a) b = 2;
7280 return a + b;
7285 namespace test_type_deduction
7288 template < typename T1, typename T2 >
7289 struct is_same
7291 static const bool value = false;
7294 template < typename T >
7295 struct is_same<T, T>
7297 static const bool value = true;
7300 template < typename T1, typename T2 >
7301 auto
7302 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7304 return a1 + a2;
7308 test(const int c, volatile int v)
7310 static_assert(is_same<int, decltype(0)>::value == true, "");
7311 static_assert(is_same<int, decltype(c)>::value == false, "");
7312 static_assert(is_same<int, decltype(v)>::value == false, "");
7313 auto ac = c;
7314 auto av = v;
7315 auto sumi = ac + av + 'x';
7316 auto sumf = ac + av + 1.0;
7317 static_assert(is_same<int, decltype(ac)>::value == true, "");
7318 static_assert(is_same<int, decltype(av)>::value == true, "");
7319 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7320 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7321 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7322 return (sumf > 0.0) ? sumi : add(c, v);
7327 namespace test_noexcept
7330 int f() { return 0; }
7331 int g() noexcept { return 0; }
7333 static_assert(noexcept(f()) == false, "");
7334 static_assert(noexcept(g()) == true, "");
7338 namespace test_constexpr
7341 template < typename CharT >
7342 unsigned long constexpr
7343 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7345 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7348 template < typename CharT >
7349 unsigned long constexpr
7350 strlen_c(const CharT *const s) noexcept
7352 return strlen_c_r(s, 0UL);
7355 static_assert(strlen_c("") == 0UL, "");
7356 static_assert(strlen_c("1") == 1UL, "");
7357 static_assert(strlen_c("example") == 7UL, "");
7358 static_assert(strlen_c("another\0example") == 7UL, "");
7362 namespace test_rvalue_references
7365 template < int N >
7366 struct answer
7368 static constexpr int value = N;
7371 answer<1> f(int&) { return answer<1>(); }
7372 answer<2> f(const int&) { return answer<2>(); }
7373 answer<3> f(int&&) { return answer<3>(); }
7375 void
7376 test()
7378 int i = 0;
7379 const int c = 0;
7380 static_assert(decltype(f(i))::value == 1, "");
7381 static_assert(decltype(f(c))::value == 2, "");
7382 static_assert(decltype(f(0))::value == 3, "");
7387 namespace test_uniform_initialization
7390 struct test
7392 static const int zero {};
7393 static const int one {1};
7396 static_assert(test::zero == 0, "");
7397 static_assert(test::one == 1, "");
7401 namespace test_lambdas
7404 void
7405 test1()
7407 auto lambda1 = [](){};
7408 auto lambda2 = lambda1;
7409 lambda1();
7410 lambda2();
7414 test2()
7416 auto a = [](int i, int j){ return i + j; }(1, 2);
7417 auto b = []() -> int { return '0'; }();
7418 auto c = [=](){ return a + b; }();
7419 auto d = [&](){ return c; }();
7420 auto e = [a, &b](int x) mutable {
7421 const auto identity = [](int y){ return y; };
7422 for (auto i = 0; i < a; ++i)
7423 a += b--;
7424 return x + identity(a + b);
7425 }(0);
7426 return a + b + c + d + e;
7430 test3()
7432 const auto nullary = [](){ return 0; };
7433 const auto unary = [](int x){ return x; };
7434 using nullary_t = decltype(nullary);
7435 using unary_t = decltype(unary);
7436 const auto higher1st = [](nullary_t f){ return f(); };
7437 const auto higher2nd = [unary](nullary_t f1){
7438 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7440 return higher1st(nullary) + higher2nd(nullary)(unary);
7445 namespace test_variadic_templates
7448 template <int...>
7449 struct sum;
7451 template <int N0, int... N1toN>
7452 struct sum<N0, N1toN...>
7454 static constexpr auto value = N0 + sum<N1toN...>::value;
7457 template <>
7458 struct sum<>
7460 static constexpr auto value = 0;
7463 static_assert(sum<>::value == 0, "");
7464 static_assert(sum<1>::value == 1, "");
7465 static_assert(sum<23>::value == 23, "");
7466 static_assert(sum<1, 2>::value == 3, "");
7467 static_assert(sum<5, 5, 11>::value == 21, "");
7468 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7472 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7473 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7474 // because of this.
7475 namespace test_template_alias_sfinae
7478 struct foo {};
7480 template<typename T>
7481 using member = typename T::member_type;
7483 template<typename T>
7484 void func(...) {}
7486 template<typename T>
7487 void func(member<T>*) {}
7489 void test();
7491 void test() { func<foo>(0); }
7495 } // namespace cxx11
7497 #endif // __cplusplus >= 201103L
7501 _ACEOF
7502 if ac_fn_cxx_try_compile "$LINENO"; then :
7503 eval $cachevar=yes
7504 else
7505 eval $cachevar=no
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 CXX="$ac_save_CXX"
7510 eval ac_res=\$$cachevar
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7512 $as_echo "$ac_res" >&6; }
7513 if eval test x\$$cachevar = xyes; then
7514 CXX="$CXX $switch"
7515 if test -n "$CXXCPP" ; then
7516 CXXCPP="$CXXCPP $switch"
7518 ac_success=yes
7519 break
7521 done
7524 if test x$ac_success = xno; then
7525 for alternative in ${ax_cxx_compile_alternatives}; do
7526 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7527 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7529 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7530 if eval \${$cachevar+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 ac_save_CXX="$CXX"
7534 CXX="$CXX $switch"
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7539 // If the compiler admits that it is not ready for C++11, why torture it?
7540 // Hopefully, this will speed up the test.
7542 #ifndef __cplusplus
7544 #error "This is not a C++ compiler"
7546 #elif __cplusplus < 201103L
7548 #error "This is not a C++11 compiler"
7550 #else
7552 namespace cxx11
7555 namespace test_static_assert
7558 template <typename T>
7559 struct check
7561 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7566 namespace test_final_override
7569 struct Base
7571 virtual ~Base() {}
7572 virtual void f() {}
7575 struct Derived : public Base
7577 virtual ~Derived() override {}
7578 virtual void f() override {}
7583 namespace test_double_right_angle_brackets
7586 template < typename T >
7587 struct check {};
7589 typedef check<void> single_type;
7590 typedef check<check<void>> double_type;
7591 typedef check<check<check<void>>> triple_type;
7592 typedef check<check<check<check<void>>>> quadruple_type;
7596 namespace test_decltype
7602 int a = 1;
7603 decltype(a) b = 2;
7604 return a + b;
7609 namespace test_type_deduction
7612 template < typename T1, typename T2 >
7613 struct is_same
7615 static const bool value = false;
7618 template < typename T >
7619 struct is_same<T, T>
7621 static const bool value = true;
7624 template < typename T1, typename T2 >
7625 auto
7626 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7628 return a1 + a2;
7632 test(const int c, volatile int v)
7634 static_assert(is_same<int, decltype(0)>::value == true, "");
7635 static_assert(is_same<int, decltype(c)>::value == false, "");
7636 static_assert(is_same<int, decltype(v)>::value == false, "");
7637 auto ac = c;
7638 auto av = v;
7639 auto sumi = ac + av + 'x';
7640 auto sumf = ac + av + 1.0;
7641 static_assert(is_same<int, decltype(ac)>::value == true, "");
7642 static_assert(is_same<int, decltype(av)>::value == true, "");
7643 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7644 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7645 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7646 return (sumf > 0.0) ? sumi : add(c, v);
7651 namespace test_noexcept
7654 int f() { return 0; }
7655 int g() noexcept { return 0; }
7657 static_assert(noexcept(f()) == false, "");
7658 static_assert(noexcept(g()) == true, "");
7662 namespace test_constexpr
7665 template < typename CharT >
7666 unsigned long constexpr
7667 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7669 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7672 template < typename CharT >
7673 unsigned long constexpr
7674 strlen_c(const CharT *const s) noexcept
7676 return strlen_c_r(s, 0UL);
7679 static_assert(strlen_c("") == 0UL, "");
7680 static_assert(strlen_c("1") == 1UL, "");
7681 static_assert(strlen_c("example") == 7UL, "");
7682 static_assert(strlen_c("another\0example") == 7UL, "");
7686 namespace test_rvalue_references
7689 template < int N >
7690 struct answer
7692 static constexpr int value = N;
7695 answer<1> f(int&) { return answer<1>(); }
7696 answer<2> f(const int&) { return answer<2>(); }
7697 answer<3> f(int&&) { return answer<3>(); }
7699 void
7700 test()
7702 int i = 0;
7703 const int c = 0;
7704 static_assert(decltype(f(i))::value == 1, "");
7705 static_assert(decltype(f(c))::value == 2, "");
7706 static_assert(decltype(f(0))::value == 3, "");
7711 namespace test_uniform_initialization
7714 struct test
7716 static const int zero {};
7717 static const int one {1};
7720 static_assert(test::zero == 0, "");
7721 static_assert(test::one == 1, "");
7725 namespace test_lambdas
7728 void
7729 test1()
7731 auto lambda1 = [](){};
7732 auto lambda2 = lambda1;
7733 lambda1();
7734 lambda2();
7738 test2()
7740 auto a = [](int i, int j){ return i + j; }(1, 2);
7741 auto b = []() -> int { return '0'; }();
7742 auto c = [=](){ return a + b; }();
7743 auto d = [&](){ return c; }();
7744 auto e = [a, &b](int x) mutable {
7745 const auto identity = [](int y){ return y; };
7746 for (auto i = 0; i < a; ++i)
7747 a += b--;
7748 return x + identity(a + b);
7749 }(0);
7750 return a + b + c + d + e;
7754 test3()
7756 const auto nullary = [](){ return 0; };
7757 const auto unary = [](int x){ return x; };
7758 using nullary_t = decltype(nullary);
7759 using unary_t = decltype(unary);
7760 const auto higher1st = [](nullary_t f){ return f(); };
7761 const auto higher2nd = [unary](nullary_t f1){
7762 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7764 return higher1st(nullary) + higher2nd(nullary)(unary);
7769 namespace test_variadic_templates
7772 template <int...>
7773 struct sum;
7775 template <int N0, int... N1toN>
7776 struct sum<N0, N1toN...>
7778 static constexpr auto value = N0 + sum<N1toN...>::value;
7781 template <>
7782 struct sum<>
7784 static constexpr auto value = 0;
7787 static_assert(sum<>::value == 0, "");
7788 static_assert(sum<1>::value == 1, "");
7789 static_assert(sum<23>::value == 23, "");
7790 static_assert(sum<1, 2>::value == 3, "");
7791 static_assert(sum<5, 5, 11>::value == 21, "");
7792 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7796 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7797 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7798 // because of this.
7799 namespace test_template_alias_sfinae
7802 struct foo {};
7804 template<typename T>
7805 using member = typename T::member_type;
7807 template<typename T>
7808 void func(...) {}
7810 template<typename T>
7811 void func(member<T>*) {}
7813 void test();
7815 void test() { func<foo>(0); }
7819 } // namespace cxx11
7821 #endif // __cplusplus >= 201103L
7825 _ACEOF
7826 if ac_fn_cxx_try_compile "$LINENO"; then :
7827 eval $cachevar=yes
7828 else
7829 eval $cachevar=no
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 CXX="$ac_save_CXX"
7834 eval ac_res=\$$cachevar
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7836 $as_echo "$ac_res" >&6; }
7837 if eval test x\$$cachevar = xyes; then
7838 CXX="$CXX $switch"
7839 if test -n "$CXXCPP" ; then
7840 CXXCPP="$CXXCPP $switch"
7842 ac_success=yes
7843 break
7845 done
7846 if test x$ac_success = xyes; then
7847 break
7849 done
7851 CXX_FOR_BUILD="$CXX"
7852 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7853 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7854 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7855 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7856 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7857 ac_ext=c
7858 ac_cpp='$CPP $CPPFLAGS'
7859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7864 if test x$ac_success = xno; then
7865 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7868 if test x$ac_success = xno; then
7869 HAVE_CXX11_FOR_BUILD=0
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7871 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7872 else
7873 HAVE_CXX11_FOR_BUILD=1
7875 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7883 # Check whether --enable-pgo-build was given.
7884 if test "${enable_pgo_build+set}" = set; then :
7885 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7886 else
7887 enable_pgo_build=no
7891 # Issue errors and warnings for invalid/strange PGO build combinations.
7892 case "$have_compiler:$host:$target:$enable_pgo_build" in
7893 *:*:*:no) ;;
7895 # Allow the PGO build only if we aren't building a compiler and
7896 # we are in a native configuration.
7897 no:$build:$build:yes | no:$build:$build:lto) ;;
7899 # Disallow the PGO bootstrap if we are building a compiler.
7900 yes:*:*:yes | yes:*:*:lto)
7901 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7904 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7906 esac
7908 if test "$enable_pgo_build" != "no"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7910 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7911 old_CFLAGS="$CFLAGS"
7912 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7913 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 int foo;
7918 _ACEOF
7919 if ac_fn_c_try_compile "$LINENO"; then :
7921 else
7922 PGO_BUILD_GEN_CFLAGS=
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 CFLAGS="$old_CFLAGS"
7926 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7928 $as_echo "yes" >&6; }
7929 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7936 if test "$enable_pgo_build" = "lto"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7938 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7939 old_CFLAGS="$CFLAGS"
7940 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7941 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7944 int foo;
7945 _ACEOF
7946 if ac_fn_c_try_compile "$LINENO"; then :
7948 else
7949 PGO_BUILD_LTO_CFLAGS=
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 CFLAGS="$old_CFLAGS"
7953 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7955 $as_echo "yes" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7960 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7968 # Used for setting $lt_cv_objdir
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7970 $as_echo_n "checking for objdir... " >&6; }
7971 if ${lt_cv_objdir+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 rm -f .libs 2>/dev/null
7975 mkdir .libs 2>/dev/null
7976 if test -d .libs; then
7977 lt_cv_objdir=.libs
7978 else
7979 # MS-DOS does not allow filenames that begin with a dot.
7980 lt_cv_objdir=_libs
7982 rmdir .libs 2>/dev/null
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7985 $as_echo "$lt_cv_objdir" >&6; }
7986 objdir=$lt_cv_objdir
7992 cat >>confdefs.h <<_ACEOF
7993 #define LT_OBJDIR "$lt_cv_objdir/"
7994 _ACEOF
7998 # Check for GMP, MPFR and MPC
7999 require_gmp=no
8000 require_mpc=no
8001 if test -d ${srcdir}/gcc ; then
8002 require_gmp=yes
8003 require_mpc=yes
8005 if test -d ${srcdir}/gdb ; then
8006 if test "x$enable_gdb" != xno; then
8007 require_gmp=yes
8011 gmplibs="-lmpfr -lgmp"
8012 if test x"$require_mpc" = "xyes" ; then
8013 gmplibs="-lmpc $gmplibs"
8015 gmpinc=
8016 have_gmp=no
8018 # Specify a location for mpc
8019 # check for this first so it ends up on the link line before mpfr.
8021 # Check whether --with-mpc was given.
8022 if test "${with_mpc+set}" = set; then :
8023 withval=$with_mpc;
8027 # Check whether --with-mpc-include was given.
8028 if test "${with_mpc_include+set}" = set; then :
8029 withval=$with_mpc_include;
8033 # Check whether --with-mpc-lib was given.
8034 if test "${with_mpc_lib+set}" = set; then :
8035 withval=$with_mpc_lib;
8039 if test "x$with_mpc" != x; then
8040 gmplibs="-L$with_mpc/lib $gmplibs"
8041 gmpinc="-I$with_mpc/include $gmpinc"
8043 if test "x$with_mpc_include" != x; then
8044 gmpinc="-I$with_mpc_include $gmpinc"
8046 if test "x$with_mpc_lib" != x; then
8047 gmplibs="-L$with_mpc_lib $gmplibs"
8049 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8050 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8051 gmpinc='-I$$s/mpc/src '"$gmpinc"
8052 # Do not test the mpc version. Assume that it is sufficient, since
8053 # it is in the source tree, and the library has not been built yet
8054 # but it would be included on the link line in the version check below
8055 # hence making the test fail.
8056 have_gmp=yes
8059 # Specify a location for mpfr
8060 # check for this first so it ends up on the link line before gmp.
8062 # Check whether --with-mpfr was given.
8063 if test "${with_mpfr+set}" = set; then :
8064 withval=$with_mpfr;
8068 # Check whether --with-mpfr-include was given.
8069 if test "${with_mpfr_include+set}" = set; then :
8070 withval=$with_mpfr_include;
8074 # Check whether --with-mpfr-lib was given.
8075 if test "${with_mpfr_lib+set}" = set; then :
8076 withval=$with_mpfr_lib;
8080 if test "x$with_mpfr" != x; then
8081 gmplibs="-L$with_mpfr/lib $gmplibs"
8082 gmpinc="-I$with_mpfr/include $gmpinc"
8084 if test "x$with_mpfr_include" != x; then
8085 gmpinc="-I$with_mpfr_include $gmpinc"
8087 if test "x$with_mpfr_lib" != x; then
8088 gmplibs="-L$with_mpfr_lib $gmplibs"
8090 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8091 # MPFR v3.1.0 moved the sources into a src sub-directory.
8092 if ! test -d ${srcdir}/mpfr/src; then
8093 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8095 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8096 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8097 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8098 # Do not test the mpfr version. Assume that it is sufficient, since
8099 # it is in the source tree, and the library has not been built yet
8100 # but it would be included on the link line in the version check below
8101 # hence making the test fail.
8102 have_gmp=yes
8105 # Specify a location for gmp
8107 # Check whether --with-gmp was given.
8108 if test "${with_gmp+set}" = set; then :
8109 withval=$with_gmp;
8113 # Check whether --with-gmp-include was given.
8114 if test "${with_gmp_include+set}" = set; then :
8115 withval=$with_gmp_include;
8119 # Check whether --with-gmp-lib was given.
8120 if test "${with_gmp_lib+set}" = set; then :
8121 withval=$with_gmp_lib;
8126 if test "x$with_gmp" != x; then
8127 gmplibs="-L$with_gmp/lib $gmplibs"
8128 gmpinc="-I$with_gmp/include $gmpinc"
8130 if test "x$with_gmp_include" != x; then
8131 gmpinc="-I$with_gmp_include $gmpinc"
8133 if test "x$with_gmp_lib" != x; then
8134 gmplibs="-L$with_gmp_lib $gmplibs"
8136 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8137 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8138 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8139 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8140 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8141 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8142 # Do not test the gmp version. Assume that it is sufficient, since
8143 # it is in the source tree, and the library has not been built yet
8144 # but it would be included on the link line in the version check below
8145 # hence making the test fail.
8146 have_gmp=yes
8149 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8150 have_gmp=yes
8151 saved_CFLAGS="$CFLAGS"
8152 CFLAGS="$CFLAGS $gmpinc"
8153 # Check for the recommended and required versions of GMP.
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8155 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158 #include "gmp.h"
8160 main ()
8163 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8164 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8165 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8166 choke me
8167 #endif
8170 return 0;
8172 _ACEOF
8173 if ac_fn_c_try_compile "$LINENO"; then :
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #include <gmp.h>
8178 main ()
8181 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8182 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8183 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8184 choke me
8185 #endif
8188 return 0;
8190 _ACEOF
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8193 $as_echo "yes" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8196 $as_echo "buggy but acceptable" >&6; }
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 else
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }; have_gmp=no
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 # If we have GMP, check the MPFR version.
8206 if test x"$have_gmp" = xyes; then
8207 # Check for the recommended and required versions of MPFR.
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8209 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8212 #include <gmp.h>
8213 #include <mpfr.h>
8215 main ()
8218 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8219 choke me
8220 #endif
8223 return 0;
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8229 #include <gmp.h>
8230 #include <mpfr.h>
8232 main ()
8235 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8236 choke me
8237 #endif
8240 return 0;
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8245 $as_echo "yes" >&6; }
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8248 $as_echo "buggy but acceptable" >&6; }
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 else
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }; have_gmp=no
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 # Check for the MPC header version.
8259 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8260 # Check for the recommended and required versions of MPC.
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8262 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265 #include <mpc.h>
8267 main ()
8270 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8271 choke me
8272 #endif
8275 return 0;
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281 #include <mpc.h>
8283 main ()
8286 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8287 choke me
8288 #endif
8291 return 0;
8293 _ACEOF
8294 if ac_fn_c_try_compile "$LINENO"; then :
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8296 $as_echo "yes" >&6; }
8297 else
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8299 $as_echo "buggy but acceptable" >&6; }
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }; have_gmp=no
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 # Now check the MPFR library.
8310 if test x"$have_gmp" = xyes; then
8311 saved_LIBS="$LIBS"
8312 LIBS="$LIBS $gmplibs"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8314 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317 #include <mpfr.h>
8319 main ()
8322 mpfr_t n;
8323 mpfr_t x;
8324 int t;
8325 mpfr_init (n);
8326 mpfr_init (x);
8327 mpfr_atan2 (n, n, x, MPFR_RNDN);
8328 mpfr_erfc (n, x, MPFR_RNDN);
8329 mpfr_subnormalize (x, t, MPFR_RNDN);
8330 mpfr_clear(n);
8331 mpfr_clear(x);
8334 return 0;
8336 _ACEOF
8337 if ac_fn_c_try_link "$LINENO"; then :
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8339 $as_echo "yes" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }; have_gmp=no
8344 rm -f core conftest.err conftest.$ac_objext \
8345 conftest$ac_exeext conftest.$ac_ext
8346 LIBS="$saved_LIBS"
8349 # Now check the MPC library
8350 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8351 saved_LIBS="$LIBS"
8352 LIBS="$LIBS $gmplibs"
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8354 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 #include <mpc.h>
8359 main ()
8362 mpc_t c;
8363 mpc_init2 (c, 53);
8364 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8365 mpc_cosh (c, c, MPC_RNDNN);
8366 mpc_pow (c, c, c, MPC_RNDNN);
8367 mpc_acosh (c, c, MPC_RNDNN);
8368 mpc_clear (c);
8371 return 0;
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8376 $as_echo "yes" >&6; }
8377 else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }; have_gmp=no
8381 rm -f core conftest.err conftest.$ac_objext \
8382 conftest$ac_exeext conftest.$ac_ext
8383 LIBS="$saved_LIBS"
8386 CFLAGS="$saved_CFLAGS"
8388 # The library versions listed in the error message below should match
8389 # the HARD-minimums enforced above.
8390 if test x$have_gmp != xyes; then
8391 if test -d ${srcdir}/gcc ; then
8392 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8393 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8394 their locations. Source code for these libraries can be found at
8395 their respective hosting sites as well as at
8396 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8397 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8398 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8399 make sure that you have installed both the libraries and the header
8400 files. They may be located in separate packages." "$LINENO" 5
8401 else
8402 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8403 Try the --with-gmp and/or --with-mpfr options to specify
8404 their locations. If you obtained GMP and/or MPFR from a vendor
8405 distribution package, make sure that you have installed both the libraries
8406 and the header files. They may be located in separate packages." "$LINENO" 5
8411 # Flags needed for both GMP, MPFR and/or MPC.
8419 # Libraries to use for stage1 or when not bootstrapping.
8421 # Check whether --with-stage1-libs was given.
8422 if test "${with_stage1_libs+set}" = set; then :
8423 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8424 stage1_libs=
8425 else
8426 stage1_libs=$withval
8428 else
8429 stage1_libs=
8434 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8435 # default is yes if gcc is being built; no otherwise. The reason for
8436 # this default is that gdb is sometimes linked against GNU Source
8437 # Highlight, which is a shared library that uses C++ exceptions. In
8438 # this case, -static-libstdc++ will cause crashes.
8440 # Check whether --with-static-standard-libraries was given.
8441 if test "${with_static_standard_libraries+set}" = set; then :
8442 withval=$with_static_standard_libraries;
8443 else
8444 with_static_standard_libraries=auto
8447 if test "$with_static_standard_libraries" = auto; then
8448 with_static_standard_libraries=$have_compiler
8451 # Linker flags to use for stage1 or when not bootstrapping.
8453 # Check whether --with-stage1-ldflags was given.
8454 if test "${with_stage1_ldflags+set}" = set; then :
8455 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8456 stage1_ldflags=
8457 else
8458 stage1_ldflags=$withval
8460 else
8461 stage1_ldflags=
8462 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8463 # if supported. But if the user explicitly specified the libraries to use,
8464 # trust that they are doing what they want.
8465 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8466 -a "$have_static_libs" = yes; then
8467 stage1_ldflags="-static-libstdc++ -static-libgcc"
8473 # Libraries to use for stage2 and later builds.
8475 # Check whether --with-boot-libs was given.
8476 if test "${with_boot_libs+set}" = set; then :
8477 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8478 poststage1_libs=
8479 else
8480 poststage1_libs=$withval
8482 else
8483 poststage1_libs=
8488 # Linker flags to use for stage2 and later builds.
8490 # Check whether --with-boot-ldflags was given.
8491 if test "${with_boot_ldflags+set}" = set; then :
8492 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8493 poststage1_ldflags=
8494 else
8495 poststage1_ldflags=$withval
8497 else
8498 poststage1_ldflags=
8499 # In stages 2 and 3, default to linking libstdc++ and libgcc
8500 # statically. But if the user explicitly specified the libraries to
8501 # use, trust that they are doing what they want.
8502 if test "$poststage1_libs" = ""; then
8503 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8509 # GCC GRAPHITE dependency isl.
8510 # Basic setup is inlined here, actual checks are in config/isl.m4
8513 # Check whether --with-isl was given.
8514 if test "${with_isl+set}" = set; then :
8515 withval=$with_isl;
8519 # Treat --without-isl as a request to disable
8520 # GRAPHITE support and skip all following checks.
8521 if test "x$with_isl" != "xno"; then
8522 # Check for isl
8525 # Check whether --with-isl-include was given.
8526 if test "${with_isl_include+set}" = set; then :
8527 withval=$with_isl_include;
8531 # Check whether --with-isl-lib was given.
8532 if test "${with_isl_lib+set}" = set; then :
8533 withval=$with_isl_lib;
8537 # Check whether --enable-isl-version-check was given.
8538 if test "${enable_isl_version_check+set}" = set; then :
8539 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8540 else
8541 ENABLE_ISL_CHECK=yes
8545 # Initialize isllibs and islinc.
8546 case $with_isl in
8548 isllibs=
8549 islinc=
8551 "" | yes)
8554 isllibs="-L$with_isl/lib"
8555 islinc="-I$with_isl/include"
8557 esac
8558 if test "x${with_isl_include}" != x ; then
8559 islinc="-I$with_isl_include"
8561 if test "x${with_isl_lib}" != x; then
8562 isllibs="-L$with_isl_lib"
8564 if test "x${islinc}" = x && test "x${isllibs}" = x \
8565 && test -d ${srcdir}/isl; then
8566 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8567 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8568 ENABLE_ISL_CHECK=no
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8570 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8573 isllibs="${isllibs} -lisl"
8577 if test "${ENABLE_ISL_CHECK}" = yes ; then
8578 _isl_saved_CFLAGS=$CFLAGS
8579 _isl_saved_LDFLAGS=$LDFLAGS
8580 _isl_saved_LIBS=$LIBS
8582 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8583 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8584 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8587 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590 #include <isl/schedule.h>
8592 main ()
8594 isl_options_set_schedule_serialize_sccs (NULL, 0);
8596 return 0;
8598 _ACEOF
8599 if ac_fn_c_try_link "$LINENO"; then :
8600 gcc_cv_isl=yes
8601 else
8602 gcc_cv_isl=no
8604 rm -f core conftest.err conftest.$ac_objext \
8605 conftest$ac_exeext conftest.$ac_ext
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8607 $as_echo "$gcc_cv_isl" >&6; }
8609 if test "${gcc_cv_isl}" = no ; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8611 $as_echo "required isl version is 0.15 or later" >&6; }
8614 CFLAGS=$_isl_saved_CFLAGS
8615 LDFLAGS=$_isl_saved_LDFLAGS
8616 LIBS=$_isl_saved_LIBS
8624 if test "x${with_isl}" = xno; then
8625 graphite_requested=no
8626 elif test "x${with_isl}" != x \
8627 || test "x${with_isl_include}" != x \
8628 || test "x${with_isl_lib}" != x ; then
8629 graphite_requested=yes
8630 else
8631 graphite_requested=no
8636 if test "${gcc_cv_isl}" = no ; then
8637 isllibs=
8638 islinc=
8641 if test "${graphite_requested}" = yes \
8642 && test "x${isllibs}" = x \
8643 && test "x${islinc}" = x ; then
8645 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8651 # If the isl check failed, disable builds of in-tree variant of isl
8652 if test "x$with_isl" = xno ||
8653 test "x$gcc_cv_isl" = xno; then
8654 noconfigdirs="$noconfigdirs isl"
8655 islinc=
8661 # Check for LTO support.
8662 # Check whether --enable-lto was given.
8663 if test "${enable_lto+set}" = set; then :
8664 enableval=$enable_lto; enable_lto=$enableval
8665 else
8666 enable_lto=yes; default_enable_lto=yes
8673 target_elf=no
8674 case $target in
8675 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8676 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8677 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8678 nvptx-*-none)
8679 target_elf=no
8682 target_elf=yes
8684 esac
8686 if test $target_elf = yes; then :
8687 # ELF platforms build the lto-plugin always.
8688 build_lto_plugin=yes
8690 else
8691 if test x"$default_enable_lto" = x"yes" ; then
8692 case $target in
8693 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8694 # On other non-ELF platforms, LTO has yet to be validated.
8695 *) enable_lto=no ;;
8696 esac
8697 else
8698 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8699 # It would also be nice to check the binutils support, but we don't
8700 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8701 # warn during gcc/ subconfigure; unless you're bootstrapping with
8702 # -flto it won't be needed until after installation anyway.
8703 case $target in
8704 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8705 *) if test x"$enable_lto" = x"yes"; then
8706 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8709 esac
8711 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8712 # Build it unless LTO was explicitly disabled.
8713 case $target in
8714 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8715 *) ;;
8716 esac
8721 # Check whether --enable-linker-plugin-configure-flags was given.
8722 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8723 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8724 else
8725 extra_linker_plugin_configure_flags=
8729 # Check whether --enable-linker-plugin-flags was given.
8730 if test "${enable_linker_plugin_flags+set}" = set; then :
8731 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8732 else
8733 extra_linker_plugin_flags=
8738 # Handle --enable-host-pie
8739 # If host PIE executables are the default (or must be forced on) for some host,
8740 # we must pass that configuration to the gcc directory.
8741 gcc_host_pie=
8742 # Check whether --enable-host-pie was given.
8743 if test "${enable_host_pie+set}" = set; then :
8744 enableval=$enable_host_pie; host_pie=$enableval
8745 case $host in
8746 *-*-darwin2*)
8747 if test x$host_pie != xyes ; then
8748 # for Darwin20+ this is required.
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8750 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8751 host_pie=yes
8752 gcc_host_pie=--enable-host-pie
8753 fi ;;
8754 *) ;;
8755 esac
8756 else
8757 case $host in
8758 *-*-darwin2*)
8759 # Default to PIE (mandatory for aarch64).
8760 host_pie=yes
8761 gcc_host_pie=--enable-host-pie
8763 *) host_pie=no ;;
8764 esac
8771 # Enable --enable-host-shared.
8772 # Checked early to determine whether jit is an 'all' language
8773 # Check whether --enable-host-shared was given.
8774 if test "${enable_host_shared+set}" = set; then :
8775 enableval=$enable_host_shared; host_shared=$enableval
8776 case $host in
8777 x86_64-*-darwin* | aarch64-*-darwin*)
8778 if test x$host_shared != xyes ; then
8779 # PIC is the default, and actually cannot be switched off.
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8781 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8782 host_shared=yes
8783 fi ;;
8784 *-*-darwin*)
8785 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8787 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8788 host_shared=yes
8789 fi ;;
8790 *) ;;
8791 esac
8792 else
8793 case $host in
8794 # 64B x86_64 and Aarch64 Darwin default to PIC.
8795 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8796 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8797 *-*-darwin*) host_shared=$host_pie ;;
8798 *) host_shared=no;;
8799 esac
8805 if test x$host_shared = xyes; then
8806 case $host in
8807 *-*-darwin*)
8808 # Since host shared is the default for 64b Darwin, and also enabled for
8809 # host_pie, ensure that we present the PIE flag when host_pie is active.
8810 if test x$host_pie = xyes; then
8811 PICFLAG=-fPIE
8815 PICFLAG=-fPIC
8817 esac
8818 elif test x$host_pie = xyes; then
8819 PICFLAG=-fPIE
8820 else
8821 PICFLAG=
8826 # If we are building PIC/PIE host executables, and we are building dependent
8827 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8828 # code.
8829 host_libs_picflag=
8830 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8831 host_libs_picflag='--with-pic'
8835 # By default, C and C++ are the only stage 1 languages.
8836 stage1_languages=,c,
8838 # Target libraries that we bootstrap.
8839 bootstrap_target_libs=,target-libgcc,
8841 # Figure out what language subdirectories are present.
8842 # Look if the user specified --enable-languages="..."; if not, use
8843 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8844 # go away some day.
8845 # NB: embedded tabs in this IF block -- do not untabify
8846 if test -d ${srcdir}/gcc; then
8847 if test x"${enable_languages+set}" != xset; then
8848 if test x"${LANGUAGES+set}" = xset; then
8849 enable_languages="${LANGUAGES}"
8850 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8851 else
8852 enable_languages=default
8854 else
8855 if test x"${enable_languages}" = x ||
8856 test x"${enable_languages}" = xyes;
8857 then
8858 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8859 exit 1
8862 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8864 # 'f95' is the old name for the 'fortran' language. We issue a warning
8865 # and make the substitution.
8866 case ,${enable_languages}, in
8867 *,f95,*)
8868 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8869 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8871 esac
8873 # If bootstrapping, C++ must be enabled.
8874 case ",$enable_languages,:$enable_bootstrap" in
8875 *,c++,*:*) ;;
8876 *:yes)
8877 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8878 enable_languages="${enable_languages},c++"
8879 else
8880 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8883 esac
8885 # First scan to see if an enabled language requires some other language.
8886 # We assume that a given config-lang.in will list all the language
8887 # front ends it requires, even if some are required indirectly.
8888 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8889 case ${lang_frag} in
8890 ..) ;;
8891 # The odd quoting in the next line works around
8892 # an apparent bug in bash 1.12 on linux.
8893 ${srcdir}/gcc/[*]/config-lang.in) ;;
8895 # From the config-lang.in, get $language, $lang_requires, and
8896 # $lang_requires_boot_languages.
8897 language=
8898 lang_requires=
8899 lang_requires_boot_languages=
8900 # set srcdir during sourcing lang_frag to the gcc dir.
8901 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8902 # polutes this shell
8903 saved_srcdir=${srcdir}
8904 srcdir=${srcdir}/gcc . ${lang_frag}
8905 srcdir=${saved_srcdir}
8906 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8907 case ,${enable_languages}, in
8908 *,$other,*) ;;
8909 *,default,*) ;;
8910 *,all,*) ;;
8911 *,$language,*)
8912 echo " \`$other' language required by \`$language'; enabling" 1>&2
8913 enable_languages="${enable_languages},${other}"
8915 esac
8916 done
8917 for other in ${lang_requires_boot_languages} ; do
8918 if test "$other" != "c"; then
8919 case ,${enable_stage1_languages}, in
8920 *,$other,*) ;;
8921 *,default,*) ;;
8922 *,all,*) ;;
8924 case ,${enable_languages}, in
8925 *,$language,*)
8926 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8927 enable_stage1_languages="$enable_stage1_languages,${other}"
8929 esac
8931 esac
8933 done
8935 esac
8936 done
8938 new_enable_languages=,c,
8940 # If LTO is enabled, add the LTO front end.
8941 if test "$enable_lto" = "yes" ; then
8942 case ,${enable_languages}, in
8943 *,lto,*) ;;
8944 *) enable_languages="${enable_languages},lto" ;;
8945 esac
8946 if test "${build_lto_plugin}" = "yes" ; then
8947 configdirs="$configdirs lto-plugin"
8951 # If we're building an offloading compiler, add the LTO front end.
8952 if test x"$enable_as_accelerator_for" != x ; then
8953 case ,${enable_languages}, in
8954 *,lto,*) ;;
8955 *) enable_languages="${enable_languages},lto" ;;
8956 esac
8959 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8960 potential_languages=,c,
8962 enabled_target_libs=
8963 disabled_target_libs=
8965 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8966 case ${lang_frag} in
8967 ..) ;;
8968 # The odd quoting in the next line works around
8969 # an apparent bug in bash 1.12 on linux.
8970 ${srcdir}/gcc/[*]/config-lang.in) ;;
8972 # From the config-lang.in, get $language, $target_libs,
8973 # $lang_dirs, $boot_language, and $build_by_default
8974 language=
8975 target_libs=
8976 lang_dirs=
8977 subdir_requires=
8978 boot_language=no
8979 build_by_default=yes
8980 # set srcdir during sourcing. See above about save & restore
8981 saved_srcdir=${srcdir}
8982 srcdir=${srcdir}/gcc . ${lang_frag}
8983 srcdir=${saved_srcdir}
8984 if test x${language} = x; then
8985 echo "${lang_frag} doesn't set \$language." 1>&2
8986 exit 1
8989 if test "$language" = "c++"; then
8990 boot_language=yes
8993 add_this_lang=no
8994 # C is always enabled, so no need to add it again
8995 if test "$language" != "c"; then
8996 case ,${enable_languages}, in
8997 *,${language},*)
8998 # Language was explicitly selected; include it
8999 add_this_lang=yes
9001 *,all,*)
9002 # All languages are enabled
9003 add_this_lang=all
9005 *,default,*)
9006 # 'default' was selected, select it if it is a default language
9007 add_this_lang=${build_by_default}
9009 esac
9012 # Disable languages that need other directories if these aren't available.
9013 for i in $subdir_requires; do
9014 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9015 case ${add_this_lang} in
9016 yes)
9017 # Specifically requested language; tell them.
9018 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9020 all)
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9022 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9023 add_this_lang=unsupported
9026 # Silently disable.
9027 add_this_lang=unsupported
9029 esac
9030 done
9032 # Disable Ada if no preexisting GNAT is available.
9033 case ${add_this_lang}:${language}:${have_gnat} in
9034 yes:ada:no)
9035 # Specifically requested language; tell them.
9036 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9038 all:ada:no)
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9040 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9041 add_this_lang=unsupported
9043 *:ada:no)
9044 # Silently disable.
9045 add_this_lang=unsupported
9047 esac
9049 # Disable D if no preexisting GDC is available.
9050 case ${add_this_lang}:${language}:${have_gdc} in
9051 yes:d:no)
9052 # Specifically requested language; tell them.
9053 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9055 all:d:no)
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9057 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9058 add_this_lang=unsupported
9060 *:d:no)
9061 # Silently disable.
9062 add_this_lang=unsupported
9064 esac
9066 # Disable jit if -enable-host-shared not specified
9067 # but not if building for Mingw. All code in Windows
9068 # is position independent code (PIC).
9069 case $target in
9070 *mingw*) ;;
9072 case ${add_this_lang}:${language}:${host_shared} in
9073 yes:jit:no)
9074 # PR jit/64780: explicitly specify --enable-host-shared
9075 as_fn_error $? "
9076 Enabling language \"jit\" requires --enable-host-shared.
9078 --enable-host-shared typically slows the rest of the compiler down by
9079 a few %, so you must explicitly enable it.
9081 If you want to build both the jit and the regular compiler, it is often
9082 best to do this via two separate configure/builds, in separate
9083 directories, to avoid imposing the performance cost of
9084 --enable-host-shared on the regular compiler." "$LINENO" 5
9086 all:jit:no)
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9088 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9089 add_this_lang=unsupported
9091 *:jit:no)
9092 # Silently disable.
9093 add_this_lang=unsupported
9095 esac
9097 esac
9099 # Disable a language that is unsupported by the target.
9100 case "${add_this_lang}: $unsupported_languages " in
9101 no:*) ;;
9102 unsupported:*) ;;
9103 *:*" $language "*)
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9105 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9106 add_this_lang=unsupported
9108 esac
9110 case $add_this_lang in
9111 unsupported)
9112 # Remove language-dependent dirs.
9113 disabled_target_libs="$disabled_target_libs $target_libs"
9114 noconfigdirs="$noconfigdirs $lang_dirs"
9117 # Remove language-dependent dirs; still show language as supported.
9118 disabled_target_libs="$disabled_target_libs $target_libs"
9119 noconfigdirs="$noconfigdirs $lang_dirs"
9120 potential_languages="${potential_languages}${language},"
9122 all|yes)
9123 new_enable_languages="${new_enable_languages}${language},"
9124 potential_languages="${potential_languages}${language},"
9125 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9126 enabled_target_libs="$enabled_target_libs $target_libs"
9127 case "${boot_language}:,$enable_stage1_languages," in
9128 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9129 # Add to (comma-separated) list of stage 1 languages.
9130 case ",$stage1_languages," in
9131 *,$language,* | ,yes, | ,all,) ;;
9132 *) stage1_languages="${stage1_languages}${language}," ;;
9133 esac
9134 # We need to bootstrap any supporting libraries.
9135 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9137 esac
9139 esac
9141 esac
9142 done
9144 # Add target libraries which are only needed for disabled languages
9145 # to noconfigdirs.
9146 if test -n "$disabled_target_libs"; then
9147 for dir in $disabled_target_libs; do
9148 case " $enabled_target_libs " in
9149 *" ${dir} "*) ;;
9150 *) noconfigdirs="$noconfigdirs $dir" ;;
9151 esac
9152 done
9155 # Check whether --enable-stage1-languages was given.
9156 if test "${enable_stage1_languages+set}" = set; then :
9157 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9158 ,no,|,,)
9159 # Set it to something that will have no effect in the loop below
9160 enable_stage1_languages=c ;;
9161 ,yes,)
9162 enable_stage1_languages=`echo $new_enable_languages | \
9163 sed -e "s/^,//" -e "s/,$//" ` ;;
9164 *,all,*)
9165 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9166 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9167 esac
9169 # Add "good" languages from enable_stage1_languages to stage1_languages,
9170 # while "bad" languages go in missing_languages. Leave no duplicates.
9171 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9172 case $potential_languages in
9173 *,$i,*)
9174 case $stage1_languages in
9175 *,$i,*) ;;
9176 *) stage1_languages="$stage1_languages$i," ;;
9177 esac ;;
9179 case $missing_languages in
9180 *,$i,*) ;;
9181 *) missing_languages="$missing_languages$i," ;;
9182 esac ;;
9183 esac
9184 done
9188 # Remove leading/trailing commas that were added for simplicity
9189 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9190 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9191 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9192 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9194 if test "x$missing_languages" != x; then
9195 as_fn_error $? "
9196 The following requested languages could not be built: ${missing_languages}
9197 Supported languages are: ${potential_languages}" "$LINENO" 5
9199 if test "x$new_enable_languages" != "x$enable_languages"; then
9200 echo The following languages will be built: ${new_enable_languages}
9201 enable_languages="$new_enable_languages"
9205 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9208 # Handle --disable-<component> generically.
9209 for dir in $configdirs $build_configdirs $target_configdirs ; do
9210 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9211 varname=`echo $dirname | sed -e s/+/_/g`
9212 if eval test x\${enable_${varname}} "=" xno ; then
9213 noconfigdirs="$noconfigdirs $dir"
9215 done
9217 # Check for Boehm's garbage collector
9218 # Check whether --enable-objc-gc was given.
9219 if test "${enable_objc_gc+set}" = set; then :
9220 enableval=$enable_objc_gc;
9224 # Check whether --with-target-bdw-gc was given.
9225 if test "${with_target_bdw_gc+set}" = set; then :
9226 withval=$with_target_bdw_gc;
9230 # Check whether --with-target-bdw-gc-include was given.
9231 if test "${with_target_bdw_gc_include+set}" = set; then :
9232 withval=$with_target_bdw_gc_include;
9236 # Check whether --with-target-bdw-gc-lib was given.
9237 if test "${with_target_bdw_gc_lib+set}" = set; then :
9238 withval=$with_target_bdw_gc_lib;
9242 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9244 $as_echo_n "checking for bdw garbage collector... " >&6; }
9245 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9247 $as_echo "using bdw-gc in default locations" >&6; }
9248 else
9249 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9250 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9251 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9252 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9253 else
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9255 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9258 esac
9260 # Disable libitm, libsanitizer, libvtv if we're not building C++
9261 case ,${enable_languages}, in
9262 *,c++,*)
9263 # Disable libitm, libsanitizer if we're not building libstdc++
9264 case "${noconfigdirs}" in
9265 *target-libstdc++-v3*)
9266 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9268 *) ;;
9269 esac
9272 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9274 esac
9276 # If gcc/ is not in the source tree then we'll not be building a
9277 # target compiler, assume in that case we don't want to build any
9278 # target libraries or tools.
9280 # This was added primarily for the benefit for binutils-gdb who reuse
9281 # this configure script, but don't always have target tools available.
9282 if test ! -d ${srcdir}/gcc; then
9283 skipdirs="${skipdirs} ${target_configdirs}"
9286 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9287 # $build_configdirs and $target_configdirs.
9288 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9290 notsupp=""
9291 for dir in . $skipdirs $noconfigdirs ; do
9292 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9293 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9294 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9295 if test -r $srcdir/$dirname/configure ; then
9296 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9297 true
9298 else
9299 notsupp="$notsupp $dir"
9303 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9304 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9305 if test -r $srcdir/$dirname/configure ; then
9306 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9307 true
9308 else
9309 notsupp="$notsupp $dir"
9313 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9314 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9315 if test -r $srcdir/$dirname/configure ; then
9316 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9317 true
9318 else
9319 notsupp="$notsupp $dir"
9323 done
9325 # Quietly strip out all directories which aren't configurable in this tree.
9326 # This relies on all configurable subdirectories being autoconfiscated, which
9327 # is now the case.
9328 build_configdirs_all="$build_configdirs"
9329 build_configdirs=
9330 for i in ${build_configdirs_all} ; do
9331 j=`echo $i | sed -e s/build-//g`
9332 if test -f ${srcdir}/$j/configure ; then
9333 build_configdirs="${build_configdirs} $i"
9335 done
9337 configdirs_all="$configdirs"
9338 configdirs=
9339 for i in ${configdirs_all} ; do
9340 if test -f ${srcdir}/$i/configure ; then
9341 configdirs="${configdirs} $i"
9343 done
9345 target_configdirs_all="$target_configdirs"
9346 target_configdirs=
9347 for i in ${target_configdirs_all} ; do
9348 j=`echo $i | sed -e s/target-//g`
9349 if test -f ${srcdir}/$j/configure ; then
9350 target_configdirs="${target_configdirs} $i"
9352 done
9354 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9355 # so we have to add it after the preceding checks.
9356 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9357 then
9358 case " $configdirs " in
9359 *" libiberty "*)
9360 # If we can build libiberty, we can also build libiberty-linker-plugin.
9361 configdirs="$configdirs libiberty-linker-plugin"
9362 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9363 --with-libiberty=../libiberty-linker-plugin";;
9365 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9366 esac
9369 # Sometimes we have special requirements for the host libiberty.
9370 extra_host_libiberty_configure_flags=
9371 case " $configdirs " in
9372 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9373 # When these are to be built as shared libraries, the same applies to
9374 # libiberty.
9375 extra_host_libiberty_configure_flags=--enable-shared
9377 esac
9380 # Sometimes we have special requirements for the host zlib.
9381 extra_host_zlib_configure_flags=
9382 case " $configdirs " in
9383 *" bfd "*)
9384 # When bfd is to be built as a shared library, the same applies to
9385 # zlib.
9386 if test "$enable_shared" = "yes"; then
9387 extra_host_zlib_configure_flags=--enable-host-shared
9390 esac
9393 # Produce a warning message for the subdirs we can't configure.
9394 # This isn't especially interesting in the Cygnus tree, but in the individual
9395 # FSF releases, it's important to let people know when their machine isn't
9396 # supported by the one or two programs in a package.
9398 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9399 # If $appdirs is non-empty, at least one of those directories must still
9400 # be configured, or we error out. (E.g., if the gas release supports a
9401 # specified target in some subdirs but not the gas subdir, we shouldn't
9402 # pretend that all is well.)
9403 if test -n "$appdirs" ; then
9404 for dir in $appdirs ; do
9405 if test -r $dir/Makefile.in ; then
9406 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9407 appdirs=""
9408 break
9410 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9411 appdirs=""
9412 break
9415 done
9416 if test -n "$appdirs" ; then
9417 echo "*** This configuration is not supported by this package." 1>&2
9418 exit 1
9421 # Okay, some application will build, or we don't care to check. Still
9422 # notify of subdirs not getting built.
9423 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9424 echo " ${notsupp}" 1>&2
9425 echo " (Any other directories should still work fine.)" 1>&2
9428 case "$host" in
9429 *msdosdjgpp*)
9430 enable_gdbtk=no ;;
9431 esac
9433 # To find our prefix, in gcc_cv_tool_prefix.
9435 # The user is always right.
9436 if test "${PATH_SEPARATOR+set}" != set; then
9437 echo "#! /bin/sh" >conf$$.sh
9438 echo "exit 0" >>conf$$.sh
9439 chmod +x conf$$.sh
9440 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9441 PATH_SEPARATOR=';'
9442 else
9443 PATH_SEPARATOR=:
9445 rm -f conf$$.sh
9449 get_gcc_base_ver="cat"
9451 # Check whether --with-gcc-major-version-only was given.
9452 if test "${with_gcc_major_version_only+set}" = set; then :
9453 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9454 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9464 if test "x$exec_prefix" = xNONE; then
9465 if test "x$prefix" = xNONE; then
9466 gcc_cv_tool_prefix=$ac_default_prefix
9467 else
9468 gcc_cv_tool_prefix=$prefix
9470 else
9471 gcc_cv_tool_prefix=$exec_prefix
9474 # If there is no compiler in the tree, use the PATH only. In any
9475 # case, if there is no compiler in the tree nobody should use
9476 # AS_FOR_TARGET and LD_FOR_TARGET.
9477 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9478 if test x$with_gcc_major_version_only = xyes ; then
9479 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9480 else
9481 gcc_version=`cat $srcdir/gcc/BASE-VER`
9483 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9484 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9485 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9486 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9487 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9488 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9489 else
9490 gcc_cv_tool_dirs=
9493 if test x$build = x$target && test -n "$md_exec_prefix"; then
9494 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9499 copy_dirs=
9502 # Check whether --with-build-sysroot was given.
9503 if test "${with_build_sysroot+set}" = set; then :
9504 withval=$with_build_sysroot; if test x"$withval" != x ; then
9505 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9507 else
9508 SYSROOT_CFLAGS_FOR_TARGET=
9514 # Check whether --with-debug-prefix-map was given.
9515 if test "${with_debug_prefix_map+set}" = set; then :
9516 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9517 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9518 for debug_map in $withval; do
9519 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9520 done
9522 else
9523 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9528 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9529 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9530 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9531 # We want to ensure that TARGET libraries (which we know are built with
9532 # gcc) are built with "-O2 -g", so include those options when setting
9533 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9534 if test "x$CFLAGS_FOR_TARGET" = x; then
9535 if test "x${is_cross_compiler}" = xyes; then
9536 CFLAGS_FOR_TARGET="-g -O2"
9537 else
9538 CFLAGS_FOR_TARGET=$CFLAGS
9539 case " $CFLAGS " in
9540 *" -O2 "*) ;;
9541 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9542 esac
9543 case " $CFLAGS " in
9544 *" -g "* | *" -g3 "*) ;;
9545 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9546 esac
9551 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9552 if test "x${is_cross_compiler}" = xyes; then
9553 CXXFLAGS_FOR_TARGET="-g -O2"
9554 else
9555 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9556 case " $CXXFLAGS " in
9557 *" -O2 "*) ;;
9558 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9559 esac
9560 case " $CXXFLAGS " in
9561 *" -g "* | *" -g3 "*) ;;
9562 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9563 esac
9570 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9571 # the named directory are copied to $(tooldir)/sys-include.
9572 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9573 if test x${is_cross_compiler} = xno ; then
9574 echo 1>&2 '***' --with-headers is only supported when cross compiling
9575 exit 1
9577 if test x"${with_headers}" != xyes ; then
9578 x=${gcc_cv_tool_prefix}
9579 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9583 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9584 # the name directories are copied to $(tooldir)/lib. Multiple directories
9585 # are permitted.
9586 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9587 if test x${is_cross_compiler} = xno ; then
9588 echo 1>&2 '***' --with-libs is only supported when cross compiling
9589 exit 1
9591 if test x"${with_libs}" != xyes ; then
9592 # Copy the libraries in reverse order, so that files in the first named
9593 # library override files in subsequent libraries.
9594 x=${gcc_cv_tool_prefix}
9595 for l in ${with_libs}; do
9596 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9597 done
9601 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9603 # This is done by determining whether or not the appropriate directory
9604 # is available, and by checking whether or not specific configurations
9605 # have requested that this magic not happen.
9607 # The command line options always override the explicit settings in
9608 # configure.ac, and the settings in configure.ac override this magic.
9610 # If the default for a toolchain is to use GNU as and ld, and you don't
9611 # want to do that, then you should use the --without-gnu-as and
9612 # --without-gnu-ld options for the configure script. Similarly, if
9613 # the default is to use the included zlib and you don't want to do that,
9614 # you should use the --with-system-zlib option for the configure script.
9616 if test x${use_gnu_as} = x &&
9617 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9618 with_gnu_as=yes
9619 extra_host_args="$extra_host_args --with-gnu-as"
9622 if test x${use_gnu_ld} = x &&
9623 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9624 with_gnu_ld=yes
9625 extra_host_args="$extra_host_args --with-gnu-ld"
9628 if test x${use_included_zlib} = x &&
9629 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9631 else
9632 with_system_zlib=yes
9633 extra_host_args="$extra_host_args --with-system-zlib"
9636 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9637 # can detect this case.
9639 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9640 with_newlib=yes
9641 extra_host_args="$extra_host_args --with-newlib"
9644 # Handle ${copy_dirs}
9645 set fnord ${copy_dirs}
9646 shift
9647 while test $# != 0 ; do
9648 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9650 else
9651 echo Copying $1 to $2
9653 # Use the install script to create the directory and all required
9654 # parent directories.
9655 if test -d $2 ; then
9657 else
9658 echo >config.temp
9659 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9662 # Copy the directory, assuming we have tar.
9663 # FIXME: Should we use B in the second tar? Not all systems support it.
9664 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9666 # It is the responsibility of the user to correctly adjust all
9667 # symlinks. If somebody can figure out how to handle them correctly
9668 # here, feel free to add the code.
9670 echo $1 > $2/COPIED
9672 shift; shift
9673 done
9675 # Determine a target-dependent exec_prefix that the installed
9676 # gcc will search in. Keep this list sorted by triplet, with
9677 # the *-*-osname triplets last.
9678 md_exec_prefix=
9679 case "${target}" in
9680 i[34567]86-pc-msdosdjgpp*)
9681 md_exec_prefix=/dev/env/DJDIR/bin
9683 *-*-hpux* | \
9684 *-*-nto-qnx* | \
9685 *-*-solaris2*)
9686 md_exec_prefix=/usr/ccs/bin
9688 esac
9690 extra_arflags_for_target=
9691 extra_nmflags_for_target=
9692 extra_ranlibflags_for_target=
9693 target_makefile_frag=/dev/null
9694 case "${target}" in
9695 spu-*-*)
9696 target_makefile_frag="config/mt-spu"
9698 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9699 target_makefile_frag="config/mt-sde"
9701 mipsisa*-*-elfoabi*)
9702 target_makefile_frag="config/mt-mips-elfoabi"
9704 mips*-*-*linux* | mips*-*-gnu*)
9705 target_makefile_frag="config/mt-mips-gnu"
9707 nios2-*-elf*)
9708 target_makefile_frag="config/mt-nios2-elf"
9710 *-*-linux-android*)
9711 target_makefile_frag="config/mt-android"
9713 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9714 target_makefile_frag="config/mt-gnu"
9716 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9717 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9718 # commands to handle both 32-bit and 64-bit objects. These flags are
9719 # harmless if we're using GNU nm or ar.
9720 extra_arflags_for_target=" -X32_64"
9721 extra_nmflags_for_target=" -B -X32_64"
9723 esac
9725 alphaieee_frag=/dev/null
9726 case $target in
9727 alpha*-*-*)
9728 # This just makes sure to use the -mieee option to build target libs.
9729 # This should probably be set individually by each library.
9730 alphaieee_frag="config/mt-alphaieee"
9732 esac
9734 # If --enable-target-optspace always use -Os instead of -O2 to build
9735 # the target libraries, similarly if it is not specified, use -Os
9736 # on selected platforms.
9737 ospace_frag=/dev/null
9738 case "${enable_target_optspace}:${target}" in
9739 yes:*)
9740 ospace_frag="config/mt-ospace"
9742 :d30v-*)
9743 ospace_frag="config/mt-d30v"
9745 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9746 ospace_frag="config/mt-ospace"
9748 no:* | :*)
9751 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9753 esac
9755 # Some systems (e.g., one of the i386-aix systems the gas testers are
9756 # using) don't handle "\$" correctly, so don't use it here.
9757 tooldir='${exec_prefix}'/${target_noncanonical}
9758 build_tooldir=${tooldir}
9760 # Create a .gdbinit file which runs the one in srcdir
9761 # and tells GDB to look there for source files.
9763 if test -r ${srcdir}/.gdbinit ; then
9764 case ${srcdir} in
9765 .) ;;
9766 *) cat > ./.gdbinit <<EOF
9767 # ${NO_EDIT}
9768 dir ${srcdir}
9769 dir .
9770 source ${srcdir}/.gdbinit
9773 esac
9776 # Make sure that the compiler is able to generate an executable. If it
9777 # can't, we are probably in trouble. We don't care whether we can run the
9778 # executable--we might be using a cross compiler--we only care whether it
9779 # can be created. At this point the main configure script has set CC.
9780 we_are_ok=no
9781 echo "int main () { return 0; }" > conftest.c
9782 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9783 if test $? = 0 ; then
9784 if test -s conftest || test -s conftest.exe ; then
9785 we_are_ok=yes
9788 case $we_are_ok in
9790 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9791 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9792 rm -f conftest*
9793 exit 1
9795 esac
9796 rm -f conftest*
9798 # Decide which environment variable is used to find dynamic libraries.
9799 case "${host}" in
9800 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9801 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9802 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9803 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9804 esac
9806 # On systems where the dynamic library environment variable is PATH,
9807 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9808 # built executables to PATH.
9809 if test "$RPATH_ENVVAR" = PATH; then
9810 GCC_SHLIB_SUBDIR=/shlib
9811 else
9812 GCC_SHLIB_SUBDIR=
9815 # Adjust the toplevel makefile according to whether bootstrap was selected.
9816 case $enable_bootstrap in
9817 yes)
9818 bootstrap_suffix=bootstrap
9819 BUILD_CONFIG=bootstrap-debug
9822 bootstrap_suffix=no-bootstrap
9823 BUILD_CONFIG=
9825 esac
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9828 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9831 # Check whether --with-build-config was given.
9832 if test "${with_build_config+set}" = set; then :
9833 withval=$with_build_config; case $with_build_config in
9834 yes) with_build_config= ;;
9835 no) with_build_config= BUILD_CONFIG= ;;
9836 esac
9840 if test "x${with_build_config}" != x; then
9841 BUILD_CONFIG=$with_build_config
9842 else
9843 case $BUILD_CONFIG in
9844 bootstrap-debug)
9845 if echo "int f (void) { return 0; }" > conftest.c &&
9846 ${CC} -c conftest.c &&
9847 mv conftest.o conftest.o.g0 &&
9848 ${CC} -c -g conftest.c &&
9849 mv conftest.o conftest.o.g &&
9850 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9852 else
9853 BUILD_CONFIG=
9855 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9857 esac
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9860 $as_echo "$BUILD_CONFIG" >&6; }
9863 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9865 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9866 # Check whether --enable-vtable-verify was given.
9867 if test "${enable_vtable_verify+set}" = set; then :
9868 enableval=$enable_vtable_verify; case "$enableval" in
9869 yes) enable_vtable_verify=yes ;;
9870 no) enable_vtable_verify=no ;;
9871 *) enable_vtable_verify=no;;
9872 esac
9873 else
9874 enable_vtable_verify=no
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9878 $as_echo "$enable_vtable_verify" >&6; }
9880 # Record target_configdirs and the configure arguments for target and
9881 # build configuration in Makefile.
9882 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9883 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9884 bootstrap_fixincludes=no
9886 # If we are building libgomp, bootstrap it.
9887 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9888 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9891 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9892 # or bootstrap-ubsan, bootstrap it.
9893 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9894 case "$BUILD_CONFIG" in
9895 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9896 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9897 bootstrap_fixincludes=yes
9899 esac
9902 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9903 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9904 test "$enable_vtable_verify" != no; then
9905 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9908 # If we are building libatomic and the list of enabled languages includes the
9909 # D frontend, bootstrap it.
9910 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9911 case ,${enable_languages}, in
9912 *,d,*)
9913 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9915 esac
9918 # Determine whether gdb needs tk/tcl or not.
9919 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9920 # and in that case we want gdb to be built without tk. Ugh!
9921 # In fact I believe gdb is the *only* package directly dependent on tk,
9922 # so we should be able to put the 'maybe's in unconditionally and
9923 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9924 # 100% sure that that's safe though.
9926 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9927 case "$enable_gdbtk" in
9929 GDB_TK="" ;;
9930 yes)
9931 GDB_TK="${gdb_tk}" ;;
9933 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9934 # distro. Eventually someone will fix this and move Insight, nee
9935 # gdbtk to a separate directory.
9936 if test -d ${srcdir}/gdb/gdbtk ; then
9937 GDB_TK="${gdb_tk}"
9938 else
9939 GDB_TK=""
9942 esac
9943 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9944 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9946 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9947 # else does, only include them if one of these is built. The Makefile
9948 # provides the ordering, so it's enough here to add to the list.
9949 case " ${configdirs} " in
9950 *\ gdb\ *)
9951 configdirs="${configdirs} gnulib gdbsupport"
9953 *\ gdbserver\ *)
9954 configdirs="${configdirs} gnulib gdbsupport"
9956 *\ sim\ *)
9957 configdirs="${configdirs} gnulib"
9959 esac
9961 # Strip out unwanted targets.
9963 # While at that, we remove Makefiles if we were started for recursive
9964 # configuration, so that the top-level Makefile reconfigures them,
9965 # like we used to do when configure itself was recursive.
9967 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9968 # but now we're fixing up the Makefile ourselves with the additional
9969 # commands passed to AC_CONFIG_FILES. Use separate variables
9970 # extrasub-{build,host,target} not because there is any reason to split
9971 # the substitutions up that way, but only to remain below the limit of
9972 # 99 commands in a script, for HP-UX sed.
9974 # Do not nest @if/@endif or @unless/@endunless pairs, because
9975 # configure will not warn you at all.
9977 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9978 yes:yes:*\ gold\ *:*,c++,*) ;;
9979 yes:yes:*\ gold\ *:*)
9980 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9982 esac
9984 extrasub_build=
9985 for module in ${build_configdirs} ; do
9986 if test -z "${no_recursion}" \
9987 && test -f ${build_subdir}/${module}/Makefile; then
9988 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9989 rm -f ${build_subdir}/${module}/Makefile
9991 extrasub_build="$extrasub_build
9992 /^@if build-$module\$/d
9993 /^@endif build-$module\$/d
9994 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9995 /^@if build-$module-$bootstrap_suffix\$/d
9996 /^@endif build-$module-$bootstrap_suffix\$/d
9997 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9998 done
9999 extrasub_host=
10000 for module in ${configdirs} ; do
10001 if test -z "${no_recursion}"; then
10002 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
10003 if test -f ${file}; then
10004 echo 1>&2 "*** removing ${file} to force reconfigure"
10005 rm -f ${file}
10007 done
10009 case ${module},${bootstrap_fixincludes} in
10010 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10011 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10012 esac
10013 extrasub_host="$extrasub_host
10014 /^@if $module\$/d
10015 /^@endif $module\$/d
10016 /^@unless $module\$/,/^@endunless $module\$/d
10017 /^@if $module-$host_bootstrap_suffix\$/d
10018 /^@endif $module-$host_bootstrap_suffix\$/d
10019 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10020 done
10021 extrasub_target=
10022 for module in ${target_configdirs} ; do
10023 if test -z "${no_recursion}" \
10024 && test -f ${target_subdir}/${module}/Makefile; then
10025 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10026 rm -f ${target_subdir}/${module}/Makefile
10029 # We only bootstrap target libraries listed in bootstrap_target_libs.
10030 case $bootstrap_target_libs in
10031 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
10032 *) target_bootstrap_suffix=no-bootstrap ;;
10033 esac
10035 extrasub_target="$extrasub_target
10036 /^@if target-$module\$/d
10037 /^@endif target-$module\$/d
10038 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10039 /^@if target-$module-$target_bootstrap_suffix\$/d
10040 /^@endif target-$module-$target_bootstrap_suffix\$/d
10041 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10042 done
10044 # Do the final fixup along with target modules.
10045 extrasub_target="$extrasub_target
10046 /^@if /,/^@endif /d
10047 /^@unless /d
10048 /^@endunless /d"
10050 if test "$enable_pgo_build" != "no"; then
10051 extrasub_build="$extrasub_build
10052 /^@if pgo-build\$/d
10053 /^@endif pgo-build\$/d"
10056 # Create the serialization dependencies. This uses a temporary file.
10058 # Check whether --enable-serial-configure was given.
10059 if test "${enable_serial_configure+set}" = set; then :
10060 enableval=$enable_serial_configure;
10064 case ${enable_serial_configure} in
10065 yes)
10066 enable_serial_build_configure=yes
10067 enable_serial_host_configure=yes
10068 enable_serial_target_configure=yes
10070 esac
10072 # These force 'configure's to be done one at a time, to avoid problems
10073 # with contention over a shared config.cache.
10074 rm -f serdep.tmp
10075 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
10076 echo '# serdep.tmp' > serdep.tmp
10078 olditem=
10079 test "x${enable_serial_build_configure}" = xyes &&
10080 for item in ${build_configdirs} ; do
10081 case ${olditem} in
10082 "") ;;
10083 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10084 esac
10085 olditem=${item}
10086 done
10087 olditem=
10088 test "x${enable_serial_host_configure}" = xyes &&
10089 for item in ${configdirs} ; do
10090 case ${olditem} in
10091 "") ;;
10092 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10093 esac
10094 olditem=${item}
10095 done
10096 olditem=
10097 test "x${enable_serial_target_configure}" = xyes &&
10098 for item in ${target_configdirs} ; do
10099 case ${olditem} in
10100 "") ;;
10101 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10102 esac
10103 olditem=${item}
10104 done
10105 serialization_dependencies=serdep.tmp
10108 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10109 # target, nonopt, and variable assignments. These are the ones we
10110 # might not want to pass down to subconfigures. The exception being
10111 # --cache-file=/dev/null, which is used to turn off the use of cache
10112 # files altogether, and which should be passed on to subconfigures.
10113 # Also strip program-prefix, program-suffix, and program-transform-name,
10114 # so that we can pass down a consistent program-transform-name.
10115 baseargs=
10116 tbaseargs=
10117 keep_next=no
10118 skip_next=no
10119 eval "set -- $ac_configure_args"
10120 for ac_arg
10122 if test X"$skip_next" = X"yes"; then
10123 skip_next=no
10124 continue
10126 if test X"$keep_next" = X"yes"; then
10127 case $ac_arg in
10128 *\'*)
10129 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10130 esac
10131 baseargs="$baseargs '$ac_arg'"
10132 tbaseargs="$tbaseargs '$ac_arg'"
10133 keep_next=no
10134 continue
10137 # Handle separated arguments. Based on the logic generated by
10138 # autoconf 2.59.
10139 case $ac_arg in
10140 *=* | --config-cache | -C | -disable-* | --disable-* \
10141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10143 | -with-* | --with-* | -without-* | --without-* | --x)
10144 separate_arg=no
10147 separate_arg=yes
10150 separate_arg=no
10152 esac
10154 skip_targ=no
10155 case $ac_arg in
10157 --with-* | --without-*)
10158 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10160 case $libopt in
10161 *[-_]include)
10162 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10164 *[-_]lib)
10165 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10168 lib=$libopt
10170 esac
10173 case $lib in
10174 mpc | mpfr | gmp | isl)
10175 # If we're processing --with-$lib, --with-$lib-include or
10176 # --with-$lib-lib, for one of the libs above, and target is
10177 # different from host, don't pass the current argument to any
10178 # target library's configure.
10179 if test x$is_cross_compiler = xyes; then
10180 skip_targ=yes
10183 esac
10185 esac
10187 case "$ac_arg" in
10188 --cache-file=/dev/null | \
10189 -cache-file=/dev/null )
10190 # Handled here to avoid the test to skip args below.
10191 baseargs="$baseargs '$ac_arg'"
10192 tbaseargs="$tbaseargs '$ac_arg'"
10193 # Assert: $separate_arg should always be no.
10194 keep_next=$separate_arg
10196 --no*)
10197 continue
10199 --c* | \
10200 --sr* | \
10201 --ho* | \
10202 --bu* | \
10203 --t* | \
10204 --program-* | \
10205 -cache_file* | \
10206 -srcdir* | \
10207 -host* | \
10208 -build* | \
10209 -target* | \
10210 -program-prefix* | \
10211 -program-suffix* | \
10212 -program-transform-name* )
10213 skip_next=$separate_arg
10214 continue
10217 # An option. Add it.
10218 case $ac_arg in
10219 *\'*)
10220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10221 esac
10222 baseargs="$baseargs '$ac_arg'"
10223 if test X"$skip_targ" = Xno; then
10224 tbaseargs="$tbaseargs '$ac_arg'"
10226 keep_next=$separate_arg
10229 # Either a variable assignment, or a nonopt (triplet). Don't
10230 # pass it down; let the Makefile handle this.
10231 continue
10233 esac
10234 done
10235 # Remove the initial space we just introduced and, as these will be
10236 # expanded by make, quote '$'.
10237 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10239 # Add in --program-transform-name, after --program-prefix and
10240 # --program-suffix have been applied to it. Autoconf has already
10241 # doubled dollar signs and backslashes in program_transform_name; we want
10242 # the backslashes un-doubled, and then the entire thing wrapped in single
10243 # quotes, because this will be expanded first by make and then by the shell.
10244 # Also, because we want to override the logic in subdir configure scripts to
10245 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10246 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10247 ${program_transform_name}
10248 EOF_SED
10249 gcc_transform_name=`cat conftestsed.out`
10250 rm -f conftestsed.out
10251 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10252 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10253 if test "$silent" = yes; then
10254 baseargs="$baseargs --silent"
10255 tbaseargs="$tbaseargs --silent"
10258 baseargs="$baseargs --disable-option-checking"
10259 tbaseargs="$tbaseargs --disable-option-checking"
10261 if test "$enable_year2038" = no; then
10262 baseargs="$baseargs --disable-year2038"
10263 tbaseargs="$tbaseargs --disable-year2038"
10266 # Record and document user additions to sub configure arguments.
10271 # For the build-side libraries, we just need to pretend we're native,
10272 # and not use the same cache file. Multilibs are neither needed nor
10273 # desired. We can't even use the same cache file for all build-side
10274 # libraries, as they're compiled differently; some with C, some with
10275 # C++ or with different feature-enabling options.
10276 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10278 # For host modules, accept cache file option, or specification as blank.
10279 case "${cache_file}" in
10280 "") # empty
10281 cache_file_option="" ;;
10282 /* | [A-Za-z]:[\\/]* ) # absolute path
10283 cache_file_option="--cache-file=${cache_file}" ;;
10284 *) # relative path
10285 cache_file_option="--cache-file=../${cache_file}" ;;
10286 esac
10288 # Host dirs don't like to share a cache file either, horribly enough.
10289 # This seems to be due to autoconf 2.5x stupidity.
10290 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10292 target_configargs="$target_configargs ${tbaseargs}"
10294 # Passing a --with-cross-host argument lets the target libraries know
10295 # whether they are being built with a cross-compiler or being built
10296 # native. However, it would be better to use other mechanisms to make the
10297 # sorts of decisions they want to make on this basis. Please consider
10298 # this option to be deprecated. FIXME.
10299 if test x${is_cross_compiler} = xyes ; then
10300 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10303 # Special user-friendly check for native x86_64-linux build, if
10304 # multilib is not explicitly enabled.
10305 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10306 x86_64-*linux*:yes:$build:$build:)
10307 # Make sure we have a development environment that handles 32-bit
10308 dev64=no
10309 echo "int main () { return 0; }" > conftest.c
10310 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10311 if test $? = 0 ; then
10312 if test -s conftest || test -s conftest.exe ; then
10313 dev64=yes
10316 rm -f conftest*
10317 if test x${dev64} != xyes ; then
10318 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
10321 esac
10323 # Default to --enable-multilib.
10324 if test x${enable_multilib} = x ; then
10325 target_configargs="--enable-multilib ${target_configargs}"
10328 # Pass --with-newlib if appropriate. Note that target_configdirs has
10329 # changed from the earlier setting of with_newlib.
10330 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10331 target_configargs="--with-newlib ${target_configargs}"
10334 # Different target subdirs use different values of certain variables
10335 # (notably CXX). Worse, multilibs use *lots* of different values.
10336 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10337 # it doesn't automatically accept command-line overrides of them.
10338 # This means it's not safe for target subdirs to share a cache file,
10339 # which is disgusting, but there you have it. Hopefully this can be
10340 # fixed in future. It's still worthwhile to use a cache file for each
10341 # directory. I think.
10343 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10344 # We need to pass --target, as newer autoconf's requires consistency
10345 # for target_alias and gcc doesn't manage it consistently.
10346 target_configargs="--cache-file=./config.cache ${target_configargs}"
10348 FLAGS_FOR_TARGET=
10349 case " $target_configdirs " in
10350 *" newlib "*)
10351 case " $target_configargs " in
10352 *" --with-newlib "*)
10353 case "$target" in
10354 *-cygwin*)
10355 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10357 esac
10359 # If we're not building GCC, don't discard standard headers.
10360 if test -d ${srcdir}/gcc; then
10361 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10363 if test "${build}" != "${host}"; then
10364 # On Canadian crosses, CC_FOR_TARGET will have already been set
10365 # by `configure', so we won't have an opportunity to add -Bgcc/
10366 # to it. This is right: we don't want to search that directory
10367 # for binaries, but we want the header files in there, so add
10368 # them explicitly.
10369 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10371 # Someone might think of using the pre-installed headers on
10372 # Canadian crosses, in case the installed compiler is not fully
10373 # compatible with the compiler being built. In this case, it
10374 # would be better to flag an error than risking having
10375 # incompatible object files being constructed. We can't
10376 # guarantee that an error will be flagged, but let's hope the
10377 # compiler will do it, when presented with incompatible header
10378 # files.
10382 case "${target}-${is_cross_compiler}" in
10383 i[3456789]86-*-linux*-no)
10384 # Here host == target, so we don't need to build gcc,
10385 # so we don't want to discard standard headers.
10386 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10389 # If we're building newlib, use its generic headers last, but search
10390 # for any libc-related directories first (so make it the last -B
10391 # switch).
10392 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10394 # If we're building libgloss, find the startup file, simulator library
10395 # and linker script.
10396 case " $target_configdirs " in
10397 *" libgloss "*)
10398 # Look for startup file, simulator library and maybe linker script.
10399 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10400 # Look for libnosys.a in case the target needs it.
10401 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10402 # Most targets have the linker script in the source directory.
10403 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10405 esac
10407 esac
10409 esac
10411 esac
10413 case "$target" in
10414 x86_64-*mingw* | *-w64-mingw*)
10415 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10416 # however, use a symlink named 'mingw' in ${prefix} .
10417 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10419 *-mingw*)
10420 # MinGW can't be handled as Cygwin above since it does not use newlib.
10421 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'
10423 esac
10425 # Allow the user to override the flags for
10426 # our build compiler if desired.
10427 if test x"${build}" = x"${host}" ; then
10428 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10429 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10430 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10431 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10434 # On Canadian crosses, we'll be searching the right directories for
10435 # the previously-installed cross compiler, so don't bother to add
10436 # flags for directories within the install tree of the compiler
10437 # being built; programs in there won't even run.
10438 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10439 # Search for pre-installed headers if nothing else fits.
10440 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10443 if test "x${use_gnu_ld}" = x &&
10444 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10445 # Arrange for us to find uninstalled linker scripts.
10446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10449 # Search for other target-specific linker scripts and such.
10450 case "${target}" in
10451 mep*)
10452 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10454 # The VxWorks support for shared libraries is getting in
10455 # incrementally. Make sure it doesn't get activated implicitly:
10456 *vxworks*)
10457 if test "${enable_shared-unset}" = unset ; then
10458 enable_shared=no
10459 # So the build of libraries knows ...
10460 target_configargs="${target_configargs} --disable-shared"
10461 # So gcc knows ...
10462 host_configargs="${host_configargs} --disable-shared"
10465 esac
10467 # Makefile fragments.
10468 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10470 eval fragval=\$$frag
10471 if test $fragval != /dev/null; then
10472 eval $frag=${srcdir}/$fragval
10474 done
10480 # Miscellanea: directories, flags, etc.
10489 # Build module lists & subconfigure args.
10493 # Host module lists & subconfigure args.
10498 # Target module lists & subconfigure args.
10502 # Build tools.
10523 # Generate default definitions for YACC, M4, LEX and other programs that run
10524 # on the build machine. These are used if the Makefile can't locate these
10525 # programs in objdir.
10526 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10528 for ac_prog in 'bison -y' byacc yacc
10530 # Extract the first word of "$ac_prog", so it can be a program name with args.
10531 set dummy $ac_prog; ac_word=$2
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10533 $as_echo_n "checking for $ac_word... " >&6; }
10534 if ${ac_cv_prog_YACC+:} false; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 if test -n "$YACC"; then
10538 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10539 else
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10547 ac_cv_prog_YACC="$ac_prog"
10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 break 2
10551 done
10552 done
10553 IFS=$as_save_IFS
10557 YACC=$ac_cv_prog_YACC
10558 if test -n "$YACC"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10560 $as_echo "$YACC" >&6; }
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10567 test -n "$YACC" && break
10568 done
10569 test -n "$YACC" || YACC="$MISSING bison -y"
10571 case " $build_configdirs " in
10572 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10573 esac
10575 for ac_prog in bison
10577 # Extract the first word of "$ac_prog", so it can be a program name with args.
10578 set dummy $ac_prog; ac_word=$2
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580 $as_echo_n "checking for $ac_word... " >&6; }
10581 if ${ac_cv_prog_BISON+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 if test -n "$BISON"; then
10585 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10586 else
10587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10588 for as_dir in $PATH
10590 IFS=$as_save_IFS
10591 test -z "$as_dir" && as_dir=.
10592 for ac_exec_ext in '' $ac_executable_extensions; do
10593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10594 ac_cv_prog_BISON="$ac_prog"
10595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 break 2
10598 done
10599 done
10600 IFS=$as_save_IFS
10604 BISON=$ac_cv_prog_BISON
10605 if test -n "$BISON"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10607 $as_echo "$BISON" >&6; }
10608 else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 $as_echo "no" >&6; }
10614 test -n "$BISON" && break
10615 done
10616 test -n "$BISON" || BISON="$MISSING bison"
10618 case " $build_configdirs " in
10619 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10620 esac
10622 for ac_prog in gm4 gnum4 m4
10624 # Extract the first word of "$ac_prog", so it can be a program name with args.
10625 set dummy $ac_prog; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627 $as_echo_n "checking for $ac_word... " >&6; }
10628 if ${ac_cv_prog_M4+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 if test -n "$M4"; then
10632 ac_cv_prog_M4="$M4" # Let the user override the test.
10633 else
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_prog_M4="$ac_prog"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10645 done
10646 done
10647 IFS=$as_save_IFS
10651 M4=$ac_cv_prog_M4
10652 if test -n "$M4"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10654 $as_echo "$M4" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; }
10661 test -n "$M4" && break
10662 done
10663 test -n "$M4" || M4="$MISSING m4"
10665 case " $build_configdirs " in
10666 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10667 esac
10669 for ac_prog in flex lex
10671 # Extract the first word of "$ac_prog", so it can be a program name with args.
10672 set dummy $ac_prog; ac_word=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if ${ac_cv_prog_LEX+:} false; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 if test -n "$LEX"; then
10679 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10680 else
10681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10684 IFS=$as_save_IFS
10685 test -z "$as_dir" && as_dir=.
10686 for ac_exec_ext in '' $ac_executable_extensions; do
10687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10688 ac_cv_prog_LEX="$ac_prog"
10689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10690 break 2
10692 done
10693 done
10694 IFS=$as_save_IFS
10698 LEX=$ac_cv_prog_LEX
10699 if test -n "$LEX"; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10701 $as_echo "$LEX" >&6; }
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; }
10708 test -n "$LEX" && break
10709 done
10710 test -n "$LEX" || LEX="$MISSING flex"
10712 case " $build_configdirs " in
10713 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10714 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10715 esac
10717 for ac_prog in flex
10719 # Extract the first word of "$ac_prog", so it can be a program name with args.
10720 set dummy $ac_prog; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if ${ac_cv_prog_FLEX+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 if test -n "$FLEX"; then
10727 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10728 else
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 ac_cv_prog_FLEX="$ac_prog"
10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10740 done
10741 done
10742 IFS=$as_save_IFS
10746 FLEX=$ac_cv_prog_FLEX
10747 if test -n "$FLEX"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10749 $as_echo "$FLEX" >&6; }
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10756 test -n "$FLEX" && break
10757 done
10758 test -n "$FLEX" || FLEX="$MISSING flex"
10760 case " $build_configdirs " in
10761 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10762 esac
10764 for ac_prog in makeinfo
10766 # Extract the first word of "$ac_prog", so it can be a program name with args.
10767 set dummy $ac_prog; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if ${ac_cv_prog_MAKEINFO+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 if test -n "$MAKEINFO"; then
10774 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10775 else
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10779 IFS=$as_save_IFS
10780 test -z "$as_dir" && as_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10783 ac_cv_prog_MAKEINFO="$ac_prog"
10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10785 break 2
10787 done
10788 done
10789 IFS=$as_save_IFS
10793 MAKEINFO=$ac_cv_prog_MAKEINFO
10794 if test -n "$MAKEINFO"; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10796 $as_echo "$MAKEINFO" >&6; }
10797 else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799 $as_echo "no" >&6; }
10803 test -n "$MAKEINFO" && break
10804 done
10805 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10807 case " $build_configdirs " in
10808 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10811 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10812 # higher, else we use the "missing" dummy.
10813 if ${MAKEINFO} --version \
10814 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10816 else
10817 MAKEINFO="$MISSING makeinfo"
10821 esac
10823 # FIXME: expect and dejagnu may become build tools?
10825 for ac_prog in expect
10827 # Extract the first word of "$ac_prog", so it can be a program name with args.
10828 set dummy $ac_prog; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if ${ac_cv_prog_EXPECT+:} false; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 if test -n "$EXPECT"; then
10835 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10836 else
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 ac_cv_prog_EXPECT="$ac_prog"
10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10848 done
10849 done
10850 IFS=$as_save_IFS
10854 EXPECT=$ac_cv_prog_EXPECT
10855 if test -n "$EXPECT"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10857 $as_echo "$EXPECT" >&6; }
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10864 test -n "$EXPECT" && break
10865 done
10866 test -n "$EXPECT" || EXPECT="expect"
10868 case " $configdirs " in
10869 *" expect "*)
10870 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10872 esac
10874 for ac_prog in runtest
10876 # Extract the first word of "$ac_prog", so it can be a program name with args.
10877 set dummy $ac_prog; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if ${ac_cv_prog_RUNTEST+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 if test -n "$RUNTEST"; then
10884 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10885 else
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_prog_RUNTEST="$ac_prog"
10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10897 done
10898 done
10899 IFS=$as_save_IFS
10903 RUNTEST=$ac_cv_prog_RUNTEST
10904 if test -n "$RUNTEST"; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10906 $as_echo "$RUNTEST" >&6; }
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10913 test -n "$RUNTEST" && break
10914 done
10915 test -n "$RUNTEST" || RUNTEST="runtest"
10917 case " $configdirs " in
10918 *" dejagnu "*)
10919 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10921 esac
10924 # Host tools.
10925 ncn_tool_prefix=
10926 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10927 ncn_target_tool_prefix=
10928 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10932 if test -n "$AR"; then
10933 ac_cv_prog_AR=$AR
10934 elif test -n "$ac_cv_prog_AR"; then
10935 AR=$ac_cv_prog_AR
10938 if test -n "$ac_cv_prog_AR"; then
10939 for ncn_progname in ar; do
10940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10941 set dummy ${ncn_progname}; ac_word=$2
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943 $as_echo_n "checking for $ac_word... " >&6; }
10944 if ${ac_cv_prog_AR+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 if test -n "$AR"; then
10948 ac_cv_prog_AR="$AR" # Let the user override the test.
10949 else
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_AR="${ncn_progname}"
10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10961 done
10962 done
10963 IFS=$as_save_IFS
10967 AR=$ac_cv_prog_AR
10968 if test -n "$AR"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10970 $as_echo "$AR" >&6; }
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; }
10977 done
10980 for ncn_progname in ar; do
10981 if test -n "$ncn_tool_prefix"; then
10982 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10983 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985 $as_echo_n "checking for $ac_word... " >&6; }
10986 if ${ac_cv_prog_AR+:} false; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 if test -n "$AR"; then
10990 ac_cv_prog_AR="$AR" # Let the user override the test.
10991 else
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10999 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11003 done
11004 done
11005 IFS=$as_save_IFS
11009 AR=$ac_cv_prog_AR
11010 if test -n "$AR"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11012 $as_echo "$AR" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11020 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022 set dummy ${ncn_progname}; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if ${ac_cv_prog_AR+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 if test -n "$AR"; then
11029 ac_cv_prog_AR="$AR" # Let the user override the test.
11030 else
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11038 ac_cv_prog_AR="${ncn_progname}"
11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11042 done
11043 done
11044 IFS=$as_save_IFS
11048 AR=$ac_cv_prog_AR
11049 if test -n "$AR"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11051 $as_echo "$AR" >&6; }
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11059 test -n "$ac_cv_prog_AR" && break
11060 done
11062 if test -z "$ac_cv_prog_AR" ; then
11063 set dummy ar
11064 if test $build = $host ; then
11065 AR="$2"
11066 else
11067 AR="${ncn_tool_prefix}$2"
11073 if test -n "$AS"; then
11074 ac_cv_prog_AS=$AS
11075 elif test -n "$ac_cv_prog_AS"; then
11076 AS=$ac_cv_prog_AS
11079 if test -n "$ac_cv_prog_AS"; then
11080 for ncn_progname in as; do
11081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11082 set dummy ${ncn_progname}; ac_word=$2
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 $as_echo_n "checking for $ac_word... " >&6; }
11085 if ${ac_cv_prog_AS+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 if test -n "$AS"; then
11089 ac_cv_prog_AS="$AS" # Let the user override the test.
11090 else
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11098 ac_cv_prog_AS="${ncn_progname}"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11102 done
11103 done
11104 IFS=$as_save_IFS
11108 AS=$ac_cv_prog_AS
11109 if test -n "$AS"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11111 $as_echo "$AS" >&6; }
11112 else
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114 $as_echo "no" >&6; }
11118 done
11121 for ncn_progname in as; do
11122 if test -n "$ncn_tool_prefix"; then
11123 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11124 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if ${ac_cv_prog_AS+:} false; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 if test -n "$AS"; then
11131 ac_cv_prog_AS="$AS" # Let the user override the test.
11132 else
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11144 done
11145 done
11146 IFS=$as_save_IFS
11150 AS=$ac_cv_prog_AS
11151 if test -n "$AS"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11153 $as_echo "$AS" >&6; }
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11161 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11163 set dummy ${ncn_progname}; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if ${ac_cv_prog_AS+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 if test -n "$AS"; then
11170 ac_cv_prog_AS="$AS" # Let the user override the test.
11171 else
11172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173 for as_dir in $PATH
11175 IFS=$as_save_IFS
11176 test -z "$as_dir" && as_dir=.
11177 for ac_exec_ext in '' $ac_executable_extensions; do
11178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11179 ac_cv_prog_AS="${ncn_progname}"
11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 break 2
11183 done
11184 done
11185 IFS=$as_save_IFS
11189 AS=$ac_cv_prog_AS
11190 if test -n "$AS"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11192 $as_echo "$AS" >&6; }
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11200 test -n "$ac_cv_prog_AS" && break
11201 done
11203 if test -z "$ac_cv_prog_AS" ; then
11204 set dummy as
11205 if test $build = $host ; then
11206 AS="$2"
11207 else
11208 AS="${ncn_tool_prefix}$2"
11214 if test -n "$DLLTOOL"; then
11215 ac_cv_prog_DLLTOOL=$DLLTOOL
11216 elif test -n "$ac_cv_prog_DLLTOOL"; then
11217 DLLTOOL=$ac_cv_prog_DLLTOOL
11220 if test -n "$ac_cv_prog_DLLTOOL"; then
11221 for ncn_progname in dlltool; do
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223 set dummy ${ncn_progname}; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if ${ac_cv_prog_DLLTOOL+:} false; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 if test -n "$DLLTOOL"; then
11230 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239 ac_cv_prog_DLLTOOL="${ncn_progname}"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11243 done
11244 done
11245 IFS=$as_save_IFS
11249 DLLTOOL=$ac_cv_prog_DLLTOOL
11250 if test -n "$DLLTOOL"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11252 $as_echo "$DLLTOOL" >&6; }
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11259 done
11262 for ncn_progname in dlltool; do
11263 if test -n "$ncn_tool_prefix"; then
11264 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11265 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_prog_DLLTOOL+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 if test -n "$DLLTOOL"; then
11272 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11273 else
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11285 done
11286 done
11287 IFS=$as_save_IFS
11291 DLLTOOL=$ac_cv_prog_DLLTOOL
11292 if test -n "$DLLTOOL"; then
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11294 $as_echo "$DLLTOOL" >&6; }
11295 else
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11302 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11304 set dummy ${ncn_progname}; ac_word=$2
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306 $as_echo_n "checking for $ac_word... " >&6; }
11307 if ${ac_cv_prog_DLLTOOL+:} false; then :
11308 $as_echo_n "(cached) " >&6
11309 else
11310 if test -n "$DLLTOOL"; then
11311 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11312 else
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320 ac_cv_prog_DLLTOOL="${ncn_progname}"
11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
11324 done
11325 done
11326 IFS=$as_save_IFS
11330 DLLTOOL=$ac_cv_prog_DLLTOOL
11331 if test -n "$DLLTOOL"; then
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11333 $as_echo "$DLLTOOL" >&6; }
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11341 test -n "$ac_cv_prog_DLLTOOL" && break
11342 done
11344 if test -z "$ac_cv_prog_DLLTOOL" ; then
11345 set dummy dlltool
11346 if test $build = $host ; then
11347 DLLTOOL="$2"
11348 else
11349 DLLTOOL="${ncn_tool_prefix}$2"
11355 if test -n "$DSYMUTIL"; then
11356 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11357 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11358 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11361 if test -n "$ac_cv_prog_DSYMUTIL"; then
11362 for ncn_progname in dsymutil; do
11363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11364 set dummy ${ncn_progname}; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366 $as_echo_n "checking for $ac_word... " >&6; }
11367 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 if test -n "$DSYMUTIL"; then
11371 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11372 else
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11384 done
11385 done
11386 IFS=$as_save_IFS
11390 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11391 if test -n "$DSYMUTIL"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11393 $as_echo "$DSYMUTIL" >&6; }
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11400 done
11403 for ncn_progname in dsymutil; do
11404 if test -n "$ncn_tool_prefix"; then
11405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11406 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11408 $as_echo_n "checking for $ac_word... " >&6; }
11409 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 if test -n "$DSYMUTIL"; then
11413 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11414 else
11415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11422 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11426 done
11427 done
11428 IFS=$as_save_IFS
11432 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11433 if test -n "$DSYMUTIL"; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11435 $as_echo "$DSYMUTIL" >&6; }
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11443 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11445 set dummy ${ncn_progname}; ac_word=$2
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11447 $as_echo_n "checking for $ac_word... " >&6; }
11448 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 if test -n "$DSYMUTIL"; then
11452 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11453 else
11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in $PATH
11457 IFS=$as_save_IFS
11458 test -z "$as_dir" && as_dir=.
11459 for ac_exec_ext in '' $ac_executable_extensions; do
11460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11463 break 2
11465 done
11466 done
11467 IFS=$as_save_IFS
11471 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11472 if test -n "$DSYMUTIL"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11474 $as_echo "$DSYMUTIL" >&6; }
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11482 test -n "$ac_cv_prog_DSYMUTIL" && break
11483 done
11485 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11486 set dummy dsymutil
11487 if test $build = $host ; then
11488 DSYMUTIL="$2"
11489 else
11490 DSYMUTIL="${ncn_tool_prefix}$2"
11496 if test -n "$LD"; then
11497 ac_cv_prog_LD=$LD
11498 elif test -n "$ac_cv_prog_LD"; then
11499 LD=$ac_cv_prog_LD
11502 if test -n "$ac_cv_prog_LD"; then
11503 for ncn_progname in ld; do
11504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11505 set dummy ${ncn_progname}; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if ${ac_cv_prog_LD+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 if test -n "$LD"; then
11512 ac_cv_prog_LD="$LD" # Let the user override the test.
11513 else
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_prog_LD="${ncn_progname}"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11525 done
11526 done
11527 IFS=$as_save_IFS
11531 LD=$ac_cv_prog_LD
11532 if test -n "$LD"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11534 $as_echo "$LD" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11541 done
11544 for ncn_progname in ld; do
11545 if test -n "$ncn_tool_prefix"; then
11546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11547 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_prog_LD+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 if test -n "$LD"; then
11554 ac_cv_prog_LD="$LD" # Let the user override the test.
11555 else
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 break 2
11567 done
11568 done
11569 IFS=$as_save_IFS
11573 LD=$ac_cv_prog_LD
11574 if test -n "$LD"; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11576 $as_echo "$LD" >&6; }
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11584 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11586 set dummy ${ncn_progname}; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if ${ac_cv_prog_LD+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 if test -n "$LD"; then
11593 ac_cv_prog_LD="$LD" # Let the user override the test.
11594 else
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 ac_cv_prog_LD="${ncn_progname}"
11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11606 done
11607 done
11608 IFS=$as_save_IFS
11612 LD=$ac_cv_prog_LD
11613 if test -n "$LD"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11615 $as_echo "$LD" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11623 test -n "$ac_cv_prog_LD" && break
11624 done
11626 if test -z "$ac_cv_prog_LD" ; then
11627 set dummy ld
11628 if test $build = $host ; then
11629 LD="$2"
11630 else
11631 LD="${ncn_tool_prefix}$2"
11637 if test -n "$LIPO"; then
11638 ac_cv_prog_LIPO=$LIPO
11639 elif test -n "$ac_cv_prog_LIPO"; then
11640 LIPO=$ac_cv_prog_LIPO
11643 if test -n "$ac_cv_prog_LIPO"; then
11644 for ncn_progname in lipo; do
11645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11646 set dummy ${ncn_progname}; ac_word=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648 $as_echo_n "checking for $ac_word... " >&6; }
11649 if ${ac_cv_prog_LIPO+:} false; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 if test -n "$LIPO"; then
11653 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11654 else
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11662 ac_cv_prog_LIPO="${ncn_progname}"
11663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 break 2
11666 done
11667 done
11668 IFS=$as_save_IFS
11672 LIPO=$ac_cv_prog_LIPO
11673 if test -n "$LIPO"; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11675 $as_echo "$LIPO" >&6; }
11676 else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11682 done
11685 for ncn_progname in lipo; do
11686 if test -n "$ncn_tool_prefix"; then
11687 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11688 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690 $as_echo_n "checking for $ac_word... " >&6; }
11691 if ${ac_cv_prog_LIPO+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 if test -n "$LIPO"; then
11695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11696 else
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11708 done
11709 done
11710 IFS=$as_save_IFS
11714 LIPO=$ac_cv_prog_LIPO
11715 if test -n "$LIPO"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11717 $as_echo "$LIPO" >&6; }
11718 else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720 $as_echo "no" >&6; }
11725 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11727 set dummy ${ncn_progname}; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if ${ac_cv_prog_LIPO+:} false; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 if test -n "$LIPO"; then
11734 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11735 else
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $PATH
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11743 ac_cv_prog_LIPO="${ncn_progname}"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 break 2
11747 done
11748 done
11749 IFS=$as_save_IFS
11753 LIPO=$ac_cv_prog_LIPO
11754 if test -n "$LIPO"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11756 $as_echo "$LIPO" >&6; }
11757 else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11764 test -n "$ac_cv_prog_LIPO" && break
11765 done
11767 if test -z "$ac_cv_prog_LIPO" ; then
11768 set dummy lipo
11769 if test $build = $host ; then
11770 LIPO="$2"
11771 else
11772 LIPO="${ncn_tool_prefix}$2"
11778 if test -n "$NM"; then
11779 ac_cv_prog_NM=$NM
11780 elif test -n "$ac_cv_prog_NM"; then
11781 NM=$ac_cv_prog_NM
11784 if test -n "$ac_cv_prog_NM"; then
11785 for ncn_progname in nm; do
11786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11787 set dummy ${ncn_progname}; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_prog_NM+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 if test -n "$NM"; then
11794 ac_cv_prog_NM="$NM" # Let the user override the test.
11795 else
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803 ac_cv_prog_NM="${ncn_progname}"
11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11807 done
11808 done
11809 IFS=$as_save_IFS
11813 NM=$ac_cv_prog_NM
11814 if test -n "$NM"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11816 $as_echo "$NM" >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11823 done
11826 for ncn_progname in nm; do
11827 if test -n "$ncn_tool_prefix"; then
11828 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11829 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if ${ac_cv_prog_NM+:} false; then :
11833 $as_echo_n "(cached) " >&6
11834 else
11835 if test -n "$NM"; then
11836 ac_cv_prog_NM="$NM" # Let the user override the test.
11837 else
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11849 done
11850 done
11851 IFS=$as_save_IFS
11855 NM=$ac_cv_prog_NM
11856 if test -n "$NM"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11858 $as_echo "$NM" >&6; }
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11866 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11868 set dummy ${ncn_progname}; ac_word=$2
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870 $as_echo_n "checking for $ac_word... " >&6; }
11871 if ${ac_cv_prog_NM+:} false; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 if test -n "$NM"; then
11875 ac_cv_prog_NM="$NM" # Let the user override the test.
11876 else
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
11883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11884 ac_cv_prog_NM="${ncn_progname}"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 break 2
11888 done
11889 done
11890 IFS=$as_save_IFS
11894 NM=$ac_cv_prog_NM
11895 if test -n "$NM"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11897 $as_echo "$NM" >&6; }
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11905 test -n "$ac_cv_prog_NM" && break
11906 done
11908 if test -z "$ac_cv_prog_NM" ; then
11909 set dummy nm
11910 if test $build = $host ; then
11911 NM="$2"
11912 else
11913 NM="${ncn_tool_prefix}$2"
11919 if test -n "$RANLIB"; then
11920 ac_cv_prog_RANLIB=$RANLIB
11921 elif test -n "$ac_cv_prog_RANLIB"; then
11922 RANLIB=$ac_cv_prog_RANLIB
11925 if test -n "$ac_cv_prog_RANLIB"; then
11926 for ncn_progname in ranlib; do
11927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11928 set dummy ${ncn_progname}; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_prog_RANLIB+:} false; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 if test -n "$RANLIB"; then
11935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11936 else
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944 ac_cv_prog_RANLIB="${ncn_progname}"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11948 done
11949 done
11950 IFS=$as_save_IFS
11954 RANLIB=$ac_cv_prog_RANLIB
11955 if test -n "$RANLIB"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11957 $as_echo "$RANLIB" >&6; }
11958 else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11964 done
11967 for ncn_progname in ranlib; do
11968 if test -n "$ncn_tool_prefix"; then
11969 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11970 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972 $as_echo_n "checking for $ac_word... " >&6; }
11973 if ${ac_cv_prog_RANLIB+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 if test -n "$RANLIB"; then
11977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11978 else
11979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $PATH
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11986 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 break 2
11990 done
11991 done
11992 IFS=$as_save_IFS
11996 RANLIB=$ac_cv_prog_RANLIB
11997 if test -n "$RANLIB"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11999 $as_echo "$RANLIB" >&6; }
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12007 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12009 set dummy ${ncn_progname}; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if ${ac_cv_prog_RANLIB+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 if test -n "$RANLIB"; then
12016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12017 else
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_prog_RANLIB="${ncn_progname}"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12029 done
12030 done
12031 IFS=$as_save_IFS
12035 RANLIB=$ac_cv_prog_RANLIB
12036 if test -n "$RANLIB"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12038 $as_echo "$RANLIB" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12046 test -n "$ac_cv_prog_RANLIB" && break
12047 done
12049 if test -z "$ac_cv_prog_RANLIB" ; then
12050 RANLIB="true"
12055 if test -n "$STRIP"; then
12056 ac_cv_prog_STRIP=$STRIP
12057 elif test -n "$ac_cv_prog_STRIP"; then
12058 STRIP=$ac_cv_prog_STRIP
12061 if test -n "$ac_cv_prog_STRIP"; then
12062 for ncn_progname in strip; do
12063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12064 set dummy ${ncn_progname}; ac_word=$2
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066 $as_echo_n "checking for $ac_word... " >&6; }
12067 if ${ac_cv_prog_STRIP+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 if test -n "$STRIP"; then
12071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12072 else
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $PATH
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12080 ac_cv_prog_STRIP="${ncn_progname}"
12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12082 break 2
12084 done
12085 done
12086 IFS=$as_save_IFS
12090 STRIP=$ac_cv_prog_STRIP
12091 if test -n "$STRIP"; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12093 $as_echo "$STRIP" >&6; }
12094 else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12100 done
12103 for ncn_progname in strip; do
12104 if test -n "$ncn_tool_prefix"; then
12105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12106 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12108 $as_echo_n "checking for $ac_word... " >&6; }
12109 if ${ac_cv_prog_STRIP+:} false; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 if test -n "$STRIP"; then
12113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12114 else
12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116 for as_dir in $PATH
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
12120 for ac_exec_ext in '' $ac_executable_extensions; do
12121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12122 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12124 break 2
12126 done
12127 done
12128 IFS=$as_save_IFS
12132 STRIP=$ac_cv_prog_STRIP
12133 if test -n "$STRIP"; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12135 $as_echo "$STRIP" >&6; }
12136 else
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12143 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12145 set dummy ${ncn_progname}; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if ${ac_cv_prog_STRIP+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 if test -n "$STRIP"; then
12152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12153 else
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_prog_STRIP="${ncn_progname}"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 break 2
12165 done
12166 done
12167 IFS=$as_save_IFS
12171 STRIP=$ac_cv_prog_STRIP
12172 if test -n "$STRIP"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12174 $as_echo "$STRIP" >&6; }
12175 else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12182 test -n "$ac_cv_prog_STRIP" && break
12183 done
12185 if test -z "$ac_cv_prog_STRIP" ; then
12186 STRIP="true"
12191 if test -n "$WINDRES"; then
12192 ac_cv_prog_WINDRES=$WINDRES
12193 elif test -n "$ac_cv_prog_WINDRES"; then
12194 WINDRES=$ac_cv_prog_WINDRES
12197 if test -n "$ac_cv_prog_WINDRES"; then
12198 for ncn_progname in windres; do
12199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12200 set dummy ${ncn_progname}; ac_word=$2
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12202 $as_echo_n "checking for $ac_word... " >&6; }
12203 if ${ac_cv_prog_WINDRES+:} false; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 if test -n "$WINDRES"; then
12207 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12208 else
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH
12212 IFS=$as_save_IFS
12213 test -z "$as_dir" && as_dir=.
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216 ac_cv_prog_WINDRES="${ncn_progname}"
12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 break 2
12220 done
12221 done
12222 IFS=$as_save_IFS
12226 WINDRES=$ac_cv_prog_WINDRES
12227 if test -n "$WINDRES"; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12229 $as_echo "$WINDRES" >&6; }
12230 else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12236 done
12239 for ncn_progname in windres; do
12240 if test -n "$ncn_tool_prefix"; then
12241 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12242 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_prog_WINDRES+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 if test -n "$WINDRES"; then
12249 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12250 else
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260 break 2
12262 done
12263 done
12264 IFS=$as_save_IFS
12268 WINDRES=$ac_cv_prog_WINDRES
12269 if test -n "$WINDRES"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12271 $as_echo "$WINDRES" >&6; }
12272 else
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12279 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12281 set dummy ${ncn_progname}; ac_word=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if ${ac_cv_prog_WINDRES+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 if test -n "$WINDRES"; then
12288 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12289 else
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
12295 for ac_exec_ext in '' $ac_executable_extensions; do
12296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12297 ac_cv_prog_WINDRES="${ncn_progname}"
12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299 break 2
12301 done
12302 done
12303 IFS=$as_save_IFS
12307 WINDRES=$ac_cv_prog_WINDRES
12308 if test -n "$WINDRES"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12310 $as_echo "$WINDRES" >&6; }
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12318 test -n "$ac_cv_prog_WINDRES" && break
12319 done
12321 if test -z "$ac_cv_prog_WINDRES" ; then
12322 set dummy windres
12323 if test $build = $host ; then
12324 WINDRES="$2"
12325 else
12326 WINDRES="${ncn_tool_prefix}$2"
12332 if test -n "$WINDMC"; then
12333 ac_cv_prog_WINDMC=$WINDMC
12334 elif test -n "$ac_cv_prog_WINDMC"; then
12335 WINDMC=$ac_cv_prog_WINDMC
12338 if test -n "$ac_cv_prog_WINDMC"; then
12339 for ncn_progname in windmc; do
12340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12341 set dummy ${ncn_progname}; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if ${ac_cv_prog_WINDMC+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 if test -n "$WINDMC"; then
12348 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12349 else
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12357 ac_cv_prog_WINDMC="${ncn_progname}"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12361 done
12362 done
12363 IFS=$as_save_IFS
12367 WINDMC=$ac_cv_prog_WINDMC
12368 if test -n "$WINDMC"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12370 $as_echo "$WINDMC" >&6; }
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12377 done
12380 for ncn_progname in windmc; do
12381 if test -n "$ncn_tool_prefix"; then
12382 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12383 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385 $as_echo_n "checking for $ac_word... " >&6; }
12386 if ${ac_cv_prog_WINDMC+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 if test -n "$WINDMC"; then
12390 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12391 else
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401 break 2
12403 done
12404 done
12405 IFS=$as_save_IFS
12409 WINDMC=$ac_cv_prog_WINDMC
12410 if test -n "$WINDMC"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12412 $as_echo "$WINDMC" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12420 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12422 set dummy ${ncn_progname}; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424 $as_echo_n "checking for $ac_word... " >&6; }
12425 if ${ac_cv_prog_WINDMC+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 if test -n "$WINDMC"; then
12429 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12430 else
12431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432 for as_dir in $PATH
12434 IFS=$as_save_IFS
12435 test -z "$as_dir" && as_dir=.
12436 for ac_exec_ext in '' $ac_executable_extensions; do
12437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12438 ac_cv_prog_WINDMC="${ncn_progname}"
12439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12440 break 2
12442 done
12443 done
12444 IFS=$as_save_IFS
12448 WINDMC=$ac_cv_prog_WINDMC
12449 if test -n "$WINDMC"; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12451 $as_echo "$WINDMC" >&6; }
12452 else
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454 $as_echo "no" >&6; }
12459 test -n "$ac_cv_prog_WINDMC" && break
12460 done
12462 if test -z "$ac_cv_prog_WINDMC" ; then
12463 set dummy windmc
12464 if test $build = $host ; then
12465 WINDMC="$2"
12466 else
12467 WINDMC="${ncn_tool_prefix}$2"
12473 if test -n "$OBJCOPY"; then
12474 ac_cv_prog_OBJCOPY=$OBJCOPY
12475 elif test -n "$ac_cv_prog_OBJCOPY"; then
12476 OBJCOPY=$ac_cv_prog_OBJCOPY
12479 if test -n "$ac_cv_prog_OBJCOPY"; then
12480 for ncn_progname in objcopy; do
12481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12482 set dummy ${ncn_progname}; ac_word=$2
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484 $as_echo_n "checking for $ac_word... " >&6; }
12485 if ${ac_cv_prog_OBJCOPY+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488 if test -n "$OBJCOPY"; then
12489 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12490 else
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
12496 for ac_exec_ext in '' $ac_executable_extensions; do
12497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12498 ac_cv_prog_OBJCOPY="${ncn_progname}"
12499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500 break 2
12502 done
12503 done
12504 IFS=$as_save_IFS
12508 OBJCOPY=$ac_cv_prog_OBJCOPY
12509 if test -n "$OBJCOPY"; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12511 $as_echo "$OBJCOPY" >&6; }
12512 else
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514 $as_echo "no" >&6; }
12518 done
12521 for ncn_progname in objcopy; do
12522 if test -n "$ncn_tool_prefix"; then
12523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12524 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526 $as_echo_n "checking for $ac_word... " >&6; }
12527 if ${ac_cv_prog_OBJCOPY+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530 if test -n "$OBJCOPY"; then
12531 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12532 else
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 break 2
12544 done
12545 done
12546 IFS=$as_save_IFS
12550 OBJCOPY=$ac_cv_prog_OBJCOPY
12551 if test -n "$OBJCOPY"; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12553 $as_echo "$OBJCOPY" >&6; }
12554 else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12561 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12563 set dummy ${ncn_progname}; ac_word=$2
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565 $as_echo_n "checking for $ac_word... " >&6; }
12566 if ${ac_cv_prog_OBJCOPY+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 if test -n "$OBJCOPY"; then
12570 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12571 else
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $PATH
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12579 ac_cv_prog_OBJCOPY="${ncn_progname}"
12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581 break 2
12583 done
12584 done
12585 IFS=$as_save_IFS
12589 OBJCOPY=$ac_cv_prog_OBJCOPY
12590 if test -n "$OBJCOPY"; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12592 $as_echo "$OBJCOPY" >&6; }
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12600 test -n "$ac_cv_prog_OBJCOPY" && break
12601 done
12603 if test -z "$ac_cv_prog_OBJCOPY" ; then
12604 set dummy objcopy
12605 if test $build = $host ; then
12606 OBJCOPY="$2"
12607 else
12608 OBJCOPY="${ncn_tool_prefix}$2"
12614 if test -n "$OBJDUMP"; then
12615 ac_cv_prog_OBJDUMP=$OBJDUMP
12616 elif test -n "$ac_cv_prog_OBJDUMP"; then
12617 OBJDUMP=$ac_cv_prog_OBJDUMP
12620 if test -n "$ac_cv_prog_OBJDUMP"; then
12621 for ncn_progname in objdump; do
12622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12623 set dummy ${ncn_progname}; ac_word=$2
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12625 $as_echo_n "checking for $ac_word... " >&6; }
12626 if ${ac_cv_prog_OBJDUMP+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 if test -n "$OBJDUMP"; then
12630 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12631 else
12632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in $PATH
12635 IFS=$as_save_IFS
12636 test -z "$as_dir" && as_dir=.
12637 for ac_exec_ext in '' $ac_executable_extensions; do
12638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12639 ac_cv_prog_OBJDUMP="${ncn_progname}"
12640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12641 break 2
12643 done
12644 done
12645 IFS=$as_save_IFS
12649 OBJDUMP=$ac_cv_prog_OBJDUMP
12650 if test -n "$OBJDUMP"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12652 $as_echo "$OBJDUMP" >&6; }
12653 else
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12659 done
12662 for ncn_progname in objdump; do
12663 if test -n "$ncn_tool_prefix"; then
12664 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12665 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if ${ac_cv_prog_OBJDUMP+:} false; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671 if test -n "$OBJDUMP"; then
12672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12673 else
12674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 for as_dir in $PATH
12677 IFS=$as_save_IFS
12678 test -z "$as_dir" && as_dir=.
12679 for ac_exec_ext in '' $ac_executable_extensions; do
12680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12681 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 break 2
12685 done
12686 done
12687 IFS=$as_save_IFS
12691 OBJDUMP=$ac_cv_prog_OBJDUMP
12692 if test -n "$OBJDUMP"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12694 $as_echo "$OBJDUMP" >&6; }
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12702 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12704 set dummy ${ncn_progname}; ac_word=$2
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706 $as_echo_n "checking for $ac_word... " >&6; }
12707 if ${ac_cv_prog_OBJDUMP+:} false; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 if test -n "$OBJDUMP"; then
12711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12712 else
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
12718 for ac_exec_ext in '' $ac_executable_extensions; do
12719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12720 ac_cv_prog_OBJDUMP="${ncn_progname}"
12721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722 break 2
12724 done
12725 done
12726 IFS=$as_save_IFS
12730 OBJDUMP=$ac_cv_prog_OBJDUMP
12731 if test -n "$OBJDUMP"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12733 $as_echo "$OBJDUMP" >&6; }
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12741 test -n "$ac_cv_prog_OBJDUMP" && break
12742 done
12744 if test -z "$ac_cv_prog_OBJDUMP" ; then
12745 set dummy objdump
12746 if test $build = $host ; then
12747 OBJDUMP="$2"
12748 else
12749 OBJDUMP="${ncn_tool_prefix}$2"
12755 if test -n "$OTOOL"; then
12756 ac_cv_prog_OTOOL=$OTOOL
12757 elif test -n "$ac_cv_prog_OTOOL"; then
12758 OTOOL=$ac_cv_prog_OTOOL
12761 if test -n "$ac_cv_prog_OTOOL"; then
12762 for ncn_progname in otool; do
12763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12764 set dummy ${ncn_progname}; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if ${ac_cv_prog_OTOOL+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 if test -n "$OTOOL"; then
12771 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12772 else
12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774 for as_dir in $PATH
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12780 ac_cv_prog_OTOOL="${ncn_progname}"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12784 done
12785 done
12786 IFS=$as_save_IFS
12790 OTOOL=$ac_cv_prog_OTOOL
12791 if test -n "$OTOOL"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12793 $as_echo "$OTOOL" >&6; }
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12800 done
12803 for ncn_progname in otool; do
12804 if test -n "$ncn_tool_prefix"; then
12805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12806 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if ${ac_cv_prog_OTOOL+:} false; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 if test -n "$OTOOL"; then
12813 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12814 else
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12822 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12826 done
12827 done
12828 IFS=$as_save_IFS
12832 OTOOL=$ac_cv_prog_OTOOL
12833 if test -n "$OTOOL"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12835 $as_echo "$OTOOL" >&6; }
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12843 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12845 set dummy ${ncn_progname}; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if ${ac_cv_prog_OTOOL+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 if test -n "$OTOOL"; then
12852 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12853 else
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861 ac_cv_prog_OTOOL="${ncn_progname}"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12865 done
12866 done
12867 IFS=$as_save_IFS
12871 OTOOL=$ac_cv_prog_OTOOL
12872 if test -n "$OTOOL"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12874 $as_echo "$OTOOL" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12882 test -n "$ac_cv_prog_OTOOL" && break
12883 done
12885 if test -z "$ac_cv_prog_OTOOL" ; then
12886 set dummy otool
12887 if test $build = $host ; then
12888 OTOOL="$2"
12889 else
12890 OTOOL="${ncn_tool_prefix}$2"
12896 if test -n "$READELF"; then
12897 ac_cv_prog_READELF=$READELF
12898 elif test -n "$ac_cv_prog_READELF"; then
12899 READELF=$ac_cv_prog_READELF
12902 if test -n "$ac_cv_prog_READELF"; then
12903 for ncn_progname in readelf; do
12904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12905 set dummy ${ncn_progname}; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_prog_READELF+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 if test -n "$READELF"; then
12912 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921 ac_cv_prog_READELF="${ncn_progname}"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12925 done
12926 done
12927 IFS=$as_save_IFS
12931 READELF=$ac_cv_prog_READELF
12932 if test -n "$READELF"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12934 $as_echo "$READELF" >&6; }
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12941 done
12944 for ncn_progname in readelf; do
12945 if test -n "$ncn_tool_prefix"; then
12946 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12947 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if ${ac_cv_prog_READELF+:} false; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 if test -n "$READELF"; then
12954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12955 else
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12963 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 break 2
12967 done
12968 done
12969 IFS=$as_save_IFS
12973 READELF=$ac_cv_prog_READELF
12974 if test -n "$READELF"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12976 $as_echo "$READELF" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12984 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12986 set dummy ${ncn_progname}; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if ${ac_cv_prog_READELF+:} false; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 if test -n "$READELF"; then
12993 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12994 else
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12998 IFS=$as_save_IFS
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
13001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13002 ac_cv_prog_READELF="${ncn_progname}"
13003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004 break 2
13006 done
13007 done
13008 IFS=$as_save_IFS
13012 READELF=$ac_cv_prog_READELF
13013 if test -n "$READELF"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13015 $as_echo "$READELF" >&6; }
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13023 test -n "$ac_cv_prog_READELF" && break
13024 done
13026 if test -z "$ac_cv_prog_READELF" ; then
13027 set dummy readelf
13028 if test $build = $host ; then
13029 READELF="$2"
13030 else
13031 READELF="${ncn_tool_prefix}$2"
13041 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13045 $as_echo_n "checking for -plugin option... " >&6; }
13047 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13048 plugin_option=
13049 for plugin in $plugin_names; do
13050 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13051 if test x$plugin_so = x$plugin; then
13052 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13054 if test x$plugin_so != x$plugin; then
13055 plugin_option="--plugin $plugin_so"
13056 break
13058 done
13059 if test -n "$ac_tool_prefix"; then
13060 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13061 set dummy ${ac_tool_prefix}ar; ac_word=$2
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13063 $as_echo_n "checking for $ac_word... " >&6; }
13064 if ${ac_cv_prog_AR+:} false; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 if test -n "$AR"; then
13068 ac_cv_prog_AR="$AR" # Let the user override the test.
13069 else
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077 ac_cv_prog_AR="${ac_tool_prefix}ar"
13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13081 done
13082 done
13083 IFS=$as_save_IFS
13087 AR=$ac_cv_prog_AR
13088 if test -n "$AR"; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13090 $as_echo "$AR" >&6; }
13091 else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13098 if test -z "$ac_cv_prog_AR"; then
13099 ac_ct_AR=$AR
13100 # Extract the first word of "ar", so it can be a program name with args.
13101 set dummy ar; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 if test -n "$ac_ct_AR"; then
13108 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13109 else
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117 ac_cv_prog_ac_ct_AR="ar"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13121 done
13122 done
13123 IFS=$as_save_IFS
13127 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13128 if test -n "$ac_ct_AR"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13130 $as_echo "$ac_ct_AR" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13136 if test "x$ac_ct_AR" = x; then
13137 AR=""
13138 else
13139 case $cross_compiling:$ac_tool_warned in
13140 yes:)
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13143 ac_tool_warned=yes ;;
13144 esac
13145 AR=$ac_ct_AR
13147 else
13148 AR="$ac_cv_prog_AR"
13151 if test "${AR}" = "" ; then
13152 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13154 touch conftest.c
13155 ${AR} $plugin_option rc conftest.a conftest.c
13156 if test "$?" != 0; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13158 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13159 plugin_option=
13161 rm -f conftest.*
13162 if test -n "$plugin_option"; then
13163 PLUGIN_OPTION="$plugin_option"
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13165 $as_echo "$plugin_option" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13171 AR_PLUGIN_OPTION=
13172 RANLIB_PLUGIN_OPTION=
13173 if test -n "$PLUGIN_OPTION"; then
13174 if $AR --help 2>&1 | grep -q "\--plugin"; then
13175 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13177 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13178 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13184 # Target tools.
13186 # Check whether --with-build-time-tools was given.
13187 if test "${with_build_time_tools+set}" = set; then :
13188 withval=$with_build_time_tools; case x"$withval" in
13189 x/*) ;;
13191 with_build_time_tools=
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13193 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13195 esac
13196 else
13197 with_build_time_tools=
13203 if test -n "$CC_FOR_TARGET"; then
13204 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13205 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13206 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13209 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13210 for ncn_progname in cc gcc; do
13211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13212 set dummy ${ncn_progname}; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 if test -n "$CC_FOR_TARGET"; then
13219 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13220 else
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13228 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 break 2
13232 done
13233 done
13234 IFS=$as_save_IFS
13238 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13239 if test -n "$CC_FOR_TARGET"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13241 $as_echo "$CC_FOR_TARGET" >&6; }
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13248 done
13251 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13252 for ncn_progname in cc gcc; do
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13254 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13255 if test -x $with_build_time_tools/${ncn_progname}; then
13256 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13258 $as_echo "yes" >&6; }
13259 break
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13264 done
13267 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13268 for ncn_progname in cc gcc; do
13269 if test -n "$ncn_target_tool_prefix"; then
13270 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13271 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273 $as_echo_n "checking for $ac_word... " >&6; }
13274 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 if test -n "$CC_FOR_TARGET"; then
13278 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13279 else
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13287 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289 break 2
13291 done
13292 done
13293 IFS=$as_save_IFS
13297 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13298 if test -n "$CC_FOR_TARGET"; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13300 $as_echo "$CC_FOR_TARGET" >&6; }
13301 else
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303 $as_echo "no" >&6; }
13308 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13310 set dummy ${ncn_progname}; ac_word=$2
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13312 $as_echo_n "checking for $ac_word... " >&6; }
13313 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13314 $as_echo_n "(cached) " >&6
13315 else
13316 if test -n "$CC_FOR_TARGET"; then
13317 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13318 else
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $PATH
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13326 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13328 break 2
13330 done
13331 done
13332 IFS=$as_save_IFS
13336 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13337 if test -n "$CC_FOR_TARGET"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13339 $as_echo "$CC_FOR_TARGET" >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13347 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13348 done
13351 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13352 set dummy cc gcc
13353 if test $build = $target ; then
13354 CC_FOR_TARGET="$2"
13355 else
13356 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13358 else
13359 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13364 if test -n "$CXX_FOR_TARGET"; then
13365 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13366 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13367 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13370 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13371 for ncn_progname in c++ g++ cxx gxx; do
13372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13373 set dummy ${ncn_progname}; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 if test -n "$CXX_FOR_TARGET"; then
13380 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13389 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13393 done
13394 done
13395 IFS=$as_save_IFS
13399 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13400 if test -n "$CXX_FOR_TARGET"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13402 $as_echo "$CXX_FOR_TARGET" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13409 done
13412 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13413 for ncn_progname in c++ g++ cxx gxx; do
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13415 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13416 if test -x $with_build_time_tools/${ncn_progname}; then
13417 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13419 $as_echo "yes" >&6; }
13420 break
13421 else
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13425 done
13428 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13429 for ncn_progname in c++ g++ cxx gxx; do
13430 if test -n "$ncn_target_tool_prefix"; then
13431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13432 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434 $as_echo_n "checking for $ac_word... " >&6; }
13435 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 if test -n "$CXX_FOR_TARGET"; then
13439 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13440 else
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13452 done
13453 done
13454 IFS=$as_save_IFS
13458 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13459 if test -n "$CXX_FOR_TARGET"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13461 $as_echo "$CXX_FOR_TARGET" >&6; }
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13469 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13471 set dummy ${ncn_progname}; ac_word=$2
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473 $as_echo_n "checking for $ac_word... " >&6; }
13474 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 if test -n "$CXX_FOR_TARGET"; then
13478 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13479 else
13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
13485 for ac_exec_ext in '' $ac_executable_extensions; do
13486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13487 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13489 break 2
13491 done
13492 done
13493 IFS=$as_save_IFS
13497 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13498 if test -n "$CXX_FOR_TARGET"; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13500 $as_echo "$CXX_FOR_TARGET" >&6; }
13501 else
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13503 $as_echo "no" >&6; }
13508 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13509 done
13512 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13513 set dummy c++ g++ cxx gxx
13514 if test $build = $target ; then
13515 CXX_FOR_TARGET="$2"
13516 else
13517 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13519 else
13520 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13525 if test -n "$GCC_FOR_TARGET"; then
13526 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13527 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13528 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13531 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13532 for ncn_progname in gcc; do
13533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13534 set dummy ${ncn_progname}; ac_word=$2
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536 $as_echo_n "checking for $ac_word... " >&6; }
13537 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13538 $as_echo_n "(cached) " >&6
13539 else
13540 if test -n "$GCC_FOR_TARGET"; then
13541 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13542 else
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13546 IFS=$as_save_IFS
13547 test -z "$as_dir" && as_dir=.
13548 for ac_exec_ext in '' $ac_executable_extensions; do
13549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13550 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13552 break 2
13554 done
13555 done
13556 IFS=$as_save_IFS
13560 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13561 if test -n "$GCC_FOR_TARGET"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13563 $as_echo "$GCC_FOR_TARGET" >&6; }
13564 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13570 done
13573 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13574 for ncn_progname in gcc; do
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13576 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13577 if test -x $with_build_time_tools/${ncn_progname}; then
13578 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13580 $as_echo "yes" >&6; }
13581 break
13582 else
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13586 done
13589 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13590 for ncn_progname in gcc; do
13591 if test -n "$ncn_target_tool_prefix"; then
13592 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13593 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13595 $as_echo_n "checking for $ac_word... " >&6; }
13596 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 if test -n "$GCC_FOR_TARGET"; then
13600 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13601 else
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in $PATH
13605 IFS=$as_save_IFS
13606 test -z "$as_dir" && as_dir=.
13607 for ac_exec_ext in '' $ac_executable_extensions; do
13608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13609 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 break 2
13613 done
13614 done
13615 IFS=$as_save_IFS
13619 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13620 if test -n "$GCC_FOR_TARGET"; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13622 $as_echo "$GCC_FOR_TARGET" >&6; }
13623 else
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13630 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13632 set dummy ${ncn_progname}; ac_word=$2
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13634 $as_echo_n "checking for $ac_word... " >&6; }
13635 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13638 if test -n "$GCC_FOR_TARGET"; then
13639 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13640 else
13641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642 for as_dir in $PATH
13644 IFS=$as_save_IFS
13645 test -z "$as_dir" && as_dir=.
13646 for ac_exec_ext in '' $ac_executable_extensions; do
13647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13648 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13650 break 2
13652 done
13653 done
13654 IFS=$as_save_IFS
13658 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13659 if test -n "$GCC_FOR_TARGET"; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13661 $as_echo "$GCC_FOR_TARGET" >&6; }
13662 else
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664 $as_echo "no" >&6; }
13669 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13670 done
13673 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13674 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13675 else
13676 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13681 if test -n "$GFORTRAN_FOR_TARGET"; then
13682 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13683 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13684 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13687 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13688 for ncn_progname in gfortran; do
13689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13690 set dummy ${ncn_progname}; ac_word=$2
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692 $as_echo_n "checking for $ac_word... " >&6; }
13693 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 if test -n "$GFORTRAN_FOR_TARGET"; then
13697 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13698 else
13699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
13705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13706 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 break 2
13710 done
13711 done
13712 IFS=$as_save_IFS
13716 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13717 if test -n "$GFORTRAN_FOR_TARGET"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13719 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13720 else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 $as_echo "no" >&6; }
13726 done
13729 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13730 for ncn_progname in gfortran; do
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13732 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13733 if test -x $with_build_time_tools/${ncn_progname}; then
13734 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13736 $as_echo "yes" >&6; }
13737 break
13738 else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 $as_echo "no" >&6; }
13742 done
13745 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13746 for ncn_progname in gfortran; do
13747 if test -n "$ncn_target_tool_prefix"; then
13748 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13749 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751 $as_echo_n "checking for $ac_word... " >&6; }
13752 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 if test -n "$GFORTRAN_FOR_TARGET"; then
13756 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13757 else
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13765 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13769 done
13770 done
13771 IFS=$as_save_IFS
13775 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13776 if test -n "$GFORTRAN_FOR_TARGET"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13778 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13779 else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13786 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13788 set dummy ${ncn_progname}; ac_word=$2
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790 $as_echo_n "checking for $ac_word... " >&6; }
13791 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13792 $as_echo_n "(cached) " >&6
13793 else
13794 if test -n "$GFORTRAN_FOR_TARGET"; then
13795 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13796 else
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13808 done
13809 done
13810 IFS=$as_save_IFS
13814 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13815 if test -n "$GFORTRAN_FOR_TARGET"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13817 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13818 else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820 $as_echo "no" >&6; }
13825 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13826 done
13829 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13830 set dummy gfortran
13831 if test $build = $target ; then
13832 GFORTRAN_FOR_TARGET="$2"
13833 else
13834 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13836 else
13837 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13842 if test -n "$GOC_FOR_TARGET"; then
13843 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13844 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13845 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13848 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13849 for ncn_progname in gccgo; do
13850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13851 set dummy ${ncn_progname}; ac_word=$2
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13853 $as_echo_n "checking for $ac_word... " >&6; }
13854 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857 if test -n "$GOC_FOR_TARGET"; then
13858 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13859 else
13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13863 IFS=$as_save_IFS
13864 test -z "$as_dir" && as_dir=.
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13867 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13869 break 2
13871 done
13872 done
13873 IFS=$as_save_IFS
13877 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13878 if test -n "$GOC_FOR_TARGET"; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13880 $as_echo "$GOC_FOR_TARGET" >&6; }
13881 else
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13883 $as_echo "no" >&6; }
13887 done
13890 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13891 for ncn_progname in gccgo; do
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13893 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13894 if test -x $with_build_time_tools/${ncn_progname}; then
13895 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13897 $as_echo "yes" >&6; }
13898 break
13899 else
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13901 $as_echo "no" >&6; }
13903 done
13906 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13907 for ncn_progname in gccgo; do
13908 if test -n "$ncn_target_tool_prefix"; then
13909 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13910 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912 $as_echo_n "checking for $ac_word... " >&6; }
13913 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 if test -n "$GOC_FOR_TARGET"; then
13917 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13918 else
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13926 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13928 break 2
13930 done
13931 done
13932 IFS=$as_save_IFS
13936 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13937 if test -n "$GOC_FOR_TARGET"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13939 $as_echo "$GOC_FOR_TARGET" >&6; }
13940 else
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942 $as_echo "no" >&6; }
13947 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13949 set dummy ${ncn_progname}; ac_word=$2
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13951 $as_echo_n "checking for $ac_word... " >&6; }
13952 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13953 $as_echo_n "(cached) " >&6
13954 else
13955 if test -n "$GOC_FOR_TARGET"; then
13956 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13957 else
13958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959 for as_dir in $PATH
13961 IFS=$as_save_IFS
13962 test -z "$as_dir" && as_dir=.
13963 for ac_exec_ext in '' $ac_executable_extensions; do
13964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13965 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13967 break 2
13969 done
13970 done
13971 IFS=$as_save_IFS
13975 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13976 if test -n "$GOC_FOR_TARGET"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13978 $as_echo "$GOC_FOR_TARGET" >&6; }
13979 else
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13986 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13987 done
13990 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13991 set dummy gccgo
13992 if test $build = $target ; then
13993 GOC_FOR_TARGET="$2"
13994 else
13995 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13997 else
13998 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14003 if test -n "$GDC_FOR_TARGET"; then
14004 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14005 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14006 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14009 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14010 for ncn_progname in gdc; do
14011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14012 set dummy ${ncn_progname}; ac_word=$2
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14014 $as_echo_n "checking for $ac_word... " >&6; }
14015 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 if test -n "$GDC_FOR_TARGET"; then
14019 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14020 else
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14024 IFS=$as_save_IFS
14025 test -z "$as_dir" && as_dir=.
14026 for ac_exec_ext in '' $ac_executable_extensions; do
14027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14028 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14030 break 2
14032 done
14033 done
14034 IFS=$as_save_IFS
14038 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14039 if test -n "$GDC_FOR_TARGET"; then
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14041 $as_echo "$GDC_FOR_TARGET" >&6; }
14042 else
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14044 $as_echo "no" >&6; }
14048 done
14051 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14052 for ncn_progname in gdc; do
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14054 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14055 if test -x $with_build_time_tools/${ncn_progname}; then
14056 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14058 $as_echo "yes" >&6; }
14059 break
14060 else
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062 $as_echo "no" >&6; }
14064 done
14067 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14068 for ncn_progname in gdc; do
14069 if test -n "$ncn_target_tool_prefix"; then
14070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14071 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14073 $as_echo_n "checking for $ac_word... " >&6; }
14074 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14075 $as_echo_n "(cached) " >&6
14076 else
14077 if test -n "$GDC_FOR_TARGET"; then
14078 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14079 else
14080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14081 for as_dir in $PATH
14083 IFS=$as_save_IFS
14084 test -z "$as_dir" && as_dir=.
14085 for ac_exec_ext in '' $ac_executable_extensions; do
14086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14087 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14089 break 2
14091 done
14092 done
14093 IFS=$as_save_IFS
14097 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14098 if test -n "$GDC_FOR_TARGET"; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14100 $as_echo "$GDC_FOR_TARGET" >&6; }
14101 else
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103 $as_echo "no" >&6; }
14108 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14110 set dummy ${ncn_progname}; ac_word=$2
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14112 $as_echo_n "checking for $ac_word... " >&6; }
14113 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 if test -n "$GDC_FOR_TARGET"; then
14117 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14118 else
14119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14120 for as_dir in $PATH
14122 IFS=$as_save_IFS
14123 test -z "$as_dir" && as_dir=.
14124 for ac_exec_ext in '' $ac_executable_extensions; do
14125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14126 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14128 break 2
14130 done
14131 done
14132 IFS=$as_save_IFS
14136 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14137 if test -n "$GDC_FOR_TARGET"; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14139 $as_echo "$GDC_FOR_TARGET" >&6; }
14140 else
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14147 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14148 done
14151 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14152 set dummy gdc
14153 if test $build = $target ; then
14154 GDC_FOR_TARGET="$2"
14155 else
14156 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14158 else
14159 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14164 if test -n "$GM2_FOR_TARGET"; then
14165 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14166 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14167 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14170 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14171 for ncn_progname in gm2; do
14172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14173 set dummy ${ncn_progname}; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175 $as_echo_n "checking for $ac_word... " >&6; }
14176 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 if test -n "$GM2_FOR_TARGET"; then
14180 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14181 else
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14185 IFS=$as_save_IFS
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14189 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14191 break 2
14193 done
14194 done
14195 IFS=$as_save_IFS
14199 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14200 if test -n "$GM2_FOR_TARGET"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14202 $as_echo "$GM2_FOR_TARGET" >&6; }
14203 else
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14209 done
14212 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14213 for ncn_progname in gm2; do
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14215 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14216 if test -x $with_build_time_tools/${ncn_progname}; then
14217 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14219 $as_echo "yes" >&6; }
14220 break
14221 else
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14225 done
14228 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14229 for ncn_progname in gm2; do
14230 if test -n "$ncn_target_tool_prefix"; then
14231 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14232 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14234 $as_echo_n "checking for $ac_word... " >&6; }
14235 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14236 $as_echo_n "(cached) " >&6
14237 else
14238 if test -n "$GM2_FOR_TARGET"; then
14239 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14240 else
14241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242 for as_dir in $PATH
14244 IFS=$as_save_IFS
14245 test -z "$as_dir" && as_dir=.
14246 for ac_exec_ext in '' $ac_executable_extensions; do
14247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14248 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14250 break 2
14252 done
14253 done
14254 IFS=$as_save_IFS
14258 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14259 if test -n "$GM2_FOR_TARGET"; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14261 $as_echo "$GM2_FOR_TARGET" >&6; }
14262 else
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14269 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14271 set dummy ${ncn_progname}; ac_word=$2
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14273 $as_echo_n "checking for $ac_word... " >&6; }
14274 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 if test -n "$GM2_FOR_TARGET"; then
14278 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14279 else
14280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281 for as_dir in $PATH
14283 IFS=$as_save_IFS
14284 test -z "$as_dir" && as_dir=.
14285 for ac_exec_ext in '' $ac_executable_extensions; do
14286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14287 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14289 break 2
14291 done
14292 done
14293 IFS=$as_save_IFS
14297 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14298 if test -n "$GM2_FOR_TARGET"; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14300 $as_echo "$GM2_FOR_TARGET" >&6; }
14301 else
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14303 $as_echo "no" >&6; }
14308 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14309 done
14312 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14313 set dummy gm2
14314 if test $build = $target ; then
14315 GM2_FOR_TARGET="$2"
14316 else
14317 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14319 else
14320 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14325 cat > conftest.c << \EOF
14326 #ifdef __GNUC__
14327 gcc_yay;
14328 #endif
14330 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14331 have_gcc_for_target=yes
14332 else
14333 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14334 have_gcc_for_target=no
14336 rm conftest.c
14341 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14342 if test -n "$with_build_time_tools"; then
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14344 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14345 if test -x $with_build_time_tools/ar; then
14346 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14347 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14349 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14350 else
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14352 $as_echo "no" >&6; }
14354 elif test $build != $host && test $have_gcc_for_target = yes; then
14355 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14356 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14357 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14360 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14361 # Extract the first word of "ar", so it can be a program name with args.
14362 set dummy ar; ac_word=$2
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14364 $as_echo_n "checking for $ac_word... " >&6; }
14365 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 case $AR_FOR_TARGET in
14369 [\\/]* | ?:[\\/]*)
14370 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14374 for as_dir in $gcc_cv_tool_dirs
14376 IFS=$as_save_IFS
14377 test -z "$as_dir" && as_dir=.
14378 for ac_exec_ext in '' $ac_executable_extensions; do
14379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14380 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14382 break 2
14384 done
14385 done
14386 IFS=$as_save_IFS
14389 esac
14391 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14392 if test -n "$AR_FOR_TARGET"; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14394 $as_echo "$AR_FOR_TARGET" >&6; }
14395 else
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397 $as_echo "no" >&6; }
14402 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14405 if test -n "$AR_FOR_TARGET"; then
14406 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14407 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14408 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14411 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14412 for ncn_progname in ar; do
14413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14414 set dummy ${ncn_progname}; ac_word=$2
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14416 $as_echo_n "checking for $ac_word... " >&6; }
14417 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 if test -n "$AR_FOR_TARGET"; then
14421 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14422 else
14423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424 for as_dir in $PATH
14426 IFS=$as_save_IFS
14427 test -z "$as_dir" && as_dir=.
14428 for ac_exec_ext in '' $ac_executable_extensions; do
14429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14430 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14432 break 2
14434 done
14435 done
14436 IFS=$as_save_IFS
14440 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14441 if test -n "$AR_FOR_TARGET"; then
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14443 $as_echo "$AR_FOR_TARGET" >&6; }
14444 else
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14450 done
14453 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14454 for ncn_progname in ar; do
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14456 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14457 if test -x $with_build_time_tools/${ncn_progname}; then
14458 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14460 $as_echo "yes" >&6; }
14461 break
14462 else
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464 $as_echo "no" >&6; }
14466 done
14469 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14470 for ncn_progname in ar; do
14471 if test -n "$ncn_target_tool_prefix"; then
14472 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14473 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14475 $as_echo_n "checking for $ac_word... " >&6; }
14476 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 if test -n "$AR_FOR_TARGET"; then
14480 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14481 else
14482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $PATH
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
14487 for ac_exec_ext in '' $ac_executable_extensions; do
14488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14489 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14491 break 2
14493 done
14494 done
14495 IFS=$as_save_IFS
14499 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14500 if test -n "$AR_FOR_TARGET"; then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14502 $as_echo "$AR_FOR_TARGET" >&6; }
14503 else
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505 $as_echo "no" >&6; }
14510 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14512 set dummy ${ncn_progname}; ac_word=$2
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14514 $as_echo_n "checking for $ac_word... " >&6; }
14515 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 if test -n "$AR_FOR_TARGET"; then
14519 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14520 else
14521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14522 for as_dir in $PATH
14524 IFS=$as_save_IFS
14525 test -z "$as_dir" && as_dir=.
14526 for ac_exec_ext in '' $ac_executable_extensions; do
14527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14528 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14530 break 2
14532 done
14533 done
14534 IFS=$as_save_IFS
14538 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14539 if test -n "$AR_FOR_TARGET"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14541 $as_echo "$AR_FOR_TARGET" >&6; }
14542 else
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544 $as_echo "no" >&6; }
14549 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14550 done
14553 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14554 set dummy ar
14555 if test $build = $target ; then
14556 AR_FOR_TARGET="$2"
14557 else
14558 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14560 else
14561 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14564 else
14565 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14571 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14572 if test -n "$with_build_time_tools"; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14574 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14575 if test -x $with_build_time_tools/as; then
14576 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14577 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14579 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14580 else
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14584 elif test $build != $host && test $have_gcc_for_target = yes; then
14585 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14586 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14587 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14590 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14591 # Extract the first word of "as", so it can be a program name with args.
14592 set dummy as; ac_word=$2
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14594 $as_echo_n "checking for $ac_word... " >&6; }
14595 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 case $AS_FOR_TARGET in
14599 [\\/]* | ?:[\\/]*)
14600 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604 for as_dir in $gcc_cv_tool_dirs
14606 IFS=$as_save_IFS
14607 test -z "$as_dir" && as_dir=.
14608 for ac_exec_ext in '' $ac_executable_extensions; do
14609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14610 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14612 break 2
14614 done
14615 done
14616 IFS=$as_save_IFS
14619 esac
14621 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14622 if test -n "$AS_FOR_TARGET"; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14624 $as_echo "$AS_FOR_TARGET" >&6; }
14625 else
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14632 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14635 if test -n "$AS_FOR_TARGET"; then
14636 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14637 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14638 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14641 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14642 for ncn_progname in as; do
14643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14644 set dummy ${ncn_progname}; ac_word=$2
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14646 $as_echo_n "checking for $ac_word... " >&6; }
14647 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14648 $as_echo_n "(cached) " >&6
14649 else
14650 if test -n "$AS_FOR_TARGET"; then
14651 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14652 else
14653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654 for as_dir in $PATH
14656 IFS=$as_save_IFS
14657 test -z "$as_dir" && as_dir=.
14658 for ac_exec_ext in '' $ac_executable_extensions; do
14659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14660 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14662 break 2
14664 done
14665 done
14666 IFS=$as_save_IFS
14670 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14671 if test -n "$AS_FOR_TARGET"; then
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14673 $as_echo "$AS_FOR_TARGET" >&6; }
14674 else
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14676 $as_echo "no" >&6; }
14680 done
14683 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14684 for ncn_progname in as; do
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14686 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14687 if test -x $with_build_time_tools/${ncn_progname}; then
14688 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14690 $as_echo "yes" >&6; }
14691 break
14692 else
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14694 $as_echo "no" >&6; }
14696 done
14699 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14700 for ncn_progname in as; do
14701 if test -n "$ncn_target_tool_prefix"; then
14702 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14703 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14705 $as_echo_n "checking for $ac_word... " >&6; }
14706 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14707 $as_echo_n "(cached) " >&6
14708 else
14709 if test -n "$AS_FOR_TARGET"; then
14710 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14711 else
14712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14713 for as_dir in $PATH
14715 IFS=$as_save_IFS
14716 test -z "$as_dir" && as_dir=.
14717 for ac_exec_ext in '' $ac_executable_extensions; do
14718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14719 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14721 break 2
14723 done
14724 done
14725 IFS=$as_save_IFS
14729 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14730 if test -n "$AS_FOR_TARGET"; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14732 $as_echo "$AS_FOR_TARGET" >&6; }
14733 else
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735 $as_echo "no" >&6; }
14740 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14742 set dummy ${ncn_progname}; ac_word=$2
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14744 $as_echo_n "checking for $ac_word... " >&6; }
14745 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14748 if test -n "$AS_FOR_TARGET"; then
14749 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14750 else
14751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752 for as_dir in $PATH
14754 IFS=$as_save_IFS
14755 test -z "$as_dir" && as_dir=.
14756 for ac_exec_ext in '' $ac_executable_extensions; do
14757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14758 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14760 break 2
14762 done
14763 done
14764 IFS=$as_save_IFS
14768 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14769 if test -n "$AS_FOR_TARGET"; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14771 $as_echo "$AS_FOR_TARGET" >&6; }
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14779 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14780 done
14783 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14784 set dummy as
14785 if test $build = $target ; then
14786 AS_FOR_TARGET="$2"
14787 else
14788 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14790 else
14791 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14794 else
14795 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14801 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14802 if test -n "$with_build_time_tools"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14804 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14805 if test -x $with_build_time_tools/dlltool; then
14806 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14807 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14809 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14810 else
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14812 $as_echo "no" >&6; }
14814 elif test $build != $host && test $have_gcc_for_target = yes; then
14815 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14816 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14817 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14820 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14821 # Extract the first word of "dlltool", so it can be a program name with args.
14822 set dummy dlltool; ac_word=$2
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14824 $as_echo_n "checking for $ac_word... " >&6; }
14825 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827 else
14828 case $DLLTOOL_FOR_TARGET in
14829 [\\/]* | ?:[\\/]*)
14830 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14834 for as_dir in $gcc_cv_tool_dirs
14836 IFS=$as_save_IFS
14837 test -z "$as_dir" && as_dir=.
14838 for ac_exec_ext in '' $ac_executable_extensions; do
14839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14840 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14842 break 2
14844 done
14845 done
14846 IFS=$as_save_IFS
14849 esac
14851 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14852 if test -n "$DLLTOOL_FOR_TARGET"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14854 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14855 else
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857 $as_echo "no" >&6; }
14862 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14865 if test -n "$DLLTOOL_FOR_TARGET"; then
14866 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14867 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14868 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14871 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14872 for ncn_progname in dlltool; do
14873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14874 set dummy ${ncn_progname}; ac_word=$2
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14876 $as_echo_n "checking for $ac_word... " >&6; }
14877 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 if test -n "$DLLTOOL_FOR_TARGET"; then
14881 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14882 else
14883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884 for as_dir in $PATH
14886 IFS=$as_save_IFS
14887 test -z "$as_dir" && as_dir=.
14888 for ac_exec_ext in '' $ac_executable_extensions; do
14889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14890 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14892 break 2
14894 done
14895 done
14896 IFS=$as_save_IFS
14900 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14901 if test -n "$DLLTOOL_FOR_TARGET"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14903 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14904 else
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906 $as_echo "no" >&6; }
14910 done
14913 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14914 for ncn_progname in dlltool; do
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14916 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14917 if test -x $with_build_time_tools/${ncn_progname}; then
14918 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14920 $as_echo "yes" >&6; }
14921 break
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14926 done
14929 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14930 for ncn_progname in dlltool; do
14931 if test -n "$ncn_target_tool_prefix"; then
14932 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14933 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14935 $as_echo_n "checking for $ac_word... " >&6; }
14936 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939 if test -n "$DLLTOOL_FOR_TARGET"; then
14940 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14941 else
14942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14943 for as_dir in $PATH
14945 IFS=$as_save_IFS
14946 test -z "$as_dir" && as_dir=.
14947 for ac_exec_ext in '' $ac_executable_extensions; do
14948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14949 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14951 break 2
14953 done
14954 done
14955 IFS=$as_save_IFS
14959 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14960 if test -n "$DLLTOOL_FOR_TARGET"; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14962 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14963 else
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14965 $as_echo "no" >&6; }
14970 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14972 set dummy ${ncn_progname}; ac_word=$2
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14974 $as_echo_n "checking for $ac_word... " >&6; }
14975 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14976 $as_echo_n "(cached) " >&6
14977 else
14978 if test -n "$DLLTOOL_FOR_TARGET"; then
14979 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14980 else
14981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14982 for as_dir in $PATH
14984 IFS=$as_save_IFS
14985 test -z "$as_dir" && as_dir=.
14986 for ac_exec_ext in '' $ac_executable_extensions; do
14987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14988 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14990 break 2
14992 done
14993 done
14994 IFS=$as_save_IFS
14998 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14999 if test -n "$DLLTOOL_FOR_TARGET"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15001 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15002 else
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15004 $as_echo "no" >&6; }
15009 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15010 done
15013 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15014 set dummy dlltool
15015 if test $build = $target ; then
15016 DLLTOOL_FOR_TARGET="$2"
15017 else
15018 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15020 else
15021 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15024 else
15025 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15031 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15032 if test -n "$with_build_time_tools"; then
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15034 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15035 if test -x $with_build_time_tools/dsymutil; then
15036 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15037 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15039 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15040 else
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15042 $as_echo "no" >&6; }
15044 elif test $build != $host && test $have_gcc_for_target = yes; then
15045 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15046 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15047 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15050 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15051 # Extract the first word of "dsymutil", so it can be a program name with args.
15052 set dummy dsymutil; ac_word=$2
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15054 $as_echo_n "checking for $ac_word... " >&6; }
15055 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15056 $as_echo_n "(cached) " >&6
15057 else
15058 case $DSYMUTIL_FOR_TARGET in
15059 [\\/]* | ?:[\\/]*)
15060 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064 for as_dir in $gcc_cv_tool_dirs
15066 IFS=$as_save_IFS
15067 test -z "$as_dir" && as_dir=.
15068 for ac_exec_ext in '' $ac_executable_extensions; do
15069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15070 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15072 break 2
15074 done
15075 done
15076 IFS=$as_save_IFS
15079 esac
15081 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15082 if test -n "$DSYMUTIL_FOR_TARGET"; then
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15084 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15085 else
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087 $as_echo "no" >&6; }
15092 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15095 if test -n "$DSYMUTIL_FOR_TARGET"; then
15096 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15097 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15098 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15101 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15102 for ncn_progname in dsymutil; do
15103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15104 set dummy ${ncn_progname}; ac_word=$2
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15106 $as_echo_n "checking for $ac_word... " >&6; }
15107 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15108 $as_echo_n "(cached) " >&6
15109 else
15110 if test -n "$DSYMUTIL_FOR_TARGET"; then
15111 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15112 else
15113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15114 for as_dir in $PATH
15116 IFS=$as_save_IFS
15117 test -z "$as_dir" && as_dir=.
15118 for ac_exec_ext in '' $ac_executable_extensions; do
15119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15120 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15122 break 2
15124 done
15125 done
15126 IFS=$as_save_IFS
15130 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15131 if test -n "$DSYMUTIL_FOR_TARGET"; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15133 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15134 else
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15136 $as_echo "no" >&6; }
15140 done
15143 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15144 for ncn_progname in dsymutil; do
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15146 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15147 if test -x $with_build_time_tools/${ncn_progname}; then
15148 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15150 $as_echo "yes" >&6; }
15151 break
15152 else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154 $as_echo "no" >&6; }
15156 done
15159 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15160 for ncn_progname in dsymutil; do
15161 if test -n "$ncn_target_tool_prefix"; then
15162 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15163 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15165 $as_echo_n "checking for $ac_word... " >&6; }
15166 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15167 $as_echo_n "(cached) " >&6
15168 else
15169 if test -n "$DSYMUTIL_FOR_TARGET"; then
15170 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15171 else
15172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173 for as_dir in $PATH
15175 IFS=$as_save_IFS
15176 test -z "$as_dir" && as_dir=.
15177 for ac_exec_ext in '' $ac_executable_extensions; do
15178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15179 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15181 break 2
15183 done
15184 done
15185 IFS=$as_save_IFS
15189 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15190 if test -n "$DSYMUTIL_FOR_TARGET"; then
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15192 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15193 else
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15195 $as_echo "no" >&6; }
15200 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15202 set dummy ${ncn_progname}; ac_word=$2
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15204 $as_echo_n "checking for $ac_word... " >&6; }
15205 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15206 $as_echo_n "(cached) " >&6
15207 else
15208 if test -n "$DSYMUTIL_FOR_TARGET"; then
15209 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15210 else
15211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15212 for as_dir in $PATH
15214 IFS=$as_save_IFS
15215 test -z "$as_dir" && as_dir=.
15216 for ac_exec_ext in '' $ac_executable_extensions; do
15217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15218 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15220 break 2
15222 done
15223 done
15224 IFS=$as_save_IFS
15228 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15229 if test -n "$DSYMUTIL_FOR_TARGET"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15231 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15232 else
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15239 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15240 done
15243 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15244 set dummy dsymutil
15245 if test $build = $target ; then
15246 DSYMUTIL_FOR_TARGET="$2"
15247 else
15248 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15250 else
15251 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15254 else
15255 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15261 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15262 if test -n "$with_build_time_tools"; then
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15264 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15265 if test -x $with_build_time_tools/ld; then
15266 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15267 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15269 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15270 else
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272 $as_echo "no" >&6; }
15274 elif test $build != $host && test $have_gcc_for_target = yes; then
15275 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15276 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15277 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15280 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15281 # Extract the first word of "ld", so it can be a program name with args.
15282 set dummy ld; ac_word=$2
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15284 $as_echo_n "checking for $ac_word... " >&6; }
15285 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 case $LD_FOR_TARGET in
15289 [\\/]* | ?:[\\/]*)
15290 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294 for as_dir in $gcc_cv_tool_dirs
15296 IFS=$as_save_IFS
15297 test -z "$as_dir" && as_dir=.
15298 for ac_exec_ext in '' $ac_executable_extensions; do
15299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15300 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15302 break 2
15304 done
15305 done
15306 IFS=$as_save_IFS
15309 esac
15311 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15312 if test -n "$LD_FOR_TARGET"; then
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15314 $as_echo "$LD_FOR_TARGET" >&6; }
15315 else
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15317 $as_echo "no" >&6; }
15322 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15325 if test -n "$LD_FOR_TARGET"; then
15326 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15327 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15328 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15331 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15332 for ncn_progname in ld; do
15333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15334 set dummy ${ncn_progname}; ac_word=$2
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15336 $as_echo_n "checking for $ac_word... " >&6; }
15337 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 if test -n "$LD_FOR_TARGET"; then
15341 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15342 else
15343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15344 for as_dir in $PATH
15346 IFS=$as_save_IFS
15347 test -z "$as_dir" && as_dir=.
15348 for ac_exec_ext in '' $ac_executable_extensions; do
15349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15350 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15352 break 2
15354 done
15355 done
15356 IFS=$as_save_IFS
15360 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15361 if test -n "$LD_FOR_TARGET"; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15363 $as_echo "$LD_FOR_TARGET" >&6; }
15364 else
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15370 done
15373 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15374 for ncn_progname in ld; do
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15376 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15377 if test -x $with_build_time_tools/${ncn_progname}; then
15378 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15380 $as_echo "yes" >&6; }
15381 break
15382 else
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15384 $as_echo "no" >&6; }
15386 done
15389 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15390 for ncn_progname in ld; do
15391 if test -n "$ncn_target_tool_prefix"; then
15392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15393 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15395 $as_echo_n "checking for $ac_word... " >&6; }
15396 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15397 $as_echo_n "(cached) " >&6
15398 else
15399 if test -n "$LD_FOR_TARGET"; then
15400 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15401 else
15402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15403 for as_dir in $PATH
15405 IFS=$as_save_IFS
15406 test -z "$as_dir" && as_dir=.
15407 for ac_exec_ext in '' $ac_executable_extensions; do
15408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15409 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15411 break 2
15413 done
15414 done
15415 IFS=$as_save_IFS
15419 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15420 if test -n "$LD_FOR_TARGET"; then
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15422 $as_echo "$LD_FOR_TARGET" >&6; }
15423 else
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15425 $as_echo "no" >&6; }
15430 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15432 set dummy ${ncn_progname}; 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_prog_LD_FOR_TARGET+:} false; then :
15436 $as_echo_n "(cached) " >&6
15437 else
15438 if test -n "$LD_FOR_TARGET"; then
15439 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15440 else
15441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15442 for as_dir in $PATH
15444 IFS=$as_save_IFS
15445 test -z "$as_dir" && as_dir=.
15446 for ac_exec_ext in '' $ac_executable_extensions; do
15447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15448 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15450 break 2
15452 done
15453 done
15454 IFS=$as_save_IFS
15458 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15459 if test -n "$LD_FOR_TARGET"; then
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15461 $as_echo "$LD_FOR_TARGET" >&6; }
15462 else
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464 $as_echo "no" >&6; }
15469 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15470 done
15473 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15474 set dummy ld
15475 if test $build = $target ; then
15476 LD_FOR_TARGET="$2"
15477 else
15478 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15480 else
15481 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15484 else
15485 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15491 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15492 if test -n "$with_build_time_tools"; then
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15494 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15495 if test -x $with_build_time_tools/lipo; then
15496 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15497 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15499 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15500 else
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15502 $as_echo "no" >&6; }
15504 elif test $build != $host && test $have_gcc_for_target = yes; then
15505 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15506 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15507 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15510 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15511 # Extract the first word of "lipo", so it can be a program name with args.
15512 set dummy lipo; ac_word=$2
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15514 $as_echo_n "checking for $ac_word... " >&6; }
15515 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15516 $as_echo_n "(cached) " >&6
15517 else
15518 case $LIPO_FOR_TARGET in
15519 [\\/]* | ?:[\\/]*)
15520 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15524 for as_dir in $gcc_cv_tool_dirs
15526 IFS=$as_save_IFS
15527 test -z "$as_dir" && as_dir=.
15528 for ac_exec_ext in '' $ac_executable_extensions; do
15529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15530 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15532 break 2
15534 done
15535 done
15536 IFS=$as_save_IFS
15539 esac
15541 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15542 if test -n "$LIPO_FOR_TARGET"; then
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15544 $as_echo "$LIPO_FOR_TARGET" >&6; }
15545 else
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15547 $as_echo "no" >&6; }
15552 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15555 if test -n "$LIPO_FOR_TARGET"; then
15556 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15557 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15558 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15561 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15562 for ncn_progname in lipo; do
15563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15564 set dummy ${ncn_progname}; ac_word=$2
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15566 $as_echo_n "checking for $ac_word... " >&6; }
15567 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15568 $as_echo_n "(cached) " >&6
15569 else
15570 if test -n "$LIPO_FOR_TARGET"; then
15571 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15572 else
15573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574 for as_dir in $PATH
15576 IFS=$as_save_IFS
15577 test -z "$as_dir" && as_dir=.
15578 for ac_exec_ext in '' $ac_executable_extensions; do
15579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15580 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15582 break 2
15584 done
15585 done
15586 IFS=$as_save_IFS
15590 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15591 if test -n "$LIPO_FOR_TARGET"; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15593 $as_echo "$LIPO_FOR_TARGET" >&6; }
15594 else
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; }
15600 done
15603 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15604 for ncn_progname in lipo; do
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15606 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15607 if test -x $with_build_time_tools/${ncn_progname}; then
15608 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15610 $as_echo "yes" >&6; }
15611 break
15612 else
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614 $as_echo "no" >&6; }
15616 done
15619 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15620 for ncn_progname in lipo; do
15621 if test -n "$ncn_target_tool_prefix"; then
15622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15623 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15625 $as_echo_n "checking for $ac_word... " >&6; }
15626 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15627 $as_echo_n "(cached) " >&6
15628 else
15629 if test -n "$LIPO_FOR_TARGET"; then
15630 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15631 else
15632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15633 for as_dir in $PATH
15635 IFS=$as_save_IFS
15636 test -z "$as_dir" && as_dir=.
15637 for ac_exec_ext in '' $ac_executable_extensions; do
15638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15639 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15641 break 2
15643 done
15644 done
15645 IFS=$as_save_IFS
15649 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15650 if test -n "$LIPO_FOR_TARGET"; then
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15652 $as_echo "$LIPO_FOR_TARGET" >&6; }
15653 else
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15655 $as_echo "no" >&6; }
15660 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15662 set dummy ${ncn_progname}; 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_prog_LIPO_FOR_TARGET+:} false; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 if test -n "$LIPO_FOR_TARGET"; then
15669 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15670 else
15671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15672 for as_dir in $PATH
15674 IFS=$as_save_IFS
15675 test -z "$as_dir" && as_dir=.
15676 for ac_exec_ext in '' $ac_executable_extensions; do
15677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15678 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15680 break 2
15682 done
15683 done
15684 IFS=$as_save_IFS
15688 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15689 if test -n "$LIPO_FOR_TARGET"; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15691 $as_echo "$LIPO_FOR_TARGET" >&6; }
15692 else
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694 $as_echo "no" >&6; }
15699 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15700 done
15703 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15704 set dummy lipo
15705 if test $build = $target ; then
15706 LIPO_FOR_TARGET="$2"
15707 else
15708 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15710 else
15711 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15714 else
15715 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15721 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15722 if test -n "$with_build_time_tools"; then
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15724 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15725 if test -x $with_build_time_tools/nm; then
15726 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15727 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15729 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15730 else
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15732 $as_echo "no" >&6; }
15734 elif test $build != $host && test $have_gcc_for_target = yes; then
15735 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15736 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15737 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15740 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15741 # Extract the first word of "nm", so it can be a program name with args.
15742 set dummy nm; ac_word=$2
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15744 $as_echo_n "checking for $ac_word... " >&6; }
15745 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15746 $as_echo_n "(cached) " >&6
15747 else
15748 case $NM_FOR_TARGET in
15749 [\\/]* | ?:[\\/]*)
15750 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15754 for as_dir in $gcc_cv_tool_dirs
15756 IFS=$as_save_IFS
15757 test -z "$as_dir" && as_dir=.
15758 for ac_exec_ext in '' $ac_executable_extensions; do
15759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15760 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15762 break 2
15764 done
15765 done
15766 IFS=$as_save_IFS
15769 esac
15771 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15772 if test -n "$NM_FOR_TARGET"; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15774 $as_echo "$NM_FOR_TARGET" >&6; }
15775 else
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15777 $as_echo "no" >&6; }
15782 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15785 if test -n "$NM_FOR_TARGET"; then
15786 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15787 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15788 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15791 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15792 for ncn_progname in nm; do
15793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15794 set dummy ${ncn_progname}; ac_word=$2
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15796 $as_echo_n "checking for $ac_word... " >&6; }
15797 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15798 $as_echo_n "(cached) " >&6
15799 else
15800 if test -n "$NM_FOR_TARGET"; then
15801 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15802 else
15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15806 IFS=$as_save_IFS
15807 test -z "$as_dir" && as_dir=.
15808 for ac_exec_ext in '' $ac_executable_extensions; do
15809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15810 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15812 break 2
15814 done
15815 done
15816 IFS=$as_save_IFS
15820 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15821 if test -n "$NM_FOR_TARGET"; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15823 $as_echo "$NM_FOR_TARGET" >&6; }
15824 else
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 $as_echo "no" >&6; }
15830 done
15833 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15834 for ncn_progname in nm; do
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15836 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15837 if test -x $with_build_time_tools/${ncn_progname}; then
15838 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15840 $as_echo "yes" >&6; }
15841 break
15842 else
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15844 $as_echo "no" >&6; }
15846 done
15849 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15850 for ncn_progname in nm; do
15851 if test -n "$ncn_target_tool_prefix"; then
15852 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15853 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15855 $as_echo_n "checking for $ac_word... " >&6; }
15856 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15857 $as_echo_n "(cached) " >&6
15858 else
15859 if test -n "$NM_FOR_TARGET"; then
15860 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15861 else
15862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15863 for as_dir in $PATH
15865 IFS=$as_save_IFS
15866 test -z "$as_dir" && as_dir=.
15867 for ac_exec_ext in '' $ac_executable_extensions; do
15868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15869 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15871 break 2
15873 done
15874 done
15875 IFS=$as_save_IFS
15879 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15880 if test -n "$NM_FOR_TARGET"; then
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15882 $as_echo "$NM_FOR_TARGET" >&6; }
15883 else
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15885 $as_echo "no" >&6; }
15890 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15892 set dummy ${ncn_progname}; 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_prog_NM_FOR_TARGET+:} false; then :
15896 $as_echo_n "(cached) " >&6
15897 else
15898 if test -n "$NM_FOR_TARGET"; then
15899 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15900 else
15901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15902 for as_dir in $PATH
15904 IFS=$as_save_IFS
15905 test -z "$as_dir" && as_dir=.
15906 for ac_exec_ext in '' $ac_executable_extensions; do
15907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15908 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15910 break 2
15912 done
15913 done
15914 IFS=$as_save_IFS
15918 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15919 if test -n "$NM_FOR_TARGET"; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15921 $as_echo "$NM_FOR_TARGET" >&6; }
15922 else
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 $as_echo "no" >&6; }
15929 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15930 done
15933 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15934 set dummy nm
15935 if test $build = $target ; then
15936 NM_FOR_TARGET="$2"
15937 else
15938 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15940 else
15941 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15944 else
15945 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15951 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15952 if test -n "$with_build_time_tools"; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15954 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15955 if test -x $with_build_time_tools/objcopy; then
15956 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15957 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15959 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15960 else
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15962 $as_echo "no" >&6; }
15964 elif test $build != $host && test $have_gcc_for_target = yes; then
15965 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15966 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15967 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15970 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15971 # Extract the first word of "objcopy", so it can be a program name with args.
15972 set dummy objcopy; ac_word=$2
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15974 $as_echo_n "checking for $ac_word... " >&6; }
15975 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15976 $as_echo_n "(cached) " >&6
15977 else
15978 case $OBJCOPY_FOR_TARGET in
15979 [\\/]* | ?:[\\/]*)
15980 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15984 for as_dir in $gcc_cv_tool_dirs
15986 IFS=$as_save_IFS
15987 test -z "$as_dir" && as_dir=.
15988 for ac_exec_ext in '' $ac_executable_extensions; do
15989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15990 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15992 break 2
15994 done
15995 done
15996 IFS=$as_save_IFS
15999 esac
16001 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16002 if test -n "$OBJCOPY_FOR_TARGET"; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16004 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16005 else
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16007 $as_echo "no" >&6; }
16012 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16015 if test -n "$OBJCOPY_FOR_TARGET"; then
16016 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16017 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16018 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16021 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16022 for ncn_progname in objcopy; do
16023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16024 set dummy ${ncn_progname}; ac_word=$2
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16026 $as_echo_n "checking for $ac_word... " >&6; }
16027 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16028 $as_echo_n "(cached) " >&6
16029 else
16030 if test -n "$OBJCOPY_FOR_TARGET"; then
16031 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16032 else
16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034 for as_dir in $PATH
16036 IFS=$as_save_IFS
16037 test -z "$as_dir" && as_dir=.
16038 for ac_exec_ext in '' $ac_executable_extensions; do
16039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16040 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16042 break 2
16044 done
16045 done
16046 IFS=$as_save_IFS
16050 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16051 if test -n "$OBJCOPY_FOR_TARGET"; then
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16053 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16054 else
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16056 $as_echo "no" >&6; }
16060 done
16063 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16064 for ncn_progname in objcopy; do
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16066 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16067 if test -x $with_build_time_tools/${ncn_progname}; then
16068 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16070 $as_echo "yes" >&6; }
16071 break
16072 else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074 $as_echo "no" >&6; }
16076 done
16079 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16080 for ncn_progname in objcopy; do
16081 if test -n "$ncn_target_tool_prefix"; then
16082 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16083 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16085 $as_echo_n "checking for $ac_word... " >&6; }
16086 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16087 $as_echo_n "(cached) " >&6
16088 else
16089 if test -n "$OBJCOPY_FOR_TARGET"; then
16090 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16091 else
16092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093 for as_dir in $PATH
16095 IFS=$as_save_IFS
16096 test -z "$as_dir" && as_dir=.
16097 for ac_exec_ext in '' $ac_executable_extensions; do
16098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16099 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16101 break 2
16103 done
16104 done
16105 IFS=$as_save_IFS
16109 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16110 if test -n "$OBJCOPY_FOR_TARGET"; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16112 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16113 else
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115 $as_echo "no" >&6; }
16120 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16122 set dummy ${ncn_progname}; 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_prog_OBJCOPY_FOR_TARGET+:} false; then :
16126 $as_echo_n "(cached) " >&6
16127 else
16128 if test -n "$OBJCOPY_FOR_TARGET"; then
16129 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16130 else
16131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16132 for as_dir in $PATH
16134 IFS=$as_save_IFS
16135 test -z "$as_dir" && as_dir=.
16136 for ac_exec_ext in '' $ac_executable_extensions; do
16137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16138 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16140 break 2
16142 done
16143 done
16144 IFS=$as_save_IFS
16148 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16149 if test -n "$OBJCOPY_FOR_TARGET"; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16151 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16152 else
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154 $as_echo "no" >&6; }
16159 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16160 done
16163 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16164 set dummy objcopy
16165 if test $build = $target ; then
16166 OBJCOPY_FOR_TARGET="$2"
16167 else
16168 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16170 else
16171 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16174 else
16175 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16181 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16182 if test -n "$with_build_time_tools"; then
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16184 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
16185 if test -x $with_build_time_tools/objdump; then
16186 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16187 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16189 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16190 else
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192 $as_echo "no" >&6; }
16194 elif test $build != $host && test $have_gcc_for_target = yes; then
16195 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16196 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16197 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16200 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16201 # Extract the first word of "objdump", so it can be a program name with args.
16202 set dummy objdump; ac_word=$2
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16204 $as_echo_n "checking for $ac_word... " >&6; }
16205 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16206 $as_echo_n "(cached) " >&6
16207 else
16208 case $OBJDUMP_FOR_TARGET in
16209 [\\/]* | ?:[\\/]*)
16210 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16214 for as_dir in $gcc_cv_tool_dirs
16216 IFS=$as_save_IFS
16217 test -z "$as_dir" && as_dir=.
16218 for ac_exec_ext in '' $ac_executable_extensions; do
16219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16220 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16222 break 2
16224 done
16225 done
16226 IFS=$as_save_IFS
16229 esac
16231 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16232 if test -n "$OBJDUMP_FOR_TARGET"; then
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16234 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16235 else
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16237 $as_echo "no" >&6; }
16242 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16245 if test -n "$OBJDUMP_FOR_TARGET"; then
16246 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16247 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16248 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16251 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16252 for ncn_progname in objdump; do
16253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16254 set dummy ${ncn_progname}; ac_word=$2
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256 $as_echo_n "checking for $ac_word... " >&6; }
16257 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16258 $as_echo_n "(cached) " >&6
16259 else
16260 if test -n "$OBJDUMP_FOR_TARGET"; then
16261 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16262 else
16263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16264 for as_dir in $PATH
16266 IFS=$as_save_IFS
16267 test -z "$as_dir" && as_dir=.
16268 for ac_exec_ext in '' $ac_executable_extensions; do
16269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16270 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16272 break 2
16274 done
16275 done
16276 IFS=$as_save_IFS
16280 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16281 if test -n "$OBJDUMP_FOR_TARGET"; then
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16283 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16284 else
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 $as_echo "no" >&6; }
16290 done
16293 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16294 for ncn_progname in objdump; do
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16296 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16297 if test -x $with_build_time_tools/${ncn_progname}; then
16298 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16300 $as_echo "yes" >&6; }
16301 break
16302 else
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304 $as_echo "no" >&6; }
16306 done
16309 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16310 for ncn_progname in objdump; do
16311 if test -n "$ncn_target_tool_prefix"; then
16312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16313 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16315 $as_echo_n "checking for $ac_word... " >&6; }
16316 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319 if test -n "$OBJDUMP_FOR_TARGET"; then
16320 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16321 else
16322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16323 for as_dir in $PATH
16325 IFS=$as_save_IFS
16326 test -z "$as_dir" && as_dir=.
16327 for ac_exec_ext in '' $ac_executable_extensions; do
16328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16329 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16331 break 2
16333 done
16334 done
16335 IFS=$as_save_IFS
16339 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16340 if test -n "$OBJDUMP_FOR_TARGET"; then
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16342 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16343 else
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16345 $as_echo "no" >&6; }
16350 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16352 set dummy ${ncn_progname}; 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_prog_OBJDUMP_FOR_TARGET+:} false; then :
16356 $as_echo_n "(cached) " >&6
16357 else
16358 if test -n "$OBJDUMP_FOR_TARGET"; then
16359 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16360 else
16361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16362 for as_dir in $PATH
16364 IFS=$as_save_IFS
16365 test -z "$as_dir" && as_dir=.
16366 for ac_exec_ext in '' $ac_executable_extensions; do
16367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16368 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16370 break 2
16372 done
16373 done
16374 IFS=$as_save_IFS
16378 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16379 if test -n "$OBJDUMP_FOR_TARGET"; then
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16381 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16382 else
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16384 $as_echo "no" >&6; }
16389 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16390 done
16393 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16394 set dummy objdump
16395 if test $build = $target ; then
16396 OBJDUMP_FOR_TARGET="$2"
16397 else
16398 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16400 else
16401 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16404 else
16405 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16411 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16412 if test -n "$with_build_time_tools"; then
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16414 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16415 if test -x $with_build_time_tools/otool; then
16416 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16417 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16419 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16420 else
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422 $as_echo "no" >&6; }
16424 elif test $build != $host && test $have_gcc_for_target = yes; then
16425 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16426 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16427 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16430 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16431 # Extract the first word of "otool", so it can be a program name with args.
16432 set dummy otool; ac_word=$2
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16434 $as_echo_n "checking for $ac_word... " >&6; }
16435 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16436 $as_echo_n "(cached) " >&6
16437 else
16438 case $OTOOL_FOR_TARGET in
16439 [\\/]* | ?:[\\/]*)
16440 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16444 for as_dir in $gcc_cv_tool_dirs
16446 IFS=$as_save_IFS
16447 test -z "$as_dir" && as_dir=.
16448 for ac_exec_ext in '' $ac_executable_extensions; do
16449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16450 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16452 break 2
16454 done
16455 done
16456 IFS=$as_save_IFS
16459 esac
16461 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16462 if test -n "$OTOOL_FOR_TARGET"; then
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16464 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16465 else
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467 $as_echo "no" >&6; }
16472 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16475 if test -n "$OTOOL_FOR_TARGET"; then
16476 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16477 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16478 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16481 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16482 for ncn_progname in otool; do
16483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16484 set dummy ${ncn_progname}; ac_word=$2
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16486 $as_echo_n "checking for $ac_word... " >&6; }
16487 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16488 $as_echo_n "(cached) " >&6
16489 else
16490 if test -n "$OTOOL_FOR_TARGET"; then
16491 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16492 else
16493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16494 for as_dir in $PATH
16496 IFS=$as_save_IFS
16497 test -z "$as_dir" && as_dir=.
16498 for ac_exec_ext in '' $ac_executable_extensions; do
16499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16500 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16502 break 2
16504 done
16505 done
16506 IFS=$as_save_IFS
16510 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16511 if test -n "$OTOOL_FOR_TARGET"; then
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16513 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16514 else
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16516 $as_echo "no" >&6; }
16520 done
16523 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16524 for ncn_progname in otool; do
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16526 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16527 if test -x $with_build_time_tools/${ncn_progname}; then
16528 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16531 break
16532 else
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16536 done
16539 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16540 for ncn_progname in otool; do
16541 if test -n "$ncn_target_tool_prefix"; then
16542 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16543 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16545 $as_echo_n "checking for $ac_word... " >&6; }
16546 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16547 $as_echo_n "(cached) " >&6
16548 else
16549 if test -n "$OTOOL_FOR_TARGET"; then
16550 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16551 else
16552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16553 for as_dir in $PATH
16555 IFS=$as_save_IFS
16556 test -z "$as_dir" && as_dir=.
16557 for ac_exec_ext in '' $ac_executable_extensions; do
16558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16559 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16561 break 2
16563 done
16564 done
16565 IFS=$as_save_IFS
16569 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16570 if test -n "$OTOOL_FOR_TARGET"; then
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16572 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16573 else
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16575 $as_echo "no" >&6; }
16580 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16582 set dummy ${ncn_progname}; 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_prog_OTOOL_FOR_TARGET+:} false; then :
16586 $as_echo_n "(cached) " >&6
16587 else
16588 if test -n "$OTOOL_FOR_TARGET"; then
16589 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16590 else
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16594 IFS=$as_save_IFS
16595 test -z "$as_dir" && as_dir=.
16596 for ac_exec_ext in '' $ac_executable_extensions; do
16597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16600 break 2
16602 done
16603 done
16604 IFS=$as_save_IFS
16608 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16609 if test -n "$OTOOL_FOR_TARGET"; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16611 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16612 else
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16619 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16620 done
16623 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16624 set dummy otool
16625 if test $build = $target ; then
16626 OTOOL_FOR_TARGET="$2"
16627 else
16628 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16630 else
16631 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16634 else
16635 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16641 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16642 if test -n "$with_build_time_tools"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16644 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16645 if test -x $with_build_time_tools/ranlib; then
16646 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16647 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16649 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16650 else
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16652 $as_echo "no" >&6; }
16654 elif test $build != $host && test $have_gcc_for_target = yes; then
16655 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16656 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16657 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16660 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16661 # Extract the first word of "ranlib", so it can be a program name with args.
16662 set dummy ranlib; ac_word=$2
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16664 $as_echo_n "checking for $ac_word... " >&6; }
16665 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16666 $as_echo_n "(cached) " >&6
16667 else
16668 case $RANLIB_FOR_TARGET in
16669 [\\/]* | ?:[\\/]*)
16670 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16674 for as_dir in $gcc_cv_tool_dirs
16676 IFS=$as_save_IFS
16677 test -z "$as_dir" && as_dir=.
16678 for ac_exec_ext in '' $ac_executable_extensions; do
16679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16680 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16682 break 2
16684 done
16685 done
16686 IFS=$as_save_IFS
16689 esac
16691 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16692 if test -n "$RANLIB_FOR_TARGET"; then
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16694 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16695 else
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16702 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16705 if test -n "$RANLIB_FOR_TARGET"; then
16706 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16707 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16708 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16711 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16712 for ncn_progname in ranlib; do
16713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16714 set dummy ${ncn_progname}; ac_word=$2
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16716 $as_echo_n "checking for $ac_word... " >&6; }
16717 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16718 $as_echo_n "(cached) " >&6
16719 else
16720 if test -n "$RANLIB_FOR_TARGET"; then
16721 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16722 else
16723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16724 for as_dir in $PATH
16726 IFS=$as_save_IFS
16727 test -z "$as_dir" && as_dir=.
16728 for ac_exec_ext in '' $ac_executable_extensions; do
16729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16730 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16732 break 2
16734 done
16735 done
16736 IFS=$as_save_IFS
16740 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16741 if test -n "$RANLIB_FOR_TARGET"; then
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16743 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16744 else
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16746 $as_echo "no" >&6; }
16750 done
16753 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16754 for ncn_progname in ranlib; do
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16756 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16757 if test -x $with_build_time_tools/${ncn_progname}; then
16758 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16760 $as_echo "yes" >&6; }
16761 break
16762 else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16766 done
16769 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16770 for ncn_progname in ranlib; do
16771 if test -n "$ncn_target_tool_prefix"; then
16772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16773 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16775 $as_echo_n "checking for $ac_word... " >&6; }
16776 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16777 $as_echo_n "(cached) " >&6
16778 else
16779 if test -n "$RANLIB_FOR_TARGET"; then
16780 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16781 else
16782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16783 for as_dir in $PATH
16785 IFS=$as_save_IFS
16786 test -z "$as_dir" && as_dir=.
16787 for ac_exec_ext in '' $ac_executable_extensions; do
16788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16789 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16791 break 2
16793 done
16794 done
16795 IFS=$as_save_IFS
16799 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16800 if test -n "$RANLIB_FOR_TARGET"; then
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16802 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16803 else
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805 $as_echo "no" >&6; }
16810 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16812 set dummy ${ncn_progname}; 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_prog_RANLIB_FOR_TARGET+:} false; then :
16816 $as_echo_n "(cached) " >&6
16817 else
16818 if test -n "$RANLIB_FOR_TARGET"; then
16819 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16820 else
16821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16822 for as_dir in $PATH
16824 IFS=$as_save_IFS
16825 test -z "$as_dir" && as_dir=.
16826 for ac_exec_ext in '' $ac_executable_extensions; do
16827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16828 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16830 break 2
16832 done
16833 done
16834 IFS=$as_save_IFS
16838 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16839 if test -n "$RANLIB_FOR_TARGET"; then
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16841 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16842 else
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844 $as_echo "no" >&6; }
16849 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16850 done
16853 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16854 set dummy ranlib
16855 if test $build = $target ; then
16856 RANLIB_FOR_TARGET="$2"
16857 else
16858 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16860 else
16861 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16864 else
16865 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16871 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16872 if test -n "$with_build_time_tools"; then
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16874 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16875 if test -x $with_build_time_tools/readelf; then
16876 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16877 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16879 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16880 else
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16882 $as_echo "no" >&6; }
16884 elif test $build != $host && test $have_gcc_for_target = yes; then
16885 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16886 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16887 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16890 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16891 # Extract the first word of "readelf", so it can be a program name with args.
16892 set dummy readelf; ac_word=$2
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16894 $as_echo_n "checking for $ac_word... " >&6; }
16895 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16896 $as_echo_n "(cached) " >&6
16897 else
16898 case $READELF_FOR_TARGET in
16899 [\\/]* | ?:[\\/]*)
16900 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16904 for as_dir in $gcc_cv_tool_dirs
16906 IFS=$as_save_IFS
16907 test -z "$as_dir" && as_dir=.
16908 for ac_exec_ext in '' $ac_executable_extensions; do
16909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16910 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16912 break 2
16914 done
16915 done
16916 IFS=$as_save_IFS
16919 esac
16921 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16922 if test -n "$READELF_FOR_TARGET"; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16924 $as_echo "$READELF_FOR_TARGET" >&6; }
16925 else
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927 $as_echo "no" >&6; }
16932 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16935 if test -n "$READELF_FOR_TARGET"; then
16936 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16937 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16938 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16941 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16942 for ncn_progname in readelf; do
16943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16944 set dummy ${ncn_progname}; ac_word=$2
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16946 $as_echo_n "checking for $ac_word... " >&6; }
16947 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16948 $as_echo_n "(cached) " >&6
16949 else
16950 if test -n "$READELF_FOR_TARGET"; then
16951 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16952 else
16953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954 for as_dir in $PATH
16956 IFS=$as_save_IFS
16957 test -z "$as_dir" && as_dir=.
16958 for ac_exec_ext in '' $ac_executable_extensions; do
16959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16960 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16962 break 2
16964 done
16965 done
16966 IFS=$as_save_IFS
16970 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16971 if test -n "$READELF_FOR_TARGET"; then
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16973 $as_echo "$READELF_FOR_TARGET" >&6; }
16974 else
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16976 $as_echo "no" >&6; }
16980 done
16983 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16984 for ncn_progname in readelf; do
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16986 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16987 if test -x $with_build_time_tools/${ncn_progname}; then
16988 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16990 $as_echo "yes" >&6; }
16991 break
16992 else
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994 $as_echo "no" >&6; }
16996 done
16999 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17000 for ncn_progname in readelf; do
17001 if test -n "$ncn_target_tool_prefix"; then
17002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17003 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17005 $as_echo_n "checking for $ac_word... " >&6; }
17006 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17007 $as_echo_n "(cached) " >&6
17008 else
17009 if test -n "$READELF_FOR_TARGET"; then
17010 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17011 else
17012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17013 for as_dir in $PATH
17015 IFS=$as_save_IFS
17016 test -z "$as_dir" && as_dir=.
17017 for ac_exec_ext in '' $ac_executable_extensions; do
17018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17019 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17021 break 2
17023 done
17024 done
17025 IFS=$as_save_IFS
17029 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17030 if test -n "$READELF_FOR_TARGET"; then
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17032 $as_echo "$READELF_FOR_TARGET" >&6; }
17033 else
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17035 $as_echo "no" >&6; }
17040 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17042 set dummy ${ncn_progname}; 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_prog_READELF_FOR_TARGET+:} false; then :
17046 $as_echo_n "(cached) " >&6
17047 else
17048 if test -n "$READELF_FOR_TARGET"; then
17049 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17050 else
17051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052 for as_dir in $PATH
17054 IFS=$as_save_IFS
17055 test -z "$as_dir" && as_dir=.
17056 for ac_exec_ext in '' $ac_executable_extensions; do
17057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17058 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17060 break 2
17062 done
17063 done
17064 IFS=$as_save_IFS
17068 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17069 if test -n "$READELF_FOR_TARGET"; then
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17071 $as_echo "$READELF_FOR_TARGET" >&6; }
17072 else
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17074 $as_echo "no" >&6; }
17079 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17080 done
17083 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17084 set dummy readelf
17085 if test $build = $target ; then
17086 READELF_FOR_TARGET="$2"
17087 else
17088 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17090 else
17091 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17094 else
17095 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17101 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17102 if test -n "$with_build_time_tools"; then
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17104 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
17105 if test -x $with_build_time_tools/strip; then
17106 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17107 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17109 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17110 else
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17112 $as_echo "no" >&6; }
17114 elif test $build != $host && test $have_gcc_for_target = yes; then
17115 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17116 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17117 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17120 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17121 # Extract the first word of "strip", so it can be a program name with args.
17122 set dummy strip; ac_word=$2
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17124 $as_echo_n "checking for $ac_word... " >&6; }
17125 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17126 $as_echo_n "(cached) " >&6
17127 else
17128 case $STRIP_FOR_TARGET in
17129 [\\/]* | ?:[\\/]*)
17130 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17134 for as_dir in $gcc_cv_tool_dirs
17136 IFS=$as_save_IFS
17137 test -z "$as_dir" && as_dir=.
17138 for ac_exec_ext in '' $ac_executable_extensions; do
17139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17140 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17142 break 2
17144 done
17145 done
17146 IFS=$as_save_IFS
17149 esac
17151 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17152 if test -n "$STRIP_FOR_TARGET"; then
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17154 $as_echo "$STRIP_FOR_TARGET" >&6; }
17155 else
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17157 $as_echo "no" >&6; }
17162 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17165 if test -n "$STRIP_FOR_TARGET"; then
17166 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17167 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17168 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17171 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17172 for ncn_progname in strip; do
17173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17174 set dummy ${ncn_progname}; ac_word=$2
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17176 $as_echo_n "checking for $ac_word... " >&6; }
17177 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17178 $as_echo_n "(cached) " >&6
17179 else
17180 if test -n "$STRIP_FOR_TARGET"; then
17181 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17182 else
17183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17184 for as_dir in $PATH
17186 IFS=$as_save_IFS
17187 test -z "$as_dir" && as_dir=.
17188 for ac_exec_ext in '' $ac_executable_extensions; do
17189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17190 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17192 break 2
17194 done
17195 done
17196 IFS=$as_save_IFS
17200 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17201 if test -n "$STRIP_FOR_TARGET"; then
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17203 $as_echo "$STRIP_FOR_TARGET" >&6; }
17204 else
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206 $as_echo "no" >&6; }
17210 done
17213 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17214 for ncn_progname in strip; do
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17216 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17217 if test -x $with_build_time_tools/${ncn_progname}; then
17218 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17220 $as_echo "yes" >&6; }
17221 break
17222 else
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17226 done
17229 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17230 for ncn_progname in strip; do
17231 if test -n "$ncn_target_tool_prefix"; then
17232 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17233 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17235 $as_echo_n "checking for $ac_word... " >&6; }
17236 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17237 $as_echo_n "(cached) " >&6
17238 else
17239 if test -n "$STRIP_FOR_TARGET"; then
17240 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17241 else
17242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17243 for as_dir in $PATH
17245 IFS=$as_save_IFS
17246 test -z "$as_dir" && as_dir=.
17247 for ac_exec_ext in '' $ac_executable_extensions; do
17248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17249 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17251 break 2
17253 done
17254 done
17255 IFS=$as_save_IFS
17259 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17260 if test -n "$STRIP_FOR_TARGET"; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17262 $as_echo "$STRIP_FOR_TARGET" >&6; }
17263 else
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265 $as_echo "no" >&6; }
17270 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17272 set dummy ${ncn_progname}; 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_prog_STRIP_FOR_TARGET+:} false; then :
17276 $as_echo_n "(cached) " >&6
17277 else
17278 if test -n "$STRIP_FOR_TARGET"; then
17279 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17280 else
17281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $PATH
17284 IFS=$as_save_IFS
17285 test -z "$as_dir" && as_dir=.
17286 for ac_exec_ext in '' $ac_executable_extensions; do
17287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17288 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17290 break 2
17292 done
17293 done
17294 IFS=$as_save_IFS
17298 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17299 if test -n "$STRIP_FOR_TARGET"; then
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17301 $as_echo "$STRIP_FOR_TARGET" >&6; }
17302 else
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 $as_echo "no" >&6; }
17309 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17310 done
17313 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17314 set dummy strip
17315 if test $build = $target ; then
17316 STRIP_FOR_TARGET="$2"
17317 else
17318 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17320 else
17321 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17324 else
17325 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17331 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17332 if test -n "$with_build_time_tools"; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17334 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17335 if test -x $with_build_time_tools/windres; then
17336 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17337 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17339 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17340 else
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17342 $as_echo "no" >&6; }
17344 elif test $build != $host && test $have_gcc_for_target = yes; then
17345 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17346 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17347 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17350 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17351 # Extract the first word of "windres", so it can be a program name with args.
17352 set dummy windres; ac_word=$2
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17354 $as_echo_n "checking for $ac_word... " >&6; }
17355 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17356 $as_echo_n "(cached) " >&6
17357 else
17358 case $WINDRES_FOR_TARGET in
17359 [\\/]* | ?:[\\/]*)
17360 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17364 for as_dir in $gcc_cv_tool_dirs
17366 IFS=$as_save_IFS
17367 test -z "$as_dir" && as_dir=.
17368 for ac_exec_ext in '' $ac_executable_extensions; do
17369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17370 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17372 break 2
17374 done
17375 done
17376 IFS=$as_save_IFS
17379 esac
17381 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17382 if test -n "$WINDRES_FOR_TARGET"; then
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17384 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17385 else
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17387 $as_echo "no" >&6; }
17392 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17395 if test -n "$WINDRES_FOR_TARGET"; then
17396 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17397 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17398 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17401 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17402 for ncn_progname in windres; do
17403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17404 set dummy ${ncn_progname}; ac_word=$2
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17406 $as_echo_n "checking for $ac_word... " >&6; }
17407 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17408 $as_echo_n "(cached) " >&6
17409 else
17410 if test -n "$WINDRES_FOR_TARGET"; then
17411 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17412 else
17413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17414 for as_dir in $PATH
17416 IFS=$as_save_IFS
17417 test -z "$as_dir" && as_dir=.
17418 for ac_exec_ext in '' $ac_executable_extensions; do
17419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17420 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17422 break 2
17424 done
17425 done
17426 IFS=$as_save_IFS
17430 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17431 if test -n "$WINDRES_FOR_TARGET"; then
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17433 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17434 else
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436 $as_echo "no" >&6; }
17440 done
17443 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17444 for ncn_progname in windres; do
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17446 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17447 if test -x $with_build_time_tools/${ncn_progname}; then
17448 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17450 $as_echo "yes" >&6; }
17451 break
17452 else
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17454 $as_echo "no" >&6; }
17456 done
17459 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17460 for ncn_progname in windres; do
17461 if test -n "$ncn_target_tool_prefix"; then
17462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17463 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17465 $as_echo_n "checking for $ac_word... " >&6; }
17466 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17467 $as_echo_n "(cached) " >&6
17468 else
17469 if test -n "$WINDRES_FOR_TARGET"; then
17470 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17471 else
17472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17473 for as_dir in $PATH
17475 IFS=$as_save_IFS
17476 test -z "$as_dir" && as_dir=.
17477 for ac_exec_ext in '' $ac_executable_extensions; do
17478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17479 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17481 break 2
17483 done
17484 done
17485 IFS=$as_save_IFS
17489 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17490 if test -n "$WINDRES_FOR_TARGET"; then
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17492 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17493 else
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17495 $as_echo "no" >&6; }
17500 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17502 set dummy ${ncn_progname}; 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_prog_WINDRES_FOR_TARGET+:} false; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 if test -n "$WINDRES_FOR_TARGET"; then
17509 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17510 else
17511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512 for as_dir in $PATH
17514 IFS=$as_save_IFS
17515 test -z "$as_dir" && as_dir=.
17516 for ac_exec_ext in '' $ac_executable_extensions; do
17517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17518 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17520 break 2
17522 done
17523 done
17524 IFS=$as_save_IFS
17528 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17529 if test -n "$WINDRES_FOR_TARGET"; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17531 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17532 else
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17534 $as_echo "no" >&6; }
17539 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17540 done
17543 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17544 set dummy windres
17545 if test $build = $target ; then
17546 WINDRES_FOR_TARGET="$2"
17547 else
17548 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17550 else
17551 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17554 else
17555 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17561 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17562 if test -n "$with_build_time_tools"; then
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17564 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17565 if test -x $with_build_time_tools/windmc; then
17566 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17567 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17569 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17570 else
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17572 $as_echo "no" >&6; }
17574 elif test $build != $host && test $have_gcc_for_target = yes; then
17575 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17576 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17577 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17580 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17581 # Extract the first word of "windmc", so it can be a program name with args.
17582 set dummy windmc; ac_word=$2
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17584 $as_echo_n "checking for $ac_word... " >&6; }
17585 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17586 $as_echo_n "(cached) " >&6
17587 else
17588 case $WINDMC_FOR_TARGET in
17589 [\\/]* | ?:[\\/]*)
17590 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594 for as_dir in $gcc_cv_tool_dirs
17596 IFS=$as_save_IFS
17597 test -z "$as_dir" && as_dir=.
17598 for ac_exec_ext in '' $ac_executable_extensions; do
17599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17600 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17602 break 2
17604 done
17605 done
17606 IFS=$as_save_IFS
17609 esac
17611 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17612 if test -n "$WINDMC_FOR_TARGET"; then
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17614 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17615 else
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17617 $as_echo "no" >&6; }
17622 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17625 if test -n "$WINDMC_FOR_TARGET"; then
17626 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17627 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17628 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17631 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17632 for ncn_progname in windmc; do
17633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17634 set dummy ${ncn_progname}; ac_word=$2
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17636 $as_echo_n "checking for $ac_word... " >&6; }
17637 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17638 $as_echo_n "(cached) " >&6
17639 else
17640 if test -n "$WINDMC_FOR_TARGET"; then
17641 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17642 else
17643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17644 for as_dir in $PATH
17646 IFS=$as_save_IFS
17647 test -z "$as_dir" && as_dir=.
17648 for ac_exec_ext in '' $ac_executable_extensions; do
17649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17650 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17652 break 2
17654 done
17655 done
17656 IFS=$as_save_IFS
17660 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17661 if test -n "$WINDMC_FOR_TARGET"; then
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17663 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17664 else
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17666 $as_echo "no" >&6; }
17670 done
17673 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17674 for ncn_progname in windmc; do
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17676 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17677 if test -x $with_build_time_tools/${ncn_progname}; then
17678 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17680 $as_echo "yes" >&6; }
17681 break
17682 else
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17684 $as_echo "no" >&6; }
17686 done
17689 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17690 for ncn_progname in windmc; do
17691 if test -n "$ncn_target_tool_prefix"; then
17692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17693 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17695 $as_echo_n "checking for $ac_word... " >&6; }
17696 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17697 $as_echo_n "(cached) " >&6
17698 else
17699 if test -n "$WINDMC_FOR_TARGET"; then
17700 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17701 else
17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703 for as_dir in $PATH
17705 IFS=$as_save_IFS
17706 test -z "$as_dir" && as_dir=.
17707 for ac_exec_ext in '' $ac_executable_extensions; do
17708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17709 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17711 break 2
17713 done
17714 done
17715 IFS=$as_save_IFS
17719 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17720 if test -n "$WINDMC_FOR_TARGET"; then
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17722 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17723 else
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17725 $as_echo "no" >&6; }
17730 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17732 set dummy ${ncn_progname}; 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_prog_WINDMC_FOR_TARGET+:} false; then :
17736 $as_echo_n "(cached) " >&6
17737 else
17738 if test -n "$WINDMC_FOR_TARGET"; then
17739 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17740 else
17741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742 for as_dir in $PATH
17744 IFS=$as_save_IFS
17745 test -z "$as_dir" && as_dir=.
17746 for ac_exec_ext in '' $ac_executable_extensions; do
17747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17748 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17750 break 2
17752 done
17753 done
17754 IFS=$as_save_IFS
17758 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17759 if test -n "$WINDMC_FOR_TARGET"; then
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17761 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17762 else
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17764 $as_echo "no" >&6; }
17769 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17770 done
17773 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17774 set dummy windmc
17775 if test $build = $target ; then
17776 WINDMC_FOR_TARGET="$2"
17777 else
17778 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17780 else
17781 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17784 else
17785 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17789 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17792 $as_echo_n "checking where to find the target ar... " >&6; }
17793 if test "x${build}" != "x${host}" ; then
17794 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17795 # We already found the complete path
17796 ac_dir=`dirname $AR_FOR_TARGET`
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17798 $as_echo "pre-installed in $ac_dir" >&6; }
17799 else
17800 # Canadian cross, just use what we found
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17802 $as_echo "pre-installed" >&6; }
17804 else
17805 ok=yes
17806 case " ${configdirs} " in
17807 *" binutils "*) ;;
17808 *) ok=no ;;
17809 esac
17811 if test $ok = yes; then
17812 # An in-tree tool is available and we can use it
17813 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17815 $as_echo "just compiled" >&6; }
17816 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17817 # We already found the complete path
17818 ac_dir=`dirname $AR_FOR_TARGET`
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17820 $as_echo "pre-installed in $ac_dir" >&6; }
17821 elif test "x$target" = "x$host"; then
17822 # We can use an host tool
17823 AR_FOR_TARGET='$(AR)'
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17825 $as_echo "host tool" >&6; }
17826 else
17827 # We need a cross tool
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17829 $as_echo "pre-installed" >&6; }
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17834 $as_echo_n "checking where to find the target as... " >&6; }
17835 if test "x${build}" != "x${host}" ; then
17836 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17837 # We already found the complete path
17838 ac_dir=`dirname $AS_FOR_TARGET`
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17840 $as_echo "pre-installed in $ac_dir" >&6; }
17841 else
17842 # Canadian cross, just use what we found
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17844 $as_echo "pre-installed" >&6; }
17846 else
17847 ok=yes
17848 case " ${configdirs} " in
17849 *" gas "*) ;;
17850 *) ok=no ;;
17851 esac
17853 if test $ok = yes; then
17854 # An in-tree tool is available and we can use it
17855 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17857 $as_echo "just compiled" >&6; }
17858 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17859 # We already found the complete path
17860 ac_dir=`dirname $AS_FOR_TARGET`
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17862 $as_echo "pre-installed in $ac_dir" >&6; }
17863 elif test "x$target" = "x$host"; then
17864 # We can use an host tool
17865 AS_FOR_TARGET='$(AS)'
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17867 $as_echo "host tool" >&6; }
17868 else
17869 # We need a cross tool
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17871 $as_echo "pre-installed" >&6; }
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17876 $as_echo_n "checking where to find the target cc... " >&6; }
17877 if test "x${build}" != "x${host}" ; then
17878 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17879 # We already found the complete path
17880 ac_dir=`dirname $CC_FOR_TARGET`
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17882 $as_echo "pre-installed in $ac_dir" >&6; }
17883 else
17884 # Canadian cross, just use what we found
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17886 $as_echo "pre-installed" >&6; }
17888 else
17889 ok=yes
17890 case " ${configdirs} " in
17891 *" gcc "*) ;;
17892 *) ok=no ;;
17893 esac
17895 if test $ok = yes; then
17896 # An in-tree tool is available and we can use it
17897 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17899 $as_echo "just compiled" >&6; }
17900 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17901 # We already found the complete path
17902 ac_dir=`dirname $CC_FOR_TARGET`
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17904 $as_echo "pre-installed in $ac_dir" >&6; }
17905 elif test "x$target" = "x$host"; then
17906 # We can use an host tool
17907 CC_FOR_TARGET='$(CC)'
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17909 $as_echo "host tool" >&6; }
17910 else
17911 # We need a cross tool
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17913 $as_echo "pre-installed" >&6; }
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17918 $as_echo_n "checking where to find the target c++... " >&6; }
17919 if test "x${build}" != "x${host}" ; then
17920 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17921 # We already found the complete path
17922 ac_dir=`dirname $CXX_FOR_TARGET`
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17924 $as_echo "pre-installed in $ac_dir" >&6; }
17925 else
17926 # Canadian cross, just use what we found
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17928 $as_echo "pre-installed" >&6; }
17930 else
17931 ok=yes
17932 case " ${configdirs} " in
17933 *" gcc "*) ;;
17934 *) ok=no ;;
17935 esac
17936 case ,${enable_languages}, in
17937 *,c++,*) ;;
17938 *) ok=no ;;
17939 esac
17940 if test $ok = yes; then
17941 # An in-tree tool is available and we can use it
17942 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'
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17944 $as_echo "just compiled" >&6; }
17945 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17946 # We already found the complete path
17947 ac_dir=`dirname $CXX_FOR_TARGET`
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17949 $as_echo "pre-installed in $ac_dir" >&6; }
17950 elif test "x$target" = "x$host"; then
17951 # We can use an host tool
17952 CXX_FOR_TARGET='$(CXX)'
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17954 $as_echo "host tool" >&6; }
17955 else
17956 # We need a cross tool
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17958 $as_echo "pre-installed" >&6; }
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17963 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17964 if test "x${build}" != "x${host}" ; then
17965 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17966 # We already found the complete path
17967 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17969 $as_echo "pre-installed in $ac_dir" >&6; }
17970 else
17971 # Canadian cross, just use what we found
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17973 $as_echo "pre-installed" >&6; }
17975 else
17976 ok=yes
17977 case " ${configdirs} " in
17978 *" gcc "*) ;;
17979 *) ok=no ;;
17980 esac
17981 case ,${enable_languages}, in
17982 *,c++,*) ;;
17983 *) ok=no ;;
17984 esac
17985 if test $ok = yes; then
17986 # An in-tree tool is available and we can use it
17987 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'
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17989 $as_echo "just compiled" >&6; }
17990 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17991 # We already found the complete path
17992 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17994 $as_echo "pre-installed in $ac_dir" >&6; }
17995 elif test "x$target" = "x$host"; then
17996 # We can use an host tool
17997 RAW_CXX_FOR_TARGET='$(CXX)'
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17999 $as_echo "host tool" >&6; }
18000 else
18001 # We need a cross tool
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18003 $as_echo "pre-installed" >&6; }
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18008 $as_echo_n "checking where to find the target dlltool... " >&6; }
18009 if test "x${build}" != "x${host}" ; then
18010 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18011 # We already found the complete path
18012 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18014 $as_echo "pre-installed in $ac_dir" >&6; }
18015 else
18016 # Canadian cross, just use what we found
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18018 $as_echo "pre-installed" >&6; }
18020 else
18021 ok=yes
18022 case " ${configdirs} " in
18023 *" binutils "*) ;;
18024 *) ok=no ;;
18025 esac
18027 if test $ok = yes; then
18028 # An in-tree tool is available and we can use it
18029 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18031 $as_echo "just compiled" >&6; }
18032 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18033 # We already found the complete path
18034 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18036 $as_echo "pre-installed in $ac_dir" >&6; }
18037 elif test "x$target" = "x$host"; then
18038 # We can use an host tool
18039 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18041 $as_echo "host tool" >&6; }
18042 else
18043 # We need a cross tool
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18045 $as_echo "pre-installed" >&6; }
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18050 $as_echo_n "checking where to find the target dsymutil... " >&6; }
18051 if test "x${build}" != "x${host}" ; then
18052 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18053 # We already found the complete path
18054 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18056 $as_echo "pre-installed in $ac_dir" >&6; }
18057 else
18058 # Canadian cross, just use what we found
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18060 $as_echo "pre-installed" >&6; }
18062 else
18063 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18064 # We already found the complete path
18065 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18067 $as_echo "pre-installed in $ac_dir" >&6; }
18068 elif test "x$target" = "x$host"; then
18069 # We can use an host tool
18070 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18072 $as_echo "host tool" >&6; }
18073 else
18074 # We need a cross tool
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18076 $as_echo "pre-installed" >&6; }
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18081 $as_echo_n "checking where to find the target gcc... " >&6; }
18082 if test "x${build}" != "x${host}" ; then
18083 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18084 # We already found the complete path
18085 ac_dir=`dirname $GCC_FOR_TARGET`
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18087 $as_echo "pre-installed in $ac_dir" >&6; }
18088 else
18089 # Canadian cross, just use what we found
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18091 $as_echo "pre-installed" >&6; }
18093 else
18094 ok=yes
18095 case " ${configdirs} " in
18096 *" gcc "*) ;;
18097 *) ok=no ;;
18098 esac
18100 if test $ok = yes; then
18101 # An in-tree tool is available and we can use it
18102 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18104 $as_echo "just compiled" >&6; }
18105 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18106 # We already found the complete path
18107 ac_dir=`dirname $GCC_FOR_TARGET`
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18109 $as_echo "pre-installed in $ac_dir" >&6; }
18110 elif test "x$target" = "x$host"; then
18111 # We can use an host tool
18112 GCC_FOR_TARGET='$()'
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18114 $as_echo "host tool" >&6; }
18115 else
18116 # We need a cross tool
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18118 $as_echo "pre-installed" >&6; }
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18123 $as_echo_n "checking where to find the target gfortran... " >&6; }
18124 if test "x${build}" != "x${host}" ; then
18125 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18126 # We already found the complete path
18127 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18129 $as_echo "pre-installed in $ac_dir" >&6; }
18130 else
18131 # Canadian cross, just use what we found
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18133 $as_echo "pre-installed" >&6; }
18135 else
18136 ok=yes
18137 case " ${configdirs} " in
18138 *" gcc "*) ;;
18139 *) ok=no ;;
18140 esac
18141 case ,${enable_languages}, in
18142 *,fortran,*) ;;
18143 *) ok=no ;;
18144 esac
18145 if test $ok = yes; then
18146 # An in-tree tool is available and we can use it
18147 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18149 $as_echo "just compiled" >&6; }
18150 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18151 # We already found the complete path
18152 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18154 $as_echo "pre-installed in $ac_dir" >&6; }
18155 elif test "x$target" = "x$host"; then
18156 # We can use an host tool
18157 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18159 $as_echo "host tool" >&6; }
18160 else
18161 # We need a cross tool
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18163 $as_echo "pre-installed" >&6; }
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18168 $as_echo_n "checking where to find the target gccgo... " >&6; }
18169 if test "x${build}" != "x${host}" ; then
18170 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18171 # We already found the complete path
18172 ac_dir=`dirname $GOC_FOR_TARGET`
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18174 $as_echo "pre-installed in $ac_dir" >&6; }
18175 else
18176 # Canadian cross, just use what we found
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18178 $as_echo "pre-installed" >&6; }
18180 else
18181 ok=yes
18182 case " ${configdirs} " in
18183 *" gcc "*) ;;
18184 *) ok=no ;;
18185 esac
18186 case ,${enable_languages}, in
18187 *,go,*) ;;
18188 *) ok=no ;;
18189 esac
18190 if test $ok = yes; then
18191 # An in-tree tool is available and we can use it
18192 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18194 $as_echo "just compiled" >&6; }
18195 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18196 # We already found the complete path
18197 ac_dir=`dirname $GOC_FOR_TARGET`
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18199 $as_echo "pre-installed in $ac_dir" >&6; }
18200 elif test "x$target" = "x$host"; then
18201 # We can use an host tool
18202 GOC_FOR_TARGET='$(GOC)'
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18204 $as_echo "host tool" >&6; }
18205 else
18206 # We need a cross tool
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18208 $as_echo "pre-installed" >&6; }
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18213 $as_echo_n "checking where to find the target gdc... " >&6; }
18214 if test "x${build}" != "x${host}" ; then
18215 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18216 # We already found the complete path
18217 ac_dir=`dirname $GDC_FOR_TARGET`
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18219 $as_echo "pre-installed in $ac_dir" >&6; }
18220 else
18221 # Canadian cross, just use what we found
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18223 $as_echo "pre-installed" >&6; }
18225 else
18226 ok=yes
18227 case " ${configdirs} " in
18228 *" gcc "*) ;;
18229 *) ok=no ;;
18230 esac
18231 case ,${enable_languages}, in
18232 *,d,*) ;;
18233 *) ok=no ;;
18234 esac
18235 if test $ok = yes; then
18236 # An in-tree tool is available and we can use it
18237 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18239 $as_echo "just compiled" >&6; }
18240 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18241 # We already found the complete path
18242 ac_dir=`dirname $GDC_FOR_TARGET`
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18244 $as_echo "pre-installed in $ac_dir" >&6; }
18245 elif test "x$target" = "x$host"; then
18246 # We can use an host tool
18247 GDC_FOR_TARGET='$(GDC)'
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18249 $as_echo "host tool" >&6; }
18250 else
18251 # We need a cross tool
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18253 $as_echo "pre-installed" >&6; }
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18258 $as_echo_n "checking where to find the target gm2... " >&6; }
18259 if test "x${build}" != "x${host}" ; then
18260 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18261 # We already found the complete path
18262 ac_dir=`dirname $GM2_FOR_TARGET`
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18264 $as_echo "pre-installed in $ac_dir" >&6; }
18265 else
18266 # Canadian cross, just use what we found
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18268 $as_echo "pre-installed" >&6; }
18270 else
18271 ok=yes
18272 case " ${configdirs} " in
18273 *" gcc "*) ;;
18274 *) ok=no ;;
18275 esac
18276 case ,${enable_languages}, in
18277 *,m2,*) ;;
18278 *) ok=no ;;
18279 esac
18280 if test $ok = yes; then
18281 # An in-tree tool is available and we can use it
18282 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18284 $as_echo "just compiled" >&6; }
18285 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18286 # We already found the complete path
18287 ac_dir=`dirname $GM2_FOR_TARGET`
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18289 $as_echo "pre-installed in $ac_dir" >&6; }
18290 elif test "x$target" = "x$host"; then
18291 # We can use an host tool
18292 GM2_FOR_TARGET='$(GM2)'
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18294 $as_echo "host tool" >&6; }
18295 else
18296 # We need a cross tool
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18298 $as_echo "pre-installed" >&6; }
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18303 $as_echo_n "checking where to find the target ld... " >&6; }
18304 if test "x${build}" != "x${host}" ; then
18305 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18306 # We already found the complete path
18307 ac_dir=`dirname $LD_FOR_TARGET`
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18309 $as_echo "pre-installed in $ac_dir" >&6; }
18310 else
18311 # Canadian cross, just use what we found
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18313 $as_echo "pre-installed" >&6; }
18315 else
18316 ok=yes
18317 case " ${configdirs} " in
18318 *" ld "*) ;;
18319 *) ok=no ;;
18320 esac
18322 if test $ok = yes; then
18323 # An in-tree tool is available and we can use it
18324 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18326 $as_echo "just compiled" >&6; }
18327 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18328 # We already found the complete path
18329 ac_dir=`dirname $LD_FOR_TARGET`
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18331 $as_echo "pre-installed in $ac_dir" >&6; }
18332 elif test "x$target" = "x$host"; then
18333 # We can use an host tool
18334 LD_FOR_TARGET='$(LD)'
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18336 $as_echo "host tool" >&6; }
18337 else
18338 # We need a cross tool
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18340 $as_echo "pre-installed" >&6; }
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18345 $as_echo_n "checking where to find the target lipo... " >&6; }
18346 if test "x${build}" != "x${host}" ; then
18347 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18348 # We already found the complete path
18349 ac_dir=`dirname $LIPO_FOR_TARGET`
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18351 $as_echo "pre-installed in $ac_dir" >&6; }
18352 else
18353 # Canadian cross, just use what we found
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18355 $as_echo "pre-installed" >&6; }
18357 else
18358 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18359 # We already found the complete path
18360 ac_dir=`dirname $LIPO_FOR_TARGET`
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18362 $as_echo "pre-installed in $ac_dir" >&6; }
18363 elif test "x$target" = "x$host"; then
18364 # We can use an host tool
18365 LIPO_FOR_TARGET='$(LIPO)'
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18367 $as_echo "host tool" >&6; }
18368 else
18369 # We need a cross tool
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18371 $as_echo "pre-installed" >&6; }
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18376 $as_echo_n "checking where to find the target nm... " >&6; }
18377 if test "x${build}" != "x${host}" ; then
18378 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18379 # We already found the complete path
18380 ac_dir=`dirname $NM_FOR_TARGET`
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18382 $as_echo "pre-installed in $ac_dir" >&6; }
18383 else
18384 # Canadian cross, just use what we found
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18386 $as_echo "pre-installed" >&6; }
18388 else
18389 ok=yes
18390 case " ${configdirs} " in
18391 *" binutils "*) ;;
18392 *) ok=no ;;
18393 esac
18395 if test $ok = yes; then
18396 # An in-tree tool is available and we can use it
18397 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18399 $as_echo "just compiled" >&6; }
18400 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18401 # We already found the complete path
18402 ac_dir=`dirname $NM_FOR_TARGET`
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18404 $as_echo "pre-installed in $ac_dir" >&6; }
18405 elif test "x$target" = "x$host"; then
18406 # We can use an host tool
18407 NM_FOR_TARGET='$(NM)'
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18409 $as_echo "host tool" >&6; }
18410 else
18411 # We need a cross tool
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18413 $as_echo "pre-installed" >&6; }
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18418 $as_echo_n "checking where to find the target objcopy... " >&6; }
18419 if test "x${build}" != "x${host}" ; then
18420 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18421 # We already found the complete path
18422 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18424 $as_echo "pre-installed in $ac_dir" >&6; }
18425 else
18426 # Canadian cross, just use what we found
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18428 $as_echo "pre-installed" >&6; }
18430 else
18431 ok=yes
18432 case " ${configdirs} " in
18433 *" binutils "*) ;;
18434 *) ok=no ;;
18435 esac
18437 if test $ok = yes; then
18438 # An in-tree tool is available and we can use it
18439 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18441 $as_echo "just compiled" >&6; }
18442 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18443 # We already found the complete path
18444 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18446 $as_echo "pre-installed in $ac_dir" >&6; }
18447 elif test "x$target" = "x$host"; then
18448 # We can use an host tool
18449 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18451 $as_echo "host tool" >&6; }
18452 else
18453 # We need a cross tool
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18455 $as_echo "pre-installed" >&6; }
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18460 $as_echo_n "checking where to find the target objdump... " >&6; }
18461 if test "x${build}" != "x${host}" ; then
18462 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18463 # We already found the complete path
18464 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18466 $as_echo "pre-installed in $ac_dir" >&6; }
18467 else
18468 # Canadian cross, just use what we found
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18470 $as_echo "pre-installed" >&6; }
18472 else
18473 ok=yes
18474 case " ${configdirs} " in
18475 *" binutils "*) ;;
18476 *) ok=no ;;
18477 esac
18479 if test $ok = yes; then
18480 # An in-tree tool is available and we can use it
18481 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18483 $as_echo "just compiled" >&6; }
18484 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18485 # We already found the complete path
18486 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18488 $as_echo "pre-installed in $ac_dir" >&6; }
18489 elif test "x$target" = "x$host"; then
18490 # We can use an host tool
18491 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18493 $as_echo "host tool" >&6; }
18494 else
18495 # We need a cross tool
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18497 $as_echo "pre-installed" >&6; }
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18502 $as_echo_n "checking where to find the target otool... " >&6; }
18503 if test "x${build}" != "x${host}" ; then
18504 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18505 # We already found the complete path
18506 ac_dir=`dirname $OTOOL_FOR_TARGET`
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18508 $as_echo "pre-installed in $ac_dir" >&6; }
18509 else
18510 # Canadian cross, just use what we found
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18512 $as_echo "pre-installed" >&6; }
18514 else
18515 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18516 # We already found the complete path
18517 ac_dir=`dirname $OTOOL_FOR_TARGET`
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18519 $as_echo "pre-installed in $ac_dir" >&6; }
18520 elif test "x$target" = "x$host"; then
18521 # We can use an host tool
18522 OTOOL_FOR_TARGET='$(OTOOL)'
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18524 $as_echo "host tool" >&6; }
18525 else
18526 # We need a cross tool
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18528 $as_echo "pre-installed" >&6; }
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18533 $as_echo_n "checking where to find the target ranlib... " >&6; }
18534 if test "x${build}" != "x${host}" ; then
18535 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18536 # We already found the complete path
18537 ac_dir=`dirname $RANLIB_FOR_TARGET`
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18539 $as_echo "pre-installed in $ac_dir" >&6; }
18540 else
18541 # Canadian cross, just use what we found
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18543 $as_echo "pre-installed" >&6; }
18545 else
18546 ok=yes
18547 case " ${configdirs} " in
18548 *" binutils "*) ;;
18549 *) ok=no ;;
18550 esac
18552 if test $ok = yes; then
18553 # An in-tree tool is available and we can use it
18554 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18556 $as_echo "just compiled" >&6; }
18557 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18558 # We already found the complete path
18559 ac_dir=`dirname $RANLIB_FOR_TARGET`
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18561 $as_echo "pre-installed in $ac_dir" >&6; }
18562 elif test "x$target" = "x$host"; then
18563 # We can use an host tool
18564 RANLIB_FOR_TARGET='$(RANLIB)'
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18566 $as_echo "host tool" >&6; }
18567 else
18568 # We need a cross tool
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18570 $as_echo "pre-installed" >&6; }
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18575 $as_echo_n "checking where to find the target readelf... " >&6; }
18576 if test "x${build}" != "x${host}" ; then
18577 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18578 # We already found the complete path
18579 ac_dir=`dirname $READELF_FOR_TARGET`
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18581 $as_echo "pre-installed in $ac_dir" >&6; }
18582 else
18583 # Canadian cross, just use what we found
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18585 $as_echo "pre-installed" >&6; }
18587 else
18588 ok=yes
18589 case " ${configdirs} " in
18590 *" binutils "*) ;;
18591 *) ok=no ;;
18592 esac
18594 if test $ok = yes; then
18595 # An in-tree tool is available and we can use it
18596 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18598 $as_echo "just compiled" >&6; }
18599 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18600 # We already found the complete path
18601 ac_dir=`dirname $READELF_FOR_TARGET`
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18603 $as_echo "pre-installed in $ac_dir" >&6; }
18604 elif test "x$target" = "x$host"; then
18605 # We can use an host tool
18606 READELF_FOR_TARGET='$(READELF)'
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18608 $as_echo "host tool" >&6; }
18609 else
18610 # We need a cross tool
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18612 $as_echo "pre-installed" >&6; }
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18617 $as_echo_n "checking where to find the target strip... " >&6; }
18618 if test "x${build}" != "x${host}" ; then
18619 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18620 # We already found the complete path
18621 ac_dir=`dirname $STRIP_FOR_TARGET`
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18623 $as_echo "pre-installed in $ac_dir" >&6; }
18624 else
18625 # Canadian cross, just use what we found
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18627 $as_echo "pre-installed" >&6; }
18629 else
18630 ok=yes
18631 case " ${configdirs} " in
18632 *" binutils "*) ;;
18633 *) ok=no ;;
18634 esac
18636 if test $ok = yes; then
18637 # An in-tree tool is available and we can use it
18638 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18640 $as_echo "just compiled" >&6; }
18641 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18642 # We already found the complete path
18643 ac_dir=`dirname $STRIP_FOR_TARGET`
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18645 $as_echo "pre-installed in $ac_dir" >&6; }
18646 elif test "x$target" = "x$host"; then
18647 # We can use an host tool
18648 STRIP_FOR_TARGET='$(STRIP)'
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18650 $as_echo "host tool" >&6; }
18651 else
18652 # We need a cross tool
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18654 $as_echo "pre-installed" >&6; }
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18659 $as_echo_n "checking where to find the target windres... " >&6; }
18660 if test "x${build}" != "x${host}" ; then
18661 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18662 # We already found the complete path
18663 ac_dir=`dirname $WINDRES_FOR_TARGET`
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18665 $as_echo "pre-installed in $ac_dir" >&6; }
18666 else
18667 # Canadian cross, just use what we found
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18669 $as_echo "pre-installed" >&6; }
18671 else
18672 ok=yes
18673 case " ${configdirs} " in
18674 *" binutils "*) ;;
18675 *) ok=no ;;
18676 esac
18678 if test $ok = yes; then
18679 # An in-tree tool is available and we can use it
18680 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18682 $as_echo "just compiled" >&6; }
18683 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18684 # We already found the complete path
18685 ac_dir=`dirname $WINDRES_FOR_TARGET`
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18687 $as_echo "pre-installed in $ac_dir" >&6; }
18688 elif test "x$target" = "x$host"; then
18689 # We can use an host tool
18690 WINDRES_FOR_TARGET='$(WINDRES)'
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18692 $as_echo "host tool" >&6; }
18693 else
18694 # We need a cross tool
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18696 $as_echo "pre-installed" >&6; }
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18701 $as_echo_n "checking where to find the target windmc... " >&6; }
18702 if test "x${build}" != "x${host}" ; then
18703 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18704 # We already found the complete path
18705 ac_dir=`dirname $WINDMC_FOR_TARGET`
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18707 $as_echo "pre-installed in $ac_dir" >&6; }
18708 else
18709 # Canadian cross, just use what we found
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18711 $as_echo "pre-installed" >&6; }
18713 else
18714 ok=yes
18715 case " ${configdirs} " in
18716 *" binutils "*) ;;
18717 *) ok=no ;;
18718 esac
18720 if test $ok = yes; then
18721 # An in-tree tool is available and we can use it
18722 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18724 $as_echo "just compiled" >&6; }
18725 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18726 # We already found the complete path
18727 ac_dir=`dirname $WINDMC_FOR_TARGET`
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18729 $as_echo "pre-installed in $ac_dir" >&6; }
18730 elif test "x$target" = "x$host"; then
18731 # We can use an host tool
18732 WINDMC_FOR_TARGET='$(WINDMC)'
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18734 $as_echo "host tool" >&6; }
18735 else
18736 # We need a cross tool
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18738 $as_echo "pre-installed" >&6; }
18746 # Certain tools may need extra flags.
18747 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18748 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18749 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18751 # When building target libraries, except in a Canadian cross, we use
18752 # the same toolchain as the compiler we just built.
18753 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18754 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18755 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18756 if test $host = $build; then
18757 case " $configdirs " in
18758 *" gcc "*)
18759 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18760 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18761 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18763 esac
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18771 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18772 # Check whether --enable-maintainer-mode was given.
18773 if test "${enable_maintainer_mode+set}" = set; then :
18774 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18775 else
18776 USE_MAINTAINER_MODE=no
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18780 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18783 if test "$USE_MAINTAINER_MODE" = yes; then
18784 MAINTAINER_MODE_TRUE=
18785 MAINTAINER_MODE_FALSE='#'
18786 else
18787 MAINTAINER_MODE_TRUE='#'
18788 MAINTAINER_MODE_FALSE=
18790 MAINT=$MAINTAINER_MODE_TRUE
18792 # ---------------------
18793 # GCC bootstrap support
18794 # ---------------------
18796 # Stage specific cflags for build.
18797 stage1_cflags="-g"
18798 case $build in
18799 vax-*-*)
18800 case ${GCC} in
18801 yes) stage1_cflags="-g -Wa,-J" ;;
18802 *) stage1_cflags="-g -J" ;;
18803 esac ;;
18804 esac
18808 # Enable --enable-checking in stage1 of the compiler.
18809 # Check whether --enable-stage1-checking was given.
18810 if test "${enable_stage1_checking+set}" = set; then :
18811 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18812 else
18813 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18814 # For --disable-checking or implicit --enable-checking=release, avoid
18815 # setting --enable-checking=gc in the default stage1 checking for LTO
18816 # bootstraps. See PR62077.
18817 case $BUILD_CONFIG in
18818 *lto*)
18819 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18821 stage1_checking=--enable-checking=yes,types;;
18822 esac
18823 if test "x$enable_checking" = x && \
18824 test -d ${srcdir}/gcc && \
18825 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18826 stage1_checking=--enable-checking=yes,types,extra
18828 else
18829 stage1_checking=--enable-checking=$enable_checking,types
18835 # Enable -Werror in bootstrap stage2 and later.
18836 # Check whether --enable-werror was given.
18837 if test "${enable_werror+set}" = set; then :
18838 enableval=$enable_werror;
18839 case ${enable_werror} in
18840 yes) stage2_werror_flag="--enable-werror-always" ;;
18841 *) stage2_werror_flag="" ;;
18842 esac
18844 else
18846 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18847 case $BUILD_CONFIG in
18848 bootstrap-debug)
18849 stage2_werror_flag="--enable-werror-always" ;;
18851 stage2_werror_flag="--enable-werror-always" ;;
18852 esac
18860 # Specify what files to not compare during bootstrap.
18862 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18863 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18864 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18865 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18866 case "$target" in
18867 hppa*64*-*-hpux*) ;;
18868 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18869 esac
18872 ac_config_files="$ac_config_files Makefile"
18874 cat >confcache <<\_ACEOF
18875 # This file is a shell script that caches the results of configure
18876 # tests run on this system so they can be shared between configure
18877 # scripts and configure runs, see configure's option --config-cache.
18878 # It is not useful on other systems. If it contains results you don't
18879 # want to keep, you may remove or edit it.
18881 # config.status only pays attention to the cache file if you give it
18882 # the --recheck option to rerun configure.
18884 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18885 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18886 # following values.
18888 _ACEOF
18890 # The following way of writing the cache mishandles newlines in values,
18891 # but we know of no workaround that is simple, portable, and efficient.
18892 # So, we kill variables containing newlines.
18893 # Ultrix sh set writes to stderr and can't be redirected directly,
18894 # and sets the high bit in the cache file unless we assign to the vars.
18896 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18897 eval ac_val=\$$ac_var
18898 case $ac_val in #(
18899 *${as_nl}*)
18900 case $ac_var in #(
18901 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18902 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18903 esac
18904 case $ac_var in #(
18905 _ | IFS | as_nl) ;; #(
18906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18907 *) { eval $ac_var=; unset $ac_var;} ;;
18908 esac ;;
18909 esac
18910 done
18912 (set) 2>&1 |
18913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18914 *${as_nl}ac_space=\ *)
18915 # `set' does not quote correctly, so add quotes: double-quote
18916 # substitution turns \\\\ into \\, and sed turns \\ into \.
18917 sed -n \
18918 "s/'/'\\\\''/g;
18919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18920 ;; #(
18922 # `set' quotes correctly as required by POSIX, so do not add quotes.
18923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18925 esac |
18926 sort
18928 sed '
18929 /^ac_cv_env_/b end
18930 t clear
18931 :clear
18932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18933 t end
18934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18935 :end' >>confcache
18936 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18937 if test -w "$cache_file"; then
18938 if test "x$cache_file" != "x/dev/null"; then
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18940 $as_echo "$as_me: updating cache $cache_file" >&6;}
18941 if test ! -f "$cache_file" || test -h "$cache_file"; then
18942 cat confcache >"$cache_file"
18943 else
18944 case $cache_file in #(
18945 */* | ?:*)
18946 mv -f confcache "$cache_file"$$ &&
18947 mv -f "$cache_file"$$ "$cache_file" ;; #(
18949 mv -f confcache "$cache_file" ;;
18950 esac
18953 else
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18955 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18958 rm -f confcache
18960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18961 # Let make expand exec_prefix.
18962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18964 # Transform confdefs.h into DEFS.
18965 # Protect against shell expansion while executing Makefile rules.
18966 # Protect against Makefile macro expansion.
18968 # If the first sed substitution is executed (which looks for macros that
18969 # take arguments), then branch to the quote section. Otherwise,
18970 # look for a macro that doesn't take arguments.
18971 ac_script='
18972 :mline
18973 /\\$/{
18975 s,\\\n,,
18976 b mline
18978 t clear
18979 :clear
18980 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18981 t quote
18982 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18983 t quote
18984 b any
18985 :quote
18986 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18987 s/\[/\\&/g
18988 s/\]/\\&/g
18989 s/\$/$$/g
18991 :any
18994 s/^\n//
18995 s/\n/ /g
18999 DEFS=`sed -n "$ac_script" confdefs.h`
19002 ac_libobjs=
19003 ac_ltlibobjs=
19005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19006 # 1. Remove the extension, and $U if already installed.
19007 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19008 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19009 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19010 # will be set to the directory where LIBOBJS objects are built.
19011 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19012 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19013 done
19014 LIBOBJS=$ac_libobjs
19016 LTLIBOBJS=$ac_ltlibobjs
19020 : "${CONFIG_STATUS=./config.status}"
19021 ac_write_fail=0
19022 ac_clean_files_save=$ac_clean_files
19023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19025 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19026 as_write_fail=0
19027 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19028 #! $SHELL
19029 # Generated by $as_me.
19030 # Run this file to recreate the current configuration.
19031 # Compiler output produced by configure, useful for debugging
19032 # configure, is in config.log if it exists.
19034 debug=false
19035 ac_cs_recheck=false
19036 ac_cs_silent=false
19038 SHELL=\${CONFIG_SHELL-$SHELL}
19039 export SHELL
19040 _ASEOF
19041 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19042 ## -------------------- ##
19043 ## M4sh Initialization. ##
19044 ## -------------------- ##
19046 # Be more Bourne compatible
19047 DUALCASE=1; export DUALCASE # for MKS sh
19048 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19049 emulate sh
19050 NULLCMD=:
19051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19052 # is contrary to our usage. Disable this feature.
19053 alias -g '${1+"$@"}'='"$@"'
19054 setopt NO_GLOB_SUBST
19055 else
19056 case `(set -o) 2>/dev/null` in #(
19057 *posix*) :
19058 set -o posix ;; #(
19059 *) :
19061 esac
19065 as_nl='
19067 export as_nl
19068 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19069 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19070 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19072 # Prefer a ksh shell builtin over an external printf program on Solaris,
19073 # but without wasting forks for bash or zsh.
19074 if test -z "$BASH_VERSION$ZSH_VERSION" \
19075 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19076 as_echo='print -r --'
19077 as_echo_n='print -rn --'
19078 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19079 as_echo='printf %s\n'
19080 as_echo_n='printf %s'
19081 else
19082 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19083 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19084 as_echo_n='/usr/ucb/echo -n'
19085 else
19086 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19087 as_echo_n_body='eval
19088 arg=$1;
19089 case $arg in #(
19090 *"$as_nl"*)
19091 expr "X$arg" : "X\\(.*\\)$as_nl";
19092 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19093 esac;
19094 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19096 export as_echo_n_body
19097 as_echo_n='sh -c $as_echo_n_body as_echo'
19099 export as_echo_body
19100 as_echo='sh -c $as_echo_body as_echo'
19103 # The user is always right.
19104 if test "${PATH_SEPARATOR+set}" != set; then
19105 PATH_SEPARATOR=:
19106 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19107 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19108 PATH_SEPARATOR=';'
19113 # IFS
19114 # We need space, tab and new line, in precisely that order. Quoting is
19115 # there to prevent editors from complaining about space-tab.
19116 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19117 # splitting by setting IFS to empty value.)
19118 IFS=" "" $as_nl"
19120 # Find who we are. Look in the path if we contain no directory separator.
19121 as_myself=
19122 case $0 in #((
19123 *[\\/]* ) as_myself=$0 ;;
19124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125 for as_dir in $PATH
19127 IFS=$as_save_IFS
19128 test -z "$as_dir" && as_dir=.
19129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19130 done
19131 IFS=$as_save_IFS
19134 esac
19135 # We did not find ourselves, most probably we were run as `sh COMMAND'
19136 # in which case we are not to be found in the path.
19137 if test "x$as_myself" = x; then
19138 as_myself=$0
19140 if test ! -f "$as_myself"; then
19141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19142 exit 1
19145 # Unset variables that we do not need and which cause bugs (e.g. in
19146 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19147 # suppresses any "Segmentation fault" message there. '((' could
19148 # trigger a bug in pdksh 5.2.14.
19149 for as_var in BASH_ENV ENV MAIL MAILPATH
19150 do eval test x\${$as_var+set} = xset \
19151 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19152 done
19153 PS1='$ '
19154 PS2='> '
19155 PS4='+ '
19157 # NLS nuisances.
19158 LC_ALL=C
19159 export LC_ALL
19160 LANGUAGE=C
19161 export LANGUAGE
19163 # CDPATH.
19164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19167 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19168 # ----------------------------------------
19169 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19170 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19171 # script with STATUS, using 1 if that was 0.
19172 as_fn_error ()
19174 as_status=$1; test $as_status -eq 0 && as_status=1
19175 if test "$4"; then
19176 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19179 $as_echo "$as_me: error: $2" >&2
19180 as_fn_exit $as_status
19181 } # as_fn_error
19184 # as_fn_set_status STATUS
19185 # -----------------------
19186 # Set $? to STATUS, without forking.
19187 as_fn_set_status ()
19189 return $1
19190 } # as_fn_set_status
19192 # as_fn_exit STATUS
19193 # -----------------
19194 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19195 as_fn_exit ()
19197 set +e
19198 as_fn_set_status $1
19199 exit $1
19200 } # as_fn_exit
19202 # as_fn_unset VAR
19203 # ---------------
19204 # Portably unset VAR.
19205 as_fn_unset ()
19207 { eval $1=; unset $1;}
19209 as_unset=as_fn_unset
19210 # as_fn_append VAR VALUE
19211 # ----------------------
19212 # Append the text in VALUE to the end of the definition contained in VAR. Take
19213 # advantage of any shell optimizations that allow amortized linear growth over
19214 # repeated appends, instead of the typical quadratic growth present in naive
19215 # implementations.
19216 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19217 eval 'as_fn_append ()
19219 eval $1+=\$2
19221 else
19222 as_fn_append ()
19224 eval $1=\$$1\$2
19226 fi # as_fn_append
19228 # as_fn_arith ARG...
19229 # ------------------
19230 # Perform arithmetic evaluation on the ARGs, and store the result in the
19231 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19232 # must be portable across $(()) and expr.
19233 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19234 eval 'as_fn_arith ()
19236 as_val=$(( $* ))
19238 else
19239 as_fn_arith ()
19241 as_val=`expr "$@" || test $? -eq 1`
19243 fi # as_fn_arith
19246 if expr a : '\(a\)' >/dev/null 2>&1 &&
19247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19248 as_expr=expr
19249 else
19250 as_expr=false
19253 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19254 as_basename=basename
19255 else
19256 as_basename=false
19259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19260 as_dirname=dirname
19261 else
19262 as_dirname=false
19265 as_me=`$as_basename -- "$0" ||
19266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19267 X"$0" : 'X\(//\)$' \| \
19268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19269 $as_echo X/"$0" |
19270 sed '/^.*\/\([^/][^/]*\)\/*$/{
19271 s//\1/
19274 /^X\/\(\/\/\)$/{
19275 s//\1/
19278 /^X\/\(\/\).*/{
19279 s//\1/
19282 s/.*/./; q'`
19284 # Avoid depending upon Character Ranges.
19285 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19286 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19287 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19288 as_cr_digits='0123456789'
19289 as_cr_alnum=$as_cr_Letters$as_cr_digits
19291 ECHO_C= ECHO_N= ECHO_T=
19292 case `echo -n x` in #(((((
19293 -n*)
19294 case `echo 'xy\c'` in
19295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19296 xy) ECHO_C='\c';;
19297 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19298 ECHO_T=' ';;
19299 esac;;
19301 ECHO_N='-n';;
19302 esac
19304 rm -f conf$$ conf$$.exe conf$$.file
19305 if test -d conf$$.dir; then
19306 rm -f conf$$.dir/conf$$.file
19307 else
19308 rm -f conf$$.dir
19309 mkdir conf$$.dir 2>/dev/null
19311 if (echo >conf$$.file) 2>/dev/null; then
19312 if ln -s conf$$.file conf$$ 2>/dev/null; then
19313 as_ln_s='ln -s'
19314 # ... but there are two gotchas:
19315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19317 # In both cases, we have to default to `cp -pR'.
19318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19319 as_ln_s='cp -pR'
19320 elif ln conf$$.file conf$$ 2>/dev/null; then
19321 as_ln_s=ln
19322 else
19323 as_ln_s='cp -pR'
19325 else
19326 as_ln_s='cp -pR'
19328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19329 rmdir conf$$.dir 2>/dev/null
19332 # as_fn_mkdir_p
19333 # -------------
19334 # Create "$as_dir" as a directory, including parents if necessary.
19335 as_fn_mkdir_p ()
19338 case $as_dir in #(
19339 -*) as_dir=./$as_dir;;
19340 esac
19341 test -d "$as_dir" || eval $as_mkdir_p || {
19342 as_dirs=
19343 while :; do
19344 case $as_dir in #(
19345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19346 *) as_qdir=$as_dir;;
19347 esac
19348 as_dirs="'$as_qdir' $as_dirs"
19349 as_dir=`$as_dirname -- "$as_dir" ||
19350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19351 X"$as_dir" : 'X\(//\)[^/]' \| \
19352 X"$as_dir" : 'X\(//\)$' \| \
19353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19354 $as_echo X"$as_dir" |
19355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19356 s//\1/
19359 /^X\(\/\/\)[^/].*/{
19360 s//\1/
19363 /^X\(\/\/\)$/{
19364 s//\1/
19367 /^X\(\/\).*/{
19368 s//\1/
19371 s/.*/./; q'`
19372 test -d "$as_dir" && break
19373 done
19374 test -z "$as_dirs" || eval "mkdir $as_dirs"
19375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19378 } # as_fn_mkdir_p
19379 if mkdir -p . 2>/dev/null; then
19380 as_mkdir_p='mkdir -p "$as_dir"'
19381 else
19382 test -d ./-p && rmdir ./-p
19383 as_mkdir_p=false
19387 # as_fn_executable_p FILE
19388 # -----------------------
19389 # Test if FILE is an executable regular file.
19390 as_fn_executable_p ()
19392 test -f "$1" && test -x "$1"
19393 } # as_fn_executable_p
19394 as_test_x='test -x'
19395 as_executable_p=as_fn_executable_p
19397 # Sed expression to map a string onto a valid CPP name.
19398 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19400 # Sed expression to map a string onto a valid variable name.
19401 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19404 exec 6>&1
19405 ## ----------------------------------- ##
19406 ## Main body of $CONFIG_STATUS script. ##
19407 ## ----------------------------------- ##
19408 _ASEOF
19409 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19412 # Save the log message, to keep $0 and so on meaningful, and to
19413 # report actual input values of CONFIG_FILES etc. instead of their
19414 # values after options handling.
19415 ac_log="
19416 This file was extended by $as_me, which was
19417 generated by GNU Autoconf 2.69. Invocation command line was
19419 CONFIG_FILES = $CONFIG_FILES
19420 CONFIG_HEADERS = $CONFIG_HEADERS
19421 CONFIG_LINKS = $CONFIG_LINKS
19422 CONFIG_COMMANDS = $CONFIG_COMMANDS
19423 $ $0 $@
19425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19428 _ACEOF
19430 case $ac_config_files in *"
19431 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19432 esac
19436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19437 # Files that config.status was made for.
19438 config_files="$ac_config_files"
19440 _ACEOF
19442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19443 ac_cs_usage="\
19444 \`$as_me' instantiates files and other configuration actions
19445 from templates according to the current configuration. Unless the files
19446 and actions are specified as TAGs, all are instantiated by default.
19448 Usage: $0 [OPTION]... [TAG]...
19450 -h, --help print this help, then exit
19451 -V, --version print version number and configuration settings, then exit
19452 --config print configuration, then exit
19453 -q, --quiet, --silent
19454 do not print progress messages
19455 -d, --debug don't remove temporary files
19456 --recheck update $as_me by reconfiguring in the same conditions
19457 --file=FILE[:TEMPLATE]
19458 instantiate the configuration file FILE
19460 Configuration files:
19461 $config_files
19463 Report bugs to the package provider."
19465 _ACEOF
19466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19467 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19468 ac_cs_version="\\
19469 config.status
19470 configured by $0, generated by GNU Autoconf 2.69,
19471 with options \\"\$ac_cs_config\\"
19473 Copyright (C) 2012 Free Software Foundation, Inc.
19474 This config.status script is free software; the Free Software Foundation
19475 gives unlimited permission to copy, distribute and modify it."
19477 ac_pwd='$ac_pwd'
19478 srcdir='$srcdir'
19479 INSTALL='$INSTALL'
19480 AWK='$AWK'
19481 test -n "\$AWK" || AWK=awk
19482 _ACEOF
19484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19485 # The default lists apply if the user does not specify any file.
19486 ac_need_defaults=:
19487 while test $# != 0
19489 case $1 in
19490 --*=?*)
19491 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19492 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19493 ac_shift=:
19495 --*=)
19496 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19497 ac_optarg=
19498 ac_shift=:
19501 ac_option=$1
19502 ac_optarg=$2
19503 ac_shift=shift
19505 esac
19507 case $ac_option in
19508 # Handling of the options.
19509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19510 ac_cs_recheck=: ;;
19511 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19512 $as_echo "$ac_cs_version"; exit ;;
19513 --config | --confi | --conf | --con | --co | --c )
19514 $as_echo "$ac_cs_config"; exit ;;
19515 --debug | --debu | --deb | --de | --d | -d )
19516 debug=: ;;
19517 --file | --fil | --fi | --f )
19518 $ac_shift
19519 case $ac_optarg in
19520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19521 '') as_fn_error $? "missing file argument" ;;
19522 esac
19523 as_fn_append CONFIG_FILES " '$ac_optarg'"
19524 ac_need_defaults=false;;
19525 --he | --h | --help | --hel | -h )
19526 $as_echo "$ac_cs_usage"; exit ;;
19527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19529 ac_cs_silent=: ;;
19531 # This is an error.
19532 -*) as_fn_error $? "unrecognized option: \`$1'
19533 Try \`$0 --help' for more information." ;;
19535 *) as_fn_append ac_config_targets " $1"
19536 ac_need_defaults=false ;;
19538 esac
19539 shift
19540 done
19542 ac_configure_extra_args=
19544 if $ac_cs_silent; then
19545 exec 6>/dev/null
19546 ac_configure_extra_args="$ac_configure_extra_args --silent"
19549 _ACEOF
19550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19551 if \$ac_cs_recheck; then
19552 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19553 shift
19554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19555 CONFIG_SHELL='$SHELL'
19556 export CONFIG_SHELL
19557 exec "\$@"
19560 _ACEOF
19561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19562 exec 5>>config.log
19564 echo
19565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19566 ## Running $as_me. ##
19567 _ASBOX
19568 $as_echo "$ac_log"
19569 } >&5
19571 _ACEOF
19572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19574 # INIT-COMMANDS
19576 extrasub_build="$extrasub_build"
19577 extrasub_host="$extrasub_host"
19578 extrasub_target="$extrasub_target"
19580 _ACEOF
19582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19584 # Handling of arguments.
19585 for ac_config_target in $ac_config_targets
19587 case $ac_config_target in
19588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19590 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19591 esac
19592 done
19595 # If the user did not use the arguments to specify the items to instantiate,
19596 # then the envvar interface is used. Set only those that are not.
19597 # We use the long form for the default assignment because of an extremely
19598 # bizarre bug on SunOS 4.1.3.
19599 if $ac_need_defaults; then
19600 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19603 # Have a temporary directory for convenience. Make it in the build tree
19604 # simply because there is no reason against having it here, and in addition,
19605 # creating and moving files from /tmp can sometimes cause problems.
19606 # Hook for its removal unless debugging.
19607 # Note that there is a small window in which the directory will not be cleaned:
19608 # after its creation but before its name has been assigned to `$tmp'.
19609 $debug ||
19611 tmp= ac_tmp=
19612 trap 'exit_status=$?
19613 : "${ac_tmp:=$tmp}"
19614 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19616 trap 'as_fn_exit 1' 1 2 13 15
19618 # Create a (secure) tmp directory for tmp files.
19621 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19622 test -d "$tmp"
19623 } ||
19625 tmp=./conf$$-$RANDOM
19626 (umask 077 && mkdir "$tmp")
19627 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19628 ac_tmp=$tmp
19630 # Set up the scripts for CONFIG_FILES section.
19631 # No need to generate them if there are no CONFIG_FILES.
19632 # This happens for instance with `./config.status config.h'.
19633 if test -n "$CONFIG_FILES"; then
19635 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19636 ac_cs_awk_getline=:
19637 ac_cs_awk_pipe_init=
19638 ac_cs_awk_read_file='
19639 while ((getline aline < (F[key])) > 0)
19640 print(aline)
19641 close(F[key])'
19642 ac_cs_awk_pipe_fini=
19643 else
19644 ac_cs_awk_getline=false
19645 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19646 ac_cs_awk_read_file='
19647 print "|#_!!_#|"
19648 print "cat " F[key] " &&"
19649 '$ac_cs_awk_pipe_init
19650 # The final `:' finishes the AND list.
19651 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19653 ac_cr=`echo X | tr X '\015'`
19654 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19655 # But we know of no other shell where ac_cr would be empty at this
19656 # point, so we can use a bashism as a fallback.
19657 if test "x$ac_cr" = x; then
19658 eval ac_cr=\$\'\\r\'
19660 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19661 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19662 ac_cs_awk_cr='\\r'
19663 else
19664 ac_cs_awk_cr=$ac_cr
19667 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19668 _ACEOF
19670 # Create commands to substitute file output variables.
19672 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19673 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19674 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19675 echo "_ACAWK" &&
19676 echo "_ACEOF"
19677 } >conf$$files.sh &&
19678 . ./conf$$files.sh ||
19679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19680 rm -f conf$$files.sh
19683 echo "cat >conf$$subs.awk <<_ACEOF" &&
19684 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19685 echo "_ACEOF"
19686 } >conf$$subs.sh ||
19687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19688 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19689 ac_delim='%!_!# '
19690 for ac_last_try in false false false false false :; do
19691 . ./conf$$subs.sh ||
19692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19694 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19695 if test $ac_delim_n = $ac_delim_num; then
19696 break
19697 elif $ac_last_try; then
19698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19699 else
19700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19702 done
19703 rm -f conf$$subs.sh
19705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19706 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19707 _ACEOF
19708 sed -n '
19710 s/^/S["/; s/!.*/"]=/
19713 s/^[^!]*!//
19714 :repl
19715 t repl
19716 s/'"$ac_delim"'$//
19717 t delim
19720 s/\(.\{148\}\)..*/\1/
19721 t more1
19722 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19725 b repl
19726 :more1
19727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19730 s/.\{148\}//
19731 t nl
19732 :delim
19734 s/\(.\{148\}\)..*/\1/
19735 t more2
19736 s/["\\]/\\&/g; s/^/"/; s/$/"/
19739 :more2
19740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19743 s/.\{148\}//
19744 t delim
19745 ' <conf$$subs.awk | sed '
19746 /^[^""]/{
19748 s/\n//
19750 ' >>$CONFIG_STATUS || ac_write_fail=1
19751 rm -f conf$$subs.awk
19752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19753 _ACAWK
19754 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19755 for (key in S) S_is_set[key] = 1
19756 FS = "\a"
19757 \$ac_cs_awk_pipe_init
19760 line = $ 0
19761 nfields = split(line, field, "@")
19762 substed = 0
19763 len = length(field[1])
19764 for (i = 2; i < nfields; i++) {
19765 key = field[i]
19766 keylen = length(key)
19767 if (S_is_set[key]) {
19768 value = S[key]
19769 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19770 len += length(value) + length(field[++i])
19771 substed = 1
19772 } else
19773 len += 1 + keylen
19775 if (nfields == 3 && !substed) {
19776 key = field[2]
19777 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19778 \$ac_cs_awk_read_file
19779 next
19782 print line
19784 \$ac_cs_awk_pipe_fini
19785 _ACAWK
19786 _ACEOF
19787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19788 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19789 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19790 else
19792 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19793 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19794 _ACEOF
19796 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19797 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19798 # trailing colons and then remove the whole line if VPATH becomes empty
19799 # (actually we leave an empty line to preserve line numbers).
19800 if test "x$srcdir" = x.; then
19801 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19803 s///
19804 s/^/:/
19805 s/[ ]*$/:/
19806 s/:\$(srcdir):/:/g
19807 s/:\${srcdir}:/:/g
19808 s/:@srcdir@:/:/g
19809 s/^:*//
19810 s/:*$//
19812 s/\(=[ ]*\).*/\1/
19814 s/\n//
19815 s/^[^=]*=[ ]*$//
19819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19820 fi # test -n "$CONFIG_FILES"
19823 eval set X " :F $CONFIG_FILES "
19824 shift
19825 for ac_tag
19827 case $ac_tag in
19828 :[FHLC]) ac_mode=$ac_tag; continue;;
19829 esac
19830 case $ac_mode$ac_tag in
19831 :[FHL]*:*);;
19832 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19833 :[FH]-) ac_tag=-:-;;
19834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19835 esac
19836 ac_save_IFS=$IFS
19837 IFS=:
19838 set x $ac_tag
19839 IFS=$ac_save_IFS
19840 shift
19841 ac_file=$1
19842 shift
19844 case $ac_mode in
19845 :L) ac_source=$1;;
19846 :[FH])
19847 ac_file_inputs=
19848 for ac_f
19850 case $ac_f in
19851 -) ac_f="$ac_tmp/stdin";;
19852 *) # Look for the file first in the build tree, then in the source tree
19853 # (if the path is not absolute). The absolute path cannot be DOS-style,
19854 # because $ac_f cannot contain `:'.
19855 test -f "$ac_f" ||
19856 case $ac_f in
19857 [\\/$]*) false;;
19858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19859 esac ||
19860 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19861 esac
19862 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19863 as_fn_append ac_file_inputs " '$ac_f'"
19864 done
19866 # Let's still pretend it is `configure' which instantiates (i.e., don't
19867 # use $as_me), people would be surprised to read:
19868 # /* config.h. Generated by config.status. */
19869 configure_input='Generated from '`
19870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19871 `' by configure.'
19872 if test x"$ac_file" != x-; then
19873 configure_input="$ac_file. $configure_input"
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19875 $as_echo "$as_me: creating $ac_file" >&6;}
19877 # Neutralize special characters interpreted by sed in replacement strings.
19878 case $configure_input in #(
19879 *\&* | *\|* | *\\* )
19880 ac_sed_conf_input=`$as_echo "$configure_input" |
19881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19882 *) ac_sed_conf_input=$configure_input;;
19883 esac
19885 case $ac_tag in
19886 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19888 esac
19890 esac
19892 ac_dir=`$as_dirname -- "$ac_file" ||
19893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19894 X"$ac_file" : 'X\(//\)[^/]' \| \
19895 X"$ac_file" : 'X\(//\)$' \| \
19896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19897 $as_echo X"$ac_file" |
19898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19899 s//\1/
19902 /^X\(\/\/\)[^/].*/{
19903 s//\1/
19906 /^X\(\/\/\)$/{
19907 s//\1/
19910 /^X\(\/\).*/{
19911 s//\1/
19914 s/.*/./; q'`
19915 as_dir="$ac_dir"; as_fn_mkdir_p
19916 ac_builddir=.
19918 case "$ac_dir" in
19919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19922 # A ".." for each directory in $ac_dir_suffix.
19923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19924 case $ac_top_builddir_sub in
19925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19927 esac ;;
19928 esac
19929 ac_abs_top_builddir=$ac_pwd
19930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19931 # for backward compatibility:
19932 ac_top_builddir=$ac_top_build_prefix
19934 case $srcdir in
19935 .) # We are building in place.
19936 ac_srcdir=.
19937 ac_top_srcdir=$ac_top_builddir_sub
19938 ac_abs_top_srcdir=$ac_pwd ;;
19939 [\\/]* | ?:[\\/]* ) # Absolute name.
19940 ac_srcdir=$srcdir$ac_dir_suffix;
19941 ac_top_srcdir=$srcdir
19942 ac_abs_top_srcdir=$srcdir ;;
19943 *) # Relative name.
19944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19945 ac_top_srcdir=$ac_top_build_prefix$srcdir
19946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19947 esac
19948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19951 case $ac_mode in
19954 # CONFIG_FILE
19957 case $INSTALL in
19958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19960 esac
19961 _ACEOF
19963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19964 # If the template does not know about datarootdir, expand it.
19965 # FIXME: This hack should be removed a few years after 2.60.
19966 ac_datarootdir_hack=; ac_datarootdir_seen=
19967 ac_sed_dataroot='
19968 /datarootdir/ {
19972 /@datadir@/p
19973 /@docdir@/p
19974 /@infodir@/p
19975 /@localedir@/p
19976 /@mandir@/p'
19977 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19978 *datarootdir*) ac_datarootdir_seen=yes;;
19979 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19981 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19982 _ACEOF
19983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19984 ac_datarootdir_hack='
19985 s&@datadir@&$datadir&g
19986 s&@docdir@&$docdir&g
19987 s&@infodir@&$infodir&g
19988 s&@localedir@&$localedir&g
19989 s&@mandir@&$mandir&g
19990 s&\\\${datarootdir}&$datarootdir&g' ;;
19991 esac
19992 _ACEOF
19994 # Neutralize VPATH when `$srcdir' = `.'.
19995 # Shell code in configure.ac might set extrasub.
19996 # FIXME: do we really want to maintain this feature?
19997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19998 ac_sed_extra="$ac_vpsub
19999 $extrasub
20000 _ACEOF
20001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20004 s|@configure_input@|$ac_sed_conf_input|;t t
20005 s&@top_builddir@&$ac_top_builddir_sub&;t t
20006 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20007 s&@srcdir@&$ac_srcdir&;t t
20008 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20009 s&@top_srcdir@&$ac_top_srcdir&;t t
20010 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20011 s&@builddir@&$ac_builddir&;t t
20012 s&@abs_builddir@&$ac_abs_builddir&;t t
20013 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20014 s&@INSTALL@&$ac_INSTALL&;t t
20015 $ac_datarootdir_hack
20017 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20018 if $ac_cs_awk_getline; then
20019 $AWK -f "$ac_tmp/subs.awk"
20020 else
20021 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20022 fi \
20023 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20026 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20027 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20028 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20030 which seems to be undefined. Please make sure it is defined" >&5
20031 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20032 which seems to be undefined. Please make sure it is defined" >&2;}
20034 rm -f "$ac_tmp/stdin"
20035 case $ac_file in
20036 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20037 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20038 esac \
20039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20044 esac
20047 case $ac_file$ac_mode in
20048 "Makefile":F) sed "$extrasub_build" Makefile |
20049 sed "$extrasub_host" |
20050 sed "$extrasub_target" > mf$$
20051 mv -f mf$$ Makefile ;;
20053 esac
20054 done # for ac_tag
20057 as_fn_exit 0
20058 _ACEOF
20059 ac_clean_files=$ac_clean_files_save
20061 test $ac_write_fail = 0 ||
20062 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20065 # configure is writing to config.log, and then calls config.status.
20066 # config.status does its own redirection, appending to config.log.
20067 # Unfortunately, on DOS this fails, as config.log is still kept open
20068 # by configure, so config.status won't be able to write to it; its
20069 # output is simply discarded. So we exec the FD to /dev/null,
20070 # effectively closing config.log, so it can be properly (re)opened and
20071 # appended to by config.status. When coming back to configure, we
20072 # need to make the FD available again.
20073 if test "$no_create" != yes; then
20074 ac_cs_success=:
20075 ac_config_status_args=
20076 test "$silent" = yes &&
20077 ac_config_status_args="$ac_config_status_args --quiet"
20078 exec 5>/dev/null
20079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20080 exec 5>>config.log
20081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20082 # would make configure fail if this is the last instruction.
20083 $ac_cs_success || as_fn_exit 1
20085 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20087 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}