]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
Sync with binutils: GCC: Pass --plugin to AR and RANLIB
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
95 do
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
101
102 ;;
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
108 fi
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
112 fi
113
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='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
157 fi
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 *) :
173 ;;
174 esac
175 fi
176 "
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; }
182
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 :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
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
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
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
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
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
225 fi
226 fi
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
236
237
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
258 fi
259
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."
271 fi
272 exit 1
273 fi
274 fi
275 fi
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
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
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 ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
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/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
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"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
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 ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
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 ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
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 ()
409 {
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
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
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
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
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
436 fi
437
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/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
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
463
464
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 '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
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; }
487
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
498 }
499
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;;
509 *)
510 ECHO_N='-n';;
511 esac
512
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
519 fi
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'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
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
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
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'"
552
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'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
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`
564
565 #
566 # Initializations.
567 #
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=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
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 GDCFLAGS
626 READELF
627 OTOOL
628 OBJDUMP
629 OBJCOPY
630 WINDMC
631 WINDRES
632 STRIP
633 RANLIB
634 NM
635 LIPO
636 LD
637 DSYMUTIL
638 DLLTOOL
639 AS
640 AR
641 RUNTEST
642 EXPECT
643 MAKEINFO
644 FLEX
645 LEX
646 M4
647 BISON
648 YACC
649 WINDRES_FOR_BUILD
650 WINDMC_FOR_BUILD
651 RANLIB_FOR_BUILD
652 NM_FOR_BUILD
653 LD_FOR_BUILD
654 LDFLAGS_FOR_BUILD
655 GDC_FOR_BUILD
656 GOC_FOR_BUILD
657 GFORTRAN_FOR_BUILD
658 DSYMUTIL_FOR_BUILD
659 DLLTOOL_FOR_BUILD
660 CXX_FOR_BUILD
661 CXXFLAGS_FOR_BUILD
662 CPPFLAGS_FOR_BUILD
663 CPP_FOR_BUILD
664 CFLAGS_FOR_BUILD
665 CC_FOR_BUILD
666 AS_FOR_BUILD
667 AR_FOR_BUILD
668 target_configdirs
669 configdirs
670 build_configdirs
671 INSTALL_GDB_TK
672 GDB_TK
673 CONFIGURE_GDB_TK
674 build_tooldir
675 tooldir
676 GCC_SHLIB_SUBDIR
677 RPATH_ENVVAR
678 target_configargs
679 host_configargs
680 build_configargs
681 BUILD_CONFIG
682 LDFLAGS_FOR_TARGET
683 CXXFLAGS_FOR_TARGET
684 CFLAGS_FOR_TARGET
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
687 get_gcc_base_ver
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
690 stage1_languages
691 host_libs_picflag
692 PICFLAG
693 host_shared
694 gcc_host_pie
695 host_pie
696 extra_linker_plugin_flags
697 extra_linker_plugin_configure_flags
698 islinc
699 isllibs
700 poststage1_ldflags
701 poststage1_libs
702 stage1_ldflags
703 stage1_libs
704 extra_isl_gmp_configure_flags
705 extra_mpc_mpfr_configure_flags
706 extra_mpc_gmp_configure_flags
707 extra_mpfr_configure_flags
708 gmpinc
709 gmplibs
710 PGO_BUILD_LTO_CFLAGS
711 PGO_BUILD_USE_CFLAGS
712 PGO_BUILD_GEN_CFLAGS
713 HAVE_CXX11_FOR_BUILD
714 HAVE_CXX11
715 do_compare
716 GDC
717 GNATMAKE
718 GNATBIND
719 ac_ct_CXX
720 CXXFLAGS
721 CXX
722 OBJEXT
723 EXEEXT
724 ac_ct_CC
725 CPPFLAGS
726 LDFLAGS
727 CFLAGS
728 CC
729 target_subdir
730 host_subdir
731 build_subdir
732 build_libsubdir
733 AWK
734 SED
735 LN_S
736 LN
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_os
741 target_vendor
742 target_cpu
743 target
744 host_os
745 host_vendor
746 host_cpu
747 host
748 target_noncanonical
749 host_noncanonical
750 build_noncanonical
751 build_os
752 build_vendor
753 build_cpu
754 build
755 TOPLEVEL_CONFIGURE_ARGUMENTS
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='serialization_dependencies
795 host_makefile_frag
796 target_makefile_frag
797 alphaieee_frag
798 ospace_frag'
799 ac_user_opts='
800 enable_option_checking
801 with_build_libsubdir
802 with_system_zlib
803 enable_as_accelerator_for
804 enable_offload_targets
805 enable_offload_defaulted
806 enable_gold
807 enable_ld
808 enable_compressed_debug_sections
809 enable_libquadmath
810 enable_libquadmath_support
811 enable_libada
812 enable_libgm2
813 enable_libssp
814 enable_libstdcxx
815 enable_bootstrap
816 enable_pgo_build
817 with_mpc
818 with_mpc_include
819 with_mpc_lib
820 with_mpfr
821 with_mpfr_include
822 with_mpfr_lib
823 with_gmp
824 with_gmp_include
825 with_gmp_lib
826 with_stage1_libs
827 with_static_standard_libraries
828 with_stage1_ldflags
829 with_boot_libs
830 with_boot_ldflags
831 with_isl
832 with_isl_include
833 with_isl_lib
834 enable_isl_version_check
835 enable_lto
836 enable_linker_plugin_configure_flags
837 enable_linker_plugin_flags
838 enable_host_pie
839 enable_host_shared
840 enable_stage1_languages
841 enable_objc_gc
842 with_target_bdw_gc
843 with_target_bdw_gc_include
844 with_target_bdw_gc_lib
845 with_gcc_major_version_only
846 with_build_sysroot
847 with_debug_prefix_map
848 with_build_config
849 enable_vtable_verify
850 enable_serial_configure
851 with_build_time_tools
852 enable_maintainer_mode
853 enable_stage1_checking
854 enable_werror
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 CXX
865 CXXFLAGS
866 CCC
867 build_configargs
868 host_configargs
869 target_configargs
870 AR
871 AS
872 DLLTOOL
873 DSYMUTIL
874 LD
875 LIPO
876 NM
877 RANLIB
878 STRIP
879 WINDRES
880 WINDMC
881 OBJCOPY
882 OBJDUMP
883 OTOOL
884 READELF
885 CC_FOR_TARGET
886 CXX_FOR_TARGET
887 GCC_FOR_TARGET
888 GFORTRAN_FOR_TARGET
889 GOC_FOR_TARGET
890 GDC_FOR_TARGET
891 GM2_FOR_TARGET
892 AR_FOR_TARGET
893 AS_FOR_TARGET
894 DLLTOOL_FOR_TARGET
895 DSYMUTIL_FOR_TARGET
896 LD_FOR_TARGET
897 LIPO_FOR_TARGET
898 NM_FOR_TARGET
899 OBJCOPY_FOR_TARGET
900 OBJDUMP_FOR_TARGET
901 OTOOL_FOR_TARGET
902 RANLIB_FOR_TARGET
903 READELF_FOR_TARGET
904 STRIP_FOR_TARGET
905 WINDRES_FOR_TARGET
906 WINDMC_FOR_TARGET'
907
908
909 # Initialize some variables set by options.
910 ac_init_help=
911 ac_init_version=false
912 ac_unrecognized_opts=
913 ac_unrecognized_sep=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *=) ac_optarg= ;;
971 *) ac_optarg=yes ;;
972 esac
973
974 # Accept the important Cygnus configure options, so we can diagnose typos.
975
976 case $ac_dashdash$ac_option in
977 --)
978 ac_dashdash=yes ;;
979
980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 ac_prev=bindir ;;
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983 bindir=$ac_optarg ;;
984
985 -build | --build | --buil | --bui | --bu)
986 ac_prev=build_alias ;;
987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988 build_alias=$ac_optarg ;;
989
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995 cache_file=$ac_optarg ;;
996
997 --config-cache | -C)
998 cache_file=config.cache ;;
999
1000 -datadir | --datadir | --datadi | --datad)
1001 ac_prev=datadir ;;
1002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003 datadir=$ac_optarg ;;
1004
1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1011
1012 -disable-* | --disable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=no ;;
1027
1028 -docdir | --docdir | --docdi | --doc | --do)
1029 ac_prev=docdir ;;
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1032
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 ac_prev=dvidir ;;
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
1037
1038 -enable-* | --enable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=\$ac_optarg ;;
1053
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1062
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1065 with_gas=yes ;;
1066
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1073
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1078
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 ac_prev=htmldir ;;
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 | --ht=*)
1083 htmldir=$ac_optarg ;;
1084
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1091
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 ac_prev=infodir ;;
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1096
1097 -libdir | --libdir | --libdi | --libd)
1098 ac_prev=libdir ;;
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1101
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1108
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1113
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1120
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 ac_prev=mandir ;;
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1125
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1128 with_fp=no ;;
1129
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1132 no_create=yes ;;
1133
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 no_recursion=yes ;;
1137
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1146
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 ac_prev=prefix ;;
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1151
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1158
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1165
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1182
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 ac_prev=pdfdir ;;
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1187
1188 -psdir | --psdir | --psdi | --psd | --ps)
1189 ac_prev=psdir ;;
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 psdir=$ac_optarg ;;
1192
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1195 silent=yes ;;
1196
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 ac_prev=sbindir ;;
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 | --sbi=* | --sb=*)
1201 sbindir=$ac_optarg ;;
1202
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1206 | --sha | --sh)
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 | --sha=* | --sh=*)
1212 sharedstatedir=$ac_optarg ;;
1213
1214 -site | --site | --sit)
1215 ac_prev=site ;;
1216 -site=* | --site=* | --sit=*)
1217 site=$ac_optarg ;;
1218
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 ac_prev=srcdir ;;
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1223
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1230
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1235
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 verbose=yes ;;
1238
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1241
1242 -with-* | --with-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=\$ac_optarg ;;
1257
1258 -without-* | --without-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
1273
1274 --x)
1275 # Obsolete; use --with-x.
1276 with_x=yes ;;
1277
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283 x_includes=$ac_optarg ;;
1284
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290 x_libraries=$ac_optarg ;;
1291
1292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1294 ;;
1295
1296 *=*)
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
1301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1302 esac
1303 eval $ac_envvar=\$ac_optarg
1304 export $ac_envvar ;;
1305
1306 *)
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312 ;;
1313
1314 esac
1315 done
1316
1317 if test -n "$ac_prev"; then
1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319 as_fn_error $? "missing argument to $ac_option"
1320 fi
1321
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1324 no) ;;
1325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 esac
1328 fi
1329
1330 # Check all directory arguments for consistency.
1331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1335 do
1336 eval ac_val=\$$ac_var
1337 # Remove trailing slashes.
1338 case $ac_val in
1339 */ )
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1342 esac
1343 # Be sure to have absolute directory names.
1344 case $ac_val in
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 esac
1348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 elif test "x$build_alias" != "x$host_alias"; then
1363 cross_compiling=yes
1364 fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $? "working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $? "pwd does not report name of working directory"
1379
1380
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)[^/].*/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\).*/{
1404 s//\1/
1405 q
1406 }
1407 s/.*/./; q'`
1408 srcdir=$ac_confdir
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 srcdir=..
1411 fi
1412 else
1413 ac_srcdir_defaulted=no
1414 fi
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 pwd)`
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426 fi
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1430 case $srcdir in
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 esac
1433 case $srcdir in
1434 *" "*)
1435 as_fn_error $? "path to source, $srcdir, contains spaces"
1436 ;;
1437 esac
1438 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1439
1440 for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 done
1446
1447 #
1448 # Report the --help message.
1449 #
1450 if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1453 cat <<_ACEOF
1454 \`configure' configures this package to adapt to many kinds of systems.
1455
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1457
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE. See below for descriptions of some of the useful variables.
1460
1461 Defaults for the options are specified in brackets.
1462
1463 Configuration:
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking ...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473
1474 Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 [PREFIX]
1479
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1484
1485 For better control, use the options below.
1486
1487 Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1507 _ACEOF
1508
1509 cat <<\_ACEOF
1510
1511 Program names:
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1515
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524
1525 cat <<\_ACEOF
1526
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-as-accelerator-for=ARG
1532 build as offload target compiler. Specify offload
1533 host triple by ARG
1534 --enable-offload-targets=LIST
1535 enable offloading to devices from comma-separated
1536 LIST of TARGET[=DIR]. Use optional path to find
1537 offload target compiler during the build
1538 --enable-offload-defaulted
1539 If enabled, configured but not installed offload compilers and
1540 libgomp plugins are silently ignored. Useful for distribution
1541 compilers where those are in separate optional packages.
1542
1543 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1544 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1545 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1546 Enable compressed debug sections for gas, gold or ld
1547 by default
1548 --disable-libquadmath do not build libquadmath directory
1549 --disable-libquadmath-support
1550 disable libquadmath support for Fortran
1551 --enable-libada build libada directory
1552 --enable-libgm2 build libgm2 directory
1553 --enable-libssp build libssp directory
1554 --disable-libstdcxx do not build libstdc++-v3 directory
1555 --enable-bootstrap enable bootstrapping [yes if native build]
1556 --enable-pgo-build[=lto]
1557 enable the PGO build
1558 --disable-isl-version-check
1559 disable check for isl version
1560 --enable-lto enable link time optimization support
1561 --enable-linker-plugin-configure-flags=FLAGS
1562 additional flags for configuring linker plugins
1563 [none]
1564 --enable-linker-plugin-flags=FLAGS
1565 additional flags for configuring and building linker
1566 plugins [none]
1567 --enable-host-pie build position independent host executables
1568 --enable-host-shared build host code as shared libraries
1569 --enable-stage1-languages[=all]
1570 choose additional languages to build during stage1.
1571 Mostly useful for compiler development
1572 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1573 Objective-C runtime
1574 --enable-vtable-verify Enable vtable verification feature
1575 --enable-serial-[{host,target,build}-]configure
1576 force sequential configuration of sub-packages for
1577 the host, target or build machine, or all
1578 sub-packages
1579 --enable-maintainer-mode
1580 enable make rules and dependencies not useful (and
1581 sometimes confusing) to the casual installer
1582 --enable-stage1-checking[=all]
1583 choose additional checking for stage1 of the
1584 compiler
1585 --enable-werror enable -Werror in bootstrap stage2 and later
1586
1587 Optional Packages:
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-build-libsubdir=DIR Directory where to find libraries for build system
1591 --with-system-zlib use installed libz
1592 --with-mpc=PATH specify prefix directory for installed MPC package.
1593 Equivalent to --with-mpc-include=PATH/include plus
1594 --with-mpc-lib=PATH/lib
1595 --with-mpc-include=PATH specify directory for installed MPC include files
1596 --with-mpc-lib=PATH specify directory for the installed MPC library
1597 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1598 Equivalent to --with-mpfr-include=PATH/include plus
1599 --with-mpfr-lib=PATH/lib
1600 --with-mpfr-include=PATH
1601 specify directory for installed MPFR include files
1602 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1603 --with-gmp=PATH specify prefix directory for the installed GMP
1604 package. Equivalent to
1605 --with-gmp-include=PATH/include plus
1606 --with-gmp-lib=PATH/lib
1607 --with-gmp-include=PATH specify directory for installed GMP include files
1608 --with-gmp-lib=PATH specify directory for the installed GMP library
1609 --with-stage1-libs=LIBS libraries for stage1
1610 --with-static-standard-libraries
1611 use -static-libstdc++ and -static-libgcc
1612 (default=auto)
1613 --with-stage1-ldflags=FLAGS
1614 linker flags for stage1
1615 --with-boot-libs=LIBS libraries for stage2 and later
1616 --with-boot-ldflags=FLAGS
1617 linker flags for stage2 and later
1618 --with-isl=PATH Specify prefix directory for the installed isl
1619 package. Equivalent to
1620 --with-isl-include=PATH/include plus
1621 --with-isl-lib=PATH/lib
1622 --with-isl-include=PATH Specify directory for installed isl include files
1623 --with-isl-lib=PATH Specify the directory for the installed isl library
1624 --with-target-bdw-gc=PATHLIST
1625 specify prefix directory for installed bdw-gc
1626 package. Equivalent to
1627 --with-target-bdw-gc-include=PATH/include plus
1628 --with-target-bdw-gc-lib=PATH/lib
1629 --with-target-bdw-gc-include=PATHLIST
1630 specify directories for installed bdw-gc include
1631 files
1632 --with-target-bdw-gc-lib=PATHLIST
1633 specify directories for installed bdw-gc library
1634 --with-gcc-major-version-only
1635 use only GCC major number in filesystem paths
1636 --with-build-sysroot=SYSROOT
1637 use sysroot as the system root during the build
1638 --with-debug-prefix-map='A=B C=D ...'
1639 map A to B, C to D ... in debug information
1640 --with-build-config='NAME NAME2...'
1641 use config/NAME.mk build configuration
1642 --with-build-time-tools=PATH
1643 use given path to find target tools during the build
1644
1645 Some influential environment variables:
1646 CC C compiler command
1647 CFLAGS C compiler flags
1648 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1649 nonstandard directory <lib dir>
1650 LIBS libraries to pass to the linker, e.g. -l<library>
1651 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1652 you have headers in a nonstandard directory <include dir>
1653 CXX C++ compiler command
1654 CXXFLAGS C++ compiler flags
1655 build_configargs
1656 additional configure arguments for build directories
1657 host_configargs
1658 additional configure arguments for host directories
1659 target_configargs
1660 additional configure arguments for target directories
1661 AR AR for the host
1662 AS AS for the host
1663 DLLTOOL DLLTOOL for the host
1664 DSYMUTIL DSYMUTIL for the host
1665 LD LD for the host
1666 LIPO LIPO for the host
1667 NM NM for the host
1668 RANLIB RANLIB for the host
1669 STRIP STRIP for the host
1670 WINDRES WINDRES for the host
1671 WINDMC WINDMC for the host
1672 OBJCOPY OBJCOPY for the host
1673 OBJDUMP OBJDUMP for the host
1674 OTOOL OTOOL for the host
1675 READELF READELF for the host
1676 CC_FOR_TARGET
1677 CC for the target
1678 CXX_FOR_TARGET
1679 CXX for the target
1680 GCC_FOR_TARGET
1681 GCC for the target
1682 GFORTRAN_FOR_TARGET
1683 GFORTRAN for the target
1684 GOC_FOR_TARGET
1685 GOC for the target
1686 GDC_FOR_TARGET
1687 GDC for the target
1688 GM2_FOR_TARGET
1689 GM2 for the target
1690 AR_FOR_TARGET
1691 AR for the target
1692 AS_FOR_TARGET
1693 AS for the target
1694 DLLTOOL_FOR_TARGET
1695 DLLTOOL for the target
1696 DSYMUTIL_FOR_TARGET
1697 DSYMUTIL for the target
1698 LD_FOR_TARGET
1699 LD for the target
1700 LIPO_FOR_TARGET
1701 LIPO for the target
1702 NM_FOR_TARGET
1703 NM for the target
1704 OBJCOPY_FOR_TARGET
1705 OBJCOPY for the target
1706 OBJDUMP_FOR_TARGET
1707 OBJDUMP for the target
1708 OTOOL_FOR_TARGET
1709 OTOOL for the target
1710 RANLIB_FOR_TARGET
1711 RANLIB for the target
1712 READELF_FOR_TARGET
1713 READELF for the target
1714 STRIP_FOR_TARGET
1715 STRIP for the target
1716 WINDRES_FOR_TARGET
1717 WINDRES for the target
1718 WINDMC_FOR_TARGET
1719 WINDMC for the target
1720
1721 Use these variables to override the choices made by `configure' or to help
1722 it to find libraries and programs with nonstandard names/locations.
1723
1724 Report bugs to the package provider.
1725 _ACEOF
1726 ac_status=$?
1727 fi
1728
1729 if test "$ac_init_help" = "recursive"; then
1730 # If there are subdirs, report their specific --help.
1731 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1732 test -d "$ac_dir" ||
1733 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1734 continue
1735 ac_builddir=.
1736
1737 case "$ac_dir" in
1738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *)
1740 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1741 # A ".." for each directory in $ac_dir_suffix.
1742 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1743 case $ac_top_builddir_sub in
1744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1746 esac ;;
1747 esac
1748 ac_abs_top_builddir=$ac_pwd
1749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1750 # for backward compatibility:
1751 ac_top_builddir=$ac_top_build_prefix
1752
1753 case $srcdir in
1754 .) # We are building in place.
1755 ac_srcdir=.
1756 ac_top_srcdir=$ac_top_builddir_sub
1757 ac_abs_top_srcdir=$ac_pwd ;;
1758 [\\/]* | ?:[\\/]* ) # Absolute name.
1759 ac_srcdir=$srcdir$ac_dir_suffix;
1760 ac_top_srcdir=$srcdir
1761 ac_abs_top_srcdir=$srcdir ;;
1762 *) # Relative name.
1763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1764 ac_top_srcdir=$ac_top_build_prefix$srcdir
1765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1766 esac
1767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1768
1769 cd "$ac_dir" || { ac_status=$?; continue; }
1770 # Check for guested configure.
1771 if test -f "$ac_srcdir/configure.gnu"; then
1772 echo &&
1773 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1774 elif test -f "$ac_srcdir/configure"; then
1775 echo &&
1776 $SHELL "$ac_srcdir/configure" --help=recursive
1777 else
1778 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1779 fi || ac_status=$?
1780 cd "$ac_pwd" || { ac_status=$?; break; }
1781 done
1782 fi
1783
1784 test -n "$ac_init_help" && exit $ac_status
1785 if $ac_init_version; then
1786 cat <<\_ACEOF
1787 configure
1788 generated by GNU Autoconf 2.69
1789
1790 Copyright (C) 2012 Free Software Foundation, Inc.
1791 This configure script is free software; the Free Software Foundation
1792 gives unlimited permission to copy, distribute and modify it.
1793 _ACEOF
1794 exit
1795 fi
1796
1797 ## ------------------------ ##
1798 ## Autoconf initialization. ##
1799 ## ------------------------ ##
1800
1801 # ac_fn_c_try_compile LINENO
1802 # --------------------------
1803 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_compile ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 rm -f conftest.$ac_objext
1808 if { { ac_try="$ac_compile"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_compile") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1821 fi
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest.$ac_objext; then :
1827 ac_retval=0
1828 else
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833 fi
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_compile
1838
1839 # ac_fn_cxx_try_compile LINENO
1840 # ----------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_cxx_try_compile ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_cxx_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871 fi
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1874
1875 } # ac_fn_cxx_try_compile
1876
1877 # ac_fn_cxx_try_link LINENO
1878 # -------------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_link ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext conftest$ac_exeext
1884 if { { ac_try="$ac_link"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1897 fi
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_cxx_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest$ac_exeext && {
1903 test "$cross_compiling" = yes ||
1904 test -x conftest$ac_exeext
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=1
1912 fi
1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915 # interfere with the next link command; also delete a directory that is
1916 # left behind by Apple's compiler. We do this before executing the actions.
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1920
1921 } # ac_fn_cxx_try_link
1922
1923 # ac_fn_c_try_link LINENO
1924 # -----------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_c_try_link ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext conftest$ac_exeext
1930 if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1943 fi
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_c_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest$ac_exeext && {
1949 test "$cross_compiling" = yes ||
1950 test -x conftest$ac_exeext
1951 }; then :
1952 ac_retval=0
1953 else
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957 ac_retval=1
1958 fi
1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961 # interfere with the next link command; also delete a directory that is
1962 # left behind by Apple's compiler. We do this before executing the actions.
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1966
1967 } # ac_fn_c_try_link
1968 cat >config.log <<_ACEOF
1969 This file contains any messages produced by compilers while
1970 running configure, to aid debugging if configure makes a mistake.
1971
1972 It was created by $as_me, which was
1973 generated by GNU Autoconf 2.69. Invocation command line was
1974
1975 $ $0 $@
1976
1977 _ACEOF
1978 exec 5>>config.log
1979 {
1980 cat <<_ASUNAME
1981 ## --------- ##
1982 ## Platform. ##
1983 ## --------- ##
1984
1985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1990
1991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1993
1994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1997 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2001
2002 _ASUNAME
2003
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 $as_echo "PATH: $as_dir"
2010 done
2011 IFS=$as_save_IFS
2012
2013 } >&5
2014
2015 cat >&5 <<_ACEOF
2016
2017
2018 ## ----------- ##
2019 ## Core tests. ##
2020 ## ----------- ##
2021
2022 _ACEOF
2023
2024
2025 # Keep a trace of the command line.
2026 # Strip out --no-create and --no-recursion so they do not pile up.
2027 # Strip out --silent because we don't want to record it for future runs.
2028 # Also quote any args containing shell meta-characters.
2029 # Make two passes to allow for proper duplicate-argument suppression.
2030 ac_configure_args=
2031 ac_configure_args0=
2032 ac_configure_args1=
2033 ac_must_keep_next=false
2034 for ac_pass in 1 2
2035 do
2036 for ac_arg
2037 do
2038 case $ac_arg in
2039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2041 | -silent | --silent | --silen | --sile | --sil)
2042 continue ;;
2043 *\'*)
2044 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 esac
2046 case $ac_pass in
2047 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2048 2)
2049 as_fn_append ac_configure_args1 " '$ac_arg'"
2050 if test $ac_must_keep_next = true; then
2051 ac_must_keep_next=false # Got value, back to normal.
2052 else
2053 case $ac_arg in
2054 *=* | --config-cache | -C | -disable-* | --disable-* \
2055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2057 | -with-* | --with-* | -without-* | --without-* | --x)
2058 case "$ac_configure_args0 " in
2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 esac
2061 ;;
2062 -* ) ac_must_keep_next=true ;;
2063 esac
2064 fi
2065 as_fn_append ac_configure_args " '$ac_arg'"
2066 ;;
2067 esac
2068 done
2069 done
2070 { ac_configure_args0=; unset ac_configure_args0;}
2071 { ac_configure_args1=; unset ac_configure_args1;}
2072
2073 # When interrupted or exit'd, cleanup temporary files, and complete
2074 # config.log. We remove comments because anyway the quotes in there
2075 # would cause problems or look ugly.
2076 # WARNING: Use '\'' to represent an apostrophe within the trap.
2077 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2078 trap 'exit_status=$?
2079 # Save into config.log some information that might help in debugging.
2080 {
2081 echo
2082
2083 $as_echo "## ---------------- ##
2084 ## Cache variables. ##
2085 ## ---------------- ##"
2086 echo
2087 # The following way of writing the cache mishandles newlines in values,
2088 (
2089 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2090 eval ac_val=\$$ac_var
2091 case $ac_val in #(
2092 *${as_nl}*)
2093 case $ac_var in #(
2094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2096 esac
2097 case $ac_var in #(
2098 _ | IFS | as_nl) ;; #(
2099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2100 *) { eval $ac_var=; unset $ac_var;} ;;
2101 esac ;;
2102 esac
2103 done
2104 (set) 2>&1 |
2105 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2106 *${as_nl}ac_space=\ *)
2107 sed -n \
2108 "s/'\''/'\''\\\\'\'''\''/g;
2109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 ;; #(
2111 *)
2112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113 ;;
2114 esac |
2115 sort
2116 )
2117 echo
2118
2119 $as_echo "## ----------------- ##
2120 ## Output variables. ##
2121 ## ----------------- ##"
2122 echo
2123 for ac_var in $ac_subst_vars
2124 do
2125 eval ac_val=\$$ac_var
2126 case $ac_val in
2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 esac
2129 $as_echo "$ac_var='\''$ac_val'\''"
2130 done | sort
2131 echo
2132
2133 if test -n "$ac_subst_files"; then
2134 $as_echo "## ------------------- ##
2135 ## File substitutions. ##
2136 ## ------------------- ##"
2137 echo
2138 for ac_var in $ac_subst_files
2139 do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 esac
2144 $as_echo "$ac_var='\''$ac_val'\''"
2145 done | sort
2146 echo
2147 fi
2148
2149 if test -s confdefs.h; then
2150 $as_echo "## ----------- ##
2151 ## confdefs.h. ##
2152 ## ----------- ##"
2153 echo
2154 cat confdefs.h
2155 echo
2156 fi
2157 test "$ac_signal" != 0 &&
2158 $as_echo "$as_me: caught signal $ac_signal"
2159 $as_echo "$as_me: exit $exit_status"
2160 } >&5
2161 rm -f core *.core core.conftest.* &&
2162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2163 exit $exit_status
2164 ' 0
2165 for ac_signal in 1 2 13 15; do
2166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2167 done
2168 ac_signal=0
2169
2170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2171 rm -f -r conftest* confdefs.h
2172
2173 $as_echo "/* confdefs.h */" > confdefs.h
2174
2175 # Predefined preprocessor variables.
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_NAME "$PACKAGE_NAME"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_STRING "$PACKAGE_STRING"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_URL "$PACKAGE_URL"
2199 _ACEOF
2200
2201
2202 # Let the site file select an alternate cache file if it wants to.
2203 # Prefer an explicitly selected file to automatically selected ones.
2204 ac_site_file1=NONE
2205 ac_site_file2=NONE
2206 if test -n "$CONFIG_SITE"; then
2207 # We do not want a PATH search for config.site.
2208 case $CONFIG_SITE in #((
2209 -*) ac_site_file1=./$CONFIG_SITE;;
2210 */*) ac_site_file1=$CONFIG_SITE;;
2211 *) ac_site_file1=./$CONFIG_SITE;;
2212 esac
2213 elif test "x$prefix" != xNONE; then
2214 ac_site_file1=$prefix/share/config.site
2215 ac_site_file2=$prefix/etc/config.site
2216 else
2217 ac_site_file1=$ac_default_prefix/share/config.site
2218 ac_site_file2=$ac_default_prefix/etc/config.site
2219 fi
2220 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2221 do
2222 test "x$ac_site_file" = xNONE && continue
2223 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2225 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2226 sed 's/^/| /' "$ac_site_file" >&5
2227 . "$ac_site_file" \
2228 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2230 as_fn_error $? "failed to load site script $ac_site_file
2231 See \`config.log' for more details" "$LINENO" 5; }
2232 fi
2233 done
2234
2235 if test -r "$cache_file"; then
2236 # Some versions of bash will fail to source /dev/null (special files
2237 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2238 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2240 $as_echo "$as_me: loading cache $cache_file" >&6;}
2241 case $cache_file in
2242 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2243 *) . "./$cache_file";;
2244 esac
2245 fi
2246 else
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2248 $as_echo "$as_me: creating cache $cache_file" >&6;}
2249 >$cache_file
2250 fi
2251
2252 # Check that the precious variables saved in the cache have kept the same
2253 # value.
2254 ac_cache_corrupted=false
2255 for ac_var in $ac_precious_vars; do
2256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2257 eval ac_new_set=\$ac_env_${ac_var}_set
2258 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2259 eval ac_new_val=\$ac_env_${ac_var}_value
2260 case $ac_old_set,$ac_new_set in
2261 set,)
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2263 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2264 ac_cache_corrupted=: ;;
2265 ,set)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2269 ,);;
2270 *)
2271 if test "x$ac_old_val" != "x$ac_new_val"; then
2272 # differences in whitespace do not lead to failure.
2273 ac_old_val_w=`echo x $ac_old_val`
2274 ac_new_val_w=`echo x $ac_new_val`
2275 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2277 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2278 ac_cache_corrupted=:
2279 else
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2281 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2282 eval $ac_var=\$ac_old_val
2283 fi
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2285 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2287 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2288 fi;;
2289 esac
2290 # Pass precious variables to config.status.
2291 if test "$ac_new_set" = set; then
2292 case $ac_new_val in
2293 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2294 *) ac_arg=$ac_var=$ac_new_val ;;
2295 esac
2296 case " $ac_configure_args " in
2297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2298 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2299 esac
2300 fi
2301 done
2302 if $ac_cache_corrupted; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2306 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2307 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2308 fi
2309 ## -------------------- ##
2310 ## Main body of script. ##
2311 ## -------------------- ##
2312
2313 ac_ext=c
2314 ac_cpp='$CPP $CPPFLAGS'
2315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318
2319
2320
2321
2322
2323
2324
2325
2326 progname=$0
2327 # if PWD already has a value, it is probably wrong.
2328 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2329
2330 # Export original configure arguments for use by sub-configures.
2331 # Quote arguments with shell meta charatcers.
2332 TOPLEVEL_CONFIGURE_ARGUMENTS=
2333 set -- "$progname" "$@"
2334 for ac_arg
2335 do
2336 case "$ac_arg" in
2337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2338 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2339 # if the argument is of the form -foo=baz, quote the baz part only
2340 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2341 *) ;;
2342 esac
2343 # Add the quoted argument to the list.
2344 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2345 done
2346 if test "$silent" = yes; then
2347 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2348 fi
2349 # Remove the initial space we just introduced and, as these will be
2350 # expanded by make, quote '$'.
2351 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2352
2353
2354 # Find the build, host, and target systems.
2355 ac_aux_dir=
2356 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2357 if test -f "$ac_dir/install-sh"; then
2358 ac_aux_dir=$ac_dir
2359 ac_install_sh="$ac_aux_dir/install-sh -c"
2360 break
2361 elif test -f "$ac_dir/install.sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install.sh -c"
2364 break
2365 elif test -f "$ac_dir/shtool"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/shtool install -c"
2368 break
2369 fi
2370 done
2371 if test -z "$ac_aux_dir"; then
2372 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2373 fi
2374
2375 # These three variables are undocumented and unsupported,
2376 # and are intended to be withdrawn in a future Autoconf release.
2377 # They can cause serious problems if a builder's source tree is in a directory
2378 # whose full name contains unusual characters.
2379 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2380 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2381 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382
2383
2384 # Make sure we can run config.sub.
2385 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2386 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2387
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2389 $as_echo_n "checking build system type... " >&6; }
2390 if ${ac_cv_build+:} false; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 ac_build_alias=$build_alias
2394 test "x$ac_build_alias" = x &&
2395 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2396 test "x$ac_build_alias" = x &&
2397 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2398 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2399 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2400
2401 fi
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2403 $as_echo "$ac_cv_build" >&6; }
2404 case $ac_cv_build in
2405 *-*-*) ;;
2406 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2407 esac
2408 build=$ac_cv_build
2409 ac_save_IFS=$IFS; IFS='-'
2410 set x $ac_cv_build
2411 shift
2412 build_cpu=$1
2413 build_vendor=$2
2414 shift; shift
2415 # Remember, the first character of IFS is used to create $*,
2416 # except with old shells:
2417 build_os=$*
2418 IFS=$ac_save_IFS
2419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2420
2421
2422 case ${build_alias} in
2423 "") build_noncanonical=${build} ;;
2424 *) build_noncanonical=${build_alias} ;;
2425 esac
2426
2427
2428
2429 case ${host_alias} in
2430 "") host_noncanonical=${build_noncanonical} ;;
2431 *) host_noncanonical=${host_alias} ;;
2432 esac
2433
2434
2435
2436 case ${target_alias} in
2437 "") target_noncanonical=${host_noncanonical} ;;
2438 *) target_noncanonical=${target_alias} ;;
2439 esac
2440
2441
2442
2443
2444 test "$host_noncanonical" = "$target_noncanonical" &&
2445 test "$program_prefix$program_suffix$program_transform_name" = \
2446 NONENONEs,x,x, &&
2447 program_transform_name=s,y,y,
2448
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2450 $as_echo_n "checking host system type... " >&6; }
2451 if ${ac_cv_host+:} false; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 if test "x$host_alias" = x; then
2455 ac_cv_host=$ac_cv_build
2456 else
2457 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2459 fi
2460
2461 fi
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2463 $as_echo "$ac_cv_host" >&6; }
2464 case $ac_cv_host in
2465 *-*-*) ;;
2466 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2467 esac
2468 host=$ac_cv_host
2469 ac_save_IFS=$IFS; IFS='-'
2470 set x $ac_cv_host
2471 shift
2472 host_cpu=$1
2473 host_vendor=$2
2474 shift; shift
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2477 host_os=$*
2478 IFS=$ac_save_IFS
2479 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2480
2481
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2483 $as_echo_n "checking target system type... " >&6; }
2484 if ${ac_cv_target+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 if test "x$target_alias" = x; then
2488 ac_cv_target=$ac_cv_host
2489 else
2490 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2491 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2492 fi
2493
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2496 $as_echo "$ac_cv_target" >&6; }
2497 case $ac_cv_target in
2498 *-*-*) ;;
2499 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2500 esac
2501 target=$ac_cv_target
2502 ac_save_IFS=$IFS; IFS='-'
2503 set x $ac_cv_target
2504 shift
2505 target_cpu=$1
2506 target_vendor=$2
2507 shift; shift
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2510 target_os=$*
2511 IFS=$ac_save_IFS
2512 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2513
2514
2515 # The aliases save the names the user supplied, while $host etc.
2516 # will get canonicalized.
2517 test -n "$target_alias" &&
2518 test "$program_prefix$program_suffix$program_transform_name" = \
2519 NONENONEs,x,x, &&
2520 program_prefix=${target_alias}-
2521
2522 test "$program_prefix" != NONE &&
2523 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2524 # Use a double $ so make ignores it.
2525 test "$program_suffix" != NONE &&
2526 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2527 # Double any \ or $.
2528 # By default was `s,x,x', remove it if useless.
2529 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2530 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531
2532
2533
2534 # Get 'install' or 'install-sh' and its variants.
2535 # Find a good install program. We prefer a C program (faster),
2536 # so one script is as good as another. But avoid the broken or
2537 # incompatible versions:
2538 # SysV /etc/install, /usr/sbin/install
2539 # SunOS /usr/etc/install
2540 # IRIX /sbin/install
2541 # AIX /bin/install
2542 # AmigaOS /C/install, which installs bootblocks on floppy discs
2543 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2544 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2545 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2546 # OS/2's system install, which has a completely different semantic
2547 # ./install, which can be erroneously created by make from ./install.sh.
2548 # Reject install programs that cannot install multiple files.
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2550 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2551 if test -z "$INSTALL"; then
2552 if ${ac_cv_path_install+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 # Account for people who put trailing slashes in PATH elements.
2561 case $as_dir/ in #((
2562 ./ | .// | /[cC]/* | \
2563 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2564 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2565 /usr/ucb/* ) ;;
2566 *)
2567 # OSF1 and SCO ODT 3.0 have their own names for install.
2568 # Don't use installbsd from OSF since it installs stuff as root
2569 # by default.
2570 for ac_prog in ginstall scoinst install; do
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2573 if test $ac_prog = install &&
2574 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2575 # AIX install. It has an incompatible calling convention.
2576 :
2577 elif test $ac_prog = install &&
2578 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2579 # program-specific install script used by HP pwplus--don't use.
2580 :
2581 else
2582 rm -rf conftest.one conftest.two conftest.dir
2583 echo one > conftest.one
2584 echo two > conftest.two
2585 mkdir conftest.dir
2586 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2587 test -s conftest.one && test -s conftest.two &&
2588 test -s conftest.dir/conftest.one &&
2589 test -s conftest.dir/conftest.two
2590 then
2591 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2592 break 3
2593 fi
2594 fi
2595 fi
2596 done
2597 done
2598 ;;
2599 esac
2600
2601 done
2602 IFS=$as_save_IFS
2603
2604 rm -rf conftest.one conftest.two conftest.dir
2605
2606 fi
2607 if test "${ac_cv_path_install+set}" = set; then
2608 INSTALL=$ac_cv_path_install
2609 else
2610 # As a last resort, use the slow shell script. Don't cache a
2611 # value for INSTALL within a source directory, because that will
2612 # break other packages using the cache if that directory is
2613 # removed, or if the value is a relative name.
2614 INSTALL=$ac_install_sh
2615 fi
2616 fi
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2618 $as_echo "$INSTALL" >&6; }
2619
2620 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2621 # It thinks the first close brace ends the variable substitution.
2622 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2623
2624 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2625
2626 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2629 $as_echo_n "checking whether ln works... " >&6; }
2630 if ${acx_cv_prog_LN+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 rm -f conftestdata_t
2634 echo >conftestdata_f
2635 if ln conftestdata_f conftestdata_t 2>/dev/null
2636 then
2637 acx_cv_prog_LN=ln
2638 else
2639 acx_cv_prog_LN=no
2640 fi
2641 rm -f conftestdata_f conftestdata_t
2642
2643 fi
2644 if test $acx_cv_prog_LN = no; then
2645 LN="cp"
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2647 $as_echo "no, using $LN" >&6; }
2648 else
2649 LN="$acx_cv_prog_LN"
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651 $as_echo "yes" >&6; }
2652 fi
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2655 $as_echo_n "checking whether ln -s works... " >&6; }
2656 LN_S=$as_ln_s
2657 if test "$LN_S" = "ln -s"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659 $as_echo "yes" >&6; }
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2662 $as_echo "no, using $LN_S" >&6; }
2663 fi
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2666 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2667 if ${ac_cv_path_SED+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2671 for ac_i in 1 2 3 4 5 6 7; do
2672 ac_script="$ac_script$as_nl$ac_script"
2673 done
2674 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2675 { ac_script=; unset ac_script;}
2676 if test -z "$SED"; then
2677 ac_path_SED_found=false
2678 # Loop through the user's path and test for each of PROGNAME-LIST
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_prog in sed gsed; do
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2687 as_fn_executable_p "$ac_path_SED" || continue
2688 # Check for GNU ac_path_SED and select it if it is found.
2689 # Check for GNU $ac_path_SED
2690 case `"$ac_path_SED" --version 2>&1` in
2691 *GNU*)
2692 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2693 *)
2694 ac_count=0
2695 $as_echo_n 0123456789 >"conftest.in"
2696 while :
2697 do
2698 cat "conftest.in" "conftest.in" >"conftest.tmp"
2699 mv "conftest.tmp" "conftest.in"
2700 cp "conftest.in" "conftest.nl"
2701 $as_echo '' >> "conftest.nl"
2702 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2704 as_fn_arith $ac_count + 1 && ac_count=$as_val
2705 if test $ac_count -gt ${ac_path_SED_max-0}; then
2706 # Best one so far, save it but keep looking for a better one
2707 ac_cv_path_SED="$ac_path_SED"
2708 ac_path_SED_max=$ac_count
2709 fi
2710 # 10*(2^10) chars as input seems more than enough
2711 test $ac_count -gt 10 && break
2712 done
2713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2714 esac
2715
2716 $ac_path_SED_found && break 3
2717 done
2718 done
2719 done
2720 IFS=$as_save_IFS
2721 if test -z "$ac_cv_path_SED"; then
2722 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2723 fi
2724 else
2725 ac_cv_path_SED=$SED
2726 fi
2727
2728 fi
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2730 $as_echo "$ac_cv_path_SED" >&6; }
2731 SED="$ac_cv_path_SED"
2732 rm -f conftest.sed
2733
2734 for ac_prog in gawk mawk nawk awk
2735 do
2736 # Extract the first word of "$ac_prog", so it can be a program name with args.
2737 set dummy $ac_prog; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_AWK+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$AWK"; then
2744 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_AWK="$ac_prog"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2756 fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 fi
2762 fi
2763 AWK=$ac_cv_prog_AWK
2764 if test -n "$AWK"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2766 $as_echo "$AWK" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771
2772
2773 test -n "$AWK" && break
2774 done
2775
2776
2777 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2778
2779 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2780 # a relative path.
2781 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2782 INSTALL="${srcpwd}/install-sh -c"
2783 fi
2784
2785 # Set srcdir to "." if that's what it is.
2786 # This is important for multilib support.
2787 pwd=`${PWDCMD-pwd}`
2788 if test "${pwd}" = "${srcpwd}" ; then
2789 srcdir=.
2790 fi
2791
2792 topsrcdir=$srcpwd
2793
2794 extra_host_args=
2795
2796 ### To add a new directory to the tree, first choose whether it is a target
2797 ### or a host dependent tool. Then put it into the appropriate list
2798 ### (library or tools, host or target), doing a dependency sort.
2799
2800 # Subdirs will be configured in the order listed in build_configdirs,
2801 # configdirs, or target_configdirs; see the serialization section below.
2802
2803 # Dependency sorting is only needed when *configuration* must be done in
2804 # a particular order. In all cases a dependency should be specified in
2805 # the Makefile, whether or not it's implicitly specified here.
2806
2807 # Double entries in build_configdirs, configdirs, or target_configdirs may
2808 # cause circular dependencies and break everything horribly.
2809
2810 # these library is used by various programs built for the build
2811 # environment
2812 #
2813 build_libs="build-libiberty build-libcpp"
2814
2815 # these tools are built for the build environment
2816 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2817
2818 # these libraries are used by various programs built for the host environment
2819 #f
2820 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2821
2822 # these tools are built for the host environment
2823 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2824 # know that we are building the simulator.
2825 # binutils, gas and ld appear in that order because it makes sense to run
2826 # "make check" in that particular order.
2827 # If --enable-gold is used, "gold" may replace "ld".
2828 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"
2829
2830 # these libraries are built for the target environment, and are built after
2831 # the host libraries and the host tools (which may be a cross compiler)
2832 # Note that libiberty is not a target library.
2833 target_libraries="target-libgcc \
2834 target-libbacktrace \
2835 target-libgloss \
2836 target-newlib \
2837 target-libgomp \
2838 target-libatomic \
2839 target-libitm \
2840 target-libstdc++-v3 \
2841 target-libsanitizer \
2842 target-libvtv \
2843 target-libssp \
2844 target-libquadmath \
2845 target-libgfortran \
2846 target-libffi \
2847 target-libobjc \
2848 target-libada \
2849 target-libgm2 \
2850 target-libgo \
2851 target-libphobos \
2852 target-zlib"
2853
2854 # these tools are built using the target libraries, and are intended to
2855 # run only in the target environment
2856 #
2857 # note: any program that *uses* libraries that are in the "target_libraries"
2858 # list belongs in this list.
2859 #
2860 target_tools="target-rda"
2861
2862 ################################################################################
2863
2864 ## All tools belong in one of the four categories, and are assigned above
2865 ## We assign ${configdirs} this way to remove all embedded newlines. This
2866 ## is important because configure will choke if they ever get through.
2867 ## ${configdirs} is directories we build using the host tools.
2868 ## ${target_configdirs} is directories we build using the target tools.
2869 configdirs=`echo ${host_libs} ${host_tools}`
2870 target_configdirs=`echo ${target_libraries} ${target_tools}`
2871 build_configdirs=`echo ${build_libs} ${build_tools}`
2872
2873
2874
2875 ################################################################################
2876
2877 srcname="gnu development package"
2878
2879 # This gets set non-empty for some net releases of packages.
2880 appdirs=""
2881
2882 # Define is_cross_compiler to save on calls to 'test'.
2883 is_cross_compiler=
2884 if test x"${host}" = x"${target}" ; then
2885 is_cross_compiler=no
2886 else
2887 is_cross_compiler=yes
2888 fi
2889
2890 # Find the build and target subdir names.
2891
2892 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2893 # have matching libraries, they should use host libraries: Makefile.tpl
2894 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2895 # However, they still use the build modules, because the corresponding
2896 # host modules (e.g. bison) are only built for the host when bootstrap
2897 # finishes. So:
2898 # - build_subdir is where we find build modules, and never changes.
2899 # - build_libsubdir is where we find build libraries, and can be overridden.
2900
2901 # Prefix 'build-' so this never conflicts with target_subdir.
2902 build_subdir="build-${build_noncanonical}"
2903
2904 # Check whether --with-build-libsubdir was given.
2905 if test "${with_build_libsubdir+set}" = set; then :
2906 withval=$with_build_libsubdir; build_libsubdir="$withval"
2907 else
2908 build_libsubdir="$build_subdir"
2909 fi
2910
2911 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2912 if ( test $srcdir = . && test -d gcc ) \
2913 || test -d $srcdir/../host-${host_noncanonical}; then
2914 host_subdir="host-${host_noncanonical}"
2915 else
2916 host_subdir=.
2917 fi
2918 # No prefix.
2919 target_subdir=${target_noncanonical}
2920
2921 # Be sure to cover against remnants of an in-tree build.
2922 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2923 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2924 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2925 fi
2926
2927 # Skipdirs are removed silently.
2928 skipdirs=
2929 # Noconfigdirs are removed loudly.
2930 noconfigdirs=""
2931
2932 use_gnu_ld=
2933 # Make sure we don't let GNU ld be added if we didn't want it.
2934 if test x$with_gnu_ld = xno ; then
2935 use_gnu_ld=no
2936 noconfigdirs="$noconfigdirs ld gold"
2937 fi
2938
2939 use_gnu_as=
2940 # Make sure we don't let GNU as be added if we didn't want it.
2941 if test x$with_gnu_as = xno ; then
2942 use_gnu_as=no
2943 noconfigdirs="$noconfigdirs gas"
2944 fi
2945
2946 use_included_zlib=
2947
2948 # Check whether --with-system-zlib was given.
2949 if test "${with_system_zlib+set}" = set; then :
2950 withval=$with_system_zlib;
2951 fi
2952
2953 # Make sure we don't let ZLIB be added if we didn't want it.
2954 if test x$with_system_zlib = xyes ; then
2955 use_included_zlib=no
2956 noconfigdirs="$noconfigdirs zlib"
2957 fi
2958
2959 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2960 # is provided.
2961 if test x$with_system_readline = xyes ; then
2962 noconfigdirs="$noconfigdirs readline"
2963 fi
2964
2965 # some tools are so dependent upon X11 that if we're not building with X,
2966 # it's not even worth trying to configure, much less build, that tool.
2967
2968 case ${with_x} in
2969 yes | "") ;; # the default value for this tree is that X11 is available
2970 no)
2971 skipdirs="${skipdirs} tk itcl libgui"
2972 # We won't be able to build gdbtk without X.
2973 enable_gdbtk=no
2974 ;;
2975 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2976 esac
2977
2978 # Some are only suitable for cross toolchains.
2979 # Remove these if host=target.
2980 cross_only="target-libgloss target-newlib target-opcodes"
2981
2982 case $is_cross_compiler in
2983 no) skipdirs="${skipdirs} ${cross_only}" ;;
2984 esac
2985
2986 # If both --with-headers and --with-libs are specified, default to
2987 # --without-newlib.
2988 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2989 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2990 if test x"${with_newlib}" = x ; then
2991 with_newlib=no
2992 fi
2993 fi
2994
2995 # Recognize --with-newlib/--without-newlib.
2996 case ${with_newlib} in
2997 no) skipdirs="${skipdirs} target-newlib" ;;
2998 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2999 esac
3000
3001 # Check whether --enable-as-accelerator-for was given.
3002 if test "${enable_as_accelerator_for+set}" = set; then :
3003 enableval=$enable_as_accelerator_for;
3004 fi
3005
3006
3007 # Check whether --enable-offload-targets was given.
3008 if test "${enable_offload_targets+set}" = set; then :
3009 enableval=$enable_offload_targets;
3010 if test x"$enable_offload_targets" = x; then
3011 as_fn_error $? "no offload targets specified" "$LINENO" 5
3012 fi
3013
3014 else
3015 enable_offload_targets=
3016 fi
3017
3018
3019 # Check whether --enable-offload-defaulted was given.
3020 if test "${enable_offload_defaulted+set}" = set; then :
3021 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3022 else
3023 enable_offload_defaulted=
3024 fi
3025
3026
3027 # Handle --enable-gold, --enable-ld.
3028 # --disable-gold [--enable-ld]
3029 # Build only ld. Default option.
3030 # --enable-gold [--enable-ld]
3031 # Build both gold and ld. Install gold as "ld.gold", install ld
3032 # as "ld.bfd" and "ld".
3033 # --enable-gold=default [--enable-ld]
3034 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3035 # install ld as "ld.bfd".
3036 # --enable-gold[=default] --disable-ld
3037 # Build only gold, which is then installed as both "ld.gold" and "ld".
3038 # --enable-gold --enable-ld=default
3039 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3040 # and ld.bfd).
3041 # In other words, ld is default
3042 # --enable-gold=default --enable-ld=default
3043 # Error.
3044
3045 default_ld=
3046 # Check whether --enable-gold was given.
3047 if test "${enable_gold+set}" = set; then :
3048 enableval=$enable_gold; ENABLE_GOLD=$enableval
3049 else
3050 ENABLE_GOLD=no
3051 fi
3052
3053 case "${ENABLE_GOLD}" in
3054 yes|default)
3055 # Check for ELF target.
3056 is_elf=no
3057 case "${target}" in
3058 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3059 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3060 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3061 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3062 case "${target}" in
3063 *-*-linux*aout* | *-*-linux*oldld*)
3064 ;;
3065 *)
3066 is_elf=yes
3067 ;;
3068 esac
3069 esac
3070
3071 if test "$is_elf" = "yes"; then
3072 # Check for target supported by gold.
3073 case "${target}" in
3074 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3075 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3076 configdirs="$configdirs gold"
3077 if test x${ENABLE_GOLD} = xdefault; then
3078 default_ld=gold
3079 fi
3080 ENABLE_GOLD=yes
3081 ;;
3082 esac
3083 fi
3084 ;;
3085 no)
3086 ;;
3087 *)
3088 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3089 ;;
3090 esac
3091
3092 # Check whether --enable-ld was given.
3093 if test "${enable_ld+set}" = set; then :
3094 enableval=$enable_ld; ENABLE_LD=$enableval
3095 else
3096 ENABLE_LD=yes
3097 fi
3098
3099
3100 case "${ENABLE_LD}" in
3101 default)
3102 if test x${default_ld} != x; then
3103 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3104 fi
3105 ;;
3106 yes)
3107 ;;
3108 no)
3109 if test x${ENABLE_GOLD} != xyes; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3111 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3112 fi
3113 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3114 ;;
3115 *)
3116 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3117 ;;
3118 esac
3119
3120 # PR gas/19109
3121 # Decide the default method for compressing debug sections.
3122 # Provide a configure time option to override our default.
3123 # Check whether --enable-compressed_debug_sections was given.
3124 if test "${enable_compressed_debug_sections+set}" = set; then :
3125 enableval=$enable_compressed_debug_sections;
3126 if test x"$enable_compressed_debug_sections" = xyes; then
3127 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3128 fi
3129
3130 else
3131 enable_compressed_debug_sections=
3132 fi
3133
3134
3135 # Configure extra directories which are host specific
3136
3137 case "${host}" in
3138 *-cygwin*)
3139 configdirs="$configdirs libtermcap" ;;
3140 esac
3141
3142 # A target can indicate whether a language isn't supported for some reason.
3143 # Only spaces may be used in this macro; not newlines or tabs.
3144 unsupported_languages=
3145
3146 # Remove more programs from consideration, based on the host or
3147 # target this usually means that a port of the program doesn't
3148 # exist yet.
3149
3150 case "${host}" in
3151 i[3456789]86-*-msdosdjgpp*)
3152 noconfigdirs="$noconfigdirs tcl tk itcl"
3153 ;;
3154 esac
3155
3156
3157 # Check whether --enable-libquadmath was given.
3158 if test "${enable_libquadmath+set}" = set; then :
3159 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3160 else
3161 ENABLE_LIBQUADMATH=yes
3162 fi
3163
3164 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3165 noconfigdirs="$noconfigdirs target-libquadmath"
3166 fi
3167
3168
3169 # Check whether --enable-libquadmath-support was given.
3170 if test "${enable_libquadmath_support+set}" = set; then :
3171 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3172 else
3173 ENABLE_LIBQUADMATH_SUPPORT=yes
3174 fi
3175
3176 enable_libquadmath_support=
3177 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3178 enable_libquadmath_support=no
3179 fi
3180
3181
3182 # Check whether --enable-libada was given.
3183 if test "${enable_libada+set}" = set; then :
3184 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3185 else
3186 ENABLE_LIBADA=yes
3187 fi
3188
3189 if test "${ENABLE_LIBADA}" != "yes" ; then
3190 noconfigdirs="$noconfigdirs gnattools"
3191 fi
3192
3193 # Check whether --enable-libgm2 was given.
3194 if test "${enable_libgm2+set}" = set; then :
3195 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3196 else
3197 ENABLE_LIBGM2=no
3198 fi
3199
3200 if test "${ENABLE_LIBGM2}" != "yes" ; then
3201 noconfigdirs="$noconfigdirs gm2tools"
3202 fi
3203
3204 # Check whether --enable-libssp was given.
3205 if test "${enable_libssp+set}" = set; then :
3206 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3207 else
3208 ENABLE_LIBSSP=yes
3209 fi
3210
3211
3212 # Check whether --enable-libstdcxx was given.
3213 if test "${enable_libstdcxx+set}" = set; then :
3214 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3215 else
3216 ENABLE_LIBSTDCXX=default
3217 fi
3218
3219 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3220 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3221 fi
3222
3223 # Enable libgomp by default on hosted POSIX systems, and a few others.
3224 if test x$enable_libgomp = x ; then
3225 case "${target}" in
3226 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3227 ;;
3228 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3229 ;;
3230 *-*-solaris2* | *-*-hpux11*)
3231 ;;
3232 *-*-darwin* | *-*-aix*)
3233 ;;
3234 nvptx*-*-* | amdgcn*-*-*)
3235 ;;
3236 *)
3237 noconfigdirs="$noconfigdirs target-libgomp"
3238 ;;
3239 esac
3240 fi
3241
3242 # Disable libatomic on unsupported systems.
3243 if test -d ${srcdir}/libatomic; then
3244 if test x$enable_libatomic = x; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3246 $as_echo_n "checking for libatomic support... " >&6; }
3247 if (srcdir=${srcdir}/libatomic; \
3248 . ${srcdir}/configure.tgt; \
3249 test -n "$UNSUPPORTED")
3250 then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 noconfigdirs="$noconfigdirs target-libatomic"
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 $as_echo "yes" >&6; }
3257 fi
3258 fi
3259 fi
3260
3261 # Disable libitm on unsupported systems.
3262 if test -d ${srcdir}/libitm; then
3263 if test x$enable_libitm = x; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3265 $as_echo_n "checking for libitm support... " >&6; }
3266 if (srcdir=${srcdir}/libitm; \
3267 . ${srcdir}/configure.tgt; \
3268 test -n "$UNSUPPORTED")
3269 then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 noconfigdirs="$noconfigdirs target-libitm"
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3276 fi
3277 fi
3278 fi
3279
3280 # Disable libsanitizer on unsupported systems.
3281 if test -d ${srcdir}/libsanitizer; then
3282 if test x$enable_libsanitizer = x; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3284 $as_echo_n "checking for libsanitizer support... " >&6; }
3285 if (srcdir=${srcdir}/libsanitizer; \
3286 . ${srcdir}/configure.tgt; \
3287 test -n "$UNSUPPORTED")
3288 then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 noconfigdirs="$noconfigdirs target-libsanitizer"
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3295 fi
3296 fi
3297 fi
3298
3299 # Disable libvtv on unsupported systems.
3300 if test -d ${srcdir}/libvtv; then
3301 if test x$enable_libvtv = x; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3303 $as_echo_n "checking for libvtv support... " >&6; }
3304 if (srcdir=${srcdir}/libvtv; \
3305 . ${srcdir}/configure.tgt; \
3306 test "$VTV_SUPPORTED" != "yes")
3307 then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 noconfigdirs="$noconfigdirs target-libvtv"
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3314 fi
3315 fi
3316 fi
3317
3318 # Disable libquadmath for some systems.
3319 case "${target}" in
3320 avr-*-*)
3321 noconfigdirs="$noconfigdirs target-libquadmath"
3322 ;;
3323 # libquadmath is unused on AIX and libquadmath build process use of
3324 # LD_LIBRARY_PATH can break AIX bootstrap.
3325 powerpc-*-aix* | rs6000-*-aix*)
3326 noconfigdirs="$noconfigdirs target-libquadmath"
3327 ;;
3328 esac
3329
3330 # Disable libssp for some systems.
3331 case "${target}" in
3332 avr-*-*)
3333 # No hosted I/O support.
3334 noconfigdirs="$noconfigdirs target-libssp"
3335 ;;
3336 bpf-*-*)
3337 noconfigdirs="$noconfigdirs target-libssp"
3338 ;;
3339 powerpc-*-aix* | rs6000-*-aix*)
3340 noconfigdirs="$noconfigdirs target-libssp"
3341 ;;
3342 pru-*-*)
3343 # No hosted I/O support.
3344 noconfigdirs="$noconfigdirs target-libssp"
3345 ;;
3346 rl78-*-*)
3347 # libssp uses a misaligned load to trigger a fault, but the RL78
3348 # doesn't fault for those - instead, it gives a build-time error
3349 # for explicit misaligned loads.
3350 noconfigdirs="$noconfigdirs target-libssp"
3351 ;;
3352 visium-*-*)
3353 # No hosted I/O support.
3354 noconfigdirs="$noconfigdirs target-libssp"
3355 ;;
3356 esac
3357
3358 # Disable libstdc++-v3 for some systems.
3359 # Allow user to override this if they pass --enable-libstdcxx
3360 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3361 case "${target}" in
3362 *-*-vxworks*)
3363 # VxWorks uses the Dinkumware C++ library.
3364 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3365 ;;
3366 amdgcn*-*-*)
3367 # Not ported/fails to build when using newlib.
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 ;;
3370 arm*-wince-pe*)
3371 # the C++ libraries don't build on top of CE's C libraries
3372 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3373 ;;
3374 avr-*-*)
3375 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3376 ;;
3377 bpf-*-*)
3378 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3379 ;;
3380 ft32-*-*)
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 esac
3384 fi
3385
3386 # Disable C++ on systems where it is known to not work.
3387 # For testing, you can override this with --enable-languages=c++.
3388 case ,${enable_languages}, in
3389 *,c++,*)
3390 ;;
3391 *)
3392 case "${target}" in
3393 bpf-*-*)
3394 unsupported_languages="$unsupported_languages c++"
3395 ;;
3396 esac
3397 ;;
3398 esac
3399
3400 # Disable Objc on systems where it is known to not work.
3401 # For testing, you can override this with --enable-languages=objc.
3402 case ,${enable_languages}, in
3403 *,objc,*)
3404 ;;
3405 *)
3406 case "${target}" in
3407 bpf-*-*)
3408 unsupported_languages="$unsupported_languages objc"
3409 ;;
3410 esac
3411 ;;
3412 esac
3413
3414 # Disable D on systems where it is known to not work.
3415 # For testing, you can override this with --enable-languages=d.
3416 case ,${enable_languages}, in
3417 *,d,*)
3418 ;;
3419 *)
3420 case "${target}" in
3421 bpf-*-*)
3422 unsupported_languages="$unsupported_languages d"
3423 ;;
3424 esac
3425 ;;
3426 esac
3427
3428 # Disable libphobos on unsupported systems.
3429 # For testing, you can override this with --enable-libphobos.
3430 if test -d ${srcdir}/libphobos; then
3431 if test x$enable_libphobos = x; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3433 $as_echo_n "checking for libphobos support... " >&6; }
3434 if (srcdir=${srcdir}/libphobos; \
3435 . ${srcdir}/configure.tgt; \
3436 test "$LIBPHOBOS_SUPPORTED" != "yes")
3437 then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 noconfigdirs="$noconfigdirs target-libphobos"
3441 else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3443 $as_echo "yes" >&6; }
3444 fi
3445 fi
3446 fi
3447
3448 # Disable Fortran for some systems.
3449 case "${target}" in
3450 mmix-*-*)
3451 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3452 unsupported_languages="$unsupported_languages fortran"
3453 ;;
3454 bpf-*-*)
3455 unsupported_languages="$unsupported_languages fortran"
3456 ;;
3457 esac
3458
3459 # Disable libffi for some systems.
3460 case "${target}" in
3461 powerpc-*-darwin*)
3462 ;;
3463 i[3456789]86-*-darwin*)
3464 ;;
3465 x86_64-*-darwin[912]*)
3466 ;;
3467 *-*-darwin*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 *-*-netware*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 *-*-phoenix*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 *-*-rtems*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479 *-*-tpf*)
3480 noconfigdirs="$noconfigdirs target-libffi"
3481 ;;
3482 *-*-uclinux*)
3483 noconfigdirs="$noconfigdirs target-libffi"
3484 ;;
3485 *-*-vxworks*)
3486 noconfigdirs="$noconfigdirs target-libffi"
3487 ;;
3488 aarch64*-*-freebsd*)
3489 noconfigdirs="$noconfigdirs target-libffi"
3490 ;;
3491 alpha*-*-*vms*)
3492 noconfigdirs="$noconfigdirs target-libffi"
3493 ;;
3494 arm*-*-freebsd*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3496 ;;
3497 arm-wince-pe)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
3500 arm*-*-symbianelf*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
3503 bpf-*-*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3505 ;;
3506 cris-*-* | crisv32-*-*)
3507 case "${target}" in
3508 *-*-linux*)
3509 ;;
3510 *) # See PR46792 regarding target-libffi.
3511 noconfigdirs="$noconfigdirs target-libffi";;
3512 esac
3513 ;;
3514 hppa*64*-*-hpux*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 ia64*-*-*vms*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 i[3456789]86-w64-mingw*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 i[3456789]86-*-mingw*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
3526 x86_64-*-mingw*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
3529 mmix-*-*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
3532 powerpc-*-aix*)
3533 ;;
3534 rs6000-*-aix*)
3535 ;;
3536 ft32-*-*)
3537 noconfigdirs="$noconfigdirs target-libffi"
3538 ;;
3539 *-*-lynxos*)
3540 noconfigdirs="$noconfigdirs target-libffi"
3541 ;;
3542 esac
3543
3544 # Disable the go frontend on systems where it is known to not work. Please keep
3545 # this in sync with contrib/config-list.mk.
3546 case "${target}" in
3547 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3548 unsupported_languages="$unsupported_languages go"
3549 ;;
3550 esac
3551
3552 # Only allow gdbserver on some systems.
3553 if test -d ${srcdir}/gdbserver; then
3554 if test x$enable_gdbserver = x; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3556 $as_echo_n "checking for gdbserver support... " >&6; }
3557 if (srcdir=${srcdir}/gdbserver; \
3558 . ${srcdir}/configure.srv; \
3559 test -n "$UNSUPPORTED")
3560 then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 noconfigdirs="$noconfigdirs gdbserver"
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3566 $as_echo "yes" >&6; }
3567 fi
3568 fi
3569 fi
3570
3571 # Disable libgo for some systems where it is known to not work.
3572 # For testing, you can easily override this with --enable-libgo.
3573 if test x$enable_libgo = x; then
3574 case "${target}" in
3575 *-*-darwin*)
3576 # PR 46986
3577 noconfigdirs="$noconfigdirs target-libgo"
3578 ;;
3579 *-*-cygwin* | *-*-mingw*)
3580 noconfigdirs="$noconfigdirs target-libgo"
3581 ;;
3582 bpf-*-*)
3583 noconfigdirs="$noconfigdirs target-libgo"
3584 ;;
3585 esac
3586 fi
3587
3588 # Default libgloss CPU subdirectory.
3589 libgloss_dir="$target_cpu"
3590
3591 case "${target}" in
3592 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3593 libgloss_dir=wince
3594 ;;
3595 aarch64*-*-* )
3596 libgloss_dir=aarch64
3597 ;;
3598 arm*-*-*)
3599 libgloss_dir=arm
3600 ;;
3601 cris-*-* | crisv32-*-*)
3602 libgloss_dir=cris
3603 ;;
3604 hppa*-*-*)
3605 libgloss_dir=pa
3606 ;;
3607 i[3456789]86-*-*)
3608 libgloss_dir=i386
3609 ;;
3610 loongarch*-*-*)
3611 libgloss_dir=loongarch
3612 ;;
3613 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3614 libgloss_dir=m68hc11
3615 ;;
3616 m68*-*-* | fido-*-*)
3617 libgloss_dir=m68k
3618 ;;
3619 mips*-*-*)
3620 libgloss_dir=mips
3621 ;;
3622 powerpc*-*-*)
3623 libgloss_dir=rs6000
3624 ;;
3625 pru-*-*)
3626 libgloss_dir=pru
3627 ;;
3628 sparc*-*-*)
3629 libgloss_dir=sparc
3630 ;;
3631 esac
3632
3633 # Disable newlib and libgloss for various target OSes.
3634 case "${target}" in
3635 alpha*-dec-osf*)
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 ;;
3638 i[3456789]86-*-linux*)
3639 # This section makes it possible to build newlib natively on linux.
3640 # If we are using a cross compiler then don't configure newlib.
3641 if test x${is_cross_compiler} != xno ; then
3642 noconfigdirs="$noconfigdirs target-newlib"
3643 fi
3644 noconfigdirs="$noconfigdirs target-libgloss"
3645 # If we are not using a cross compiler, do configure newlib.
3646 # Note however, that newlib will only be configured in this situation
3647 # if the --with-newlib option has been given, because otherwise
3648 # 'target-newlib' will appear in skipdirs.
3649 ;;
3650 i[3456789]86-*-rdos*)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 ;;
3653 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 ;;
3656 sparc-*-sunos4*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 ;;
3659 bpf-*-*)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 ;;
3662 *-*-aix*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 ;;
3665 *-*-beos*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 ;;
3668 *-*-chorusos)
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 ;;
3671 *-*-dragonfly*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
3674 *-*-freebsd*)
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 ;;
3677 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 ;;
3680 *-*-lynxos*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 ;;
3683 *-*-mingw*)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 ;;
3686 *-*-netbsd*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 ;;
3689 *-*-netware*)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 ;;
3692 *-*-tpf*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 ;;
3695 *-*-uclinux*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
3698 *-*-vxworks*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 ;;
3701 esac
3702
3703 case "${target}" in
3704 *-*-chorusos)
3705 ;;
3706 aarch64-*-darwin*)
3707 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3708 noconfigdirs="$noconfigdirs sim target-rda"
3709 ;;
3710 amdgcn*-*-*)
3711 ;;
3712 arm-*-darwin*)
3713 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3714 noconfigdirs="$noconfigdirs sim target-rda"
3715 ;;
3716 powerpc-*-darwin*)
3717 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3718 noconfigdirs="$noconfigdirs sim target-rda"
3719 ;;
3720 i[3456789]86-*-darwin*)
3721 noconfigdirs="$noconfigdirs ld gprof"
3722 noconfigdirs="$noconfigdirs sim target-rda"
3723 ;;
3724 x86_64-*-darwin[912]*)
3725 noconfigdirs="$noconfigdirs ld gas gprof"
3726 noconfigdirs="$noconfigdirs sim target-rda"
3727 ;;
3728 *-*-darwin*)
3729 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3730 noconfigdirs="$noconfigdirs sim target-rda"
3731 ;;
3732 *-*-dragonfly*)
3733 ;;
3734 *-*-freebsd*)
3735 if test "x$with_gmp" = x \
3736 && ! test -d ${srcdir}/gmp \
3737 && test -f /usr/local/include/gmp.h; then
3738 with_gmp=/usr/local
3739 fi
3740 ;;
3741 *-*-kaos*)
3742 # Remove unsupported stuff on all kaOS configurations.
3743 noconfigdirs="$noconfigdirs target-libgloss"
3744 ;;
3745 *-*-netbsd*)
3746 ;;
3747 *-*-netware*)
3748 ;;
3749 *-*-phoenix*)
3750 noconfigdirs="$noconfigdirs target-libgloss"
3751 ;;
3752 *-*-rtems*)
3753 noconfigdirs="$noconfigdirs target-libgloss"
3754 ;;
3755 # The tpf target doesn't support gdb yet.
3756 *-*-tpf*)
3757 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3758 ;;
3759 *-*-uclinux*)
3760 noconfigdirs="$noconfigdirs target-rda"
3761 ;;
3762 *-*-vxworks*)
3763 ;;
3764 alpha*-dec-osf*)
3765 # ld works, but does not support shared libraries.
3766 # gas doesn't generate exception information.
3767 noconfigdirs="$noconfigdirs gas ld"
3768 ;;
3769 alpha*-*-*vms*)
3770 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3771 ;;
3772 alpha*-*-*)
3773 # newlib is not 64 bit ready
3774 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3775 ;;
3776 bpf-*-*)
3777 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3778 ;;
3779 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3780 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3781 ;;
3782 arc*-*-*)
3783 noconfigdirs="$noconfigdirs sim"
3784 ;;
3785 arm-*-pe*)
3786 noconfigdirs="$noconfigdirs target-libgloss"
3787 ;;
3788 arm-*-riscix*)
3789 noconfigdirs="$noconfigdirs ld target-libgloss"
3790 ;;
3791 avr-*-*)
3792 if test x${with_avrlibc} != xno; then
3793 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3794 fi
3795 ;;
3796 c4x-*-* | tic4x-*-*)
3797 noconfigdirs="$noconfigdirs target-libgloss"
3798 ;;
3799 tic54x-*-*)
3800 noconfigdirs="$noconfigdirs target-libgloss gdb"
3801 ;;
3802 d10v-*-*)
3803 noconfigdirs="$noconfigdirs target-libgloss"
3804 ;;
3805 d30v-*-*)
3806 noconfigdirs="$noconfigdirs gdb"
3807 ;;
3808 fr30-*-elf*)
3809 noconfigdirs="$noconfigdirs gdb"
3810 ;;
3811 ft32-*-*)
3812 noconfigdirs="$noconfigdirs target-rda gprof"
3813 ;;
3814 moxie-*-*)
3815 noconfigdirs="$noconfigdirs"
3816 ;;
3817 h8300*-*-*)
3818 noconfigdirs="$noconfigdirs target-libgloss"
3819 ;;
3820 h8500-*-*)
3821 noconfigdirs="$noconfigdirs target-libgloss"
3822 ;;
3823 hppa*64*-*-hpux*)
3824 noconfigdirs="$noconfigdirs gdb"
3825 ;;
3826 hppa*64*-*-linux*)
3827 ;;
3828 hppa*-*-linux*)
3829 ;;
3830 hppa*-*-*elf* | \
3831 hppa*-*-lites* | \
3832 hppa*-*-openbsd* | \
3833 hppa*64*-*-*)
3834 ;;
3835 hppa*-*-pro*)
3836 ;;
3837 hppa*-*-*)
3838 noconfigdirs="$noconfigdirs ld"
3839 ;;
3840 i960-*-*)
3841 noconfigdirs="$noconfigdirs gdb"
3842 ;;
3843 ia64*-*-elf*)
3844 # No gdb support yet.
3845 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3846 ;;
3847 ia64*-**-hpux*)
3848 # No ld support yet.
3849 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3850 ;;
3851 ia64*-*-*vms*)
3852 # No ld support yet.
3853 noconfigdirs="$noconfigdirs libgui itcl ld"
3854 ;;
3855 i[3456789]86-w64-mingw*)
3856 ;;
3857 i[3456789]86-*-mingw*)
3858 target_configdirs="$target_configdirs target-winsup"
3859 ;;
3860 *-*-cygwin*)
3861 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3862 noconfigdirs="$noconfigdirs target-libgloss"
3863 # always build newlib if winsup directory is present.
3864 if test -d "$srcdir/winsup/cygwin"; then
3865 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3866 elif test -d "$srcdir/newlib"; then
3867 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3868 fi
3869 ;;
3870 i[3456789]86-*-pe)
3871 noconfigdirs="$noconfigdirs target-libgloss"
3872 ;;
3873 i[3456789]86-*-sco3.2v5*)
3874 # The linker does not yet know about weak symbols in COFF,
3875 # and is not configured to handle mixed ELF and COFF.
3876 noconfigdirs="$noconfigdirs ld target-libgloss"
3877 ;;
3878 i[3456789]86-*-sco*)
3879 noconfigdirs="$noconfigdirs gprof target-libgloss"
3880 ;;
3881 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3882 noconfigdirs="$noconfigdirs target-libgloss"
3883 ;;
3884 i[3456789]86-*-sysv4*)
3885 noconfigdirs="$noconfigdirs target-libgloss"
3886 ;;
3887 i[3456789]86-*-beos*)
3888 noconfigdirs="$noconfigdirs gdb"
3889 ;;
3890 i[3456789]86-*-rdos*)
3891 noconfigdirs="$noconfigdirs gdb"
3892 ;;
3893 mmix-*-*)
3894 noconfigdirs="$noconfigdirs gdb"
3895 ;;
3896 mt-*-*)
3897 noconfigdirs="$noconfigdirs sim"
3898 ;;
3899 nfp-*-*)
3900 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3901 noconfigdirs="$noconfigdirs $target_libraries"
3902 ;;
3903 pdp11-*-*)
3904 noconfigdirs="$noconfigdirs gdb gprof"
3905 ;;
3906 powerpc-*-aix*)
3907 # copied from rs6000-*-* entry
3908 noconfigdirs="$noconfigdirs gprof"
3909 ;;
3910 powerpc*-*-winnt* | powerpc*-*-pe*)
3911 target_configdirs="$target_configdirs target-winsup"
3912 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3913 # always build newlib.
3914 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3915 ;;
3916 # This is temporary until we can link against shared libraries
3917 powerpcle-*-solaris*)
3918 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3919 ;;
3920 powerpc-*-beos*)
3921 noconfigdirs="$noconfigdirs gdb"
3922 ;;
3923 rs6000-*-lynxos*)
3924 noconfigdirs="$noconfigdirs gprof"
3925 ;;
3926 rs6000-*-aix*)
3927 noconfigdirs="$noconfigdirs gprof"
3928 ;;
3929 rs6000-*-*)
3930 noconfigdirs="$noconfigdirs gprof"
3931 ;;
3932 m68k-apollo-*)
3933 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3934 ;;
3935 microblaze*)
3936 noconfigdirs="$noconfigdirs gprof"
3937 ;;
3938 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3939 if test x$with_newlib = xyes; then
3940 noconfigdirs="$noconfigdirs gprof"
3941 fi
3942 ;;
3943 mips*-*-irix5*)
3944 noconfigdirs="$noconfigdirs gprof target-libgloss"
3945 ;;
3946 mips*-*-irix6*)
3947 noconfigdirs="$noconfigdirs gprof target-libgloss"
3948 ;;
3949 mips*-*-bsd*)
3950 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3951 ;;
3952 mips*-*-linux*)
3953 ;;
3954 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3955 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3956 noconfigdirs="$noconfigdirs ld gas gprof"
3957 ;;
3958 mips*-*-*)
3959 noconfigdirs="$noconfigdirs gprof"
3960 ;;
3961 nvptx*-*-*)
3962 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3963 ;;
3964 sh-*-*)
3965 case "${target}" in
3966 sh*-*-elf)
3967 ;;
3968 *)
3969 noconfigdirs="$noconfigdirs target-libgloss" ;;
3970 esac
3971 ;;
3972 sparc-*-sunos4*)
3973 if test x${is_cross_compiler} = xno ; then
3974 use_gnu_ld=no
3975 fi
3976 ;;
3977 tic6x-*-*)
3978 noconfigdirs="$noconfigdirs sim"
3979 ;;
3980 v810-*-*)
3981 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3982 ;;
3983 vax-*-*)
3984 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3985 ;;
3986 wasm32-*-*)
3987 noconfigdirs="$noconfigdirs ld"
3988 ;;
3989 loongarch*-*-linux*)
3990 ;;
3991 loongarch*-*-*)
3992 noconfigdirs="$noconfigdirs gprof"
3993 ;;
3994 esac
3995
3996 # If we aren't building newlib, then don't build libgloss, since libgloss
3997 # depends upon some newlib header files.
3998 case "${noconfigdirs}" in
3999 *target-libgloss*) ;;
4000 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4001 esac
4002
4003 # Work in distributions that contain no compiler tools, like Autoconf.
4004 host_makefile_frag=/dev/null
4005 if test -d ${srcdir}/config ; then
4006 case "${host}" in
4007 i[3456789]86-*-msdosdjgpp*)
4008 host_makefile_frag="config/mh-djgpp"
4009 ;;
4010 *-cygwin*)
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4013 $as_echo_n "checking to see if cat works as expected... " >&6; }
4014 echo a >cygwin-cat-check
4015 if test `cat cygwin-cat-check` = a ; then
4016 rm cygwin-cat-check
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4018 $as_echo "yes" >&6; }
4019 else
4020 rm cygwin-cat-check
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4023 as_fn_error $? "The cat command does not ignore carriage return characters.
4024 Please either mount the build directory in binary mode or run the following
4025 commands before running any configure script:
4026 set -o igncr
4027 export SHELLOPTS
4028 " "$LINENO" 5
4029 fi
4030
4031 host_makefile_frag="config/mh-cygwin"
4032 ;;
4033 *-mingw*)
4034 host_makefile_frag="config/mh-mingw"
4035 ;;
4036 alpha*-linux*)
4037 host_makefile_frag="config/mh-alpha-linux"
4038 ;;
4039 hppa*-hp-hpux*)
4040 host_makefile_frag="config/mh-pa"
4041 ;;
4042 hppa*-*)
4043 host_makefile_frag="config/mh-pa"
4044 ;;
4045 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4046 host_makefile_frag="config/mh-darwin"
4047 ;;
4048 powerpc-*-aix*)
4049 host_makefile_frag="config/mh-ppc-aix"
4050 ;;
4051 rs6000-*-aix*)
4052 host_makefile_frag="config/mh-ppc-aix"
4053 ;;
4054 esac
4055 fi
4056
4057 if test "${build}" != "${host}" ; then
4058 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4059 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4060 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4061 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4062 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4063 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4064 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4065 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4066 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4067 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4068 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4069 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4070 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4071 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4072 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4073 else
4074 AR_FOR_BUILD="\$(AR)"
4075 AS_FOR_BUILD="\$(AS)"
4076 CC_FOR_BUILD="\$(CC)"
4077 CXX_FOR_BUILD="\$(CXX)"
4078 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4079 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4080 GOC_FOR_BUILD="\$(GOC)"
4081 GDC_FOR_BUILD="\$(GDC)"
4082 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4083 LD_FOR_BUILD="\$(LD)"
4084 NM_FOR_BUILD="\$(NM)"
4085 RANLIB_FOR_BUILD="\$(RANLIB)"
4086 WINDRES_FOR_BUILD="\$(WINDRES)"
4087 WINDMC_FOR_BUILD="\$(WINDMC)"
4088 fi
4089
4090 ac_ext=c
4091 ac_cpp='$CPP $CPPFLAGS'
4092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 if test -n "$ac_tool_prefix"; then
4096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_prog_CC+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 break 2
4116 fi
4117 done
4118 done
4119 IFS=$as_save_IFS
4120
4121 fi
4122 fi
4123 CC=$ac_cv_prog_CC
4124 if test -n "$CC"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126 $as_echo "$CC" >&6; }
4127 else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 fi
4131
4132
4133 fi
4134 if test -z "$ac_cv_prog_CC"; then
4135 ac_ct_CC=$CC
4136 # Extract the first word of "gcc", so it can be a program name with args.
4137 set dummy gcc; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -n "$ac_ct_CC"; then
4144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_ac_ct_CC="gcc"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159 IFS=$as_save_IFS
4160
4161 fi
4162 fi
4163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4164 if test -n "$ac_ct_CC"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4166 $as_echo "$ac_ct_CC" >&6; }
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4170 fi
4171
4172 if test "x$ac_ct_CC" = x; then
4173 CC=""
4174 else
4175 case $cross_compiling:$ac_tool_warned in
4176 yes:)
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4179 ac_tool_warned=yes ;;
4180 esac
4181 CC=$ac_ct_CC
4182 fi
4183 else
4184 CC="$ac_cv_prog_CC"
4185 fi
4186
4187 if test -z "$CC"; then
4188 if test -n "$ac_tool_prefix"; then
4189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4190 set dummy ${ac_tool_prefix}cc; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_CC+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_CC="${ac_tool_prefix}cc"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4209 fi
4210 done
4211 done
4212 IFS=$as_save_IFS
4213
4214 fi
4215 fi
4216 CC=$ac_cv_prog_CC
4217 if test -n "$CC"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219 $as_echo "$CC" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225
4226 fi
4227 fi
4228 if test -z "$CC"; then
4229 # Extract the first word of "cc", so it can be a program name with args.
4230 set dummy cc; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_CC+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -n "$CC"; then
4237 ac_cv_prog_CC="$CC" # Let the user override the test.
4238 else
4239 ac_prog_rejected=no
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4248 ac_prog_rejected=yes
4249 continue
4250 fi
4251 ac_cv_prog_CC="cc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 if test $ac_prog_rejected = yes; then
4260 # We found a bogon in the path, so make sure we never use it.
4261 set dummy $ac_cv_prog_CC
4262 shift
4263 if test $# != 0; then
4264 # We chose a different compiler from the bogus one.
4265 # However, it has the same basename, so the bogon will be chosen
4266 # first if we set CC to just the basename; use the full file name.
4267 shift
4268 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4269 fi
4270 fi
4271 fi
4272 fi
4273 CC=$ac_cv_prog_CC
4274 if test -n "$CC"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4276 $as_echo "$CC" >&6; }
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4280 fi
4281
4282
4283 fi
4284 if test -z "$CC"; then
4285 if test -n "$ac_tool_prefix"; then
4286 for ac_prog in cl.exe
4287 do
4288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_CC+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$CC"; then
4296 ac_cv_prog_CC="$CC" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4308 fi
4309 done
4310 done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 CC=$ac_cv_prog_CC
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325 test -n "$CC" && break
4326 done
4327 fi
4328 if test -z "$CC"; then
4329 ac_ct_CC=$CC
4330 for ac_prog in cl.exe
4331 do
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy $ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if test -n "$ac_ct_CC"; then
4340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_ac_ct_CC="$ac_prog"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4352 fi
4353 done
4354 done
4355 IFS=$as_save_IFS
4356
4357 fi
4358 fi
4359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4360 if test -n "$ac_ct_CC"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4362 $as_echo "$ac_ct_CC" >&6; }
4363 else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367
4368
4369 test -n "$ac_ct_CC" && break
4370 done
4371
4372 if test "x$ac_ct_CC" = x; then
4373 CC=""
4374 else
4375 case $cross_compiling:$ac_tool_warned in
4376 yes:)
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4379 ac_tool_warned=yes ;;
4380 esac
4381 CC=$ac_ct_CC
4382 fi
4383 fi
4384
4385 fi
4386
4387
4388 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4390 as_fn_error $? "no acceptable C compiler found in \$PATH
4391 See \`config.log' for more details" "$LINENO" 5; }
4392
4393 # Provide some information about the compiler.
4394 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4395 set X $ac_compile
4396 ac_compiler=$2
4397 for ac_option in --version -v -V -qversion; do
4398 { { ac_try="$ac_compiler $ac_option >&5"
4399 case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4406 ac_status=$?
4407 if test -s conftest.err; then
4408 sed '10a\
4409 ... rest of stderr output deleted ...
4410 10q' conftest.err >conftest.er1
4411 cat conftest.er1 >&5
4412 fi
4413 rm -f conftest.er1 conftest.err
4414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415 test $ac_status = 0; }
4416 done
4417
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420
4421 int
4422 main ()
4423 {
4424
4425 ;
4426 return 0;
4427 }
4428 _ACEOF
4429 ac_clean_files_save=$ac_clean_files
4430 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4431 # Try to create an executable without -o first, disregard a.out.
4432 # It will help us diagnose broken compilers, and finding out an intuition
4433 # of exeext.
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4435 $as_echo_n "checking whether the C compiler works... " >&6; }
4436 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4437
4438 # The possible output files:
4439 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4440
4441 ac_rmfiles=
4442 for ac_file in $ac_files
4443 do
4444 case $ac_file in
4445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4446 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4447 esac
4448 done
4449 rm -f $ac_rmfiles
4450
4451 if { { ac_try="$ac_link_default"
4452 case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_link_default") 2>&5
4459 ac_status=$?
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }; then :
4462 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4463 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4464 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4465 # so that the user can short-circuit this test for compilers unknown to
4466 # Autoconf.
4467 for ac_file in $ac_files ''
4468 do
4469 test -f "$ac_file" || continue
4470 case $ac_file in
4471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4472 ;;
4473 [ab].out )
4474 # We found the default executable, but exeext='' is most
4475 # certainly right.
4476 break;;
4477 *.* )
4478 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4479 then :; else
4480 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4481 fi
4482 # We set ac_cv_exeext here because the later test for it is not
4483 # safe: cross compilers may not add the suffix if given an `-o'
4484 # argument, so we may need to know it at that point already.
4485 # Even if this section looks crufty: it has the advantage of
4486 # actually working.
4487 break;;
4488 * )
4489 break;;
4490 esac
4491 done
4492 test "$ac_cv_exeext" = no && ac_cv_exeext=
4493
4494 else
4495 ac_file=''
4496 fi
4497 if test -z "$ac_file"; then :
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4500 $as_echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error 77 "C compiler cannot create executables
4506 See \`config.log' for more details" "$LINENO" 5; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4509 $as_echo "yes" >&6; }
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4512 $as_echo_n "checking for C compiler default output file name... " >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4514 $as_echo "$ac_file" >&6; }
4515 ac_exeext=$ac_cv_exeext
4516
4517 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4518 ac_clean_files=$ac_clean_files_save
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4520 $as_echo_n "checking for suffix of executables... " >&6; }
4521 if { { ac_try="$ac_link"
4522 case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4525 esac
4526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527 $as_echo "$ac_try_echo"; } >&5
4528 (eval "$ac_link") 2>&5
4529 ac_status=$?
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }; then :
4532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4534 # work properly (i.e., refer to `conftest.exe'), while it won't with
4535 # `rm'.
4536 for ac_file in conftest.exe conftest conftest.*; do
4537 test -f "$ac_file" || continue
4538 case $ac_file in
4539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4541 break;;
4542 * ) break;;
4543 esac
4544 done
4545 else
4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4549 See \`config.log' for more details" "$LINENO" 5; }
4550 fi
4551 rm -f conftest conftest$ac_cv_exeext
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4553 $as_echo "$ac_cv_exeext" >&6; }
4554
4555 rm -f conftest.$ac_ext
4556 EXEEXT=$ac_cv_exeext
4557 ac_exeext=$EXEEXT
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <stdio.h>
4561 int
4562 main ()
4563 {
4564 FILE *f = fopen ("conftest.out", "w");
4565 return ferror (f) || fclose (f) != 0;
4566
4567 ;
4568 return 0;
4569 }
4570 _ACEOF
4571 ac_clean_files="$ac_clean_files conftest.out"
4572 # Check that the compiler produces executables we can run. If not, either
4573 # the compiler is broken, or we cross compile.
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4575 $as_echo_n "checking whether we are cross compiling... " >&6; }
4576 if test "$cross_compiling" != yes; then
4577 { { ac_try="$ac_link"
4578 case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583 $as_echo "$ac_try_echo"; } >&5
4584 (eval "$ac_link") 2>&5
4585 ac_status=$?
4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }
4588 if { ac_try='./conftest$ac_cv_exeext'
4589 { { case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592 esac
4593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4594 $as_echo "$ac_try_echo"; } >&5
4595 (eval "$ac_try") 2>&5
4596 ac_status=$?
4597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4598 test $ac_status = 0; }; }; then
4599 cross_compiling=no
4600 else
4601 if test "$cross_compiling" = maybe; then
4602 cross_compiling=yes
4603 else
4604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4606 as_fn_error $? "cannot run C compiled programs.
4607 If you meant to cross compile, use \`--host'.
4608 See \`config.log' for more details" "$LINENO" 5; }
4609 fi
4610 fi
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4613 $as_echo "$cross_compiling" >&6; }
4614
4615 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4616 ac_clean_files=$ac_clean_files_save
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4618 $as_echo_n "checking for suffix of object files... " >&6; }
4619 if ${ac_cv_objext+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624
4625 int
4626 main ()
4627 {
4628
4629 ;
4630 return 0;
4631 }
4632 _ACEOF
4633 rm -f conftest.o conftest.obj
4634 if { { ac_try="$ac_compile"
4635 case "(($ac_try" in
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640 $as_echo "$ac_try_echo"; } >&5
4641 (eval "$ac_compile") 2>&5
4642 ac_status=$?
4643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644 test $ac_status = 0; }; then :
4645 for ac_file in conftest.o conftest.obj conftest.*; do
4646 test -f "$ac_file" || continue;
4647 case $ac_file in
4648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4650 break;;
4651 esac
4652 done
4653 else
4654 $as_echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656
4657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4659 as_fn_error $? "cannot compute suffix of object files: cannot compile
4660 See \`config.log' for more details" "$LINENO" 5; }
4661 fi
4662 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4665 $as_echo "$ac_cv_objext" >&6; }
4666 OBJEXT=$ac_cv_objext
4667 ac_objext=$OBJEXT
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4669 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4670 if ${ac_cv_c_compiler_gnu+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675
4676 int
4677 main ()
4678 {
4679 #ifndef __GNUC__
4680 choke me
4681 #endif
4682
4683 ;
4684 return 0;
4685 }
4686 _ACEOF
4687 if ac_fn_c_try_compile "$LINENO"; then :
4688 ac_compiler_gnu=yes
4689 else
4690 ac_compiler_gnu=no
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4694
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4697 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4698 if test $ac_compiler_gnu = yes; then
4699 GCC=yes
4700 else
4701 GCC=
4702 fi
4703 ac_test_CFLAGS=${CFLAGS+set}
4704 ac_save_CFLAGS=$CFLAGS
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4706 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4707 if ${ac_cv_prog_cc_g+:} false; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 ac_save_c_werror_flag=$ac_c_werror_flag
4711 ac_c_werror_flag=yes
4712 ac_cv_prog_cc_g=no
4713 CFLAGS="-g"
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716
4717 int
4718 main ()
4719 {
4720
4721 ;
4722 return 0;
4723 }
4724 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 ac_cv_prog_cc_g=yes
4727 else
4728 CFLAGS=""
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731
4732 int
4733 main ()
4734 {
4735
4736 ;
4737 return 0;
4738 }
4739 _ACEOF
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741
4742 else
4743 ac_c_werror_flag=$ac_save_c_werror_flag
4744 CFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747
4748 int
4749 main ()
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_prog_cc_g=yes
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_c_werror_flag=$ac_save_c_werror_flag
4765 fi
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4767 $as_echo "$ac_cv_prog_cc_g" >&6; }
4768 if test "$ac_test_CFLAGS" = set; then
4769 CFLAGS=$ac_save_CFLAGS
4770 elif test $ac_cv_prog_cc_g = yes; then
4771 if test "$GCC" = yes; then
4772 CFLAGS="-g -O2"
4773 else
4774 CFLAGS="-g"
4775 fi
4776 else
4777 if test "$GCC" = yes; then
4778 CFLAGS="-O2"
4779 else
4780 CFLAGS=
4781 fi
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4784 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4785 if ${ac_cv_prog_cc_c89+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 ac_cv_prog_cc_c89=no
4789 ac_save_CC=$CC
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 #include <stdarg.h>
4793 #include <stdio.h>
4794 struct stat;
4795 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4796 struct buf { int x; };
4797 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4798 static char *e (p, i)
4799 char **p;
4800 int i;
4801 {
4802 return p[i];
4803 }
4804 static char *f (char * (*g) (char **, int), char **p, ...)
4805 {
4806 char *s;
4807 va_list v;
4808 va_start (v,p);
4809 s = g (p, va_arg (v,int));
4810 va_end (v);
4811 return s;
4812 }
4813
4814 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4815 function prototypes and stuff, but not '\xHH' hex character constants.
4816 These don't provoke an error unfortunately, instead are silently treated
4817 as 'x'. The following induces an error, until -std is added to get
4818 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4819 array size at least. It's necessary to write '\x00'==0 to get something
4820 that's true only with -std. */
4821 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4822
4823 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4824 inside strings and character constants. */
4825 #define FOO(x) 'x'
4826 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4827
4828 int test (int i, double x);
4829 struct s1 {int (*f) (int a);};
4830 struct s2 {int (*f) (double a);};
4831 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4832 int argc;
4833 char **argv;
4834 int
4835 main ()
4836 {
4837 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4843 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4844 do
4845 CC="$ac_save_CC $ac_arg"
4846 if ac_fn_c_try_compile "$LINENO"; then :
4847 ac_cv_prog_cc_c89=$ac_arg
4848 fi
4849 rm -f core conftest.err conftest.$ac_objext
4850 test "x$ac_cv_prog_cc_c89" != "xno" && break
4851 done
4852 rm -f conftest.$ac_ext
4853 CC=$ac_save_CC
4854
4855 fi
4856 # AC_CACHE_VAL
4857 case "x$ac_cv_prog_cc_c89" in
4858 x)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4860 $as_echo "none needed" >&6; } ;;
4861 xno)
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4863 $as_echo "unsupported" >&6; } ;;
4864 *)
4865 CC="$CC $ac_cv_prog_cc_c89"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4867 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4868 esac
4869 if test "x$ac_cv_prog_cc_c89" != xno; then :
4870
4871 fi
4872
4873 ac_ext=c
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4880 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4881 if ${ac_cv_prog_cc_c99+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 ac_cv_prog_cc_c99=no
4885 ac_save_CC=$CC
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 #include <stdarg.h>
4889 #include <stdbool.h>
4890 #include <stdlib.h>
4891 #include <wchar.h>
4892 #include <stdio.h>
4893
4894 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4895 #define debug(...) fprintf (stderr, __VA_ARGS__)
4896 #define showlist(...) puts (#__VA_ARGS__)
4897 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4898 static void
4899 test_varargs_macros (void)
4900 {
4901 int x = 1234;
4902 int y = 5678;
4903 debug ("Flag");
4904 debug ("X = %d\n", x);
4905 showlist (The first, second, and third items.);
4906 report (x>y, "x is %d but y is %d", x, y);
4907 }
4908
4909 // Check long long types.
4910 #define BIG64 18446744073709551615ull
4911 #define BIG32 4294967295ul
4912 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4913 #if !BIG_OK
4914 your preprocessor is broken;
4915 #endif
4916 #if BIG_OK
4917 #else
4918 your preprocessor is broken;
4919 #endif
4920 static long long int bignum = -9223372036854775807LL;
4921 static unsigned long long int ubignum = BIG64;
4922
4923 struct incomplete_array
4924 {
4925 int datasize;
4926 double data[];
4927 };
4928
4929 struct named_init {
4930 int number;
4931 const wchar_t *name;
4932 double average;
4933 };
4934
4935 typedef const char *ccp;
4936
4937 static inline int
4938 test_restrict (ccp restrict text)
4939 {
4940 // See if C++-style comments work.
4941 // Iterate through items via the restricted pointer.
4942 // Also check for declarations in for loops.
4943 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4944 continue;
4945 return 0;
4946 }
4947
4948 // Check varargs and va_copy.
4949 static void
4950 test_varargs (const char *format, ...)
4951 {
4952 va_list args;
4953 va_start (args, format);
4954 va_list args_copy;
4955 va_copy (args_copy, args);
4956
4957 const char *str;
4958 int number;
4959 float fnumber;
4960
4961 while (*format)
4962 {
4963 switch (*format++)
4964 {
4965 case 's': // string
4966 str = va_arg (args_copy, const char *);
4967 break;
4968 case 'd': // int
4969 number = va_arg (args_copy, int);
4970 break;
4971 case 'f': // float
4972 fnumber = va_arg (args_copy, double);
4973 break;
4974 default:
4975 break;
4976 }
4977 }
4978 va_end (args_copy);
4979 va_end (args);
4980 }
4981
4982 int
4983 main ()
4984 {
4985
4986 // Check bool.
4987 _Bool success = false;
4988
4989 // Check restrict.
4990 if (test_restrict ("String literal") == 0)
4991 success = true;
4992 char *restrict newvar = "Another string";
4993
4994 // Check varargs.
4995 test_varargs ("s, d' f .", "string", 65, 34.234);
4996 test_varargs_macros ();
4997
4998 // Check flexible array members.
4999 struct incomplete_array *ia =
5000 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5001 ia->datasize = 10;
5002 for (int i = 0; i < ia->datasize; ++i)
5003 ia->data[i] = i * 1.234;
5004
5005 // Check named initializers.
5006 struct named_init ni = {
5007 .number = 34,
5008 .name = L"Test wide string",
5009 .average = 543.34343,
5010 };
5011
5012 ni.number = 58;
5013
5014 int dynamic_array[ni.number];
5015 dynamic_array[ni.number - 1] = 543;
5016
5017 // work around unused variable warnings
5018 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5019 || dynamic_array[ni.number - 1] != 543);
5020
5021 ;
5022 return 0;
5023 }
5024 _ACEOF
5025 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5026 do
5027 CC="$ac_save_CC $ac_arg"
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029 ac_cv_prog_cc_c99=$ac_arg
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext
5032 test "x$ac_cv_prog_cc_c99" != "xno" && break
5033 done
5034 rm -f conftest.$ac_ext
5035 CC=$ac_save_CC
5036
5037 fi
5038 # AC_CACHE_VAL
5039 case "x$ac_cv_prog_cc_c99" in
5040 x)
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5042 $as_echo "none needed" >&6; } ;;
5043 xno)
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5045 $as_echo "unsupported" >&6; } ;;
5046 *)
5047 CC="$CC $ac_cv_prog_cc_c99"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5049 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5050 esac
5051 if test "x$ac_cv_prog_cc_c99" != xno; then :
5052
5053 fi
5054
5055
5056 ac_ext=cpp
5057 ac_cpp='$CXXCPP $CPPFLAGS'
5058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5061 if test -z "$CXX"; then
5062 if test -n "$CCC"; then
5063 CXX=$CCC
5064 else
5065 if test -n "$ac_tool_prefix"; then
5066 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5067 do
5068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_prog_CXX+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 if test -n "$CXX"; then
5076 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089 done
5090 done
5091 IFS=$as_save_IFS
5092
5093 fi
5094 fi
5095 CXX=$ac_cv_prog_CXX
5096 if test -n "$CXX"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5098 $as_echo "$CXX" >&6; }
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103
5104
5105 test -n "$CXX" && break
5106 done
5107 fi
5108 if test -z "$CXX"; then
5109 ac_ct_CXX=$CXX
5110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5111 do
5112 # Extract the first word of "$ac_prog", so it can be a program name with args.
5113 set dummy $ac_prog; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$ac_ct_CXX"; then
5120 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_ac_ct_CXX="$ac_prog"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5140 if test -n "$ac_ct_CXX"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5142 $as_echo "$ac_ct_CXX" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149 test -n "$ac_ct_CXX" && break
5150 done
5151
5152 if test "x$ac_ct_CXX" = x; then
5153 CXX="g++"
5154 else
5155 case $cross_compiling:$ac_tool_warned in
5156 yes:)
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159 ac_tool_warned=yes ;;
5160 esac
5161 CXX=$ac_ct_CXX
5162 fi
5163 fi
5164
5165 fi
5166 fi
5167 # Provide some information about the compiler.
5168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5169 set X $ac_compile
5170 ac_compiler=$2
5171 for ac_option in --version -v -V -qversion; do
5172 { { ac_try="$ac_compiler $ac_option >&5"
5173 case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176 esac
5177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178 $as_echo "$ac_try_echo"; } >&5
5179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5180 ac_status=$?
5181 if test -s conftest.err; then
5182 sed '10a\
5183 ... rest of stderr output deleted ...
5184 10q' conftest.err >conftest.er1
5185 cat conftest.er1 >&5
5186 fi
5187 rm -f conftest.er1 conftest.err
5188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5189 test $ac_status = 0; }
5190 done
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5193 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5194 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 int
5201 main ()
5202 {
5203 #ifndef __GNUC__
5204 choke me
5205 #endif
5206
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_cxx_try_compile "$LINENO"; then :
5212 ac_compiler_gnu=yes
5213 else
5214 ac_compiler_gnu=no
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5218
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5222 if test $ac_compiler_gnu = yes; then
5223 GXX=yes
5224 else
5225 GXX=
5226 fi
5227 ac_test_CXXFLAGS=${CXXFLAGS+set}
5228 ac_save_CXXFLAGS=$CXXFLAGS
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5231 if ${ac_cv_prog_cxx_g+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5235 ac_cxx_werror_flag=yes
5236 ac_cv_prog_cxx_g=no
5237 CXXFLAGS="-g"
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240
5241 int
5242 main ()
5243 {
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_cxx_try_compile "$LINENO"; then :
5250 ac_cv_prog_cxx_g=yes
5251 else
5252 CXXFLAGS=""
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255
5256 int
5257 main ()
5258 {
5259
5260 ;
5261 return 0;
5262 }
5263 _ACEOF
5264 if ac_fn_cxx_try_compile "$LINENO"; then :
5265
5266 else
5267 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5268 CXXFLAGS="-g"
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271
5272 int
5273 main ()
5274 {
5275
5276 ;
5277 return 0;
5278 }
5279 _ACEOF
5280 if ac_fn_cxx_try_compile "$LINENO"; then :
5281 ac_cv_prog_cxx_g=yes
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5291 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5292 if test "$ac_test_CXXFLAGS" = set; then
5293 CXXFLAGS=$ac_save_CXXFLAGS
5294 elif test $ac_cv_prog_cxx_g = yes; then
5295 if test "$GXX" = yes; then
5296 CXXFLAGS="-g -O2"
5297 else
5298 CXXFLAGS="-g"
5299 fi
5300 else
5301 if test "$GXX" = yes; then
5302 CXXFLAGS="-O2"
5303 else
5304 CXXFLAGS=
5305 fi
5306 fi
5307 ac_ext=c
5308 ac_cpp='$CPP $CPPFLAGS'
5309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312
5313
5314 # We must set the default linker to the linker used by gcc for the correct
5315 # operation of libtool. If LD is not defined and we are using gcc, try to
5316 # set the LD default to the ld used by gcc.
5317 if test -z "$LD"; then
5318 if test "$GCC" = yes; then
5319 case $build in
5320 *-*-mingw*)
5321 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5322 *)
5323 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5324 esac
5325 case $gcc_prog_ld in
5326 # Accept absolute paths.
5327 [\\/]* | [A-Za-z]:[\\/]*)
5328 LD="$gcc_prog_ld" ;;
5329 esac
5330 fi
5331 fi
5332
5333 # Check whether -static-libstdc++ -static-libgcc is supported.
5334 have_static_libs=no
5335 if test "$GCC" = yes; then
5336 saved_LDFLAGS="$LDFLAGS"
5337
5338 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5340 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5341 ac_ext=cpp
5342 ac_cpp='$CXXCPP $CPPFLAGS'
5343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5346
5347
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350
5351 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5352 #error -static-libstdc++ not implemented
5353 #endif
5354 int main() {}
5355 _ACEOF
5356 if ac_fn_cxx_try_link "$LINENO"; then :
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5358 $as_echo "yes" >&6; }; have_static_libs=yes
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362 fi
5363 rm -f core conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365 ac_ext=c
5366 ac_cpp='$CPP $CPPFLAGS'
5367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5370
5371
5372 LDFLAGS="$saved_LDFLAGS"
5373 fi
5374
5375
5376
5377
5378 if test -n "$ac_tool_prefix"; then
5379 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5380 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_GNATBIND+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$GNATBIND"; then
5387 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 GNATBIND=$ac_cv_prog_GNATBIND
5407 if test -n "$GNATBIND"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5409 $as_echo "$GNATBIND" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416 fi
5417 if test -z "$ac_cv_prog_GNATBIND"; then
5418 ac_ct_GNATBIND=$GNATBIND
5419 # Extract the first word of "gnatbind", so it can be a program name with args.
5420 set dummy gnatbind; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 if test -n "$ac_ct_GNATBIND"; then
5427 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440 done
5441 done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5447 if test -n "$ac_ct_GNATBIND"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5449 $as_echo "$ac_ct_GNATBIND" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455 if test "x$ac_ct_GNATBIND" = x; then
5456 GNATBIND="no"
5457 else
5458 case $cross_compiling:$ac_tool_warned in
5459 yes:)
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned=yes ;;
5463 esac
5464 GNATBIND=$ac_ct_GNATBIND
5465 fi
5466 else
5467 GNATBIND="$ac_cv_prog_GNATBIND"
5468 fi
5469
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5472 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_GNATMAKE+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$GNATMAKE"; then
5479 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 GNATMAKE=$ac_cv_prog_GNATMAKE
5499 if test -n "$GNATMAKE"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5501 $as_echo "$GNATMAKE" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508 fi
5509 if test -z "$ac_cv_prog_GNATMAKE"; then
5510 ac_ct_GNATMAKE=$GNATMAKE
5511 # Extract the first word of "gnatmake", so it can be a program name with args.
5512 set dummy gnatmake; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test -n "$ac_ct_GNATMAKE"; then
5519 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532 done
5533 done
5534 IFS=$as_save_IFS
5535
5536 fi
5537 fi
5538 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5539 if test -n "$ac_ct_GNATMAKE"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5541 $as_echo "$ac_ct_GNATMAKE" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547 if test "x$ac_ct_GNATMAKE" = x; then
5548 GNATMAKE="no"
5549 else
5550 case $cross_compiling:$ac_tool_warned in
5551 yes:)
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned=yes ;;
5555 esac
5556 GNATMAKE=$ac_ct_GNATMAKE
5557 fi
5558 else
5559 GNATMAKE="$ac_cv_prog_GNATMAKE"
5560 fi
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5563 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5564 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 cat >conftest.adb <<EOF
5568 pragma Warnings (Off);
5569 with System.CRTL;
5570 pragma Warnings (On);
5571 use type System.CRTL.int64;
5572 procedure conftest is begin null; end conftest;
5573 EOF
5574 acx_cv_cc_gcc_supports_ada=no
5575 # There is a bug in old released versions of GCC which causes the
5576 # driver to exit successfully when the appropriate language module
5577 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5578 # Therefore we must check for the error message as well as an
5579 # unsuccessful exit.
5580 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5581 # given a .adb file, but produce no object file. So we must check
5582 # if an object file was really produced to guard against this.
5583 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5584 if test x"$errors" = x && test -f conftest.$ac_objext; then
5585 acx_cv_cc_gcc_supports_ada=yes
5586 fi
5587 rm -f conftest.*
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5590 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5591
5592 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5593 have_gnat=yes
5594 else
5595 have_gnat=no
5596 fi
5597
5598
5599
5600 if test -n "$ac_tool_prefix"; then
5601 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5602 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_GDC+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test -n "$GDC"; then
5609 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622 done
5623 done
5624 IFS=$as_save_IFS
5625
5626 fi
5627 fi
5628 GDC=$ac_cv_prog_GDC
5629 if test -n "$GDC"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5631 $as_echo "$GDC" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636
5637
5638 fi
5639 if test -z "$ac_cv_prog_GDC"; then
5640 ac_ct_GDC=$GDC
5641 # Extract the first word of "gdc", so it can be a program name with args.
5642 set dummy gdc; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -n "$ac_ct_GDC"; then
5649 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_ac_ct_GDC="gdc"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662 done
5663 done
5664 IFS=$as_save_IFS
5665
5666 fi
5667 fi
5668 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5669 if test -n "$ac_ct_GDC"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5671 $as_echo "$ac_ct_GDC" >&6; }
5672 else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5675 fi
5676
5677 if test "x$ac_ct_GDC" = x; then
5678 GDC="no"
5679 else
5680 case $cross_compiling:$ac_tool_warned in
5681 yes:)
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684 ac_tool_warned=yes ;;
5685 esac
5686 GDC=$ac_ct_GDC
5687 fi
5688 else
5689 GDC="$ac_cv_prog_GDC"
5690 fi
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5693 $as_echo_n "checking whether the D compiler works... " >&6; }
5694 if ${acx_cv_d_compiler_works+:} false; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 cat >conftest.d <<EOF
5698 module conftest; int main() { return 0; }
5699 EOF
5700 acx_cv_d_compiler_works=no
5701 if test "x$GDC" != xno; then
5702 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5703 if test x"$errors" = x && test -f conftest.$ac_objext; then
5704 acx_cv_d_compiler_works=yes
5705 fi
5706 rm -f conftest.*
5707 fi
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5710 $as_echo "$acx_cv_d_compiler_works" >&6; }
5711 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5712 have_gdc=yes
5713 else
5714 have_gdc=no
5715 fi
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5718 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5719 if ${gcc_cv_prog_cmp_skip+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 echo abfoo >t1
5723 echo cdfoo >t2
5724 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5725 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5726 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5727 :
5728 else
5729 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5730 fi
5731 fi
5732 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5733 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5734 :
5735 else
5736 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5737 fi
5738 fi
5739 rm t1 t2
5740
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5743 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5744 do_compare="$gcc_cv_prog_cmp_skip"
5745
5746
5747
5748 # Check whether --enable-bootstrap was given.
5749 if test "${enable_bootstrap+set}" = set; then :
5750 enableval=$enable_bootstrap;
5751 else
5752 enable_bootstrap=default
5753 fi
5754
5755
5756 # Issue errors and warnings for invalid/strange bootstrap combinations.
5757 if test -r $srcdir/gcc/configure; then
5758 have_compiler=yes
5759 else
5760 have_compiler=no
5761 fi
5762
5763 case "$have_compiler:$host:$target:$enable_bootstrap" in
5764 *:*:*:no) ;;
5765
5766 # Default behavior. Enable bootstrap if we have a compiler
5767 # and we are in a native configuration.
5768 yes:$build:$build:default)
5769 enable_bootstrap=yes ;;
5770
5771 *:*:*:default)
5772 enable_bootstrap=no ;;
5773
5774 # We have a compiler and we are in a native configuration, bootstrap is ok
5775 yes:$build:$build:yes)
5776 ;;
5777
5778 # Other configurations, but we have a compiler. Assume the user knows
5779 # what he's doing.
5780 yes:*:*:yes)
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5782 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5783 ;;
5784
5785 # No compiler: if they passed --enable-bootstrap explicitly, fail
5786 no:*:*:yes)
5787 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5788
5789 # Fail if wrong command line
5790 *)
5791 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5792 ;;
5793 esac
5794
5795 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5796 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5797 # require C++11 (or higher).
5798 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5799 CXX="$CXX -std=c++11"
5800 elif test "$have_compiler" = yes; then
5801 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5802 ac_ext=cpp
5803 ac_cpp='$CXXCPP $CPPFLAGS'
5804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5807 ac_success=no
5808
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5810 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5811 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816
5817
5818 // If the compiler admits that it is not ready for C++11, why torture it?
5819 // Hopefully, this will speed up the test.
5820
5821 #ifndef __cplusplus
5822
5823 #error "This is not a C++ compiler"
5824
5825 #elif __cplusplus < 201103L
5826
5827 #error "This is not a C++11 compiler"
5828
5829 #else
5830
5831 namespace cxx11
5832 {
5833
5834 namespace test_static_assert
5835 {
5836
5837 template <typename T>
5838 struct check
5839 {
5840 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5841 };
5842
5843 }
5844
5845 namespace test_final_override
5846 {
5847
5848 struct Base
5849 {
5850 virtual ~Base() {}
5851 virtual void f() {}
5852 };
5853
5854 struct Derived : public Base
5855 {
5856 virtual ~Derived() override {}
5857 virtual void f() override {}
5858 };
5859
5860 }
5861
5862 namespace test_double_right_angle_brackets
5863 {
5864
5865 template < typename T >
5866 struct check {};
5867
5868 typedef check<void> single_type;
5869 typedef check<check<void>> double_type;
5870 typedef check<check<check<void>>> triple_type;
5871 typedef check<check<check<check<void>>>> quadruple_type;
5872
5873 }
5874
5875 namespace test_decltype
5876 {
5877
5878 int
5879 f()
5880 {
5881 int a = 1;
5882 decltype(a) b = 2;
5883 return a + b;
5884 }
5885
5886 }
5887
5888 namespace test_type_deduction
5889 {
5890
5891 template < typename T1, typename T2 >
5892 struct is_same
5893 {
5894 static const bool value = false;
5895 };
5896
5897 template < typename T >
5898 struct is_same<T, T>
5899 {
5900 static const bool value = true;
5901 };
5902
5903 template < typename T1, typename T2 >
5904 auto
5905 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5906 {
5907 return a1 + a2;
5908 }
5909
5910 int
5911 test(const int c, volatile int v)
5912 {
5913 static_assert(is_same<int, decltype(0)>::value == true, "");
5914 static_assert(is_same<int, decltype(c)>::value == false, "");
5915 static_assert(is_same<int, decltype(v)>::value == false, "");
5916 auto ac = c;
5917 auto av = v;
5918 auto sumi = ac + av + 'x';
5919 auto sumf = ac + av + 1.0;
5920 static_assert(is_same<int, decltype(ac)>::value == true, "");
5921 static_assert(is_same<int, decltype(av)>::value == true, "");
5922 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5923 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5924 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5925 return (sumf > 0.0) ? sumi : add(c, v);
5926 }
5927
5928 }
5929
5930 namespace test_noexcept
5931 {
5932
5933 int f() { return 0; }
5934 int g() noexcept { return 0; }
5935
5936 static_assert(noexcept(f()) == false, "");
5937 static_assert(noexcept(g()) == true, "");
5938
5939 }
5940
5941 namespace test_constexpr
5942 {
5943
5944 template < typename CharT >
5945 unsigned long constexpr
5946 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5947 {
5948 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5949 }
5950
5951 template < typename CharT >
5952 unsigned long constexpr
5953 strlen_c(const CharT *const s) noexcept
5954 {
5955 return strlen_c_r(s, 0UL);
5956 }
5957
5958 static_assert(strlen_c("") == 0UL, "");
5959 static_assert(strlen_c("1") == 1UL, "");
5960 static_assert(strlen_c("example") == 7UL, "");
5961 static_assert(strlen_c("another\0example") == 7UL, "");
5962
5963 }
5964
5965 namespace test_rvalue_references
5966 {
5967
5968 template < int N >
5969 struct answer
5970 {
5971 static constexpr int value = N;
5972 };
5973
5974 answer<1> f(int&) { return answer<1>(); }
5975 answer<2> f(const int&) { return answer<2>(); }
5976 answer<3> f(int&&) { return answer<3>(); }
5977
5978 void
5979 test()
5980 {
5981 int i = 0;
5982 const int c = 0;
5983 static_assert(decltype(f(i))::value == 1, "");
5984 static_assert(decltype(f(c))::value == 2, "");
5985 static_assert(decltype(f(0))::value == 3, "");
5986 }
5987
5988 }
5989
5990 namespace test_uniform_initialization
5991 {
5992
5993 struct test
5994 {
5995 static const int zero {};
5996 static const int one {1};
5997 };
5998
5999 static_assert(test::zero == 0, "");
6000 static_assert(test::one == 1, "");
6001
6002 }
6003
6004 namespace test_lambdas
6005 {
6006
6007 void
6008 test1()
6009 {
6010 auto lambda1 = [](){};
6011 auto lambda2 = lambda1;
6012 lambda1();
6013 lambda2();
6014 }
6015
6016 int
6017 test2()
6018 {
6019 auto a = [](int i, int j){ return i + j; }(1, 2);
6020 auto b = []() -> int { return '0'; }();
6021 auto c = [=](){ return a + b; }();
6022 auto d = [&](){ return c; }();
6023 auto e = [a, &b](int x) mutable {
6024 const auto identity = [](int y){ return y; };
6025 for (auto i = 0; i < a; ++i)
6026 a += b--;
6027 return x + identity(a + b);
6028 }(0);
6029 return a + b + c + d + e;
6030 }
6031
6032 int
6033 test3()
6034 {
6035 const auto nullary = [](){ return 0; };
6036 const auto unary = [](int x){ return x; };
6037 using nullary_t = decltype(nullary);
6038 using unary_t = decltype(unary);
6039 const auto higher1st = [](nullary_t f){ return f(); };
6040 const auto higher2nd = [unary](nullary_t f1){
6041 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6042 };
6043 return higher1st(nullary) + higher2nd(nullary)(unary);
6044 }
6045
6046 }
6047
6048 namespace test_variadic_templates
6049 {
6050
6051 template <int...>
6052 struct sum;
6053
6054 template <int N0, int... N1toN>
6055 struct sum<N0, N1toN...>
6056 {
6057 static constexpr auto value = N0 + sum<N1toN...>::value;
6058 };
6059
6060 template <>
6061 struct sum<>
6062 {
6063 static constexpr auto value = 0;
6064 };
6065
6066 static_assert(sum<>::value == 0, "");
6067 static_assert(sum<1>::value == 1, "");
6068 static_assert(sum<23>::value == 23, "");
6069 static_assert(sum<1, 2>::value == 3, "");
6070 static_assert(sum<5, 5, 11>::value == 21, "");
6071 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6072
6073 }
6074
6075 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6076 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6077 // because of this.
6078 namespace test_template_alias_sfinae
6079 {
6080
6081 struct foo {};
6082
6083 template<typename T>
6084 using member = typename T::member_type;
6085
6086 template<typename T>
6087 void func(...) {}
6088
6089 template<typename T>
6090 void func(member<T>*) {}
6091
6092 void test();
6093
6094 void test() { func<foo>(0); }
6095
6096 }
6097
6098 } // namespace cxx11
6099
6100 #endif // __cplusplus >= 201103L
6101
6102
6103
6104 _ACEOF
6105 if ac_fn_cxx_try_compile "$LINENO"; then :
6106 ax_cv_cxx_compile_cxx11=yes
6107 else
6108 ax_cv_cxx_compile_cxx11=no
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 fi
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6113 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6114 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6115 ac_success=yes
6116 fi
6117
6118 if test x$ac_success = xno; then
6119 for alternative in ${ax_cxx_compile_alternatives}; do
6120 switch="-std=gnu++${alternative}"
6121 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6123 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6124 if eval \${$cachevar+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 ac_save_CXX="$CXX"
6128 CXX="$CXX $switch"
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131
6132
6133 // If the compiler admits that it is not ready for C++11, why torture it?
6134 // Hopefully, this will speed up the test.
6135
6136 #ifndef __cplusplus
6137
6138 #error "This is not a C++ compiler"
6139
6140 #elif __cplusplus < 201103L
6141
6142 #error "This is not a C++11 compiler"
6143
6144 #else
6145
6146 namespace cxx11
6147 {
6148
6149 namespace test_static_assert
6150 {
6151
6152 template <typename T>
6153 struct check
6154 {
6155 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6156 };
6157
6158 }
6159
6160 namespace test_final_override
6161 {
6162
6163 struct Base
6164 {
6165 virtual ~Base() {}
6166 virtual void f() {}
6167 };
6168
6169 struct Derived : public Base
6170 {
6171 virtual ~Derived() override {}
6172 virtual void f() override {}
6173 };
6174
6175 }
6176
6177 namespace test_double_right_angle_brackets
6178 {
6179
6180 template < typename T >
6181 struct check {};
6182
6183 typedef check<void> single_type;
6184 typedef check<check<void>> double_type;
6185 typedef check<check<check<void>>> triple_type;
6186 typedef check<check<check<check<void>>>> quadruple_type;
6187
6188 }
6189
6190 namespace test_decltype
6191 {
6192
6193 int
6194 f()
6195 {
6196 int a = 1;
6197 decltype(a) b = 2;
6198 return a + b;
6199 }
6200
6201 }
6202
6203 namespace test_type_deduction
6204 {
6205
6206 template < typename T1, typename T2 >
6207 struct is_same
6208 {
6209 static const bool value = false;
6210 };
6211
6212 template < typename T >
6213 struct is_same<T, T>
6214 {
6215 static const bool value = true;
6216 };
6217
6218 template < typename T1, typename T2 >
6219 auto
6220 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6221 {
6222 return a1 + a2;
6223 }
6224
6225 int
6226 test(const int c, volatile int v)
6227 {
6228 static_assert(is_same<int, decltype(0)>::value == true, "");
6229 static_assert(is_same<int, decltype(c)>::value == false, "");
6230 static_assert(is_same<int, decltype(v)>::value == false, "");
6231 auto ac = c;
6232 auto av = v;
6233 auto sumi = ac + av + 'x';
6234 auto sumf = ac + av + 1.0;
6235 static_assert(is_same<int, decltype(ac)>::value == true, "");
6236 static_assert(is_same<int, decltype(av)>::value == true, "");
6237 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6238 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6239 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6240 return (sumf > 0.0) ? sumi : add(c, v);
6241 }
6242
6243 }
6244
6245 namespace test_noexcept
6246 {
6247
6248 int f() { return 0; }
6249 int g() noexcept { return 0; }
6250
6251 static_assert(noexcept(f()) == false, "");
6252 static_assert(noexcept(g()) == true, "");
6253
6254 }
6255
6256 namespace test_constexpr
6257 {
6258
6259 template < typename CharT >
6260 unsigned long constexpr
6261 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6262 {
6263 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6264 }
6265
6266 template < typename CharT >
6267 unsigned long constexpr
6268 strlen_c(const CharT *const s) noexcept
6269 {
6270 return strlen_c_r(s, 0UL);
6271 }
6272
6273 static_assert(strlen_c("") == 0UL, "");
6274 static_assert(strlen_c("1") == 1UL, "");
6275 static_assert(strlen_c("example") == 7UL, "");
6276 static_assert(strlen_c("another\0example") == 7UL, "");
6277
6278 }
6279
6280 namespace test_rvalue_references
6281 {
6282
6283 template < int N >
6284 struct answer
6285 {
6286 static constexpr int value = N;
6287 };
6288
6289 answer<1> f(int&) { return answer<1>(); }
6290 answer<2> f(const int&) { return answer<2>(); }
6291 answer<3> f(int&&) { return answer<3>(); }
6292
6293 void
6294 test()
6295 {
6296 int i = 0;
6297 const int c = 0;
6298 static_assert(decltype(f(i))::value == 1, "");
6299 static_assert(decltype(f(c))::value == 2, "");
6300 static_assert(decltype(f(0))::value == 3, "");
6301 }
6302
6303 }
6304
6305 namespace test_uniform_initialization
6306 {
6307
6308 struct test
6309 {
6310 static const int zero {};
6311 static const int one {1};
6312 };
6313
6314 static_assert(test::zero == 0, "");
6315 static_assert(test::one == 1, "");
6316
6317 }
6318
6319 namespace test_lambdas
6320 {
6321
6322 void
6323 test1()
6324 {
6325 auto lambda1 = [](){};
6326 auto lambda2 = lambda1;
6327 lambda1();
6328 lambda2();
6329 }
6330
6331 int
6332 test2()
6333 {
6334 auto a = [](int i, int j){ return i + j; }(1, 2);
6335 auto b = []() -> int { return '0'; }();
6336 auto c = [=](){ return a + b; }();
6337 auto d = [&](){ return c; }();
6338 auto e = [a, &b](int x) mutable {
6339 const auto identity = [](int y){ return y; };
6340 for (auto i = 0; i < a; ++i)
6341 a += b--;
6342 return x + identity(a + b);
6343 }(0);
6344 return a + b + c + d + e;
6345 }
6346
6347 int
6348 test3()
6349 {
6350 const auto nullary = [](){ return 0; };
6351 const auto unary = [](int x){ return x; };
6352 using nullary_t = decltype(nullary);
6353 using unary_t = decltype(unary);
6354 const auto higher1st = [](nullary_t f){ return f(); };
6355 const auto higher2nd = [unary](nullary_t f1){
6356 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6357 };
6358 return higher1st(nullary) + higher2nd(nullary)(unary);
6359 }
6360
6361 }
6362
6363 namespace test_variadic_templates
6364 {
6365
6366 template <int...>
6367 struct sum;
6368
6369 template <int N0, int... N1toN>
6370 struct sum<N0, N1toN...>
6371 {
6372 static constexpr auto value = N0 + sum<N1toN...>::value;
6373 };
6374
6375 template <>
6376 struct sum<>
6377 {
6378 static constexpr auto value = 0;
6379 };
6380
6381 static_assert(sum<>::value == 0, "");
6382 static_assert(sum<1>::value == 1, "");
6383 static_assert(sum<23>::value == 23, "");
6384 static_assert(sum<1, 2>::value == 3, "");
6385 static_assert(sum<5, 5, 11>::value == 21, "");
6386 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6387
6388 }
6389
6390 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6391 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6392 // because of this.
6393 namespace test_template_alias_sfinae
6394 {
6395
6396 struct foo {};
6397
6398 template<typename T>
6399 using member = typename T::member_type;
6400
6401 template<typename T>
6402 void func(...) {}
6403
6404 template<typename T>
6405 void func(member<T>*) {}
6406
6407 void test();
6408
6409 void test() { func<foo>(0); }
6410
6411 }
6412
6413 } // namespace cxx11
6414
6415 #endif // __cplusplus >= 201103L
6416
6417
6418
6419 _ACEOF
6420 if ac_fn_cxx_try_compile "$LINENO"; then :
6421 eval $cachevar=yes
6422 else
6423 eval $cachevar=no
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 CXX="$ac_save_CXX"
6427 fi
6428 eval ac_res=\$$cachevar
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6430 $as_echo "$ac_res" >&6; }
6431 if eval test x\$$cachevar = xyes; then
6432 CXX="$CXX $switch"
6433 if test -n "$CXXCPP" ; then
6434 CXXCPP="$CXXCPP $switch"
6435 fi
6436 ac_success=yes
6437 break
6438 fi
6439 done
6440 fi
6441
6442 if test x$ac_success = xno; then
6443 for alternative in ${ax_cxx_compile_alternatives}; do
6444 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6445 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6447 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6448 if eval \${$cachevar+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 ac_save_CXX="$CXX"
6452 CXX="$CXX $switch"
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455
6456
6457 // If the compiler admits that it is not ready for C++11, why torture it?
6458 // Hopefully, this will speed up the test.
6459
6460 #ifndef __cplusplus
6461
6462 #error "This is not a C++ compiler"
6463
6464 #elif __cplusplus < 201103L
6465
6466 #error "This is not a C++11 compiler"
6467
6468 #else
6469
6470 namespace cxx11
6471 {
6472
6473 namespace test_static_assert
6474 {
6475
6476 template <typename T>
6477 struct check
6478 {
6479 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6480 };
6481
6482 }
6483
6484 namespace test_final_override
6485 {
6486
6487 struct Base
6488 {
6489 virtual ~Base() {}
6490 virtual void f() {}
6491 };
6492
6493 struct Derived : public Base
6494 {
6495 virtual ~Derived() override {}
6496 virtual void f() override {}
6497 };
6498
6499 }
6500
6501 namespace test_double_right_angle_brackets
6502 {
6503
6504 template < typename T >
6505 struct check {};
6506
6507 typedef check<void> single_type;
6508 typedef check<check<void>> double_type;
6509 typedef check<check<check<void>>> triple_type;
6510 typedef check<check<check<check<void>>>> quadruple_type;
6511
6512 }
6513
6514 namespace test_decltype
6515 {
6516
6517 int
6518 f()
6519 {
6520 int a = 1;
6521 decltype(a) b = 2;
6522 return a + b;
6523 }
6524
6525 }
6526
6527 namespace test_type_deduction
6528 {
6529
6530 template < typename T1, typename T2 >
6531 struct is_same
6532 {
6533 static const bool value = false;
6534 };
6535
6536 template < typename T >
6537 struct is_same<T, T>
6538 {
6539 static const bool value = true;
6540 };
6541
6542 template < typename T1, typename T2 >
6543 auto
6544 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6545 {
6546 return a1 + a2;
6547 }
6548
6549 int
6550 test(const int c, volatile int v)
6551 {
6552 static_assert(is_same<int, decltype(0)>::value == true, "");
6553 static_assert(is_same<int, decltype(c)>::value == false, "");
6554 static_assert(is_same<int, decltype(v)>::value == false, "");
6555 auto ac = c;
6556 auto av = v;
6557 auto sumi = ac + av + 'x';
6558 auto sumf = ac + av + 1.0;
6559 static_assert(is_same<int, decltype(ac)>::value == true, "");
6560 static_assert(is_same<int, decltype(av)>::value == true, "");
6561 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6562 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6563 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6564 return (sumf > 0.0) ? sumi : add(c, v);
6565 }
6566
6567 }
6568
6569 namespace test_noexcept
6570 {
6571
6572 int f() { return 0; }
6573 int g() noexcept { return 0; }
6574
6575 static_assert(noexcept(f()) == false, "");
6576 static_assert(noexcept(g()) == true, "");
6577
6578 }
6579
6580 namespace test_constexpr
6581 {
6582
6583 template < typename CharT >
6584 unsigned long constexpr
6585 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6586 {
6587 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6588 }
6589
6590 template < typename CharT >
6591 unsigned long constexpr
6592 strlen_c(const CharT *const s) noexcept
6593 {
6594 return strlen_c_r(s, 0UL);
6595 }
6596
6597 static_assert(strlen_c("") == 0UL, "");
6598 static_assert(strlen_c("1") == 1UL, "");
6599 static_assert(strlen_c("example") == 7UL, "");
6600 static_assert(strlen_c("another\0example") == 7UL, "");
6601
6602 }
6603
6604 namespace test_rvalue_references
6605 {
6606
6607 template < int N >
6608 struct answer
6609 {
6610 static constexpr int value = N;
6611 };
6612
6613 answer<1> f(int&) { return answer<1>(); }
6614 answer<2> f(const int&) { return answer<2>(); }
6615 answer<3> f(int&&) { return answer<3>(); }
6616
6617 void
6618 test()
6619 {
6620 int i = 0;
6621 const int c = 0;
6622 static_assert(decltype(f(i))::value == 1, "");
6623 static_assert(decltype(f(c))::value == 2, "");
6624 static_assert(decltype(f(0))::value == 3, "");
6625 }
6626
6627 }
6628
6629 namespace test_uniform_initialization
6630 {
6631
6632 struct test
6633 {
6634 static const int zero {};
6635 static const int one {1};
6636 };
6637
6638 static_assert(test::zero == 0, "");
6639 static_assert(test::one == 1, "");
6640
6641 }
6642
6643 namespace test_lambdas
6644 {
6645
6646 void
6647 test1()
6648 {
6649 auto lambda1 = [](){};
6650 auto lambda2 = lambda1;
6651 lambda1();
6652 lambda2();
6653 }
6654
6655 int
6656 test2()
6657 {
6658 auto a = [](int i, int j){ return i + j; }(1, 2);
6659 auto b = []() -> int { return '0'; }();
6660 auto c = [=](){ return a + b; }();
6661 auto d = [&](){ return c; }();
6662 auto e = [a, &b](int x) mutable {
6663 const auto identity = [](int y){ return y; };
6664 for (auto i = 0; i < a; ++i)
6665 a += b--;
6666 return x + identity(a + b);
6667 }(0);
6668 return a + b + c + d + e;
6669 }
6670
6671 int
6672 test3()
6673 {
6674 const auto nullary = [](){ return 0; };
6675 const auto unary = [](int x){ return x; };
6676 using nullary_t = decltype(nullary);
6677 using unary_t = decltype(unary);
6678 const auto higher1st = [](nullary_t f){ return f(); };
6679 const auto higher2nd = [unary](nullary_t f1){
6680 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6681 };
6682 return higher1st(nullary) + higher2nd(nullary)(unary);
6683 }
6684
6685 }
6686
6687 namespace test_variadic_templates
6688 {
6689
6690 template <int...>
6691 struct sum;
6692
6693 template <int N0, int... N1toN>
6694 struct sum<N0, N1toN...>
6695 {
6696 static constexpr auto value = N0 + sum<N1toN...>::value;
6697 };
6698
6699 template <>
6700 struct sum<>
6701 {
6702 static constexpr auto value = 0;
6703 };
6704
6705 static_assert(sum<>::value == 0, "");
6706 static_assert(sum<1>::value == 1, "");
6707 static_assert(sum<23>::value == 23, "");
6708 static_assert(sum<1, 2>::value == 3, "");
6709 static_assert(sum<5, 5, 11>::value == 21, "");
6710 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6711
6712 }
6713
6714 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6715 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6716 // because of this.
6717 namespace test_template_alias_sfinae
6718 {
6719
6720 struct foo {};
6721
6722 template<typename T>
6723 using member = typename T::member_type;
6724
6725 template<typename T>
6726 void func(...) {}
6727
6728 template<typename T>
6729 void func(member<T>*) {}
6730
6731 void test();
6732
6733 void test() { func<foo>(0); }
6734
6735 }
6736
6737 } // namespace cxx11
6738
6739 #endif // __cplusplus >= 201103L
6740
6741
6742
6743 _ACEOF
6744 if ac_fn_cxx_try_compile "$LINENO"; then :
6745 eval $cachevar=yes
6746 else
6747 eval $cachevar=no
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 CXX="$ac_save_CXX"
6751 fi
6752 eval ac_res=\$$cachevar
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6754 $as_echo "$ac_res" >&6; }
6755 if eval test x\$$cachevar = xyes; then
6756 CXX="$CXX $switch"
6757 if test -n "$CXXCPP" ; then
6758 CXXCPP="$CXXCPP $switch"
6759 fi
6760 ac_success=yes
6761 break
6762 fi
6763 done
6764 if test x$ac_success = xyes; then
6765 break
6766 fi
6767 done
6768 fi
6769
6770 ac_ext=c
6771 ac_cpp='$CPP $CPPFLAGS'
6772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6775
6776 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6777 if test x$ac_success = xno; then
6778 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6779 fi
6780 fi
6781 if test x$ac_success = xno; then
6782 HAVE_CXX11=0
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6784 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6785 else
6786 HAVE_CXX11=1
6787
6788 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6789
6790 fi
6791
6792
6793
6794 if test "${build}" != "${host}"; then
6795 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6796 ac_ext=cpp
6797 ac_cpp='$CXXCPP $CPPFLAGS'
6798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6801 ac_success=no
6802 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6803 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6804 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6805 CXX="$CXX_FOR_BUILD"
6806 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6807 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6809 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6810 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815
6816
6817 // If the compiler admits that it is not ready for C++11, why torture it?
6818 // Hopefully, this will speed up the test.
6819
6820 #ifndef __cplusplus
6821
6822 #error "This is not a C++ compiler"
6823
6824 #elif __cplusplus < 201103L
6825
6826 #error "This is not a C++11 compiler"
6827
6828 #else
6829
6830 namespace cxx11
6831 {
6832
6833 namespace test_static_assert
6834 {
6835
6836 template <typename T>
6837 struct check
6838 {
6839 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6840 };
6841
6842 }
6843
6844 namespace test_final_override
6845 {
6846
6847 struct Base
6848 {
6849 virtual ~Base() {}
6850 virtual void f() {}
6851 };
6852
6853 struct Derived : public Base
6854 {
6855 virtual ~Derived() override {}
6856 virtual void f() override {}
6857 };
6858
6859 }
6860
6861 namespace test_double_right_angle_brackets
6862 {
6863
6864 template < typename T >
6865 struct check {};
6866
6867 typedef check<void> single_type;
6868 typedef check<check<void>> double_type;
6869 typedef check<check<check<void>>> triple_type;
6870 typedef check<check<check<check<void>>>> quadruple_type;
6871
6872 }
6873
6874 namespace test_decltype
6875 {
6876
6877 int
6878 f()
6879 {
6880 int a = 1;
6881 decltype(a) b = 2;
6882 return a + b;
6883 }
6884
6885 }
6886
6887 namespace test_type_deduction
6888 {
6889
6890 template < typename T1, typename T2 >
6891 struct is_same
6892 {
6893 static const bool value = false;
6894 };
6895
6896 template < typename T >
6897 struct is_same<T, T>
6898 {
6899 static const bool value = true;
6900 };
6901
6902 template < typename T1, typename T2 >
6903 auto
6904 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6905 {
6906 return a1 + a2;
6907 }
6908
6909 int
6910 test(const int c, volatile int v)
6911 {
6912 static_assert(is_same<int, decltype(0)>::value == true, "");
6913 static_assert(is_same<int, decltype(c)>::value == false, "");
6914 static_assert(is_same<int, decltype(v)>::value == false, "");
6915 auto ac = c;
6916 auto av = v;
6917 auto sumi = ac + av + 'x';
6918 auto sumf = ac + av + 1.0;
6919 static_assert(is_same<int, decltype(ac)>::value == true, "");
6920 static_assert(is_same<int, decltype(av)>::value == true, "");
6921 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6922 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6923 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6924 return (sumf > 0.0) ? sumi : add(c, v);
6925 }
6926
6927 }
6928
6929 namespace test_noexcept
6930 {
6931
6932 int f() { return 0; }
6933 int g() noexcept { return 0; }
6934
6935 static_assert(noexcept(f()) == false, "");
6936 static_assert(noexcept(g()) == true, "");
6937
6938 }
6939
6940 namespace test_constexpr
6941 {
6942
6943 template < typename CharT >
6944 unsigned long constexpr
6945 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6946 {
6947 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6948 }
6949
6950 template < typename CharT >
6951 unsigned long constexpr
6952 strlen_c(const CharT *const s) noexcept
6953 {
6954 return strlen_c_r(s, 0UL);
6955 }
6956
6957 static_assert(strlen_c("") == 0UL, "");
6958 static_assert(strlen_c("1") == 1UL, "");
6959 static_assert(strlen_c("example") == 7UL, "");
6960 static_assert(strlen_c("another\0example") == 7UL, "");
6961
6962 }
6963
6964 namespace test_rvalue_references
6965 {
6966
6967 template < int N >
6968 struct answer
6969 {
6970 static constexpr int value = N;
6971 };
6972
6973 answer<1> f(int&) { return answer<1>(); }
6974 answer<2> f(const int&) { return answer<2>(); }
6975 answer<3> f(int&&) { return answer<3>(); }
6976
6977 void
6978 test()
6979 {
6980 int i = 0;
6981 const int c = 0;
6982 static_assert(decltype(f(i))::value == 1, "");
6983 static_assert(decltype(f(c))::value == 2, "");
6984 static_assert(decltype(f(0))::value == 3, "");
6985 }
6986
6987 }
6988
6989 namespace test_uniform_initialization
6990 {
6991
6992 struct test
6993 {
6994 static const int zero {};
6995 static const int one {1};
6996 };
6997
6998 static_assert(test::zero == 0, "");
6999 static_assert(test::one == 1, "");
7000
7001 }
7002
7003 namespace test_lambdas
7004 {
7005
7006 void
7007 test1()
7008 {
7009 auto lambda1 = [](){};
7010 auto lambda2 = lambda1;
7011 lambda1();
7012 lambda2();
7013 }
7014
7015 int
7016 test2()
7017 {
7018 auto a = [](int i, int j){ return i + j; }(1, 2);
7019 auto b = []() -> int { return '0'; }();
7020 auto c = [=](){ return a + b; }();
7021 auto d = [&](){ return c; }();
7022 auto e = [a, &b](int x) mutable {
7023 const auto identity = [](int y){ return y; };
7024 for (auto i = 0; i < a; ++i)
7025 a += b--;
7026 return x + identity(a + b);
7027 }(0);
7028 return a + b + c + d + e;
7029 }
7030
7031 int
7032 test3()
7033 {
7034 const auto nullary = [](){ return 0; };
7035 const auto unary = [](int x){ return x; };
7036 using nullary_t = decltype(nullary);
7037 using unary_t = decltype(unary);
7038 const auto higher1st = [](nullary_t f){ return f(); };
7039 const auto higher2nd = [unary](nullary_t f1){
7040 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7041 };
7042 return higher1st(nullary) + higher2nd(nullary)(unary);
7043 }
7044
7045 }
7046
7047 namespace test_variadic_templates
7048 {
7049
7050 template <int...>
7051 struct sum;
7052
7053 template <int N0, int... N1toN>
7054 struct sum<N0, N1toN...>
7055 {
7056 static constexpr auto value = N0 + sum<N1toN...>::value;
7057 };
7058
7059 template <>
7060 struct sum<>
7061 {
7062 static constexpr auto value = 0;
7063 };
7064
7065 static_assert(sum<>::value == 0, "");
7066 static_assert(sum<1>::value == 1, "");
7067 static_assert(sum<23>::value == 23, "");
7068 static_assert(sum<1, 2>::value == 3, "");
7069 static_assert(sum<5, 5, 11>::value == 21, "");
7070 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7071
7072 }
7073
7074 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7075 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7076 // because of this.
7077 namespace test_template_alias_sfinae
7078 {
7079
7080 struct foo {};
7081
7082 template<typename T>
7083 using member = typename T::member_type;
7084
7085 template<typename T>
7086 void func(...) {}
7087
7088 template<typename T>
7089 void func(member<T>*) {}
7090
7091 void test();
7092
7093 void test() { func<foo>(0); }
7094
7095 }
7096
7097 } // namespace cxx11
7098
7099 #endif // __cplusplus >= 201103L
7100
7101
7102
7103 _ACEOF
7104 if ac_fn_cxx_try_compile "$LINENO"; then :
7105 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7106 else
7107 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7112 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7113 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7114 ac_success=yes
7115 fi
7116
7117 if test x$ac_success = xno; then
7118 for alternative in ${ax_cxx_compile_alternatives}; do
7119 switch="-std=gnu++${alternative}"
7120 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7122 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7123 if eval \${$cachevar+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 ac_save_CXX="$CXX"
7127 CXX="$CXX $switch"
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130
7131
7132 // If the compiler admits that it is not ready for C++11, why torture it?
7133 // Hopefully, this will speed up the test.
7134
7135 #ifndef __cplusplus
7136
7137 #error "This is not a C++ compiler"
7138
7139 #elif __cplusplus < 201103L
7140
7141 #error "This is not a C++11 compiler"
7142
7143 #else
7144
7145 namespace cxx11
7146 {
7147
7148 namespace test_static_assert
7149 {
7150
7151 template <typename T>
7152 struct check
7153 {
7154 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7155 };
7156
7157 }
7158
7159 namespace test_final_override
7160 {
7161
7162 struct Base
7163 {
7164 virtual ~Base() {}
7165 virtual void f() {}
7166 };
7167
7168 struct Derived : public Base
7169 {
7170 virtual ~Derived() override {}
7171 virtual void f() override {}
7172 };
7173
7174 }
7175
7176 namespace test_double_right_angle_brackets
7177 {
7178
7179 template < typename T >
7180 struct check {};
7181
7182 typedef check<void> single_type;
7183 typedef check<check<void>> double_type;
7184 typedef check<check<check<void>>> triple_type;
7185 typedef check<check<check<check<void>>>> quadruple_type;
7186
7187 }
7188
7189 namespace test_decltype
7190 {
7191
7192 int
7193 f()
7194 {
7195 int a = 1;
7196 decltype(a) b = 2;
7197 return a + b;
7198 }
7199
7200 }
7201
7202 namespace test_type_deduction
7203 {
7204
7205 template < typename T1, typename T2 >
7206 struct is_same
7207 {
7208 static const bool value = false;
7209 };
7210
7211 template < typename T >
7212 struct is_same<T, T>
7213 {
7214 static const bool value = true;
7215 };
7216
7217 template < typename T1, typename T2 >
7218 auto
7219 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7220 {
7221 return a1 + a2;
7222 }
7223
7224 int
7225 test(const int c, volatile int v)
7226 {
7227 static_assert(is_same<int, decltype(0)>::value == true, "");
7228 static_assert(is_same<int, decltype(c)>::value == false, "");
7229 static_assert(is_same<int, decltype(v)>::value == false, "");
7230 auto ac = c;
7231 auto av = v;
7232 auto sumi = ac + av + 'x';
7233 auto sumf = ac + av + 1.0;
7234 static_assert(is_same<int, decltype(ac)>::value == true, "");
7235 static_assert(is_same<int, decltype(av)>::value == true, "");
7236 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7237 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7238 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7239 return (sumf > 0.0) ? sumi : add(c, v);
7240 }
7241
7242 }
7243
7244 namespace test_noexcept
7245 {
7246
7247 int f() { return 0; }
7248 int g() noexcept { return 0; }
7249
7250 static_assert(noexcept(f()) == false, "");
7251 static_assert(noexcept(g()) == true, "");
7252
7253 }
7254
7255 namespace test_constexpr
7256 {
7257
7258 template < typename CharT >
7259 unsigned long constexpr
7260 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7261 {
7262 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7263 }
7264
7265 template < typename CharT >
7266 unsigned long constexpr
7267 strlen_c(const CharT *const s) noexcept
7268 {
7269 return strlen_c_r(s, 0UL);
7270 }
7271
7272 static_assert(strlen_c("") == 0UL, "");
7273 static_assert(strlen_c("1") == 1UL, "");
7274 static_assert(strlen_c("example") == 7UL, "");
7275 static_assert(strlen_c("another\0example") == 7UL, "");
7276
7277 }
7278
7279 namespace test_rvalue_references
7280 {
7281
7282 template < int N >
7283 struct answer
7284 {
7285 static constexpr int value = N;
7286 };
7287
7288 answer<1> f(int&) { return answer<1>(); }
7289 answer<2> f(const int&) { return answer<2>(); }
7290 answer<3> f(int&&) { return answer<3>(); }
7291
7292 void
7293 test()
7294 {
7295 int i = 0;
7296 const int c = 0;
7297 static_assert(decltype(f(i))::value == 1, "");
7298 static_assert(decltype(f(c))::value == 2, "");
7299 static_assert(decltype(f(0))::value == 3, "");
7300 }
7301
7302 }
7303
7304 namespace test_uniform_initialization
7305 {
7306
7307 struct test
7308 {
7309 static const int zero {};
7310 static const int one {1};
7311 };
7312
7313 static_assert(test::zero == 0, "");
7314 static_assert(test::one == 1, "");
7315
7316 }
7317
7318 namespace test_lambdas
7319 {
7320
7321 void
7322 test1()
7323 {
7324 auto lambda1 = [](){};
7325 auto lambda2 = lambda1;
7326 lambda1();
7327 lambda2();
7328 }
7329
7330 int
7331 test2()
7332 {
7333 auto a = [](int i, int j){ return i + j; }(1, 2);
7334 auto b = []() -> int { return '0'; }();
7335 auto c = [=](){ return a + b; }();
7336 auto d = [&](){ return c; }();
7337 auto e = [a, &b](int x) mutable {
7338 const auto identity = [](int y){ return y; };
7339 for (auto i = 0; i < a; ++i)
7340 a += b--;
7341 return x + identity(a + b);
7342 }(0);
7343 return a + b + c + d + e;
7344 }
7345
7346 int
7347 test3()
7348 {
7349 const auto nullary = [](){ return 0; };
7350 const auto unary = [](int x){ return x; };
7351 using nullary_t = decltype(nullary);
7352 using unary_t = decltype(unary);
7353 const auto higher1st = [](nullary_t f){ return f(); };
7354 const auto higher2nd = [unary](nullary_t f1){
7355 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7356 };
7357 return higher1st(nullary) + higher2nd(nullary)(unary);
7358 }
7359
7360 }
7361
7362 namespace test_variadic_templates
7363 {
7364
7365 template <int...>
7366 struct sum;
7367
7368 template <int N0, int... N1toN>
7369 struct sum<N0, N1toN...>
7370 {
7371 static constexpr auto value = N0 + sum<N1toN...>::value;
7372 };
7373
7374 template <>
7375 struct sum<>
7376 {
7377 static constexpr auto value = 0;
7378 };
7379
7380 static_assert(sum<>::value == 0, "");
7381 static_assert(sum<1>::value == 1, "");
7382 static_assert(sum<23>::value == 23, "");
7383 static_assert(sum<1, 2>::value == 3, "");
7384 static_assert(sum<5, 5, 11>::value == 21, "");
7385 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7386
7387 }
7388
7389 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7390 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7391 // because of this.
7392 namespace test_template_alias_sfinae
7393 {
7394
7395 struct foo {};
7396
7397 template<typename T>
7398 using member = typename T::member_type;
7399
7400 template<typename T>
7401 void func(...) {}
7402
7403 template<typename T>
7404 void func(member<T>*) {}
7405
7406 void test();
7407
7408 void test() { func<foo>(0); }
7409
7410 }
7411
7412 } // namespace cxx11
7413
7414 #endif // __cplusplus >= 201103L
7415
7416
7417
7418 _ACEOF
7419 if ac_fn_cxx_try_compile "$LINENO"; then :
7420 eval $cachevar=yes
7421 else
7422 eval $cachevar=no
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 CXX="$ac_save_CXX"
7426 fi
7427 eval ac_res=\$$cachevar
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7429 $as_echo "$ac_res" >&6; }
7430 if eval test x\$$cachevar = xyes; then
7431 CXX="$CXX $switch"
7432 if test -n "$CXXCPP" ; then
7433 CXXCPP="$CXXCPP $switch"
7434 fi
7435 ac_success=yes
7436 break
7437 fi
7438 done
7439 fi
7440
7441 if test x$ac_success = xno; then
7442 for alternative in ${ax_cxx_compile_alternatives}; do
7443 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7444 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7446 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7447 if eval \${$cachevar+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 ac_save_CXX="$CXX"
7451 CXX="$CXX $switch"
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454
7455
7456 // If the compiler admits that it is not ready for C++11, why torture it?
7457 // Hopefully, this will speed up the test.
7458
7459 #ifndef __cplusplus
7460
7461 #error "This is not a C++ compiler"
7462
7463 #elif __cplusplus < 201103L
7464
7465 #error "This is not a C++11 compiler"
7466
7467 #else
7468
7469 namespace cxx11
7470 {
7471
7472 namespace test_static_assert
7473 {
7474
7475 template <typename T>
7476 struct check
7477 {
7478 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7479 };
7480
7481 }
7482
7483 namespace test_final_override
7484 {
7485
7486 struct Base
7487 {
7488 virtual ~Base() {}
7489 virtual void f() {}
7490 };
7491
7492 struct Derived : public Base
7493 {
7494 virtual ~Derived() override {}
7495 virtual void f() override {}
7496 };
7497
7498 }
7499
7500 namespace test_double_right_angle_brackets
7501 {
7502
7503 template < typename T >
7504 struct check {};
7505
7506 typedef check<void> single_type;
7507 typedef check<check<void>> double_type;
7508 typedef check<check<check<void>>> triple_type;
7509 typedef check<check<check<check<void>>>> quadruple_type;
7510
7511 }
7512
7513 namespace test_decltype
7514 {
7515
7516 int
7517 f()
7518 {
7519 int a = 1;
7520 decltype(a) b = 2;
7521 return a + b;
7522 }
7523
7524 }
7525
7526 namespace test_type_deduction
7527 {
7528
7529 template < typename T1, typename T2 >
7530 struct is_same
7531 {
7532 static const bool value = false;
7533 };
7534
7535 template < typename T >
7536 struct is_same<T, T>
7537 {
7538 static const bool value = true;
7539 };
7540
7541 template < typename T1, typename T2 >
7542 auto
7543 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7544 {
7545 return a1 + a2;
7546 }
7547
7548 int
7549 test(const int c, volatile int v)
7550 {
7551 static_assert(is_same<int, decltype(0)>::value == true, "");
7552 static_assert(is_same<int, decltype(c)>::value == false, "");
7553 static_assert(is_same<int, decltype(v)>::value == false, "");
7554 auto ac = c;
7555 auto av = v;
7556 auto sumi = ac + av + 'x';
7557 auto sumf = ac + av + 1.0;
7558 static_assert(is_same<int, decltype(ac)>::value == true, "");
7559 static_assert(is_same<int, decltype(av)>::value == true, "");
7560 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7561 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7562 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7563 return (sumf > 0.0) ? sumi : add(c, v);
7564 }
7565
7566 }
7567
7568 namespace test_noexcept
7569 {
7570
7571 int f() { return 0; }
7572 int g() noexcept { return 0; }
7573
7574 static_assert(noexcept(f()) == false, "");
7575 static_assert(noexcept(g()) == true, "");
7576
7577 }
7578
7579 namespace test_constexpr
7580 {
7581
7582 template < typename CharT >
7583 unsigned long constexpr
7584 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7585 {
7586 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7587 }
7588
7589 template < typename CharT >
7590 unsigned long constexpr
7591 strlen_c(const CharT *const s) noexcept
7592 {
7593 return strlen_c_r(s, 0UL);
7594 }
7595
7596 static_assert(strlen_c("") == 0UL, "");
7597 static_assert(strlen_c("1") == 1UL, "");
7598 static_assert(strlen_c("example") == 7UL, "");
7599 static_assert(strlen_c("another\0example") == 7UL, "");
7600
7601 }
7602
7603 namespace test_rvalue_references
7604 {
7605
7606 template < int N >
7607 struct answer
7608 {
7609 static constexpr int value = N;
7610 };
7611
7612 answer<1> f(int&) { return answer<1>(); }
7613 answer<2> f(const int&) { return answer<2>(); }
7614 answer<3> f(int&&) { return answer<3>(); }
7615
7616 void
7617 test()
7618 {
7619 int i = 0;
7620 const int c = 0;
7621 static_assert(decltype(f(i))::value == 1, "");
7622 static_assert(decltype(f(c))::value == 2, "");
7623 static_assert(decltype(f(0))::value == 3, "");
7624 }
7625
7626 }
7627
7628 namespace test_uniform_initialization
7629 {
7630
7631 struct test
7632 {
7633 static const int zero {};
7634 static const int one {1};
7635 };
7636
7637 static_assert(test::zero == 0, "");
7638 static_assert(test::one == 1, "");
7639
7640 }
7641
7642 namespace test_lambdas
7643 {
7644
7645 void
7646 test1()
7647 {
7648 auto lambda1 = [](){};
7649 auto lambda2 = lambda1;
7650 lambda1();
7651 lambda2();
7652 }
7653
7654 int
7655 test2()
7656 {
7657 auto a = [](int i, int j){ return i + j; }(1, 2);
7658 auto b = []() -> int { return '0'; }();
7659 auto c = [=](){ return a + b; }();
7660 auto d = [&](){ return c; }();
7661 auto e = [a, &b](int x) mutable {
7662 const auto identity = [](int y){ return y; };
7663 for (auto i = 0; i < a; ++i)
7664 a += b--;
7665 return x + identity(a + b);
7666 }(0);
7667 return a + b + c + d + e;
7668 }
7669
7670 int
7671 test3()
7672 {
7673 const auto nullary = [](){ return 0; };
7674 const auto unary = [](int x){ return x; };
7675 using nullary_t = decltype(nullary);
7676 using unary_t = decltype(unary);
7677 const auto higher1st = [](nullary_t f){ return f(); };
7678 const auto higher2nd = [unary](nullary_t f1){
7679 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7680 };
7681 return higher1st(nullary) + higher2nd(nullary)(unary);
7682 }
7683
7684 }
7685
7686 namespace test_variadic_templates
7687 {
7688
7689 template <int...>
7690 struct sum;
7691
7692 template <int N0, int... N1toN>
7693 struct sum<N0, N1toN...>
7694 {
7695 static constexpr auto value = N0 + sum<N1toN...>::value;
7696 };
7697
7698 template <>
7699 struct sum<>
7700 {
7701 static constexpr auto value = 0;
7702 };
7703
7704 static_assert(sum<>::value == 0, "");
7705 static_assert(sum<1>::value == 1, "");
7706 static_assert(sum<23>::value == 23, "");
7707 static_assert(sum<1, 2>::value == 3, "");
7708 static_assert(sum<5, 5, 11>::value == 21, "");
7709 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7710
7711 }
7712
7713 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7714 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7715 // because of this.
7716 namespace test_template_alias_sfinae
7717 {
7718
7719 struct foo {};
7720
7721 template<typename T>
7722 using member = typename T::member_type;
7723
7724 template<typename T>
7725 void func(...) {}
7726
7727 template<typename T>
7728 void func(member<T>*) {}
7729
7730 void test();
7731
7732 void test() { func<foo>(0); }
7733
7734 }
7735
7736 } // namespace cxx11
7737
7738 #endif // __cplusplus >= 201103L
7739
7740
7741
7742 _ACEOF
7743 if ac_fn_cxx_try_compile "$LINENO"; then :
7744 eval $cachevar=yes
7745 else
7746 eval $cachevar=no
7747 fi
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 CXX="$ac_save_CXX"
7750 fi
7751 eval ac_res=\$$cachevar
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7753 $as_echo "$ac_res" >&6; }
7754 if eval test x\$$cachevar = xyes; then
7755 CXX="$CXX $switch"
7756 if test -n "$CXXCPP" ; then
7757 CXXCPP="$CXXCPP $switch"
7758 fi
7759 ac_success=yes
7760 break
7761 fi
7762 done
7763 if test x$ac_success = xyes; then
7764 break
7765 fi
7766 done
7767 fi
7768 CXX_FOR_BUILD="$CXX"
7769 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7770 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7771 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7772 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7773 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7774 ac_ext=c
7775 ac_cpp='$CPP $CPPFLAGS'
7776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779
7780 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7781 if test x$ac_success = xno; then
7782 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7783 fi
7784 fi
7785 if test x$ac_success = xno; then
7786 HAVE_CXX11_FOR_BUILD=0
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7788 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7789 else
7790 HAVE_CXX11_FOR_BUILD=1
7791
7792 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7793
7794 fi
7795
7796
7797 fi
7798 fi
7799
7800 # Check whether --enable-pgo-build was given.
7801 if test "${enable_pgo_build+set}" = set; then :
7802 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7803 else
7804 enable_pgo_build=no
7805 fi
7806
7807
7808 # Issue errors and warnings for invalid/strange PGO build combinations.
7809 case "$have_compiler:$host:$target:$enable_pgo_build" in
7810 *:*:*:no) ;;
7811
7812 # Allow the PGO build only if we aren't building a compiler and
7813 # we are in a native configuration.
7814 no:$build:$build:yes | no:$build:$build:lto) ;;
7815
7816 # Disallow the PGO bootstrap if we are building a compiler.
7817 yes:*:*:yes | yes:*:*:lto)
7818 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7819
7820 *)
7821 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7822 ;;
7823 esac
7824
7825 if test "$enable_pgo_build" != "no"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7827 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7828 old_CFLAGS="$CFLAGS"
7829 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7830 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7831
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 int foo;
7835 _ACEOF
7836 if ac_fn_c_try_compile "$LINENO"; then :
7837
7838 else
7839 PGO_BUILD_GEN_CFLAGS=
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 CFLAGS="$old_CFLAGS"
7843 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7845 $as_echo "yes" >&6; }
7846 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7851 fi
7852
7853 if test "$enable_pgo_build" = "lto"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7855 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7856 old_CFLAGS="$CFLAGS"
7857 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7858 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 int foo;
7862 _ACEOF
7863 if ac_fn_c_try_compile "$LINENO"; then :
7864
7865 else
7866 PGO_BUILD_LTO_CFLAGS=
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 CFLAGS="$old_CFLAGS"
7870 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872 $as_echo "yes" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7877 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7878 fi
7879 fi
7880 fi
7881
7882
7883
7884
7885 # Used for setting $lt_cv_objdir
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7887 $as_echo_n "checking for objdir... " >&6; }
7888 if ${lt_cv_objdir+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 rm -f .libs 2>/dev/null
7892 mkdir .libs 2>/dev/null
7893 if test -d .libs; then
7894 lt_cv_objdir=.libs
7895 else
7896 # MS-DOS does not allow filenames that begin with a dot.
7897 lt_cv_objdir=_libs
7898 fi
7899 rmdir .libs 2>/dev/null
7900 fi
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7902 $as_echo "$lt_cv_objdir" >&6; }
7903 objdir=$lt_cv_objdir
7904
7905
7906
7907
7908
7909 cat >>confdefs.h <<_ACEOF
7910 #define LT_OBJDIR "$lt_cv_objdir/"
7911 _ACEOF
7912
7913
7914
7915 # Check for GMP, MPFR and MPC
7916 require_gmp=no
7917 require_mpc=no
7918 if test -d ${srcdir}/gcc ; then
7919 require_gmp=yes
7920 require_mpc=yes
7921 fi
7922 if test -d ${srcdir}/gdb ; then
7923 if test "x$enable_gdb" != xno; then
7924 require_gmp=yes
7925 fi
7926 fi
7927
7928 gmplibs="-lmpfr -lgmp"
7929 if test x"$require_mpc" = "xyes" ; then
7930 gmplibs="-lmpc $gmplibs"
7931 fi
7932 gmpinc=
7933 have_gmp=no
7934
7935 # Specify a location for mpc
7936 # check for this first so it ends up on the link line before mpfr.
7937
7938 # Check whether --with-mpc was given.
7939 if test "${with_mpc+set}" = set; then :
7940 withval=$with_mpc;
7941 fi
7942
7943
7944 # Check whether --with-mpc-include was given.
7945 if test "${with_mpc_include+set}" = set; then :
7946 withval=$with_mpc_include;
7947 fi
7948
7949
7950 # Check whether --with-mpc-lib was given.
7951 if test "${with_mpc_lib+set}" = set; then :
7952 withval=$with_mpc_lib;
7953 fi
7954
7955
7956 if test "x$with_mpc" != x; then
7957 gmplibs="-L$with_mpc/lib $gmplibs"
7958 gmpinc="-I$with_mpc/include $gmpinc"
7959 fi
7960 if test "x$with_mpc_include" != x; then
7961 gmpinc="-I$with_mpc_include $gmpinc"
7962 fi
7963 if test "x$with_mpc_lib" != x; then
7964 gmplibs="-L$with_mpc_lib $gmplibs"
7965 fi
7966 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7967 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7968 gmpinc='-I$$s/mpc/src '"$gmpinc"
7969 # Do not test the mpc version. Assume that it is sufficient, since
7970 # it is in the source tree, and the library has not been built yet
7971 # but it would be included on the link line in the version check below
7972 # hence making the test fail.
7973 have_gmp=yes
7974 fi
7975
7976 # Specify a location for mpfr
7977 # check for this first so it ends up on the link line before gmp.
7978
7979 # Check whether --with-mpfr was given.
7980 if test "${with_mpfr+set}" = set; then :
7981 withval=$with_mpfr;
7982 fi
7983
7984
7985 # Check whether --with-mpfr-include was given.
7986 if test "${with_mpfr_include+set}" = set; then :
7987 withval=$with_mpfr_include;
7988 fi
7989
7990
7991 # Check whether --with-mpfr-lib was given.
7992 if test "${with_mpfr_lib+set}" = set; then :
7993 withval=$with_mpfr_lib;
7994 fi
7995
7996
7997 if test "x$with_mpfr" != x; then
7998 gmplibs="-L$with_mpfr/lib $gmplibs"
7999 gmpinc="-I$with_mpfr/include $gmpinc"
8000 fi
8001 if test "x$with_mpfr_include" != x; then
8002 gmpinc="-I$with_mpfr_include $gmpinc"
8003 fi
8004 if test "x$with_mpfr_lib" != x; then
8005 gmplibs="-L$with_mpfr_lib $gmplibs"
8006 fi
8007 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8008 # MPFR v3.1.0 moved the sources into a src sub-directory.
8009 if ! test -d ${srcdir}/mpfr/src; then
8010 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8011 fi
8012 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8013 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8014 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8015 # Do not test the mpfr version. Assume that it is sufficient, since
8016 # it is in the source tree, and the library has not been built yet
8017 # but it would be included on the link line in the version check below
8018 # hence making the test fail.
8019 have_gmp=yes
8020 fi
8021
8022 # Specify a location for gmp
8023
8024 # Check whether --with-gmp was given.
8025 if test "${with_gmp+set}" = set; then :
8026 withval=$with_gmp;
8027 fi
8028
8029
8030 # Check whether --with-gmp-include was given.
8031 if test "${with_gmp_include+set}" = set; then :
8032 withval=$with_gmp_include;
8033 fi
8034
8035
8036 # Check whether --with-gmp-lib was given.
8037 if test "${with_gmp_lib+set}" = set; then :
8038 withval=$with_gmp_lib;
8039 fi
8040
8041
8042
8043 if test "x$with_gmp" != x; then
8044 gmplibs="-L$with_gmp/lib $gmplibs"
8045 gmpinc="-I$with_gmp/include $gmpinc"
8046 fi
8047 if test "x$with_gmp_include" != x; then
8048 gmpinc="-I$with_gmp_include $gmpinc"
8049 fi
8050 if test "x$with_gmp_lib" != x; then
8051 gmplibs="-L$with_gmp_lib $gmplibs"
8052 fi
8053 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8054 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8055 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8056 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8057 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8058 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8059 # Do not test the gmp version. Assume that it is sufficient, since
8060 # it is in the source tree, and the library has not been built yet
8061 # but it would be included on the link line in the version check below
8062 # hence making the test fail.
8063 have_gmp=yes
8064 fi
8065
8066 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8067 have_gmp=yes
8068 saved_CFLAGS="$CFLAGS"
8069 CFLAGS="$CFLAGS $gmpinc"
8070 # Check for the recommended and required versions of GMP.
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8072 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #include "gmp.h"
8076 int
8077 main ()
8078 {
8079
8080 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8081 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8082 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8083 choke me
8084 #endif
8085
8086 ;
8087 return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 #include <gmp.h>
8094 int
8095 main ()
8096 {
8097
8098 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8099 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8100 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8101 choke me
8102 #endif
8103
8104 ;
8105 return 0;
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_compile "$LINENO"; then :
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8110 $as_echo "yes" >&6; }
8111 else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8113 $as_echo "buggy but acceptable" >&6; }
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }; have_gmp=no
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121
8122 # If we have GMP, check the MPFR version.
8123 if test x"$have_gmp" = xyes; then
8124 # Check for the recommended and required versions of MPFR.
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8126 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 #include <gmp.h>
8130 #include <mpfr.h>
8131 int
8132 main ()
8133 {
8134
8135 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8136 choke me
8137 #endif
8138
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 if ac_fn_c_try_compile "$LINENO"; then :
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 #include <gmp.h>
8147 #include <mpfr.h>
8148 int
8149 main ()
8150 {
8151
8152 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8153 choke me
8154 #endif
8155
8156 ;
8157 return 0;
8158 }
8159 _ACEOF
8160 if ac_fn_c_try_compile "$LINENO"; then :
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8162 $as_echo "yes" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8165 $as_echo "buggy but acceptable" >&6; }
8166 fi
8167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168 else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }; have_gmp=no
8171 fi
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 fi
8174
8175 # Check for the MPC header version.
8176 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8177 # Check for the recommended and required versions of MPC.
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8179 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8182 #include <mpc.h>
8183 int
8184 main ()
8185 {
8186
8187 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8188 choke me
8189 #endif
8190
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 if ac_fn_c_try_compile "$LINENO"; then :
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 #include <mpc.h>
8199 int
8200 main ()
8201 {
8202
8203 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8204 choke me
8205 #endif
8206
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8213 $as_echo "yes" >&6; }
8214 else
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8216 $as_echo "buggy but acceptable" >&6; }
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }; have_gmp=no
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 fi
8225
8226 # Now check the MPFR library.
8227 if test x"$have_gmp" = xyes; then
8228 saved_LIBS="$LIBS"
8229 LIBS="$LIBS $gmplibs"
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8231 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 #include <mpfr.h>
8235 int
8236 main ()
8237 {
8238
8239 mpfr_t n;
8240 mpfr_t x;
8241 int t;
8242 mpfr_init (n);
8243 mpfr_init (x);
8244 mpfr_atan2 (n, n, x, MPFR_RNDN);
8245 mpfr_erfc (n, x, MPFR_RNDN);
8246 mpfr_subnormalize (x, t, MPFR_RNDN);
8247 mpfr_clear(n);
8248 mpfr_clear(x);
8249
8250 ;
8251 return 0;
8252 }
8253 _ACEOF
8254 if ac_fn_c_try_link "$LINENO"; then :
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8256 $as_echo "yes" >&6; }
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }; have_gmp=no
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 LIBS="$saved_LIBS"
8264 fi
8265
8266 # Now check the MPC library
8267 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8268 saved_LIBS="$LIBS"
8269 LIBS="$LIBS $gmplibs"
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8271 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8274 #include <mpc.h>
8275 int
8276 main ()
8277 {
8278
8279 mpc_t c;
8280 mpc_init2 (c, 53);
8281 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8282 mpc_cosh (c, c, MPC_RNDNN);
8283 mpc_pow (c, c, c, MPC_RNDNN);
8284 mpc_acosh (c, c, MPC_RNDNN);
8285 mpc_clear (c);
8286
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_link "$LINENO"; then :
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8293 $as_echo "yes" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }; have_gmp=no
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext \
8299 conftest$ac_exeext conftest.$ac_ext
8300 LIBS="$saved_LIBS"
8301 fi
8302
8303 CFLAGS="$saved_CFLAGS"
8304
8305 # The library versions listed in the error message below should match
8306 # the HARD-minimums enforced above.
8307 if test x$have_gmp != xyes; then
8308 if test -d ${srcdir}/gcc ; then
8309 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8310 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8311 their locations. Source code for these libraries can be found at
8312 their respective hosting sites as well as at
8313 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8314 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8315 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8316 make sure that you have installed both the libraries and the header
8317 files. They may be located in separate packages." "$LINENO" 5
8318 else
8319 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8320 Try the --with-gmp and/or --with-mpfr options to specify
8321 their locations. If you obtained GMP and/or MPFR from a vendor
8322 distribution package, make sure that you have installed both the libraries
8323 and the header files. They may be located in separate packages." "$LINENO" 5
8324 fi
8325 fi
8326 fi
8327
8328 # Flags needed for both GMP, MPFR and/or MPC.
8329
8330
8331
8332
8333
8334
8335
8336 # Libraries to use for stage1 or when not bootstrapping.
8337
8338 # Check whether --with-stage1-libs was given.
8339 if test "${with_stage1_libs+set}" = set; then :
8340 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8341 stage1_libs=
8342 else
8343 stage1_libs=$withval
8344 fi
8345 else
8346 stage1_libs=
8347 fi
8348
8349
8350
8351 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8352 # default is yes if gcc is being built; no otherwise. The reason for
8353 # this default is that gdb is sometimes linked against GNU Source
8354 # Highlight, which is a shared library that uses C++ exceptions. In
8355 # this case, -static-libstdc++ will cause crashes.
8356
8357 # Check whether --with-static-standard-libraries was given.
8358 if test "${with_static_standard_libraries+set}" = set; then :
8359 withval=$with_static_standard_libraries;
8360 else
8361 with_static_standard_libraries=auto
8362 fi
8363
8364 if test "$with_static_standard_libraries" = auto; then
8365 with_static_standard_libraries=$have_compiler
8366 fi
8367
8368 # Linker flags to use for stage1 or when not bootstrapping.
8369
8370 # Check whether --with-stage1-ldflags was given.
8371 if test "${with_stage1_ldflags+set}" = set; then :
8372 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8373 stage1_ldflags=
8374 else
8375 stage1_ldflags=$withval
8376 fi
8377 else
8378 stage1_ldflags=
8379 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8380 # if supported. But if the user explicitly specified the libraries to use,
8381 # trust that they are doing what they want.
8382 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8383 -a "$have_static_libs" = yes; then
8384 stage1_ldflags="-static-libstdc++ -static-libgcc"
8385 fi
8386 fi
8387
8388
8389
8390 # Libraries to use for stage2 and later builds.
8391
8392 # Check whether --with-boot-libs was given.
8393 if test "${with_boot_libs+set}" = set; then :
8394 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8395 poststage1_libs=
8396 else
8397 poststage1_libs=$withval
8398 fi
8399 else
8400 poststage1_libs=
8401 fi
8402
8403
8404
8405 # Linker flags to use for stage2 and later builds.
8406
8407 # Check whether --with-boot-ldflags was given.
8408 if test "${with_boot_ldflags+set}" = set; then :
8409 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8410 poststage1_ldflags=
8411 else
8412 poststage1_ldflags=$withval
8413 fi
8414 else
8415 poststage1_ldflags=
8416 # In stages 2 and 3, default to linking libstdc++ and libgcc
8417 # statically. But if the user explicitly specified the libraries to
8418 # use, trust that they are doing what they want.
8419 if test "$poststage1_libs" = ""; then
8420 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8421 fi
8422 fi
8423
8424
8425
8426 # GCC GRAPHITE dependency isl.
8427 # Basic setup is inlined here, actual checks are in config/isl.m4
8428
8429
8430 # Check whether --with-isl was given.
8431 if test "${with_isl+set}" = set; then :
8432 withval=$with_isl;
8433 fi
8434
8435
8436 # Treat --without-isl as a request to disable
8437 # GRAPHITE support and skip all following checks.
8438 if test "x$with_isl" != "xno"; then
8439 # Check for isl
8440
8441
8442 # Check whether --with-isl-include was given.
8443 if test "${with_isl_include+set}" = set; then :
8444 withval=$with_isl_include;
8445 fi
8446
8447
8448 # Check whether --with-isl-lib was given.
8449 if test "${with_isl_lib+set}" = set; then :
8450 withval=$with_isl_lib;
8451 fi
8452
8453
8454 # Check whether --enable-isl-version-check was given.
8455 if test "${enable_isl_version_check+set}" = set; then :
8456 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8457 else
8458 ENABLE_ISL_CHECK=yes
8459 fi
8460
8461
8462 # Initialize isllibs and islinc.
8463 case $with_isl in
8464 no)
8465 isllibs=
8466 islinc=
8467 ;;
8468 "" | yes)
8469 ;;
8470 *)
8471 isllibs="-L$with_isl/lib"
8472 islinc="-I$with_isl/include"
8473 ;;
8474 esac
8475 if test "x${with_isl_include}" != x ; then
8476 islinc="-I$with_isl_include"
8477 fi
8478 if test "x${with_isl_lib}" != x; then
8479 isllibs="-L$with_isl_lib"
8480 fi
8481 if test "x${islinc}" = x && test "x${isllibs}" = x \
8482 && test -d ${srcdir}/isl; then
8483 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8484 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8485 ENABLE_ISL_CHECK=no
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8487 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8488 fi
8489
8490 isllibs="${isllibs} -lisl"
8491
8492
8493
8494 if test "${ENABLE_ISL_CHECK}" = yes ; then
8495 _isl_saved_CFLAGS=$CFLAGS
8496 _isl_saved_LDFLAGS=$LDFLAGS
8497 _isl_saved_LIBS=$LIBS
8498
8499 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8500 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8501 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8504 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507 #include <isl/schedule.h>
8508 int
8509 main ()
8510 {
8511 isl_options_set_schedule_serialize_sccs (NULL, 0);
8512 ;
8513 return 0;
8514 }
8515 _ACEOF
8516 if ac_fn_c_try_link "$LINENO"; then :
8517 gcc_cv_isl=yes
8518 else
8519 gcc_cv_isl=no
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8524 $as_echo "$gcc_cv_isl" >&6; }
8525
8526 if test "${gcc_cv_isl}" = no ; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8528 $as_echo "required isl version is 0.15 or later" >&6; }
8529 fi
8530
8531 CFLAGS=$_isl_saved_CFLAGS
8532 LDFLAGS=$_isl_saved_LDFLAGS
8533 LIBS=$_isl_saved_LIBS
8534 fi
8535
8536
8537
8538
8539
8540
8541 if test "x${with_isl}" = xno; then
8542 graphite_requested=no
8543 elif test "x${with_isl}" != x \
8544 || test "x${with_isl_include}" != x \
8545 || test "x${with_isl_lib}" != x ; then
8546 graphite_requested=yes
8547 else
8548 graphite_requested=no
8549 fi
8550
8551
8552
8553 if test "${gcc_cv_isl}" = no ; then
8554 isllibs=
8555 islinc=
8556 fi
8557
8558 if test "${graphite_requested}" = yes \
8559 && test "x${isllibs}" = x \
8560 && test "x${islinc}" = x ; then
8561
8562 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8563 fi
8564
8565
8566 fi
8567
8568 # If the isl check failed, disable builds of in-tree variant of isl
8569 if test "x$with_isl" = xno ||
8570 test "x$gcc_cv_isl" = xno; then
8571 noconfigdirs="$noconfigdirs isl"
8572 islinc=
8573 fi
8574
8575
8576
8577
8578 # Check for LTO support.
8579 # Check whether --enable-lto was given.
8580 if test "${enable_lto+set}" = set; then :
8581 enableval=$enable_lto; enable_lto=$enableval
8582 else
8583 enable_lto=yes; default_enable_lto=yes
8584 fi
8585
8586
8587
8588
8589
8590 target_elf=no
8591 case $target in
8592 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8593 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8594 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8595 nvptx-*-none)
8596 target_elf=no
8597 ;;
8598 *)
8599 target_elf=yes
8600 ;;
8601 esac
8602
8603 if test $target_elf = yes; then :
8604 # ELF platforms build the lto-plugin always.
8605 build_lto_plugin=yes
8606
8607 else
8608 if test x"$default_enable_lto" = x"yes" ; then
8609 case $target in
8610 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8611 # On other non-ELF platforms, LTO has yet to be validated.
8612 *) enable_lto=no ;;
8613 esac
8614 else
8615 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8616 # It would also be nice to check the binutils support, but we don't
8617 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8618 # warn during gcc/ subconfigure; unless you're bootstrapping with
8619 # -flto it won't be needed until after installation anyway.
8620 case $target in
8621 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8622 *) if test x"$enable_lto" = x"yes"; then
8623 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8624 fi
8625 ;;
8626 esac
8627 fi
8628 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8629 # Build it unless LTO was explicitly disabled.
8630 case $target in
8631 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8632 *) ;;
8633 esac
8634
8635 fi
8636
8637
8638 # Check whether --enable-linker-plugin-configure-flags was given.
8639 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8640 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8641 else
8642 extra_linker_plugin_configure_flags=
8643 fi
8644
8645
8646 # Check whether --enable-linker-plugin-flags was given.
8647 if test "${enable_linker_plugin_flags+set}" = set; then :
8648 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8649 else
8650 extra_linker_plugin_flags=
8651 fi
8652
8653
8654
8655 # Handle --enable-host-pie
8656 # If host PIE executables are the default (or must be forced on) for some host,
8657 # we must pass that configuration to the gcc directory.
8658 gcc_host_pie=
8659 # Check whether --enable-host-pie was given.
8660 if test "${enable_host_pie+set}" = set; then :
8661 enableval=$enable_host_pie; host_pie=$enableval
8662 case $host in
8663 *-*-darwin2*)
8664 if test x$host_pie != xyes ; then
8665 # for Darwin20+ this is required.
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8667 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8668 host_pie=yes
8669 gcc_host_pie=--enable-host-pie
8670 fi ;;
8671 *) ;;
8672 esac
8673 else
8674 case $host in
8675 *-*-darwin2*)
8676 # Default to PIE (mandatory for aarch64).
8677 host_pie=yes
8678 gcc_host_pie=--enable-host-pie
8679 ;;
8680 *) host_pie=no ;;
8681 esac
8682 fi
8683
8684
8685
8686
8687
8688 # Enable --enable-host-shared.
8689 # Checked early to determine whether jit is an 'all' language
8690 # Check whether --enable-host-shared was given.
8691 if test "${enable_host_shared+set}" = set; then :
8692 enableval=$enable_host_shared; host_shared=$enableval
8693 case $host in
8694 x86_64-*-darwin* | aarch64-*-darwin*)
8695 if test x$host_shared != xyes ; then
8696 # PIC is the default, and actually cannot be switched off.
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8698 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8699 host_shared=yes
8700 fi ;;
8701 *-*-darwin*)
8702 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8704 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8705 host_shared=yes
8706 fi ;;
8707 *) ;;
8708 esac
8709 else
8710 case $host in
8711 # 64B x86_64 and Aarch64 Darwin default to PIC.
8712 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8713 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8714 *-*-darwin*) host_shared=$host_pie ;;
8715 *) host_shared=no;;
8716 esac
8717 fi
8718
8719
8720
8721
8722 if test x$host_shared = xyes; then
8723 case $host in
8724 *-*-darwin*)
8725 # Since host shared is the default for 64b Darwin, and also enabled for
8726 # host_pie, ensure that we present the PIE flag when host_pie is active.
8727 if test x$host_pie = xyes; then
8728 PICFLAG=-fPIE
8729 fi
8730 ;;
8731 *)
8732 PICFLAG=-fPIC
8733 ;;
8734 esac
8735 elif test x$host_pie = xyes; then
8736 PICFLAG=-fPIE
8737 else
8738 PICFLAG=
8739 fi
8740
8741
8742
8743 # If we are building PIC/PIE host executables, and we are building dependent
8744 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8745 # code.
8746 host_libs_picflag=
8747 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8748 host_libs_picflag='--with-pic'
8749 fi
8750
8751
8752 # By default, C and C++ are the only stage 1 languages.
8753 stage1_languages=,c,
8754
8755 # Target libraries that we bootstrap.
8756 bootstrap_target_libs=,target-libgcc,
8757
8758 # Figure out what language subdirectories are present.
8759 # Look if the user specified --enable-languages="..."; if not, use
8760 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8761 # go away some day.
8762 # NB: embedded tabs in this IF block -- do not untabify
8763 if test -d ${srcdir}/gcc; then
8764 if test x"${enable_languages+set}" != xset; then
8765 if test x"${LANGUAGES+set}" = xset; then
8766 enable_languages="${LANGUAGES}"
8767 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8768 else
8769 enable_languages=default
8770 fi
8771 else
8772 if test x"${enable_languages}" = x ||
8773 test x"${enable_languages}" = xyes;
8774 then
8775 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8776 exit 1
8777 fi
8778 fi
8779 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8780
8781 # 'f95' is the old name for the 'fortran' language. We issue a warning
8782 # and make the substitution.
8783 case ,${enable_languages}, in
8784 *,f95,*)
8785 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8786 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8787 ;;
8788 esac
8789
8790 # If bootstrapping, C++ must be enabled.
8791 case ",$enable_languages,:$enable_bootstrap" in
8792 *,c++,*:*) ;;
8793 *:yes)
8794 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8795 enable_languages="${enable_languages},c++"
8796 else
8797 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8798 fi
8799 ;;
8800 esac
8801
8802 # First scan to see if an enabled language requires some other language.
8803 # We assume that a given config-lang.in will list all the language
8804 # front ends it requires, even if some are required indirectly.
8805 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8806 case ${lang_frag} in
8807 ..) ;;
8808 # The odd quoting in the next line works around
8809 # an apparent bug in bash 1.12 on linux.
8810 ${srcdir}/gcc/[*]/config-lang.in) ;;
8811 *)
8812 # From the config-lang.in, get $language, $lang_requires, and
8813 # $lang_requires_boot_languages.
8814 language=
8815 lang_requires=
8816 lang_requires_boot_languages=
8817 # set srcdir during sourcing lang_frag to the gcc dir.
8818 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8819 # polutes this shell
8820 saved_srcdir=${srcdir}
8821 srcdir=${srcdir}/gcc . ${lang_frag}
8822 srcdir=${saved_srcdir}
8823 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8824 case ,${enable_languages}, in
8825 *,$other,*) ;;
8826 *,default,*) ;;
8827 *,all,*) ;;
8828 *,$language,*)
8829 echo " \`$other' language required by \`$language'; enabling" 1>&2
8830 enable_languages="${enable_languages},${other}"
8831 ;;
8832 esac
8833 done
8834 for other in ${lang_requires_boot_languages} ; do
8835 if test "$other" != "c"; then
8836 case ,${enable_stage1_languages}, in
8837 *,$other,*) ;;
8838 *,default,*) ;;
8839 *,all,*) ;;
8840 *)
8841 case ,${enable_languages}, in
8842 *,$language,*)
8843 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8844 enable_stage1_languages="$enable_stage1_languages,${other}"
8845 ;;
8846 esac
8847 ;;
8848 esac
8849 fi
8850 done
8851 ;;
8852 esac
8853 done
8854
8855 new_enable_languages=,c,
8856
8857 # If LTO is enabled, add the LTO front end.
8858 if test "$enable_lto" = "yes" ; then
8859 case ,${enable_languages}, in
8860 *,lto,*) ;;
8861 *) enable_languages="${enable_languages},lto" ;;
8862 esac
8863 if test "${build_lto_plugin}" = "yes" ; then
8864 configdirs="$configdirs lto-plugin"
8865 fi
8866 fi
8867
8868 # If we're building an offloading compiler, add the LTO front end.
8869 if test x"$enable_as_accelerator_for" != x ; then
8870 case ,${enable_languages}, in
8871 *,lto,*) ;;
8872 *) enable_languages="${enable_languages},lto" ;;
8873 esac
8874 fi
8875
8876 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8877 potential_languages=,c,
8878
8879 enabled_target_libs=
8880 disabled_target_libs=
8881
8882 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8883 case ${lang_frag} in
8884 ..) ;;
8885 # The odd quoting in the next line works around
8886 # an apparent bug in bash 1.12 on linux.
8887 ${srcdir}/gcc/[*]/config-lang.in) ;;
8888 *)
8889 # From the config-lang.in, get $language, $target_libs,
8890 # $lang_dirs, $boot_language, and $build_by_default
8891 language=
8892 target_libs=
8893 lang_dirs=
8894 subdir_requires=
8895 boot_language=no
8896 build_by_default=yes
8897 # set srcdir during sourcing. See above about save & restore
8898 saved_srcdir=${srcdir}
8899 srcdir=${srcdir}/gcc . ${lang_frag}
8900 srcdir=${saved_srcdir}
8901 if test x${language} = x; then
8902 echo "${lang_frag} doesn't set \$language." 1>&2
8903 exit 1
8904 fi
8905
8906 if test "$language" = "c++"; then
8907 boot_language=yes
8908 fi
8909
8910 add_this_lang=no
8911 # C is always enabled, so no need to add it again
8912 if test "$language" != "c"; then
8913 case ,${enable_languages}, in
8914 *,${language},*)
8915 # Language was explicitly selected; include it
8916 add_this_lang=yes
8917 ;;
8918 *,all,*)
8919 # All languages are enabled
8920 add_this_lang=all
8921 ;;
8922 *,default,*)
8923 # 'default' was selected, select it if it is a default language
8924 add_this_lang=${build_by_default}
8925 ;;
8926 esac
8927 fi
8928
8929 # Disable languages that need other directories if these aren't available.
8930 for i in $subdir_requires; do
8931 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8932 case ${add_this_lang} in
8933 yes)
8934 # Specifically requested language; tell them.
8935 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8936 ;;
8937 all)
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8939 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8940 add_this_lang=unsupported
8941 ;;
8942 *)
8943 # Silently disable.
8944 add_this_lang=unsupported
8945 ;;
8946 esac
8947 done
8948
8949 # Disable Ada if no preexisting GNAT is available.
8950 case ${add_this_lang}:${language}:${have_gnat} in
8951 yes:ada:no)
8952 # Specifically requested language; tell them.
8953 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8954 ;;
8955 all:ada:no)
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8957 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8958 add_this_lang=unsupported
8959 ;;
8960 *:ada:no)
8961 # Silently disable.
8962 add_this_lang=unsupported
8963 ;;
8964 esac
8965
8966 # Disable D if no preexisting GDC is available.
8967 case ${add_this_lang}:${language}:${have_gdc} in
8968 yes:d:no)
8969 # Specifically requested language; tell them.
8970 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8971 ;;
8972 all:d:no)
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8974 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8975 add_this_lang=unsupported
8976 ;;
8977 *:d:no)
8978 # Silently disable.
8979 add_this_lang=unsupported
8980 ;;
8981 esac
8982
8983 # Disable jit if -enable-host-shared not specified
8984 # but not if building for Mingw. All code in Windows
8985 # is position independent code (PIC).
8986 case $target in
8987 *mingw*) ;;
8988 *)
8989 case ${add_this_lang}:${language}:${host_shared} in
8990 yes:jit:no)
8991 # PR jit/64780: explicitly specify --enable-host-shared
8992 as_fn_error $? "
8993 Enabling language \"jit\" requires --enable-host-shared.
8994
8995 --enable-host-shared typically slows the rest of the compiler down by
8996 a few %, so you must explicitly enable it.
8997
8998 If you want to build both the jit and the regular compiler, it is often
8999 best to do this via two separate configure/builds, in separate
9000 directories, to avoid imposing the performance cost of
9001 --enable-host-shared on the regular compiler." "$LINENO" 5
9002 ;;
9003 all:jit:no)
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9005 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9006 add_this_lang=unsupported
9007 ;;
9008 *:jit:no)
9009 # Silently disable.
9010 add_this_lang=unsupported
9011 ;;
9012 esac
9013 ;;
9014 esac
9015
9016 # Disable a language that is unsupported by the target.
9017 case "${add_this_lang}: $unsupported_languages " in
9018 no:*) ;;
9019 unsupported:*) ;;
9020 *:*" $language "*)
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9022 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9023 add_this_lang=unsupported
9024 ;;
9025 esac
9026
9027 case $add_this_lang in
9028 unsupported)
9029 # Remove language-dependent dirs.
9030 disabled_target_libs="$disabled_target_libs $target_libs"
9031 noconfigdirs="$noconfigdirs $lang_dirs"
9032 ;;
9033 no)
9034 # Remove language-dependent dirs; still show language as supported.
9035 disabled_target_libs="$disabled_target_libs $target_libs"
9036 noconfigdirs="$noconfigdirs $lang_dirs"
9037 potential_languages="${potential_languages}${language},"
9038 ;;
9039 all|yes)
9040 new_enable_languages="${new_enable_languages}${language},"
9041 potential_languages="${potential_languages}${language},"
9042 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9043 enabled_target_libs="$enabled_target_libs $target_libs"
9044 case "${boot_language}:,$enable_stage1_languages," in
9045 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9046 # Add to (comma-separated) list of stage 1 languages.
9047 case ",$stage1_languages," in
9048 *,$language,* | ,yes, | ,all,) ;;
9049 *) stage1_languages="${stage1_languages}${language}," ;;
9050 esac
9051 # We need to bootstrap any supporting libraries.
9052 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9053 ;;
9054 esac
9055 ;;
9056 esac
9057 ;;
9058 esac
9059 done
9060
9061 # Add target libraries which are only needed for disabled languages
9062 # to noconfigdirs.
9063 if test -n "$disabled_target_libs"; then
9064 for dir in $disabled_target_libs; do
9065 case " $enabled_target_libs " in
9066 *" ${dir} "*) ;;
9067 *) noconfigdirs="$noconfigdirs $dir" ;;
9068 esac
9069 done
9070 fi
9071
9072 # Check whether --enable-stage1-languages was given.
9073 if test "${enable_stage1_languages+set}" = set; then :
9074 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9075 ,no,|,,)
9076 # Set it to something that will have no effect in the loop below
9077 enable_stage1_languages=c ;;
9078 ,yes,)
9079 enable_stage1_languages=`echo $new_enable_languages | \
9080 sed -e "s/^,//" -e "s/,$//" ` ;;
9081 *,all,*)
9082 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9083 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9084 esac
9085
9086 # Add "good" languages from enable_stage1_languages to stage1_languages,
9087 # while "bad" languages go in missing_languages. Leave no duplicates.
9088 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9089 case $potential_languages in
9090 *,$i,*)
9091 case $stage1_languages in
9092 *,$i,*) ;;
9093 *) stage1_languages="$stage1_languages$i," ;;
9094 esac ;;
9095 *)
9096 case $missing_languages in
9097 *,$i,*) ;;
9098 *) missing_languages="$missing_languages$i," ;;
9099 esac ;;
9100 esac
9101 done
9102 fi
9103
9104
9105 # Remove leading/trailing commas that were added for simplicity
9106 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9107 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9108 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9109 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9110
9111 if test "x$missing_languages" != x; then
9112 as_fn_error $? "
9113 The following requested languages could not be built: ${missing_languages}
9114 Supported languages are: ${potential_languages}" "$LINENO" 5
9115 fi
9116 if test "x$new_enable_languages" != "x$enable_languages"; then
9117 echo The following languages will be built: ${new_enable_languages}
9118 enable_languages="$new_enable_languages"
9119 fi
9120
9121
9122 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9123 fi
9124
9125 # Handle --disable-<component> generically.
9126 for dir in $configdirs $build_configdirs $target_configdirs ; do
9127 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9128 varname=`echo $dirname | sed -e s/+/_/g`
9129 if eval test x\${enable_${varname}} "=" xno ; then
9130 noconfigdirs="$noconfigdirs $dir"
9131 fi
9132 done
9133
9134 # Check for Boehm's garbage collector
9135 # Check whether --enable-objc-gc was given.
9136 if test "${enable_objc_gc+set}" = set; then :
9137 enableval=$enable_objc_gc;
9138 fi
9139
9140
9141 # Check whether --with-target-bdw-gc was given.
9142 if test "${with_target_bdw_gc+set}" = set; then :
9143 withval=$with_target_bdw_gc;
9144 fi
9145
9146
9147 # Check whether --with-target-bdw-gc-include was given.
9148 if test "${with_target_bdw_gc_include+set}" = set; then :
9149 withval=$with_target_bdw_gc_include;
9150 fi
9151
9152
9153 # Check whether --with-target-bdw-gc-lib was given.
9154 if test "${with_target_bdw_gc_lib+set}" = set; then :
9155 withval=$with_target_bdw_gc_lib;
9156 fi
9157
9158
9159 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9161 $as_echo_n "checking for bdw garbage collector... " >&6; }
9162 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9164 $as_echo "using bdw-gc in default locations" >&6; }
9165 else
9166 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9167 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9168 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9169 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9170 else
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9172 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9173 fi
9174 fi
9175 esac
9176
9177 # Disable libitm, libsanitizer, libvtv if we're not building C++
9178 case ,${enable_languages}, in
9179 *,c++,*)
9180 # Disable libitm, libsanitizer if we're not building libstdc++
9181 case "${noconfigdirs}" in
9182 *target-libstdc++-v3*)
9183 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9184 ;;
9185 *) ;;
9186 esac
9187 ;;
9188 *)
9189 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9190 ;;
9191 esac
9192
9193 # If gcc/ is not in the source tree then we'll not be building a
9194 # target compiler, assume in that case we don't want to build any
9195 # target libraries or tools.
9196 #
9197 # This was added primarily for the benefit for binutils-gdb who reuse
9198 # this configure script, but don't always have target tools available.
9199 if test ! -d ${srcdir}/gcc; then
9200 skipdirs="${skipdirs} ${target_configdirs}"
9201 fi
9202
9203 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9204 # $build_configdirs and $target_configdirs.
9205 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9206
9207 notsupp=""
9208 for dir in . $skipdirs $noconfigdirs ; do
9209 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9210 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9211 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9212 if test -r $srcdir/$dirname/configure ; then
9213 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9214 true
9215 else
9216 notsupp="$notsupp $dir"
9217 fi
9218 fi
9219 fi
9220 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9221 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9222 if test -r $srcdir/$dirname/configure ; then
9223 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9224 true
9225 else
9226 notsupp="$notsupp $dir"
9227 fi
9228 fi
9229 fi
9230 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9231 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9232 if test -r $srcdir/$dirname/configure ; then
9233 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9234 true
9235 else
9236 notsupp="$notsupp $dir"
9237 fi
9238 fi
9239 fi
9240 done
9241
9242 # Quietly strip out all directories which aren't configurable in this tree.
9243 # This relies on all configurable subdirectories being autoconfiscated, which
9244 # is now the case.
9245 build_configdirs_all="$build_configdirs"
9246 build_configdirs=
9247 for i in ${build_configdirs_all} ; do
9248 j=`echo $i | sed -e s/build-//g`
9249 if test -f ${srcdir}/$j/configure ; then
9250 build_configdirs="${build_configdirs} $i"
9251 fi
9252 done
9253
9254 configdirs_all="$configdirs"
9255 configdirs=
9256 for i in ${configdirs_all} ; do
9257 if test -f ${srcdir}/$i/configure ; then
9258 configdirs="${configdirs} $i"
9259 fi
9260 done
9261
9262 target_configdirs_all="$target_configdirs"
9263 target_configdirs=
9264 for i in ${target_configdirs_all} ; do
9265 j=`echo $i | sed -e s/target-//g`
9266 if test -f ${srcdir}/$j/configure ; then
9267 target_configdirs="${target_configdirs} $i"
9268 fi
9269 done
9270
9271 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9272 # so we have to add it after the preceding checks.
9273 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9274 then
9275 case " $configdirs " in
9276 *" libiberty "*)
9277 # If we can build libiberty, we can also build libiberty-linker-plugin.
9278 configdirs="$configdirs libiberty-linker-plugin"
9279 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9280 --with-libiberty=../libiberty-linker-plugin";;
9281 *)
9282 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9283 esac
9284 fi
9285
9286 # Sometimes we have special requirements for the host libiberty.
9287 extra_host_libiberty_configure_flags=
9288 case " $configdirs " in
9289 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9290 # When these are to be built as shared libraries, the same applies to
9291 # libiberty.
9292 extra_host_libiberty_configure_flags=--enable-shared
9293 ;;
9294 esac
9295
9296
9297 # Sometimes we have special requirements for the host zlib.
9298 extra_host_zlib_configure_flags=
9299 case " $configdirs " in
9300 *" bfd "*)
9301 # When bfd is to be built as a shared library, the same applies to
9302 # zlib.
9303 if test "$enable_shared" = "yes"; then
9304 extra_host_zlib_configure_flags=--enable-host-shared
9305 fi
9306 ;;
9307 esac
9308
9309
9310 # Produce a warning message for the subdirs we can't configure.
9311 # This isn't especially interesting in the Cygnus tree, but in the individual
9312 # FSF releases, it's important to let people know when their machine isn't
9313 # supported by the one or two programs in a package.
9314
9315 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9316 # If $appdirs is non-empty, at least one of those directories must still
9317 # be configured, or we error out. (E.g., if the gas release supports a
9318 # specified target in some subdirs but not the gas subdir, we shouldn't
9319 # pretend that all is well.)
9320 if test -n "$appdirs" ; then
9321 for dir in $appdirs ; do
9322 if test -r $dir/Makefile.in ; then
9323 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9324 appdirs=""
9325 break
9326 fi
9327 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9328 appdirs=""
9329 break
9330 fi
9331 fi
9332 done
9333 if test -n "$appdirs" ; then
9334 echo "*** This configuration is not supported by this package." 1>&2
9335 exit 1
9336 fi
9337 fi
9338 # Okay, some application will build, or we don't care to check. Still
9339 # notify of subdirs not getting built.
9340 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9341 echo " ${notsupp}" 1>&2
9342 echo " (Any other directories should still work fine.)" 1>&2
9343 fi
9344
9345 case "$host" in
9346 *msdosdjgpp*)
9347 enable_gdbtk=no ;;
9348 esac
9349
9350 # To find our prefix, in gcc_cv_tool_prefix.
9351
9352 # The user is always right.
9353 if test "${PATH_SEPARATOR+set}" != set; then
9354 echo "#! /bin/sh" >conf$$.sh
9355 echo "exit 0" >>conf$$.sh
9356 chmod +x conf$$.sh
9357 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9358 PATH_SEPARATOR=';'
9359 else
9360 PATH_SEPARATOR=:
9361 fi
9362 rm -f conf$$.sh
9363 fi
9364
9365
9366 get_gcc_base_ver="cat"
9367
9368 # Check whether --with-gcc-major-version-only was given.
9369 if test "${with_gcc_major_version_only+set}" = set; then :
9370 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9371 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9372 fi
9373
9374 fi
9375
9376
9377
9378
9379
9380
9381 if test "x$exec_prefix" = xNONE; then
9382 if test "x$prefix" = xNONE; then
9383 gcc_cv_tool_prefix=$ac_default_prefix
9384 else
9385 gcc_cv_tool_prefix=$prefix
9386 fi
9387 else
9388 gcc_cv_tool_prefix=$exec_prefix
9389 fi
9390
9391 # If there is no compiler in the tree, use the PATH only. In any
9392 # case, if there is no compiler in the tree nobody should use
9393 # AS_FOR_TARGET and LD_FOR_TARGET.
9394 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9395 if test x$with_gcc_major_version_only = xyes ; then
9396 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9397 else
9398 gcc_version=`cat $srcdir/gcc/BASE-VER`
9399 fi
9400 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9401 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9402 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9403 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9404 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9405 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9406 else
9407 gcc_cv_tool_dirs=
9408 fi
9409
9410 if test x$build = x$target && test -n "$md_exec_prefix"; then
9411 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9412 fi
9413
9414
9415
9416 copy_dirs=
9417
9418
9419 # Check whether --with-build-sysroot was given.
9420 if test "${with_build_sysroot+set}" = set; then :
9421 withval=$with_build_sysroot; if test x"$withval" != x ; then
9422 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9423 fi
9424 else
9425 SYSROOT_CFLAGS_FOR_TARGET=
9426 fi
9427
9428
9429
9430
9431 # Check whether --with-debug-prefix-map was given.
9432 if test "${with_debug_prefix_map+set}" = set; then :
9433 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9434 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9435 for debug_map in $withval; do
9436 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9437 done
9438 fi
9439 else
9440 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9441 fi
9442
9443
9444
9445 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9446 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9447 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9448 # We want to ensure that TARGET libraries (which we know are built with
9449 # gcc) are built with "-O2 -g", so include those options when setting
9450 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9451 if test "x$CFLAGS_FOR_TARGET" = x; then
9452 if test "x${is_cross_compiler}" = xyes; then
9453 CFLAGS_FOR_TARGET="-g -O2"
9454 else
9455 CFLAGS_FOR_TARGET=$CFLAGS
9456 case " $CFLAGS " in
9457 *" -O2 "*) ;;
9458 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9459 esac
9460 case " $CFLAGS " in
9461 *" -g "* | *" -g3 "*) ;;
9462 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9463 esac
9464 fi
9465 fi
9466
9467
9468 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9469 if test "x${is_cross_compiler}" = xyes; then
9470 CXXFLAGS_FOR_TARGET="-g -O2"
9471 else
9472 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9473 case " $CXXFLAGS " in
9474 *" -O2 "*) ;;
9475 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9476 esac
9477 case " $CXXFLAGS " in
9478 *" -g "* | *" -g3 "*) ;;
9479 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9480 esac
9481 fi
9482 fi
9483
9484
9485
9486
9487 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9488 # the named directory are copied to $(tooldir)/sys-include.
9489 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9490 if test x${is_cross_compiler} = xno ; then
9491 echo 1>&2 '***' --with-headers is only supported when cross compiling
9492 exit 1
9493 fi
9494 if test x"${with_headers}" != xyes ; then
9495 x=${gcc_cv_tool_prefix}
9496 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9497 fi
9498 fi
9499
9500 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9501 # the name directories are copied to $(tooldir)/lib. Multiple directories
9502 # are permitted.
9503 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9504 if test x${is_cross_compiler} = xno ; then
9505 echo 1>&2 '***' --with-libs is only supported when cross compiling
9506 exit 1
9507 fi
9508 if test x"${with_libs}" != xyes ; then
9509 # Copy the libraries in reverse order, so that files in the first named
9510 # library override files in subsequent libraries.
9511 x=${gcc_cv_tool_prefix}
9512 for l in ${with_libs}; do
9513 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9514 done
9515 fi
9516 fi
9517
9518 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9519 #
9520 # This is done by determining whether or not the appropriate directory
9521 # is available, and by checking whether or not specific configurations
9522 # have requested that this magic not happen.
9523 #
9524 # The command line options always override the explicit settings in
9525 # configure.ac, and the settings in configure.ac override this magic.
9526 #
9527 # If the default for a toolchain is to use GNU as and ld, and you don't
9528 # want to do that, then you should use the --without-gnu-as and
9529 # --without-gnu-ld options for the configure script. Similarly, if
9530 # the default is to use the included zlib and you don't want to do that,
9531 # you should use the --with-system-zlib option for the configure script.
9532
9533 if test x${use_gnu_as} = x &&
9534 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9535 with_gnu_as=yes
9536 extra_host_args="$extra_host_args --with-gnu-as"
9537 fi
9538
9539 if test x${use_gnu_ld} = x &&
9540 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9541 with_gnu_ld=yes
9542 extra_host_args="$extra_host_args --with-gnu-ld"
9543 fi
9544
9545 if test x${use_included_zlib} = x &&
9546 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9547 :
9548 else
9549 with_system_zlib=yes
9550 extra_host_args="$extra_host_args --with-system-zlib"
9551 fi
9552
9553 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9554 # can detect this case.
9555
9556 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9557 with_newlib=yes
9558 extra_host_args="$extra_host_args --with-newlib"
9559 fi
9560
9561 # Handle ${copy_dirs}
9562 set fnord ${copy_dirs}
9563 shift
9564 while test $# != 0 ; do
9565 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9566 :
9567 else
9568 echo Copying $1 to $2
9569
9570 # Use the install script to create the directory and all required
9571 # parent directories.
9572 if test -d $2 ; then
9573 :
9574 else
9575 echo >config.temp
9576 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9577 fi
9578
9579 # Copy the directory, assuming we have tar.
9580 # FIXME: Should we use B in the second tar? Not all systems support it.
9581 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9582
9583 # It is the responsibility of the user to correctly adjust all
9584 # symlinks. If somebody can figure out how to handle them correctly
9585 # here, feel free to add the code.
9586
9587 echo $1 > $2/COPIED
9588 fi
9589 shift; shift
9590 done
9591
9592 # Determine a target-dependent exec_prefix that the installed
9593 # gcc will search in. Keep this list sorted by triplet, with
9594 # the *-*-osname triplets last.
9595 md_exec_prefix=
9596 case "${target}" in
9597 i[34567]86-pc-msdosdjgpp*)
9598 md_exec_prefix=/dev/env/DJDIR/bin
9599 ;;
9600 *-*-hpux* | \
9601 *-*-nto-qnx* | \
9602 *-*-solaris2*)
9603 md_exec_prefix=/usr/ccs/bin
9604 ;;
9605 esac
9606
9607 extra_arflags_for_target=
9608 extra_nmflags_for_target=
9609 extra_ranlibflags_for_target=
9610 target_makefile_frag=/dev/null
9611 case "${target}" in
9612 spu-*-*)
9613 target_makefile_frag="config/mt-spu"
9614 ;;
9615 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9616 target_makefile_frag="config/mt-sde"
9617 ;;
9618 mipsisa*-*-elfoabi*)
9619 target_makefile_frag="config/mt-mips-elfoabi"
9620 ;;
9621 mips*-*-*linux* | mips*-*-gnu*)
9622 target_makefile_frag="config/mt-mips-gnu"
9623 ;;
9624 nios2-*-elf*)
9625 target_makefile_frag="config/mt-nios2-elf"
9626 ;;
9627 *-*-linux-android*)
9628 target_makefile_frag="config/mt-android"
9629 ;;
9630 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9631 target_makefile_frag="config/mt-gnu"
9632 ;;
9633 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9634 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9635 # commands to handle both 32-bit and 64-bit objects. These flags are
9636 # harmless if we're using GNU nm or ar.
9637 extra_arflags_for_target=" -X32_64"
9638 extra_nmflags_for_target=" -B -X32_64"
9639 ;;
9640 esac
9641
9642 alphaieee_frag=/dev/null
9643 case $target in
9644 alpha*-*-*)
9645 # This just makes sure to use the -mieee option to build target libs.
9646 # This should probably be set individually by each library.
9647 alphaieee_frag="config/mt-alphaieee"
9648 ;;
9649 esac
9650
9651 # If --enable-target-optspace always use -Os instead of -O2 to build
9652 # the target libraries, similarly if it is not specified, use -Os
9653 # on selected platforms.
9654 ospace_frag=/dev/null
9655 case "${enable_target_optspace}:${target}" in
9656 yes:*)
9657 ospace_frag="config/mt-ospace"
9658 ;;
9659 :d30v-*)
9660 ospace_frag="config/mt-d30v"
9661 ;;
9662 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9663 ospace_frag="config/mt-ospace"
9664 ;;
9665 no:* | :*)
9666 ;;
9667 *)
9668 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9669 ;;
9670 esac
9671
9672 # Some systems (e.g., one of the i386-aix systems the gas testers are
9673 # using) don't handle "\$" correctly, so don't use it here.
9674 tooldir='${exec_prefix}'/${target_noncanonical}
9675 build_tooldir=${tooldir}
9676
9677 # Create a .gdbinit file which runs the one in srcdir
9678 # and tells GDB to look there for source files.
9679
9680 if test -r ${srcdir}/.gdbinit ; then
9681 case ${srcdir} in
9682 .) ;;
9683 *) cat > ./.gdbinit <<EOF
9684 # ${NO_EDIT}
9685 dir ${srcdir}
9686 dir .
9687 source ${srcdir}/.gdbinit
9688 EOF
9689 ;;
9690 esac
9691 fi
9692
9693 # Make sure that the compiler is able to generate an executable. If it
9694 # can't, we are probably in trouble. We don't care whether we can run the
9695 # executable--we might be using a cross compiler--we only care whether it
9696 # can be created. At this point the main configure script has set CC.
9697 we_are_ok=no
9698 echo "int main () { return 0; }" > conftest.c
9699 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9700 if test $? = 0 ; then
9701 if test -s conftest || test -s conftest.exe ; then
9702 we_are_ok=yes
9703 fi
9704 fi
9705 case $we_are_ok in
9706 no)
9707 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9708 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9709 rm -f conftest*
9710 exit 1
9711 ;;
9712 esac
9713 rm -f conftest*
9714
9715 # Decide which environment variable is used to find dynamic libraries.
9716 case "${host}" in
9717 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9718 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9719 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9720 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9721 esac
9722
9723 # On systems where the dynamic library environment variable is PATH,
9724 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9725 # built executables to PATH.
9726 if test "$RPATH_ENVVAR" = PATH; then
9727 GCC_SHLIB_SUBDIR=/shlib
9728 else
9729 GCC_SHLIB_SUBDIR=
9730 fi
9731
9732 # Adjust the toplevel makefile according to whether bootstrap was selected.
9733 case $enable_bootstrap in
9734 yes)
9735 bootstrap_suffix=bootstrap
9736 BUILD_CONFIG=bootstrap-debug
9737 ;;
9738 no)
9739 bootstrap_suffix=no-bootstrap
9740 BUILD_CONFIG=
9741 ;;
9742 esac
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9745 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9746
9747
9748 # Check whether --with-build-config was given.
9749 if test "${with_build_config+set}" = set; then :
9750 withval=$with_build_config; case $with_build_config in
9751 yes) with_build_config= ;;
9752 no) with_build_config= BUILD_CONFIG= ;;
9753 esac
9754 fi
9755
9756
9757 if test "x${with_build_config}" != x; then
9758 BUILD_CONFIG=$with_build_config
9759 else
9760 case $BUILD_CONFIG in
9761 bootstrap-debug)
9762 if echo "int f (void) { return 0; }" > conftest.c &&
9763 ${CC} -c conftest.c &&
9764 mv conftest.o conftest.o.g0 &&
9765 ${CC} -c -g conftest.c &&
9766 mv conftest.o conftest.o.g &&
9767 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9768 :
9769 else
9770 BUILD_CONFIG=
9771 fi
9772 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9773 ;;
9774 esac
9775 fi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9777 $as_echo "$BUILD_CONFIG" >&6; }
9778
9779
9780 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9782 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9783 # Check whether --enable-vtable-verify was given.
9784 if test "${enable_vtable_verify+set}" = set; then :
9785 enableval=$enable_vtable_verify; case "$enableval" in
9786 yes) enable_vtable_verify=yes ;;
9787 no) enable_vtable_verify=no ;;
9788 *) enable_vtable_verify=no;;
9789 esac
9790 else
9791 enable_vtable_verify=no
9792 fi
9793
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9795 $as_echo "$enable_vtable_verify" >&6; }
9796
9797 # Record target_configdirs and the configure arguments for target and
9798 # build configuration in Makefile.
9799 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9800 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9801 bootstrap_fixincludes=no
9802
9803 # If we are building libgomp, bootstrap it.
9804 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9805 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9806 fi
9807
9808 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9809 # or bootstrap-ubsan, bootstrap it.
9810 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9811 case "$BUILD_CONFIG" in
9812 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9813 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9814 bootstrap_fixincludes=yes
9815 ;;
9816 esac
9817 fi
9818
9819 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9820 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9821 test "$enable_vtable_verify" != no; then
9822 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9823 fi
9824
9825 # If we are building libatomic and the list of enabled languages includes the
9826 # D frontend, bootstrap it.
9827 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9828 case ,${enable_languages}, in
9829 *,d,*)
9830 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9831 ;;
9832 esac
9833 fi
9834
9835 # Determine whether gdb needs tk/tcl or not.
9836 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9837 # and in that case we want gdb to be built without tk. Ugh!
9838 # In fact I believe gdb is the *only* package directly dependent on tk,
9839 # so we should be able to put the 'maybe's in unconditionally and
9840 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9841 # 100% sure that that's safe though.
9842
9843 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9844 case "$enable_gdbtk" in
9845 no)
9846 GDB_TK="" ;;
9847 yes)
9848 GDB_TK="${gdb_tk}" ;;
9849 *)
9850 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9851 # distro. Eventually someone will fix this and move Insight, nee
9852 # gdbtk to a separate directory.
9853 if test -d ${srcdir}/gdb/gdbtk ; then
9854 GDB_TK="${gdb_tk}"
9855 else
9856 GDB_TK=""
9857 fi
9858 ;;
9859 esac
9860 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9861 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9862
9863 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9864 # else does, only include them if one of these is built. The Makefile
9865 # provides the ordering, so it's enough here to add to the list.
9866 case " ${configdirs} " in
9867 *\ gdb\ *)
9868 configdirs="${configdirs} gnulib gdbsupport"
9869 ;;
9870 *\ gdbserver\ *)
9871 configdirs="${configdirs} gnulib gdbsupport"
9872 ;;
9873 *\ sim\ *)
9874 configdirs="${configdirs} gnulib"
9875 ;;
9876 esac
9877
9878 # Strip out unwanted targets.
9879
9880 # While at that, we remove Makefiles if we were started for recursive
9881 # configuration, so that the top-level Makefile reconfigures them,
9882 # like we used to do when configure itself was recursive.
9883
9884 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9885 # but now we're fixing up the Makefile ourselves with the additional
9886 # commands passed to AC_CONFIG_FILES. Use separate variables
9887 # extrasub-{build,host,target} not because there is any reason to split
9888 # the substitutions up that way, but only to remain below the limit of
9889 # 99 commands in a script, for HP-UX sed.
9890
9891 # Do not nest @if/@endif or @unless/@endunless pairs, because
9892 # configure will not warn you at all.
9893
9894 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9895 yes:yes:*\ gold\ *:*,c++,*) ;;
9896 yes:yes:*\ gold\ *:*)
9897 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9898 ;;
9899 esac
9900
9901 extrasub_build=
9902 for module in ${build_configdirs} ; do
9903 if test -z "${no_recursion}" \
9904 && test -f ${build_subdir}/${module}/Makefile; then
9905 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9906 rm -f ${build_subdir}/${module}/Makefile
9907 fi
9908 extrasub_build="$extrasub_build
9909 /^@if build-$module\$/d
9910 /^@endif build-$module\$/d
9911 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9912 /^@if build-$module-$bootstrap_suffix\$/d
9913 /^@endif build-$module-$bootstrap_suffix\$/d
9914 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9915 done
9916 extrasub_host=
9917 for module in ${configdirs} ; do
9918 if test -z "${no_recursion}"; then
9919 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9920 if test -f ${file}; then
9921 echo 1>&2 "*** removing ${file} to force reconfigure"
9922 rm -f ${file}
9923 fi
9924 done
9925 fi
9926 case ${module},${bootstrap_fixincludes} in
9927 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9928 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9929 esac
9930 extrasub_host="$extrasub_host
9931 /^@if $module\$/d
9932 /^@endif $module\$/d
9933 /^@unless $module\$/,/^@endunless $module\$/d
9934 /^@if $module-$host_bootstrap_suffix\$/d
9935 /^@endif $module-$host_bootstrap_suffix\$/d
9936 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9937 done
9938 extrasub_target=
9939 for module in ${target_configdirs} ; do
9940 if test -z "${no_recursion}" \
9941 && test -f ${target_subdir}/${module}/Makefile; then
9942 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9943 rm -f ${target_subdir}/${module}/Makefile
9944 fi
9945
9946 # We only bootstrap target libraries listed in bootstrap_target_libs.
9947 case $bootstrap_target_libs in
9948 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9949 *) target_bootstrap_suffix=no-bootstrap ;;
9950 esac
9951
9952 extrasub_target="$extrasub_target
9953 /^@if target-$module\$/d
9954 /^@endif target-$module\$/d
9955 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9956 /^@if target-$module-$target_bootstrap_suffix\$/d
9957 /^@endif target-$module-$target_bootstrap_suffix\$/d
9958 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9959 done
9960
9961 # Do the final fixup along with target modules.
9962 extrasub_target="$extrasub_target
9963 /^@if /,/^@endif /d
9964 /^@unless /d
9965 /^@endunless /d"
9966
9967 if test "$enable_pgo_build" != "no"; then
9968 extrasub_build="$extrasub_build
9969 /^@if pgo-build\$/d
9970 /^@endif pgo-build\$/d"
9971 fi
9972
9973 # Create the serialization dependencies. This uses a temporary file.
9974
9975 # Check whether --enable-serial-configure was given.
9976 if test "${enable_serial_configure+set}" = set; then :
9977 enableval=$enable_serial_configure;
9978 fi
9979
9980
9981 case ${enable_serial_configure} in
9982 yes)
9983 enable_serial_build_configure=yes
9984 enable_serial_host_configure=yes
9985 enable_serial_target_configure=yes
9986 ;;
9987 esac
9988
9989 # These force 'configure's to be done one at a time, to avoid problems
9990 # with contention over a shared config.cache.
9991 rm -f serdep.tmp
9992 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
9993 echo '# serdep.tmp' > serdep.tmp
9994 fi
9995 olditem=
9996 test "x${enable_serial_build_configure}" = xyes &&
9997 for item in ${build_configdirs} ; do
9998 case ${olditem} in
9999 "") ;;
10000 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
10001 esac
10002 olditem=${item}
10003 done
10004 olditem=
10005 test "x${enable_serial_host_configure}" = xyes &&
10006 for item in ${configdirs} ; do
10007 case ${olditem} in
10008 "") ;;
10009 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10010 esac
10011 olditem=${item}
10012 done
10013 olditem=
10014 test "x${enable_serial_target_configure}" = xyes &&
10015 for item in ${target_configdirs} ; do
10016 case ${olditem} in
10017 "") ;;
10018 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10019 esac
10020 olditem=${item}
10021 done
10022 serialization_dependencies=serdep.tmp
10023
10024
10025 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10026 # target, nonopt, and variable assignments. These are the ones we
10027 # might not want to pass down to subconfigures. The exception being
10028 # --cache-file=/dev/null, which is used to turn off the use of cache
10029 # files altogether, and which should be passed on to subconfigures.
10030 # Also strip program-prefix, program-suffix, and program-transform-name,
10031 # so that we can pass down a consistent program-transform-name.
10032 baseargs=
10033 tbaseargs=
10034 keep_next=no
10035 skip_next=no
10036 eval "set -- $ac_configure_args"
10037 for ac_arg
10038 do
10039 if test X"$skip_next" = X"yes"; then
10040 skip_next=no
10041 continue
10042 fi
10043 if test X"$keep_next" = X"yes"; then
10044 case $ac_arg in
10045 *\'*)
10046 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10047 esac
10048 baseargs="$baseargs '$ac_arg'"
10049 tbaseargs="$tbaseargs '$ac_arg'"
10050 keep_next=no
10051 continue
10052 fi
10053
10054 # Handle separated arguments. Based on the logic generated by
10055 # autoconf 2.59.
10056 case $ac_arg in
10057 *=* | --config-cache | -C | -disable-* | --disable-* \
10058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10060 | -with-* | --with-* | -without-* | --without-* | --x)
10061 separate_arg=no
10062 ;;
10063 -*)
10064 separate_arg=yes
10065 ;;
10066 *)
10067 separate_arg=no
10068 ;;
10069 esac
10070
10071 skip_targ=no
10072 case $ac_arg in
10073
10074 --with-* | --without-*)
10075 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10076
10077 case $libopt in
10078 *[-_]include)
10079 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10080 ;;
10081 *[-_]lib)
10082 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10083 ;;
10084 *)
10085 lib=$libopt
10086 ;;
10087 esac
10088
10089
10090 case $lib in
10091 mpc | mpfr | gmp | isl)
10092 # If we're processing --with-$lib, --with-$lib-include or
10093 # --with-$lib-lib, for one of the libs above, and target is
10094 # different from host, don't pass the current argument to any
10095 # target library's configure.
10096 if test x$is_cross_compiler = xyes; then
10097 skip_targ=yes
10098 fi
10099 ;;
10100 esac
10101 ;;
10102 esac
10103
10104 case "$ac_arg" in
10105 --cache-file=/dev/null | \
10106 -cache-file=/dev/null )
10107 # Handled here to avoid the test to skip args below.
10108 baseargs="$baseargs '$ac_arg'"
10109 tbaseargs="$tbaseargs '$ac_arg'"
10110 # Assert: $separate_arg should always be no.
10111 keep_next=$separate_arg
10112 ;;
10113 --no*)
10114 continue
10115 ;;
10116 --c* | \
10117 --sr* | \
10118 --ho* | \
10119 --bu* | \
10120 --t* | \
10121 --program-* | \
10122 -cache_file* | \
10123 -srcdir* | \
10124 -host* | \
10125 -build* | \
10126 -target* | \
10127 -program-prefix* | \
10128 -program-suffix* | \
10129 -program-transform-name* )
10130 skip_next=$separate_arg
10131 continue
10132 ;;
10133 -*)
10134 # An option. Add it.
10135 case $ac_arg in
10136 *\'*)
10137 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10138 esac
10139 baseargs="$baseargs '$ac_arg'"
10140 if test X"$skip_targ" = Xno; then
10141 tbaseargs="$tbaseargs '$ac_arg'"
10142 fi
10143 keep_next=$separate_arg
10144 ;;
10145 *)
10146 # Either a variable assignment, or a nonopt (triplet). Don't
10147 # pass it down; let the Makefile handle this.
10148 continue
10149 ;;
10150 esac
10151 done
10152 # Remove the initial space we just introduced and, as these will be
10153 # expanded by make, quote '$'.
10154 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10155
10156 # Add in --program-transform-name, after --program-prefix and
10157 # --program-suffix have been applied to it. Autoconf has already
10158 # doubled dollar signs and backslashes in program_transform_name; we want
10159 # the backslashes un-doubled, and then the entire thing wrapped in single
10160 # quotes, because this will be expanded first by make and then by the shell.
10161 # Also, because we want to override the logic in subdir configure scripts to
10162 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10163 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10164 ${program_transform_name}
10165 EOF_SED
10166 gcc_transform_name=`cat conftestsed.out`
10167 rm -f conftestsed.out
10168 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10169 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10170 if test "$silent" = yes; then
10171 baseargs="$baseargs --silent"
10172 tbaseargs="$tbaseargs --silent"
10173 fi
10174 baseargs="$baseargs --disable-option-checking"
10175 tbaseargs="$tbaseargs --disable-option-checking"
10176
10177 # Record and document user additions to sub configure arguments.
10178
10179
10180
10181
10182 # For the build-side libraries, we just need to pretend we're native,
10183 # and not use the same cache file. Multilibs are neither needed nor
10184 # desired. We can't even use the same cache file for all build-side
10185 # libraries, as they're compiled differently; some with C, some with
10186 # C++ or with different feature-enabling options.
10187 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10188
10189 # For host modules, accept cache file option, or specification as blank.
10190 case "${cache_file}" in
10191 "") # empty
10192 cache_file_option="" ;;
10193 /* | [A-Za-z]:[\\/]* ) # absolute path
10194 cache_file_option="--cache-file=${cache_file}" ;;
10195 *) # relative path
10196 cache_file_option="--cache-file=../${cache_file}" ;;
10197 esac
10198
10199 # Host dirs don't like to share a cache file either, horribly enough.
10200 # This seems to be due to autoconf 2.5x stupidity.
10201 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10202
10203 target_configargs="$target_configargs ${tbaseargs}"
10204
10205 # Passing a --with-cross-host argument lets the target libraries know
10206 # whether they are being built with a cross-compiler or being built
10207 # native. However, it would be better to use other mechanisms to make the
10208 # sorts of decisions they want to make on this basis. Please consider
10209 # this option to be deprecated. FIXME.
10210 if test x${is_cross_compiler} = xyes ; then
10211 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10212 fi
10213
10214 # Special user-friendly check for native x86_64-linux build, if
10215 # multilib is not explicitly enabled.
10216 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10217 x86_64-*linux*:yes:$build:$build:)
10218 # Make sure we have a development environment that handles 32-bit
10219 dev64=no
10220 echo "int main () { return 0; }" > conftest.c
10221 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10222 if test $? = 0 ; then
10223 if test -s conftest || test -s conftest.exe ; then
10224 dev64=yes
10225 fi
10226 fi
10227 rm -f conftest*
10228 if test x${dev64} != xyes ; then
10229 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
10230 fi
10231 ;;
10232 esac
10233
10234 # Default to --enable-multilib.
10235 if test x${enable_multilib} = x ; then
10236 target_configargs="--enable-multilib ${target_configargs}"
10237 fi
10238
10239 # Pass --with-newlib if appropriate. Note that target_configdirs has
10240 # changed from the earlier setting of with_newlib.
10241 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10242 target_configargs="--with-newlib ${target_configargs}"
10243 fi
10244
10245 # Different target subdirs use different values of certain variables
10246 # (notably CXX). Worse, multilibs use *lots* of different values.
10247 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10248 # it doesn't automatically accept command-line overrides of them.
10249 # This means it's not safe for target subdirs to share a cache file,
10250 # which is disgusting, but there you have it. Hopefully this can be
10251 # fixed in future. It's still worthwhile to use a cache file for each
10252 # directory. I think.
10253
10254 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10255 # We need to pass --target, as newer autoconf's requires consistency
10256 # for target_alias and gcc doesn't manage it consistently.
10257 target_configargs="--cache-file=./config.cache ${target_configargs}"
10258
10259 FLAGS_FOR_TARGET=
10260 case " $target_configdirs " in
10261 *" newlib "*)
10262 case " $target_configargs " in
10263 *" --with-newlib "*)
10264 case "$target" in
10265 *-cygwin*)
10266 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10267 ;;
10268 esac
10269
10270 # If we're not building GCC, don't discard standard headers.
10271 if test -d ${srcdir}/gcc; then
10272 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10273
10274 if test "${build}" != "${host}"; then
10275 # On Canadian crosses, CC_FOR_TARGET will have already been set
10276 # by `configure', so we won't have an opportunity to add -Bgcc/
10277 # to it. This is right: we don't want to search that directory
10278 # for binaries, but we want the header files in there, so add
10279 # them explicitly.
10280 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10281
10282 # Someone might think of using the pre-installed headers on
10283 # Canadian crosses, in case the installed compiler is not fully
10284 # compatible with the compiler being built. In this case, it
10285 # would be better to flag an error than risking having
10286 # incompatible object files being constructed. We can't
10287 # guarantee that an error will be flagged, but let's hope the
10288 # compiler will do it, when presented with incompatible header
10289 # files.
10290 fi
10291 fi
10292
10293 case "${target}-${is_cross_compiler}" in
10294 i[3456789]86-*-linux*-no)
10295 # Here host == target, so we don't need to build gcc,
10296 # so we don't want to discard standard headers.
10297 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10298 ;;
10299 *)
10300 # If we're building newlib, use its generic headers last, but search
10301 # for any libc-related directories first (so make it the last -B
10302 # switch).
10303 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10304
10305 # If we're building libgloss, find the startup file, simulator library
10306 # and linker script.
10307 case " $target_configdirs " in
10308 *" libgloss "*)
10309 # Look for startup file, simulator library and maybe linker script.
10310 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10311 # Look for libnosys.a in case the target needs it.
10312 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10313 # Most targets have the linker script in the source directory.
10314 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10315 ;;
10316 esac
10317 ;;
10318 esac
10319 ;;
10320 esac
10321 ;;
10322 esac
10323
10324 case "$target" in
10325 x86_64-*mingw* | *-w64-mingw*)
10326 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10327 # however, use a symlink named 'mingw' in ${prefix} .
10328 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10329 ;;
10330 *-mingw*)
10331 # MinGW can't be handled as Cygwin above since it does not use newlib.
10332 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'
10333 ;;
10334 esac
10335
10336 # Allow the user to override the flags for
10337 # our build compiler if desired.
10338 if test x"${build}" = x"${host}" ; then
10339 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10340 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10341 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10342 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10343 fi
10344
10345 # On Canadian crosses, we'll be searching the right directories for
10346 # the previously-installed cross compiler, so don't bother to add
10347 # flags for directories within the install tree of the compiler
10348 # being built; programs in there won't even run.
10349 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10350 # Search for pre-installed headers if nothing else fits.
10351 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10352 fi
10353
10354 if test "x${use_gnu_ld}" = x &&
10355 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10356 # Arrange for us to find uninstalled linker scripts.
10357 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10358 fi
10359
10360 # Search for other target-specific linker scripts and such.
10361 case "${target}" in
10362 mep*)
10363 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10364 ;;
10365 # The VxWorks support for shared libraries is getting in
10366 # incrementally. Make sure it doesn't get activated implicitly:
10367 *vxworks*)
10368 if test "${enable_shared-unset}" = unset ; then
10369 enable_shared=no
10370 # So the build of libraries knows ...
10371 target_configargs="${target_configargs} --disable-shared"
10372 # So gcc knows ...
10373 host_configargs="${host_configargs} --disable-shared"
10374 fi
10375 ;;
10376 esac
10377
10378 # Makefile fragments.
10379 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10380 do
10381 eval fragval=\$$frag
10382 if test $fragval != /dev/null; then
10383 eval $frag=${srcdir}/$fragval
10384 fi
10385 done
10386
10387
10388
10389
10390
10391 # Miscellanea: directories, flags, etc.
10392
10393
10394
10395
10396
10397
10398
10399
10400 # Build module lists & subconfigure args.
10401
10402
10403
10404 # Host module lists & subconfigure args.
10405
10406
10407
10408
10409 # Target module lists & subconfigure args.
10410
10411
10412
10413 # Build tools.
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434 # Generate default definitions for YACC, M4, LEX and other programs that run
10435 # on the build machine. These are used if the Makefile can't locate these
10436 # programs in objdir.
10437 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10438
10439 for ac_prog in 'bison -y' byacc yacc
10440 do
10441 # Extract the first word of "$ac_prog", so it can be a program name with args.
10442 set dummy $ac_prog; ac_word=$2
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444 $as_echo_n "checking for $ac_word... " >&6; }
10445 if ${ac_cv_prog_YACC+:} false; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 if test -n "$YACC"; then
10449 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10450 else
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $PATH
10453 do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10458 ac_cv_prog_YACC="$ac_prog"
10459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10461 fi
10462 done
10463 done
10464 IFS=$as_save_IFS
10465
10466 fi
10467 fi
10468 YACC=$ac_cv_prog_YACC
10469 if test -n "$YACC"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10471 $as_echo "$YACC" >&6; }
10472 else
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10475 fi
10476
10477
10478 test -n "$YACC" && break
10479 done
10480 test -n "$YACC" || YACC="$MISSING bison -y"
10481
10482 case " $build_configdirs " in
10483 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10484 esac
10485
10486 for ac_prog in bison
10487 do
10488 # Extract the first word of "$ac_prog", so it can be a program name with args.
10489 set dummy $ac_prog; ac_word=$2
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10491 $as_echo_n "checking for $ac_word... " >&6; }
10492 if ${ac_cv_prog_BISON+:} false; then :
10493 $as_echo_n "(cached) " >&6
10494 else
10495 if test -n "$BISON"; then
10496 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10497 else
10498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499 for as_dir in $PATH
10500 do
10501 IFS=$as_save_IFS
10502 test -z "$as_dir" && as_dir=.
10503 for ac_exec_ext in '' $ac_executable_extensions; do
10504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10505 ac_cv_prog_BISON="$ac_prog"
10506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10507 break 2
10508 fi
10509 done
10510 done
10511 IFS=$as_save_IFS
10512
10513 fi
10514 fi
10515 BISON=$ac_cv_prog_BISON
10516 if test -n "$BISON"; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10518 $as_echo "$BISON" >&6; }
10519 else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 $as_echo "no" >&6; }
10522 fi
10523
10524
10525 test -n "$BISON" && break
10526 done
10527 test -n "$BISON" || BISON="$MISSING bison"
10528
10529 case " $build_configdirs " in
10530 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10531 esac
10532
10533 for ac_prog in gm4 gnum4 m4
10534 do
10535 # Extract the first word of "$ac_prog", so it can be a program name with args.
10536 set dummy $ac_prog; ac_word=$2
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538 $as_echo_n "checking for $ac_word... " >&6; }
10539 if ${ac_cv_prog_M4+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 if test -n "$M4"; then
10543 ac_cv_prog_M4="$M4" # Let the user override the test.
10544 else
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10547 do
10548 IFS=$as_save_IFS
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10552 ac_cv_prog_M4="$ac_prog"
10553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10554 break 2
10555 fi
10556 done
10557 done
10558 IFS=$as_save_IFS
10559
10560 fi
10561 fi
10562 M4=$ac_cv_prog_M4
10563 if test -n "$M4"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10565 $as_echo "$M4" >&6; }
10566 else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10569 fi
10570
10571
10572 test -n "$M4" && break
10573 done
10574 test -n "$M4" || M4="$MISSING m4"
10575
10576 case " $build_configdirs " in
10577 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10578 esac
10579
10580 for ac_prog in flex lex
10581 do
10582 # Extract the first word of "$ac_prog", so it can be a program name with args.
10583 set dummy $ac_prog; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_prog_LEX+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 if test -n "$LEX"; then
10590 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10591 else
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10594 do
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_LEX="$ac_prog"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10602 fi
10603 done
10604 done
10605 IFS=$as_save_IFS
10606
10607 fi
10608 fi
10609 LEX=$ac_cv_prog_LEX
10610 if test -n "$LEX"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10612 $as_echo "$LEX" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10616 fi
10617
10618
10619 test -n "$LEX" && break
10620 done
10621 test -n "$LEX" || LEX="$MISSING flex"
10622
10623 case " $build_configdirs " in
10624 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10625 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10626 esac
10627
10628 for ac_prog in flex
10629 do
10630 # Extract the first word of "$ac_prog", so it can be a program name with args.
10631 set dummy $ac_prog; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if ${ac_cv_prog_FLEX+:} false; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 if test -n "$FLEX"; then
10638 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10639 else
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10642 do
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10647 ac_cv_prog_FLEX="$ac_prog"
10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 break 2
10650 fi
10651 done
10652 done
10653 IFS=$as_save_IFS
10654
10655 fi
10656 fi
10657 FLEX=$ac_cv_prog_FLEX
10658 if test -n "$FLEX"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10660 $as_echo "$FLEX" >&6; }
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }
10664 fi
10665
10666
10667 test -n "$FLEX" && break
10668 done
10669 test -n "$FLEX" || FLEX="$MISSING flex"
10670
10671 case " $build_configdirs " in
10672 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10673 esac
10674
10675 for ac_prog in makeinfo
10676 do
10677 # Extract the first word of "$ac_prog", so it can be a program name with args.
10678 set dummy $ac_prog; ac_word=$2
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10680 $as_echo_n "checking for $ac_word... " >&6; }
10681 if ${ac_cv_prog_MAKEINFO+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 if test -n "$MAKEINFO"; then
10685 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10686 else
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10689 do
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_MAKEINFO="$ac_prog"
10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698 done
10699 done
10700 IFS=$as_save_IFS
10701
10702 fi
10703 fi
10704 MAKEINFO=$ac_cv_prog_MAKEINFO
10705 if test -n "$MAKEINFO"; then
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10707 $as_echo "$MAKEINFO" >&6; }
10708 else
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10711 fi
10712
10713
10714 test -n "$MAKEINFO" && break
10715 done
10716 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10717
10718 case " $build_configdirs " in
10719 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10720 *)
10721
10722 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10723 # higher, else we use the "missing" dummy.
10724 if ${MAKEINFO} --version \
10725 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10726 :
10727 else
10728 MAKEINFO="$MISSING makeinfo"
10729 fi
10730 ;;
10731
10732 esac
10733
10734 # FIXME: expect and dejagnu may become build tools?
10735
10736 for ac_prog in expect
10737 do
10738 # Extract the first word of "$ac_prog", so it can be a program name with args.
10739 set dummy $ac_prog; ac_word=$2
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10741 $as_echo_n "checking for $ac_word... " >&6; }
10742 if ${ac_cv_prog_EXPECT+:} false; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 if test -n "$EXPECT"; then
10746 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10747 else
10748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749 for as_dir in $PATH
10750 do
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10755 ac_cv_prog_EXPECT="$ac_prog"
10756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 break 2
10758 fi
10759 done
10760 done
10761 IFS=$as_save_IFS
10762
10763 fi
10764 fi
10765 EXPECT=$ac_cv_prog_EXPECT
10766 if test -n "$EXPECT"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10768 $as_echo "$EXPECT" >&6; }
10769 else
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10772 fi
10773
10774
10775 test -n "$EXPECT" && break
10776 done
10777 test -n "$EXPECT" || EXPECT="expect"
10778
10779 case " $configdirs " in
10780 *" expect "*)
10781 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10782 ;;
10783 esac
10784
10785 for ac_prog in runtest
10786 do
10787 # Extract the first word of "$ac_prog", so it can be a program name with args.
10788 set dummy $ac_prog; ac_word=$2
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790 $as_echo_n "checking for $ac_word... " >&6; }
10791 if ${ac_cv_prog_RUNTEST+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 if test -n "$RUNTEST"; then
10795 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10796 else
10797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798 for as_dir in $PATH
10799 do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_RUNTEST="$ac_prog"
10805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10807 fi
10808 done
10809 done
10810 IFS=$as_save_IFS
10811
10812 fi
10813 fi
10814 RUNTEST=$ac_cv_prog_RUNTEST
10815 if test -n "$RUNTEST"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10817 $as_echo "$RUNTEST" >&6; }
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10821 fi
10822
10823
10824 test -n "$RUNTEST" && break
10825 done
10826 test -n "$RUNTEST" || RUNTEST="runtest"
10827
10828 case " $configdirs " in
10829 *" dejagnu "*)
10830 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10831 ;;
10832 esac
10833
10834
10835 # Host tools.
10836 ncn_tool_prefix=
10837 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10838 ncn_target_tool_prefix=
10839 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10840
10841
10842
10843 if test -n "$AR"; then
10844 ac_cv_prog_AR=$AR
10845 elif test -n "$ac_cv_prog_AR"; then
10846 AR=$ac_cv_prog_AR
10847 fi
10848
10849 if test -n "$ac_cv_prog_AR"; then
10850 for ncn_progname in ar; do
10851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10852 set dummy ${ncn_progname}; ac_word=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if ${ac_cv_prog_AR+:} false; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 if test -n "$AR"; then
10859 ac_cv_prog_AR="$AR" # Let the user override the test.
10860 else
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10863 do
10864 IFS=$as_save_IFS
10865 test -z "$as_dir" && as_dir=.
10866 for ac_exec_ext in '' $ac_executable_extensions; do
10867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10868 ac_cv_prog_AR="${ncn_progname}"
10869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10870 break 2
10871 fi
10872 done
10873 done
10874 IFS=$as_save_IFS
10875
10876 fi
10877 fi
10878 AR=$ac_cv_prog_AR
10879 if test -n "$AR"; then
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10881 $as_echo "$AR" >&6; }
10882 else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 $as_echo "no" >&6; }
10885 fi
10886
10887
10888 done
10889 fi
10890
10891 for ncn_progname in ar; do
10892 if test -n "$ncn_tool_prefix"; then
10893 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10894 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_prog_AR+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 if test -n "$AR"; then
10901 ac_cv_prog_AR="$AR" # Let the user override the test.
10902 else
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10905 do
10906 IFS=$as_save_IFS
10907 test -z "$as_dir" && as_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10910 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912 break 2
10913 fi
10914 done
10915 done
10916 IFS=$as_save_IFS
10917
10918 fi
10919 fi
10920 AR=$ac_cv_prog_AR
10921 if test -n "$AR"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10923 $as_echo "$AR" >&6; }
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10927 fi
10928
10929
10930 fi
10931 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10933 set dummy ${ncn_progname}; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10935 $as_echo_n "checking for $ac_word... " >&6; }
10936 if ${ac_cv_prog_AR+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 if test -n "$AR"; then
10940 ac_cv_prog_AR="$AR" # Let the user override the test.
10941 else
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_AR="${ncn_progname}"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953 done
10954 done
10955 IFS=$as_save_IFS
10956
10957 fi
10958 fi
10959 AR=$ac_cv_prog_AR
10960 if test -n "$AR"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10962 $as_echo "$AR" >&6; }
10963 else
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 $as_echo "no" >&6; }
10966 fi
10967
10968
10969 fi
10970 test -n "$ac_cv_prog_AR" && break
10971 done
10972
10973 if test -z "$ac_cv_prog_AR" ; then
10974 set dummy ar
10975 if test $build = $host ; then
10976 AR="$2"
10977 else
10978 AR="${ncn_tool_prefix}$2"
10979 fi
10980 fi
10981
10982
10983
10984 if test -n "$AS"; then
10985 ac_cv_prog_AS=$AS
10986 elif test -n "$ac_cv_prog_AS"; then
10987 AS=$ac_cv_prog_AS
10988 fi
10989
10990 if test -n "$ac_cv_prog_AS"; then
10991 for ncn_progname in as; do
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993 set dummy ${ncn_progname}; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if ${ac_cv_prog_AS+:} false; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 if test -n "$AS"; then
11000 ac_cv_prog_AS="$AS" # Let the user override the test.
11001 else
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11004 do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11009 ac_cv_prog_AS="${ncn_progname}"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11012 fi
11013 done
11014 done
11015 IFS=$as_save_IFS
11016
11017 fi
11018 fi
11019 AS=$ac_cv_prog_AS
11020 if test -n "$AS"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11022 $as_echo "$AS" >&6; }
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11026 fi
11027
11028
11029 done
11030 fi
11031
11032 for ncn_progname in as; do
11033 if test -n "$ncn_tool_prefix"; then
11034 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11035 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_prog_AS+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 if test -n "$AS"; then
11042 ac_cv_prog_AS="$AS" # Let the user override the test.
11043 else
11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045 for as_dir in $PATH
11046 do
11047 IFS=$as_save_IFS
11048 test -z "$as_dir" && as_dir=.
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11051 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11053 break 2
11054 fi
11055 done
11056 done
11057 IFS=$as_save_IFS
11058
11059 fi
11060 fi
11061 AS=$ac_cv_prog_AS
11062 if test -n "$AS"; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11064 $as_echo "$AS" >&6; }
11065 else
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11068 fi
11069
11070
11071 fi
11072 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11074 set dummy ${ncn_progname}; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 $as_echo_n "checking for $ac_word... " >&6; }
11077 if ${ac_cv_prog_AS+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 if test -n "$AS"; then
11081 ac_cv_prog_AS="$AS" # Let the user override the test.
11082 else
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11085 do
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11090 ac_cv_prog_AS="${ncn_progname}"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11093 fi
11094 done
11095 done
11096 IFS=$as_save_IFS
11097
11098 fi
11099 fi
11100 AS=$ac_cv_prog_AS
11101 if test -n "$AS"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11103 $as_echo "$AS" >&6; }
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11107 fi
11108
11109
11110 fi
11111 test -n "$ac_cv_prog_AS" && break
11112 done
11113
11114 if test -z "$ac_cv_prog_AS" ; then
11115 set dummy as
11116 if test $build = $host ; then
11117 AS="$2"
11118 else
11119 AS="${ncn_tool_prefix}$2"
11120 fi
11121 fi
11122
11123
11124
11125 if test -n "$DLLTOOL"; then
11126 ac_cv_prog_DLLTOOL=$DLLTOOL
11127 elif test -n "$ac_cv_prog_DLLTOOL"; then
11128 DLLTOOL=$ac_cv_prog_DLLTOOL
11129 fi
11130
11131 if test -n "$ac_cv_prog_DLLTOOL"; then
11132 for ncn_progname in dlltool; do
11133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11134 set dummy ${ncn_progname}; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_prog_DLLTOOL+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 if test -n "$DLLTOOL"; then
11141 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11142 else
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11145 do
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150 ac_cv_prog_DLLTOOL="${ncn_progname}"
11151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 break 2
11153 fi
11154 done
11155 done
11156 IFS=$as_save_IFS
11157
11158 fi
11159 fi
11160 DLLTOOL=$ac_cv_prog_DLLTOOL
11161 if test -n "$DLLTOOL"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11163 $as_echo "$DLLTOOL" >&6; }
11164 else
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 $as_echo "no" >&6; }
11167 fi
11168
11169
11170 done
11171 fi
11172
11173 for ncn_progname in dlltool; do
11174 if test -n "$ncn_tool_prefix"; then
11175 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11176 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_prog_DLLTOOL+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 if test -n "$DLLTOOL"; then
11183 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11184 else
11185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11187 do
11188 IFS=$as_save_IFS
11189 test -z "$as_dir" && as_dir=.
11190 for ac_exec_ext in '' $ac_executable_extensions; do
11191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11194 break 2
11195 fi
11196 done
11197 done
11198 IFS=$as_save_IFS
11199
11200 fi
11201 fi
11202 DLLTOOL=$ac_cv_prog_DLLTOOL
11203 if test -n "$DLLTOOL"; then
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11205 $as_echo "$DLLTOOL" >&6; }
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11209 fi
11210
11211
11212 fi
11213 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11215 set dummy ${ncn_progname}; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217 $as_echo_n "checking for $ac_word... " >&6; }
11218 if ${ac_cv_prog_DLLTOOL+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test -n "$DLLTOOL"; then
11222 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11223 else
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11226 do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_DLLTOOL="${ncn_progname}"
11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 break 2
11234 fi
11235 done
11236 done
11237 IFS=$as_save_IFS
11238
11239 fi
11240 fi
11241 DLLTOOL=$ac_cv_prog_DLLTOOL
11242 if test -n "$DLLTOOL"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11244 $as_echo "$DLLTOOL" >&6; }
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11248 fi
11249
11250
11251 fi
11252 test -n "$ac_cv_prog_DLLTOOL" && break
11253 done
11254
11255 if test -z "$ac_cv_prog_DLLTOOL" ; then
11256 set dummy dlltool
11257 if test $build = $host ; then
11258 DLLTOOL="$2"
11259 else
11260 DLLTOOL="${ncn_tool_prefix}$2"
11261 fi
11262 fi
11263
11264
11265
11266 if test -n "$DSYMUTIL"; then
11267 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11268 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11269 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11270 fi
11271
11272 if test -n "$ac_cv_prog_DSYMUTIL"; then
11273 for ncn_progname in dsymutil; do
11274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11275 set dummy ${ncn_progname}; ac_word=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277 $as_echo_n "checking for $ac_word... " >&6; }
11278 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 if test -n "$DSYMUTIL"; then
11282 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11283 else
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11291 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11293 break 2
11294 fi
11295 done
11296 done
11297 IFS=$as_save_IFS
11298
11299 fi
11300 fi
11301 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11302 if test -n "$DSYMUTIL"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11304 $as_echo "$DSYMUTIL" >&6; }
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11308 fi
11309
11310
11311 done
11312 fi
11313
11314 for ncn_progname in dsymutil; do
11315 if test -n "$ncn_tool_prefix"; then
11316 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11317 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 if test -n "$DSYMUTIL"; then
11324 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11325 else
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11328 do
11329 IFS=$as_save_IFS
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335 break 2
11336 fi
11337 done
11338 done
11339 IFS=$as_save_IFS
11340
11341 fi
11342 fi
11343 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11344 if test -n "$DSYMUTIL"; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11346 $as_echo "$DSYMUTIL" >&6; }
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349 $as_echo "no" >&6; }
11350 fi
11351
11352
11353 fi
11354 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11356 set dummy ${ncn_progname}; ac_word=$2
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11358 $as_echo_n "checking for $ac_word... " >&6; }
11359 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 if test -n "$DSYMUTIL"; then
11363 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11364 else
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $PATH
11367 do
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 break 2
11375 fi
11376 done
11377 done
11378 IFS=$as_save_IFS
11379
11380 fi
11381 fi
11382 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11383 if test -n "$DSYMUTIL"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11385 $as_echo "$DSYMUTIL" >&6; }
11386 else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11389 fi
11390
11391
11392 fi
11393 test -n "$ac_cv_prog_DSYMUTIL" && break
11394 done
11395
11396 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11397 set dummy dsymutil
11398 if test $build = $host ; then
11399 DSYMUTIL="$2"
11400 else
11401 DSYMUTIL="${ncn_tool_prefix}$2"
11402 fi
11403 fi
11404
11405
11406
11407 if test -n "$LD"; then
11408 ac_cv_prog_LD=$LD
11409 elif test -n "$ac_cv_prog_LD"; then
11410 LD=$ac_cv_prog_LD
11411 fi
11412
11413 if test -n "$ac_cv_prog_LD"; then
11414 for ncn_progname in ld; do
11415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11416 set dummy ${ncn_progname}; ac_word=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if ${ac_cv_prog_LD+:} false; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 if test -n "$LD"; then
11423 ac_cv_prog_LD="$LD" # Let the user override the test.
11424 else
11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426 for as_dir in $PATH
11427 do
11428 IFS=$as_save_IFS
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11432 ac_cv_prog_LD="${ncn_progname}"
11433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 break 2
11435 fi
11436 done
11437 done
11438 IFS=$as_save_IFS
11439
11440 fi
11441 fi
11442 LD=$ac_cv_prog_LD
11443 if test -n "$LD"; then
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11445 $as_echo "$LD" >&6; }
11446 else
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11449 fi
11450
11451
11452 done
11453 fi
11454
11455 for ncn_progname in ld; do
11456 if test -n "$ncn_tool_prefix"; then
11457 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11458 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if ${ac_cv_prog_LD+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 if test -n "$LD"; then
11465 ac_cv_prog_LD="$LD" # Let the user override the test.
11466 else
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11469 do
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11474 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11477 fi
11478 done
11479 done
11480 IFS=$as_save_IFS
11481
11482 fi
11483 fi
11484 LD=$ac_cv_prog_LD
11485 if test -n "$LD"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11487 $as_echo "$LD" >&6; }
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11491 fi
11492
11493
11494 fi
11495 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11497 set dummy ${ncn_progname}; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_prog_LD+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 if test -n "$LD"; then
11504 ac_cv_prog_LD="$LD" # Let the user override the test.
11505 else
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11508 do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11513 ac_cv_prog_LD="${ncn_progname}"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11516 fi
11517 done
11518 done
11519 IFS=$as_save_IFS
11520
11521 fi
11522 fi
11523 LD=$ac_cv_prog_LD
11524 if test -n "$LD"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11526 $as_echo "$LD" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 fi
11531
11532
11533 fi
11534 test -n "$ac_cv_prog_LD" && break
11535 done
11536
11537 if test -z "$ac_cv_prog_LD" ; then
11538 set dummy ld
11539 if test $build = $host ; then
11540 LD="$2"
11541 else
11542 LD="${ncn_tool_prefix}$2"
11543 fi
11544 fi
11545
11546
11547
11548 if test -n "$LIPO"; then
11549 ac_cv_prog_LIPO=$LIPO
11550 elif test -n "$ac_cv_prog_LIPO"; then
11551 LIPO=$ac_cv_prog_LIPO
11552 fi
11553
11554 if test -n "$ac_cv_prog_LIPO"; then
11555 for ncn_progname in lipo; do
11556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11557 set dummy ${ncn_progname}; ac_word=$2
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559 $as_echo_n "checking for $ac_word... " >&6; }
11560 if ${ac_cv_prog_LIPO+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 if test -n "$LIPO"; then
11564 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11565 else
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11568 do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_prog_LIPO="${ncn_progname}"
11574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11576 fi
11577 done
11578 done
11579 IFS=$as_save_IFS
11580
11581 fi
11582 fi
11583 LIPO=$ac_cv_prog_LIPO
11584 if test -n "$LIPO"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11586 $as_echo "$LIPO" >&6; }
11587 else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589 $as_echo "no" >&6; }
11590 fi
11591
11592
11593 done
11594 fi
11595
11596 for ncn_progname in lipo; do
11597 if test -n "$ncn_tool_prefix"; then
11598 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11599 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_prog_LIPO+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 if test -n "$LIPO"; then
11606 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11607 else
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619 done
11620 done
11621 IFS=$as_save_IFS
11622
11623 fi
11624 fi
11625 LIPO=$ac_cv_prog_LIPO
11626 if test -n "$LIPO"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11628 $as_echo "$LIPO" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632 fi
11633
11634
11635 fi
11636 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11638 set dummy ${ncn_progname}; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_prog_LIPO+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 if test -n "$LIPO"; then
11645 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11646 else
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_prog_LIPO="${ncn_progname}"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658 done
11659 done
11660 IFS=$as_save_IFS
11661
11662 fi
11663 fi
11664 LIPO=$ac_cv_prog_LIPO
11665 if test -n "$LIPO"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11667 $as_echo "$LIPO" >&6; }
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; }
11671 fi
11672
11673
11674 fi
11675 test -n "$ac_cv_prog_LIPO" && break
11676 done
11677
11678 if test -z "$ac_cv_prog_LIPO" ; then
11679 set dummy lipo
11680 if test $build = $host ; then
11681 LIPO="$2"
11682 else
11683 LIPO="${ncn_tool_prefix}$2"
11684 fi
11685 fi
11686
11687
11688
11689 if test -n "$NM"; then
11690 ac_cv_prog_NM=$NM
11691 elif test -n "$ac_cv_prog_NM"; then
11692 NM=$ac_cv_prog_NM
11693 fi
11694
11695 if test -n "$ac_cv_prog_NM"; then
11696 for ncn_progname in nm; do
11697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11698 set dummy ${ncn_progname}; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if ${ac_cv_prog_NM+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 if test -n "$NM"; then
11705 ac_cv_prog_NM="$NM" # Let the user override the test.
11706 else
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11709 do
11710 IFS=$as_save_IFS
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714 ac_cv_prog_NM="${ncn_progname}"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 break 2
11717 fi
11718 done
11719 done
11720 IFS=$as_save_IFS
11721
11722 fi
11723 fi
11724 NM=$ac_cv_prog_NM
11725 if test -n "$NM"; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11727 $as_echo "$NM" >&6; }
11728 else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11731 fi
11732
11733
11734 done
11735 fi
11736
11737 for ncn_progname in nm; do
11738 if test -n "$ncn_tool_prefix"; then
11739 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11740 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742 $as_echo_n "checking for $ac_word... " >&6; }
11743 if ${ac_cv_prog_NM+:} false; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 if test -n "$NM"; then
11747 ac_cv_prog_NM="$NM" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11759 fi
11760 done
11761 done
11762 IFS=$as_save_IFS
11763
11764 fi
11765 fi
11766 NM=$ac_cv_prog_NM
11767 if test -n "$NM"; then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11769 $as_echo "$NM" >&6; }
11770 else
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11773 fi
11774
11775
11776 fi
11777 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11779 set dummy ${ncn_progname}; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if ${ac_cv_prog_NM+:} false; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 if test -n "$NM"; then
11786 ac_cv_prog_NM="$NM" # Let the user override the test.
11787 else
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_NM="${ncn_progname}"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799 done
11800 done
11801 IFS=$as_save_IFS
11802
11803 fi
11804 fi
11805 NM=$ac_cv_prog_NM
11806 if test -n "$NM"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11808 $as_echo "$NM" >&6; }
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11812 fi
11813
11814
11815 fi
11816 test -n "$ac_cv_prog_NM" && break
11817 done
11818
11819 if test -z "$ac_cv_prog_NM" ; then
11820 set dummy nm
11821 if test $build = $host ; then
11822 NM="$2"
11823 else
11824 NM="${ncn_tool_prefix}$2"
11825 fi
11826 fi
11827
11828
11829
11830 if test -n "$RANLIB"; then
11831 ac_cv_prog_RANLIB=$RANLIB
11832 elif test -n "$ac_cv_prog_RANLIB"; then
11833 RANLIB=$ac_cv_prog_RANLIB
11834 fi
11835
11836 if test -n "$ac_cv_prog_RANLIB"; then
11837 for ncn_progname in ranlib; do
11838 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11839 set dummy ${ncn_progname}; ac_word=$2
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11841 $as_echo_n "checking for $ac_word... " >&6; }
11842 if ${ac_cv_prog_RANLIB+:} false; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845 if test -n "$RANLIB"; then
11846 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11847 else
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11850 do
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_prog_RANLIB="${ncn_progname}"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 break 2
11858 fi
11859 done
11860 done
11861 IFS=$as_save_IFS
11862
11863 fi
11864 fi
11865 RANLIB=$ac_cv_prog_RANLIB
11866 if test -n "$RANLIB"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11868 $as_echo "$RANLIB" >&6; }
11869 else
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11872 fi
11873
11874
11875 done
11876 fi
11877
11878 for ncn_progname in ranlib; do
11879 if test -n "$ncn_tool_prefix"; then
11880 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11881 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if ${ac_cv_prog_RANLIB+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 if test -n "$RANLIB"; then
11888 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11889 else
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11892 do
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11897 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 break 2
11900 fi
11901 done
11902 done
11903 IFS=$as_save_IFS
11904
11905 fi
11906 fi
11907 RANLIB=$ac_cv_prog_RANLIB
11908 if test -n "$RANLIB"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11910 $as_echo "$RANLIB" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 fi
11915
11916
11917 fi
11918 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11920 set dummy ${ncn_progname}; ac_word=$2
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11922 $as_echo_n "checking for $ac_word... " >&6; }
11923 if ${ac_cv_prog_RANLIB+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 if test -n "$RANLIB"; then
11927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11928 else
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11931 do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_prog_RANLIB="${ncn_progname}"
11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 break 2
11939 fi
11940 done
11941 done
11942 IFS=$as_save_IFS
11943
11944 fi
11945 fi
11946 RANLIB=$ac_cv_prog_RANLIB
11947 if test -n "$RANLIB"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11949 $as_echo "$RANLIB" >&6; }
11950 else
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11953 fi
11954
11955
11956 fi
11957 test -n "$ac_cv_prog_RANLIB" && break
11958 done
11959
11960 if test -z "$ac_cv_prog_RANLIB" ; then
11961 RANLIB="true"
11962 fi
11963
11964
11965
11966 if test -n "$STRIP"; then
11967 ac_cv_prog_STRIP=$STRIP
11968 elif test -n "$ac_cv_prog_STRIP"; then
11969 STRIP=$ac_cv_prog_STRIP
11970 fi
11971
11972 if test -n "$ac_cv_prog_STRIP"; then
11973 for ncn_progname in strip; do
11974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11975 set dummy ${ncn_progname}; ac_word=$2
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11977 $as_echo_n "checking for $ac_word... " >&6; }
11978 if ${ac_cv_prog_STRIP+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 if test -n "$STRIP"; then
11982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11983 else
11984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11985 for as_dir in $PATH
11986 do
11987 IFS=$as_save_IFS
11988 test -z "$as_dir" && as_dir=.
11989 for ac_exec_ext in '' $ac_executable_extensions; do
11990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11991 ac_cv_prog_STRIP="${ncn_progname}"
11992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11993 break 2
11994 fi
11995 done
11996 done
11997 IFS=$as_save_IFS
11998
11999 fi
12000 fi
12001 STRIP=$ac_cv_prog_STRIP
12002 if test -n "$STRIP"; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12004 $as_echo "$STRIP" >&6; }
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12008 fi
12009
12010
12011 done
12012 fi
12013
12014 for ncn_progname in strip; do
12015 if test -n "$ncn_tool_prefix"; then
12016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12019 $as_echo_n "checking for $ac_word... " >&6; }
12020 if ${ac_cv_prog_STRIP+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 if test -n "$STRIP"; then
12024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12025 else
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12028 do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12033 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 break 2
12036 fi
12037 done
12038 done
12039 IFS=$as_save_IFS
12040
12041 fi
12042 fi
12043 STRIP=$ac_cv_prog_STRIP
12044 if test -n "$STRIP"; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12046 $as_echo "$STRIP" >&6; }
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12050 fi
12051
12052
12053 fi
12054 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12056 set dummy ${ncn_progname}; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_prog_STRIP+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 if test -n "$STRIP"; then
12063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12064 else
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12067 do
12068 IFS=$as_save_IFS
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072 ac_cv_prog_STRIP="${ncn_progname}"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074 break 2
12075 fi
12076 done
12077 done
12078 IFS=$as_save_IFS
12079
12080 fi
12081 fi
12082 STRIP=$ac_cv_prog_STRIP
12083 if test -n "$STRIP"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12085 $as_echo "$STRIP" >&6; }
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 fi
12090
12091
12092 fi
12093 test -n "$ac_cv_prog_STRIP" && break
12094 done
12095
12096 if test -z "$ac_cv_prog_STRIP" ; then
12097 STRIP="true"
12098 fi
12099
12100
12101
12102 if test -n "$WINDRES"; then
12103 ac_cv_prog_WINDRES=$WINDRES
12104 elif test -n "$ac_cv_prog_WINDRES"; then
12105 WINDRES=$ac_cv_prog_WINDRES
12106 fi
12107
12108 if test -n "$ac_cv_prog_WINDRES"; then
12109 for ncn_progname in windres; do
12110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12111 set dummy ${ncn_progname}; ac_word=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113 $as_echo_n "checking for $ac_word... " >&6; }
12114 if ${ac_cv_prog_WINDRES+:} false; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117 if test -n "$WINDRES"; then
12118 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12119 else
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in $PATH
12122 do
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127 ac_cv_prog_WINDRES="${ncn_progname}"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 break 2
12130 fi
12131 done
12132 done
12133 IFS=$as_save_IFS
12134
12135 fi
12136 fi
12137 WINDRES=$ac_cv_prog_WINDRES
12138 if test -n "$WINDRES"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12140 $as_echo "$WINDRES" >&6; }
12141 else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12144 fi
12145
12146
12147 done
12148 fi
12149
12150 for ncn_progname in windres; do
12151 if test -n "$ncn_tool_prefix"; then
12152 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12153 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if ${ac_cv_prog_WINDRES+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test -n "$WINDRES"; then
12160 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12161 else
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12164 do
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12172 fi
12173 done
12174 done
12175 IFS=$as_save_IFS
12176
12177 fi
12178 fi
12179 WINDRES=$ac_cv_prog_WINDRES
12180 if test -n "$WINDRES"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12182 $as_echo "$WINDRES" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12186 fi
12187
12188
12189 fi
12190 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12192 set dummy ${ncn_progname}; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_prog_WINDRES+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 if test -n "$WINDRES"; then
12199 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_prog_WINDRES="${ncn_progname}"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212 done
12213 done
12214 IFS=$as_save_IFS
12215
12216 fi
12217 fi
12218 WINDRES=$ac_cv_prog_WINDRES
12219 if test -n "$WINDRES"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12221 $as_echo "$WINDRES" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12225 fi
12226
12227
12228 fi
12229 test -n "$ac_cv_prog_WINDRES" && break
12230 done
12231
12232 if test -z "$ac_cv_prog_WINDRES" ; then
12233 set dummy windres
12234 if test $build = $host ; then
12235 WINDRES="$2"
12236 else
12237 WINDRES="${ncn_tool_prefix}$2"
12238 fi
12239 fi
12240
12241
12242
12243 if test -n "$WINDMC"; then
12244 ac_cv_prog_WINDMC=$WINDMC
12245 elif test -n "$ac_cv_prog_WINDMC"; then
12246 WINDMC=$ac_cv_prog_WINDMC
12247 fi
12248
12249 if test -n "$ac_cv_prog_WINDMC"; then
12250 for ncn_progname in windmc; do
12251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12252 set dummy ${ncn_progname}; ac_word=$2
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12254 $as_echo_n "checking for $ac_word... " >&6; }
12255 if ${ac_cv_prog_WINDMC+:} false; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 if test -n "$WINDMC"; then
12259 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12260 else
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12263 do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12268 ac_cv_prog_WINDMC="${ncn_progname}"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 break 2
12271 fi
12272 done
12273 done
12274 IFS=$as_save_IFS
12275
12276 fi
12277 fi
12278 WINDMC=$ac_cv_prog_WINDMC
12279 if test -n "$WINDMC"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12281 $as_echo "$WINDMC" >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12285 fi
12286
12287
12288 done
12289 fi
12290
12291 for ncn_progname in windmc; do
12292 if test -n "$ncn_tool_prefix"; then
12293 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12294 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_prog_WINDMC+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 if test -n "$WINDMC"; then
12301 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12302 else
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314 done
12315 done
12316 IFS=$as_save_IFS
12317
12318 fi
12319 fi
12320 WINDMC=$ac_cv_prog_WINDMC
12321 if test -n "$WINDMC"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12323 $as_echo "$WINDMC" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328
12329
12330 fi
12331 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12333 set dummy ${ncn_progname}; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_prog_WINDMC+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 if test -n "$WINDMC"; then
12340 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_WINDMC="${ncn_progname}"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12352 fi
12353 done
12354 done
12355 IFS=$as_save_IFS
12356
12357 fi
12358 fi
12359 WINDMC=$ac_cv_prog_WINDMC
12360 if test -n "$WINDMC"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12362 $as_echo "$WINDMC" >&6; }
12363 else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366 fi
12367
12368
12369 fi
12370 test -n "$ac_cv_prog_WINDMC" && break
12371 done
12372
12373 if test -z "$ac_cv_prog_WINDMC" ; then
12374 set dummy windmc
12375 if test $build = $host ; then
12376 WINDMC="$2"
12377 else
12378 WINDMC="${ncn_tool_prefix}$2"
12379 fi
12380 fi
12381
12382
12383
12384 if test -n "$OBJCOPY"; then
12385 ac_cv_prog_OBJCOPY=$OBJCOPY
12386 elif test -n "$ac_cv_prog_OBJCOPY"; then
12387 OBJCOPY=$ac_cv_prog_OBJCOPY
12388 fi
12389
12390 if test -n "$ac_cv_prog_OBJCOPY"; then
12391 for ncn_progname in objcopy; do
12392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12393 set dummy ${ncn_progname}; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_prog_OBJCOPY+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 if test -n "$OBJCOPY"; then
12400 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12401 else
12402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $PATH
12404 do
12405 IFS=$as_save_IFS
12406 test -z "$as_dir" && as_dir=.
12407 for ac_exec_ext in '' $ac_executable_extensions; do
12408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12409 ac_cv_prog_OBJCOPY="${ncn_progname}"
12410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411 break 2
12412 fi
12413 done
12414 done
12415 IFS=$as_save_IFS
12416
12417 fi
12418 fi
12419 OBJCOPY=$ac_cv_prog_OBJCOPY
12420 if test -n "$OBJCOPY"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12422 $as_echo "$OBJCOPY" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12426 fi
12427
12428
12429 done
12430 fi
12431
12432 for ncn_progname in objcopy; do
12433 if test -n "$ncn_tool_prefix"; then
12434 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12435 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if ${ac_cv_prog_OBJCOPY+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test -n "$OBJCOPY"; then
12442 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12454 fi
12455 done
12456 done
12457 IFS=$as_save_IFS
12458
12459 fi
12460 fi
12461 OBJCOPY=$ac_cv_prog_OBJCOPY
12462 if test -n "$OBJCOPY"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12464 $as_echo "$OBJCOPY" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471 fi
12472 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12474 set dummy ${ncn_progname}; ac_word=$2
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12476 $as_echo_n "checking for $ac_word... " >&6; }
12477 if ${ac_cv_prog_OBJCOPY+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 if test -n "$OBJCOPY"; then
12481 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12482 else
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12485 do
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_OBJCOPY="${ncn_progname}"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494 done
12495 done
12496 IFS=$as_save_IFS
12497
12498 fi
12499 fi
12500 OBJCOPY=$ac_cv_prog_OBJCOPY
12501 if test -n "$OBJCOPY"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12503 $as_echo "$OBJCOPY" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 fi
12508
12509
12510 fi
12511 test -n "$ac_cv_prog_OBJCOPY" && break
12512 done
12513
12514 if test -z "$ac_cv_prog_OBJCOPY" ; then
12515 set dummy objcopy
12516 if test $build = $host ; then
12517 OBJCOPY="$2"
12518 else
12519 OBJCOPY="${ncn_tool_prefix}$2"
12520 fi
12521 fi
12522
12523
12524
12525 if test -n "$OBJDUMP"; then
12526 ac_cv_prog_OBJDUMP=$OBJDUMP
12527 elif test -n "$ac_cv_prog_OBJDUMP"; then
12528 OBJDUMP=$ac_cv_prog_OBJDUMP
12529 fi
12530
12531 if test -n "$ac_cv_prog_OBJDUMP"; then
12532 for ncn_progname in objdump; do
12533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12534 set dummy ${ncn_progname}; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if ${ac_cv_prog_OBJDUMP+:} false; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 if test -n "$OBJDUMP"; then
12541 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12542 else
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12545 do
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12550 ac_cv_prog_OBJDUMP="${ncn_progname}"
12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 break 2
12553 fi
12554 done
12555 done
12556 IFS=$as_save_IFS
12557
12558 fi
12559 fi
12560 OBJDUMP=$ac_cv_prog_OBJDUMP
12561 if test -n "$OBJDUMP"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12563 $as_echo "$OBJDUMP" >&6; }
12564 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 $as_echo "no" >&6; }
12567 fi
12568
12569
12570 done
12571 fi
12572
12573 for ncn_progname in objdump; do
12574 if test -n "$ncn_tool_prefix"; then
12575 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12576 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if ${ac_cv_prog_OBJDUMP+:} false; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 if test -n "$OBJDUMP"; then
12583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12584 else
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12587 do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12595 fi
12596 done
12597 done
12598 IFS=$as_save_IFS
12599
12600 fi
12601 fi
12602 OBJDUMP=$ac_cv_prog_OBJDUMP
12603 if test -n "$OBJDUMP"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12605 $as_echo "$OBJDUMP" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 fi
12610
12611
12612 fi
12613 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if ${ac_cv_prog_OBJDUMP+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 if test -n "$OBJDUMP"; then
12622 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12623 else
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_OBJDUMP="${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12634 fi
12635 done
12636 done
12637 IFS=$as_save_IFS
12638
12639 fi
12640 fi
12641 OBJDUMP=$ac_cv_prog_OBJDUMP
12642 if test -n "$OBJDUMP"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12644 $as_echo "$OBJDUMP" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 fi
12649
12650
12651 fi
12652 test -n "$ac_cv_prog_OBJDUMP" && break
12653 done
12654
12655 if test -z "$ac_cv_prog_OBJDUMP" ; then
12656 set dummy objdump
12657 if test $build = $host ; then
12658 OBJDUMP="$2"
12659 else
12660 OBJDUMP="${ncn_tool_prefix}$2"
12661 fi
12662 fi
12663
12664
12665
12666 if test -n "$OTOOL"; then
12667 ac_cv_prog_OTOOL=$OTOOL
12668 elif test -n "$ac_cv_prog_OTOOL"; then
12669 OTOOL=$ac_cv_prog_OTOOL
12670 fi
12671
12672 if test -n "$ac_cv_prog_OTOOL"; then
12673 for ncn_progname in otool; do
12674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12675 set dummy ${ncn_progname}; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_prog_OTOOL+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 if test -n "$OTOOL"; then
12682 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12683 else
12684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in $PATH
12686 do
12687 IFS=$as_save_IFS
12688 test -z "$as_dir" && as_dir=.
12689 for ac_exec_ext in '' $ac_executable_extensions; do
12690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12691 ac_cv_prog_OTOOL="${ncn_progname}"
12692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12693 break 2
12694 fi
12695 done
12696 done
12697 IFS=$as_save_IFS
12698
12699 fi
12700 fi
12701 OTOOL=$ac_cv_prog_OTOOL
12702 if test -n "$OTOOL"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12704 $as_echo "$OTOOL" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709
12710
12711 done
12712 fi
12713
12714 for ncn_progname in otool; do
12715 if test -n "$ncn_tool_prefix"; then
12716 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12717 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_prog_OTOOL+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 if test -n "$OTOOL"; then
12724 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12725 else
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 break 2
12736 fi
12737 done
12738 done
12739 IFS=$as_save_IFS
12740
12741 fi
12742 fi
12743 OTOOL=$ac_cv_prog_OTOOL
12744 if test -n "$OTOOL"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12746 $as_echo "$OTOOL" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751
12752
12753 fi
12754 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if ${ac_cv_prog_OTOOL+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 if test -n "$OTOOL"; then
12763 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12764 else
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12767 do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_prog_OTOOL="${ncn_progname}"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12775 fi
12776 done
12777 done
12778 IFS=$as_save_IFS
12779
12780 fi
12781 fi
12782 OTOOL=$ac_cv_prog_OTOOL
12783 if test -n "$OTOOL"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12785 $as_echo "$OTOOL" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790
12791
12792 fi
12793 test -n "$ac_cv_prog_OTOOL" && break
12794 done
12795
12796 if test -z "$ac_cv_prog_OTOOL" ; then
12797 set dummy otool
12798 if test $build = $host ; then
12799 OTOOL="$2"
12800 else
12801 OTOOL="${ncn_tool_prefix}$2"
12802 fi
12803 fi
12804
12805
12806
12807 if test -n "$READELF"; then
12808 ac_cv_prog_READELF=$READELF
12809 elif test -n "$ac_cv_prog_READELF"; then
12810 READELF=$ac_cv_prog_READELF
12811 fi
12812
12813 if test -n "$ac_cv_prog_READELF"; then
12814 for ncn_progname in readelf; do
12815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12816 set dummy ${ncn_progname}; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if ${ac_cv_prog_READELF+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 if test -n "$READELF"; then
12823 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12824 else
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12827 do
12828 IFS=$as_save_IFS
12829 test -z "$as_dir" && as_dir=.
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12832 ac_cv_prog_READELF="${ncn_progname}"
12833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 break 2
12835 fi
12836 done
12837 done
12838 IFS=$as_save_IFS
12839
12840 fi
12841 fi
12842 READELF=$ac_cv_prog_READELF
12843 if test -n "$READELF"; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12845 $as_echo "$READELF" >&6; }
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849 fi
12850
12851
12852 done
12853 fi
12854
12855 for ncn_progname in readelf; do
12856 if test -n "$ncn_tool_prefix"; then
12857 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12858 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_prog_READELF+:} false; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 if test -n "$READELF"; then
12865 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12866 else
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 break 2
12877 fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 READELF=$ac_cv_prog_READELF
12885 if test -n "$READELF"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12887 $as_echo "$READELF" >&6; }
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 fi
12892
12893
12894 fi
12895 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12897 set dummy ${ncn_progname}; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_prog_READELF+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 if test -n "$READELF"; then
12904 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12905 else
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12908 do
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_prog_READELF="${ncn_progname}"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12916 fi
12917 done
12918 done
12919 IFS=$as_save_IFS
12920
12921 fi
12922 fi
12923 READELF=$ac_cv_prog_READELF
12924 if test -n "$READELF"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12926 $as_echo "$READELF" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12930 fi
12931
12932
12933 fi
12934 test -n "$ac_cv_prog_READELF" && break
12935 done
12936
12937 if test -z "$ac_cv_prog_READELF" ; then
12938 set dummy readelf
12939 if test $build = $host ; then
12940 READELF="$2"
12941 else
12942 READELF="${ncn_tool_prefix}$2"
12943 fi
12944 fi
12945
12946
12947
12948
12949
12950
12951
12952 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
12953
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12955 $as_echo_n "checking for -plugin option... " >&6; }
12956
12957 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12958 plugin_option=
12959 for plugin in $plugin_names; do
12960 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12961 if test x$plugin_so = x$plugin; then
12962 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12963 fi
12964 if test x$plugin_so != x$plugin; then
12965 plugin_option="--plugin $plugin_so"
12966 break
12967 fi
12968 done
12969 if test -n "$plugin_option"; then
12970 PLUGIN_OPTION="$plugin_option"
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
12972 $as_echo "$plugin_option" >&6; }
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976 fi
12977
12978 AR_PLUGIN_OPTION=
12979 RANLIB_PLUGIN_OPTION=
12980 if test -n "$PLUGIN_OPTION"; then
12981 if $AR --help 2>&1 | grep -q "\--plugin"; then
12982 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12983 fi
12984 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
12985 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12986 fi
12987 fi
12988
12989
12990
12991 # Target tools.
12992
12993 # Check whether --with-build-time-tools was given.
12994 if test "${with_build_time_tools+set}" = set; then :
12995 withval=$with_build_time_tools; case x"$withval" in
12996 x/*) ;;
12997 *)
12998 with_build_time_tools=
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13000 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13001 ;;
13002 esac
13003 else
13004 with_build_time_tools=
13005 fi
13006
13007
13008
13009
13010 if test -n "$CC_FOR_TARGET"; then
13011 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13012 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13013 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13014 fi
13015
13016 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13017 for ncn_progname in cc gcc; do
13018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13019 set dummy ${ncn_progname}; ac_word=$2
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13021 $as_echo_n "checking for $ac_word... " >&6; }
13022 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13023 $as_echo_n "(cached) " >&6
13024 else
13025 if test -n "$CC_FOR_TARGET"; then
13026 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13027 else
13028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13030 do
13031 IFS=$as_save_IFS
13032 test -z "$as_dir" && as_dir=.
13033 for ac_exec_ext in '' $ac_executable_extensions; do
13034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13035 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13037 break 2
13038 fi
13039 done
13040 done
13041 IFS=$as_save_IFS
13042
13043 fi
13044 fi
13045 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13046 if test -n "$CC_FOR_TARGET"; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13048 $as_echo "$CC_FOR_TARGET" >&6; }
13049 else
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051 $as_echo "no" >&6; }
13052 fi
13053
13054
13055 done
13056 fi
13057
13058 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13059 for ncn_progname in cc gcc; do
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13061 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13062 if test -x $with_build_time_tools/${ncn_progname}; then
13063 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13065 $as_echo "yes" >&6; }
13066 break
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070 fi
13071 done
13072 fi
13073
13074 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13075 for ncn_progname in cc gcc; do
13076 if test -n "$ncn_target_tool_prefix"; then
13077 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13078 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 if test -n "$CC_FOR_TARGET"; then
13085 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13086 else
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13089 do
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13094 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13097 fi
13098 done
13099 done
13100 IFS=$as_save_IFS
13101
13102 fi
13103 fi
13104 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13105 if test -n "$CC_FOR_TARGET"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13107 $as_echo "$CC_FOR_TARGET" >&6; }
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112
13113
13114 fi
13115 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13117 set dummy ${ncn_progname}; ac_word=$2
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119 $as_echo_n "checking for $ac_word... " >&6; }
13120 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 if test -n "$CC_FOR_TARGET"; then
13124 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13125 else
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13128 do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13133 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137 done
13138 done
13139 IFS=$as_save_IFS
13140
13141 fi
13142 fi
13143 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13144 if test -n "$CC_FOR_TARGET"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13146 $as_echo "$CC_FOR_TARGET" >&6; }
13147 else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13150 fi
13151
13152
13153 fi
13154 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13155 done
13156 fi
13157
13158 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13159 set dummy cc gcc
13160 if test $build = $target ; then
13161 CC_FOR_TARGET="$2"
13162 else
13163 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13164 fi
13165 else
13166 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13167 fi
13168
13169
13170
13171 if test -n "$CXX_FOR_TARGET"; then
13172 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13173 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13174 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13175 fi
13176
13177 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13178 for ncn_progname in c++ g++ cxx gxx; do
13179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13180 set dummy ${ncn_progname}; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 if test -n "$CXX_FOR_TARGET"; then
13187 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13191 do
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13196 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13199 fi
13200 done
13201 done
13202 IFS=$as_save_IFS
13203
13204 fi
13205 fi
13206 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13207 if test -n "$CXX_FOR_TARGET"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13209 $as_echo "$CXX_FOR_TARGET" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13213 fi
13214
13215
13216 done
13217 fi
13218
13219 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13220 for ncn_progname in c++ g++ cxx gxx; do
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13222 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13223 if test -x $with_build_time_tools/${ncn_progname}; then
13224 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13226 $as_echo "yes" >&6; }
13227 break
13228 else
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13231 fi
13232 done
13233 fi
13234
13235 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13236 for ncn_progname in c++ g++ cxx gxx; do
13237 if test -n "$ncn_target_tool_prefix"; then
13238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241 $as_echo_n "checking for $ac_word... " >&6; }
13242 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 if test -n "$CXX_FOR_TARGET"; then
13246 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13247 else
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13250 do
13251 IFS=$as_save_IFS
13252 test -z "$as_dir" && as_dir=.
13253 for ac_exec_ext in '' $ac_executable_extensions; do
13254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13255 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13257 break 2
13258 fi
13259 done
13260 done
13261 IFS=$as_save_IFS
13262
13263 fi
13264 fi
13265 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13266 if test -n "$CXX_FOR_TARGET"; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13268 $as_echo "$CXX_FOR_TARGET" >&6; }
13269 else
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 $as_echo "no" >&6; }
13272 fi
13273
13274
13275 fi
13276 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13278 set dummy ${ncn_progname}; ac_word=$2
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13280 $as_echo_n "checking for $ac_word... " >&6; }
13281 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13282 $as_echo_n "(cached) " >&6
13283 else
13284 if test -n "$CXX_FOR_TARGET"; then
13285 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13286 else
13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13289 do
13290 IFS=$as_save_IFS
13291 test -z "$as_dir" && as_dir=.
13292 for ac_exec_ext in '' $ac_executable_extensions; do
13293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13294 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 break 2
13297 fi
13298 done
13299 done
13300 IFS=$as_save_IFS
13301
13302 fi
13303 fi
13304 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13305 if test -n "$CXX_FOR_TARGET"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13307 $as_echo "$CXX_FOR_TARGET" >&6; }
13308 else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 $as_echo "no" >&6; }
13311 fi
13312
13313
13314 fi
13315 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13316 done
13317 fi
13318
13319 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13320 set dummy c++ g++ cxx gxx
13321 if test $build = $target ; then
13322 CXX_FOR_TARGET="$2"
13323 else
13324 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13325 fi
13326 else
13327 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13328 fi
13329
13330
13331
13332 if test -n "$GCC_FOR_TARGET"; then
13333 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13334 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13335 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13336 fi
13337
13338 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13339 for ncn_progname in gcc; do
13340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13341 set dummy ${ncn_progname}; ac_word=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343 $as_echo_n "checking for $ac_word... " >&6; }
13344 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 if test -n "$GCC_FOR_TARGET"; then
13348 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13349 else
13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351 for as_dir in $PATH
13352 do
13353 IFS=$as_save_IFS
13354 test -z "$as_dir" && as_dir=.
13355 for ac_exec_ext in '' $ac_executable_extensions; do
13356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13357 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13359 break 2
13360 fi
13361 done
13362 done
13363 IFS=$as_save_IFS
13364
13365 fi
13366 fi
13367 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13368 if test -n "$GCC_FOR_TARGET"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13370 $as_echo "$GCC_FOR_TARGET" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13374 fi
13375
13376
13377 done
13378 fi
13379
13380 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13381 for ncn_progname in gcc; do
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13383 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13384 if test -x $with_build_time_tools/${ncn_progname}; then
13385 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13387 $as_echo "yes" >&6; }
13388 break
13389 else
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391 $as_echo "no" >&6; }
13392 fi
13393 done
13394 fi
13395
13396 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13397 for ncn_progname in gcc; do
13398 if test -n "$ncn_target_tool_prefix"; then
13399 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13400 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402 $as_echo_n "checking for $ac_word... " >&6; }
13403 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13404 $as_echo_n "(cached) " >&6
13405 else
13406 if test -n "$GCC_FOR_TARGET"; then
13407 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13408 else
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13411 do
13412 IFS=$as_save_IFS
13413 test -z "$as_dir" && as_dir=.
13414 for ac_exec_ext in '' $ac_executable_extensions; do
13415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13418 break 2
13419 fi
13420 done
13421 done
13422 IFS=$as_save_IFS
13423
13424 fi
13425 fi
13426 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13427 if test -n "$GCC_FOR_TARGET"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13429 $as_echo "$GCC_FOR_TARGET" >&6; }
13430 else
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433 fi
13434
13435
13436 fi
13437 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13439 set dummy ${ncn_progname}; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 if test -n "$GCC_FOR_TARGET"; then
13446 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13447 else
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13450 do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459 done
13460 done
13461 IFS=$as_save_IFS
13462
13463 fi
13464 fi
13465 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13466 if test -n "$GCC_FOR_TARGET"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13468 $as_echo "$GCC_FOR_TARGET" >&6; }
13469 else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13472 fi
13473
13474
13475 fi
13476 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13477 done
13478 fi
13479
13480 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13481 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13482 else
13483 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13484 fi
13485
13486
13487
13488 if test -n "$GFORTRAN_FOR_TARGET"; then
13489 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13490 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13491 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13492 fi
13493
13494 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13495 for ncn_progname in gfortran; do
13496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13497 set dummy ${ncn_progname}; ac_word=$2
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13499 $as_echo_n "checking for $ac_word... " >&6; }
13500 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 if test -n "$GFORTRAN_FOR_TARGET"; then
13504 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13505 else
13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507 for as_dir in $PATH
13508 do
13509 IFS=$as_save_IFS
13510 test -z "$as_dir" && as_dir=.
13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13513 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13515 break 2
13516 fi
13517 done
13518 done
13519 IFS=$as_save_IFS
13520
13521 fi
13522 fi
13523 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13524 if test -n "$GFORTRAN_FOR_TARGET"; then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13526 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13527 else
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13530 fi
13531
13532
13533 done
13534 fi
13535
13536 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13537 for ncn_progname in gfortran; do
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13539 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13540 if test -x $with_build_time_tools/${ncn_progname}; then
13541 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13543 $as_echo "yes" >&6; }
13544 break
13545 else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 $as_echo "no" >&6; }
13548 fi
13549 done
13550 fi
13551
13552 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13553 for ncn_progname in gfortran; do
13554 if test -n "$ncn_target_tool_prefix"; then
13555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13556 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 if test -n "$GFORTRAN_FOR_TARGET"; then
13563 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13567 do
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13575 fi
13576 done
13577 done
13578 IFS=$as_save_IFS
13579
13580 fi
13581 fi
13582 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13583 if test -n "$GFORTRAN_FOR_TARGET"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13585 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13589 fi
13590
13591
13592 fi
13593 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13595 set dummy ${ncn_progname}; ac_word=$2
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13597 $as_echo_n "checking for $ac_word... " >&6; }
13598 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 if test -n "$GFORTRAN_FOR_TARGET"; then
13602 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13603 else
13604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605 for as_dir in $PATH
13606 do
13607 IFS=$as_save_IFS
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13611 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 break 2
13614 fi
13615 done
13616 done
13617 IFS=$as_save_IFS
13618
13619 fi
13620 fi
13621 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13622 if test -n "$GFORTRAN_FOR_TARGET"; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13624 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13625 else
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627 $as_echo "no" >&6; }
13628 fi
13629
13630
13631 fi
13632 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13633 done
13634 fi
13635
13636 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13637 set dummy gfortran
13638 if test $build = $target ; then
13639 GFORTRAN_FOR_TARGET="$2"
13640 else
13641 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13642 fi
13643 else
13644 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13645 fi
13646
13647
13648
13649 if test -n "$GOC_FOR_TARGET"; then
13650 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13651 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13652 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13653 fi
13654
13655 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13656 for ncn_progname in gccgo; do
13657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13658 set dummy ${ncn_progname}; ac_word=$2
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13660 $as_echo_n "checking for $ac_word... " >&6; }
13661 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 if test -n "$GOC_FOR_TARGET"; then
13665 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13666 else
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13669 do
13670 IFS=$as_save_IFS
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13674 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 break 2
13677 fi
13678 done
13679 done
13680 IFS=$as_save_IFS
13681
13682 fi
13683 fi
13684 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13685 if test -n "$GOC_FOR_TARGET"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13687 $as_echo "$GOC_FOR_TARGET" >&6; }
13688 else
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 $as_echo "no" >&6; }
13691 fi
13692
13693
13694 done
13695 fi
13696
13697 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13698 for ncn_progname in gccgo; do
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13701 if test -x $with_build_time_tools/${ncn_progname}; then
13702 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13704 $as_echo "yes" >&6; }
13705 break
13706 else
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13709 fi
13710 done
13711 fi
13712
13713 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13714 for ncn_progname in gccgo; do
13715 if test -n "$ncn_target_tool_prefix"; then
13716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719 $as_echo_n "checking for $ac_word... " >&6; }
13720 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 if test -n "$GOC_FOR_TARGET"; then
13724 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13725 else
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13728 do
13729 IFS=$as_save_IFS
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
13732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13733 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735 break 2
13736 fi
13737 done
13738 done
13739 IFS=$as_save_IFS
13740
13741 fi
13742 fi
13743 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13744 if test -n "$GOC_FOR_TARGET"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13746 $as_echo "$GOC_FOR_TARGET" >&6; }
13747 else
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749 $as_echo "no" >&6; }
13750 fi
13751
13752
13753 fi
13754 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13756 set dummy ${ncn_progname}; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 if test -n "$GOC_FOR_TARGET"; then
13763 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13764 else
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13767 do
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774 break 2
13775 fi
13776 done
13777 done
13778 IFS=$as_save_IFS
13779
13780 fi
13781 fi
13782 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13783 if test -n "$GOC_FOR_TARGET"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13785 $as_echo "$GOC_FOR_TARGET" >&6; }
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13789 fi
13790
13791
13792 fi
13793 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13794 done
13795 fi
13796
13797 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13798 set dummy gccgo
13799 if test $build = $target ; then
13800 GOC_FOR_TARGET="$2"
13801 else
13802 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13803 fi
13804 else
13805 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13806 fi
13807
13808
13809
13810 if test -n "$GDC_FOR_TARGET"; then
13811 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13812 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13813 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13814 fi
13815
13816 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13817 for ncn_progname in gdc; do
13818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13819 set dummy ${ncn_progname}; ac_word=$2
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821 $as_echo_n "checking for $ac_word... " >&6; }
13822 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 if test -n "$GDC_FOR_TARGET"; then
13826 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13827 else
13828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829 for as_dir in $PATH
13830 do
13831 IFS=$as_save_IFS
13832 test -z "$as_dir" && as_dir=.
13833 for ac_exec_ext in '' $ac_executable_extensions; do
13834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13835 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13837 break 2
13838 fi
13839 done
13840 done
13841 IFS=$as_save_IFS
13842
13843 fi
13844 fi
13845 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13846 if test -n "$GDC_FOR_TARGET"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13848 $as_echo "$GDC_FOR_TARGET" >&6; }
13849 else
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13852 fi
13853
13854
13855 done
13856 fi
13857
13858 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13859 for ncn_progname in gdc; do
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13861 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13862 if test -x $with_build_time_tools/${ncn_progname}; then
13863 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13865 $as_echo "yes" >&6; }
13866 break
13867 else
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13870 fi
13871 done
13872 fi
13873
13874 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13875 for ncn_progname in gdc; do
13876 if test -n "$ncn_target_tool_prefix"; then
13877 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13878 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13880 $as_echo_n "checking for $ac_word... " >&6; }
13881 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 if test -n "$GDC_FOR_TARGET"; then
13885 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13886 else
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13889 do
13890 IFS=$as_save_IFS
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
13893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13894 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13896 break 2
13897 fi
13898 done
13899 done
13900 IFS=$as_save_IFS
13901
13902 fi
13903 fi
13904 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13905 if test -n "$GDC_FOR_TARGET"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13907 $as_echo "$GDC_FOR_TARGET" >&6; }
13908 else
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910 $as_echo "no" >&6; }
13911 fi
13912
13913
13914 fi
13915 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13917 set dummy ${ncn_progname}; ac_word=$2
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13919 $as_echo_n "checking for $ac_word... " >&6; }
13920 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 if test -n "$GDC_FOR_TARGET"; then
13924 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13925 else
13926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13927 for as_dir in $PATH
13928 do
13929 IFS=$as_save_IFS
13930 test -z "$as_dir" && as_dir=.
13931 for ac_exec_ext in '' $ac_executable_extensions; do
13932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13933 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13935 break 2
13936 fi
13937 done
13938 done
13939 IFS=$as_save_IFS
13940
13941 fi
13942 fi
13943 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13944 if test -n "$GDC_FOR_TARGET"; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13946 $as_echo "$GDC_FOR_TARGET" >&6; }
13947 else
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949 $as_echo "no" >&6; }
13950 fi
13951
13952
13953 fi
13954 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13955 done
13956 fi
13957
13958 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13959 set dummy gdc
13960 if test $build = $target ; then
13961 GDC_FOR_TARGET="$2"
13962 else
13963 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13964 fi
13965 else
13966 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13967 fi
13968
13969
13970
13971 if test -n "$GM2_FOR_TARGET"; then
13972 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13973 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13974 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13975 fi
13976
13977 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13978 for ncn_progname in gm2; do
13979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13980 set dummy ${ncn_progname}; ac_word=$2
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13982 $as_echo_n "checking for $ac_word... " >&6; }
13983 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13984 $as_echo_n "(cached) " >&6
13985 else
13986 if test -n "$GM2_FOR_TARGET"; then
13987 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13988 else
13989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990 for as_dir in $PATH
13991 do
13992 IFS=$as_save_IFS
13993 test -z "$as_dir" && as_dir=.
13994 for ac_exec_ext in '' $ac_executable_extensions; do
13995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13996 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13998 break 2
13999 fi
14000 done
14001 done
14002 IFS=$as_save_IFS
14003
14004 fi
14005 fi
14006 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14007 if test -n "$GM2_FOR_TARGET"; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14009 $as_echo "$GM2_FOR_TARGET" >&6; }
14010 else
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 $as_echo "no" >&6; }
14013 fi
14014
14015
14016 done
14017 fi
14018
14019 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14020 for ncn_progname in gm2; do
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14022 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14023 if test -x $with_build_time_tools/${ncn_progname}; then
14024 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14026 $as_echo "yes" >&6; }
14027 break
14028 else
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030 $as_echo "no" >&6; }
14031 fi
14032 done
14033 fi
14034
14035 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14036 for ncn_progname in gm2; do
14037 if test -n "$ncn_target_tool_prefix"; then
14038 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14039 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041 $as_echo_n "checking for $ac_word... " >&6; }
14042 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 if test -n "$GM2_FOR_TARGET"; then
14046 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14047 else
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14050 do
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14058 fi
14059 done
14060 done
14061 IFS=$as_save_IFS
14062
14063 fi
14064 fi
14065 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14066 if test -n "$GM2_FOR_TARGET"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14068 $as_echo "$GM2_FOR_TARGET" >&6; }
14069 else
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14072 fi
14073
14074
14075 fi
14076 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14078 set dummy ${ncn_progname}; ac_word=$2
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14080 $as_echo_n "checking for $ac_word... " >&6; }
14081 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 if test -n "$GM2_FOR_TARGET"; then
14085 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14086 else
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14089 do
14090 IFS=$as_save_IFS
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
14093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14094 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14096 break 2
14097 fi
14098 done
14099 done
14100 IFS=$as_save_IFS
14101
14102 fi
14103 fi
14104 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14105 if test -n "$GM2_FOR_TARGET"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14107 $as_echo "$GM2_FOR_TARGET" >&6; }
14108 else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110 $as_echo "no" >&6; }
14111 fi
14112
14113
14114 fi
14115 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14116 done
14117 fi
14118
14119 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14120 set dummy gm2
14121 if test $build = $target ; then
14122 GM2_FOR_TARGET="$2"
14123 else
14124 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14125 fi
14126 else
14127 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14128 fi
14129
14130
14131
14132 cat > conftest.c << \EOF
14133 #ifdef __GNUC__
14134 gcc_yay;
14135 #endif
14136 EOF
14137 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14138 have_gcc_for_target=yes
14139 else
14140 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14141 have_gcc_for_target=no
14142 fi
14143 rm conftest.c
14144
14145
14146
14147
14148 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14149 if test -n "$with_build_time_tools"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14151 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14152 if test -x $with_build_time_tools/ar; then
14153 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14154 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14156 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14157 else
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14160 fi
14161 elif test $build != $host && test $have_gcc_for_target = yes; then
14162 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14163 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14164 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14165 fi
14166 fi
14167 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14168 # Extract the first word of "ar", so it can be a program name with args.
14169 set dummy ar; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 case $AR_FOR_TARGET in
14176 [\\/]* | ?:[\\/]*)
14177 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14178 ;;
14179 *)
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $gcc_cv_tool_dirs
14182 do
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14190 fi
14191 done
14192 done
14193 IFS=$as_save_IFS
14194
14195 ;;
14196 esac
14197 fi
14198 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14199 if test -n "$AR_FOR_TARGET"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14201 $as_echo "$AR_FOR_TARGET" >&6; }
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14205 fi
14206
14207
14208 fi
14209 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14210
14211
14212 if test -n "$AR_FOR_TARGET"; then
14213 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14214 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14215 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14216 fi
14217
14218 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14219 for ncn_progname in ar; do
14220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14221 set dummy ${ncn_progname}; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 if test -n "$AR_FOR_TARGET"; then
14228 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14229 else
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14232 do
14233 IFS=$as_save_IFS
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
14236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14237 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 break 2
14240 fi
14241 done
14242 done
14243 IFS=$as_save_IFS
14244
14245 fi
14246 fi
14247 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14248 if test -n "$AR_FOR_TARGET"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14250 $as_echo "$AR_FOR_TARGET" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14254 fi
14255
14256
14257 done
14258 fi
14259
14260 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14261 for ncn_progname in ar; do
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14263 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14264 if test -x $with_build_time_tools/${ncn_progname}; then
14265 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14267 $as_echo "yes" >&6; }
14268 break
14269 else
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14272 fi
14273 done
14274 fi
14275
14276 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14277 for ncn_progname in ar; do
14278 if test -n "$ncn_target_tool_prefix"; then
14279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 if test -n "$AR_FOR_TARGET"; then
14287 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14288 else
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14291 do
14292 IFS=$as_save_IFS
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 break 2
14299 fi
14300 done
14301 done
14302 IFS=$as_save_IFS
14303
14304 fi
14305 fi
14306 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14307 if test -n "$AR_FOR_TARGET"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14309 $as_echo "$AR_FOR_TARGET" >&6; }
14310 else
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14313 fi
14314
14315
14316 fi
14317 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14319 set dummy ${ncn_progname}; ac_word=$2
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14321 $as_echo_n "checking for $ac_word... " >&6; }
14322 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 if test -n "$AR_FOR_TARGET"; then
14326 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14327 else
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14330 do
14331 IFS=$as_save_IFS
14332 test -z "$as_dir" && as_dir=.
14333 for ac_exec_ext in '' $ac_executable_extensions; do
14334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14335 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14337 break 2
14338 fi
14339 done
14340 done
14341 IFS=$as_save_IFS
14342
14343 fi
14344 fi
14345 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14346 if test -n "$AR_FOR_TARGET"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14348 $as_echo "$AR_FOR_TARGET" >&6; }
14349 else
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352 fi
14353
14354
14355 fi
14356 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14357 done
14358 fi
14359
14360 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14361 set dummy ar
14362 if test $build = $target ; then
14363 AR_FOR_TARGET="$2"
14364 else
14365 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14366 fi
14367 else
14368 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14369 fi
14370
14371 else
14372 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14373 fi
14374
14375
14376
14377
14378 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14379 if test -n "$with_build_time_tools"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14381 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14382 if test -x $with_build_time_tools/as; then
14383 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14384 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14386 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14387 else
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14390 fi
14391 elif test $build != $host && test $have_gcc_for_target = yes; then
14392 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14393 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14394 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14395 fi
14396 fi
14397 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14398 # Extract the first word of "as", so it can be a program name with args.
14399 set dummy as; ac_word=$2
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14401 $as_echo_n "checking for $ac_word... " >&6; }
14402 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 case $AS_FOR_TARGET in
14406 [\\/]* | ?:[\\/]*)
14407 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14408 ;;
14409 *)
14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $gcc_cv_tool_dirs
14412 do
14413 IFS=$as_save_IFS
14414 test -z "$as_dir" && as_dir=.
14415 for ac_exec_ext in '' $ac_executable_extensions; do
14416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14417 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14419 break 2
14420 fi
14421 done
14422 done
14423 IFS=$as_save_IFS
14424
14425 ;;
14426 esac
14427 fi
14428 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14429 if test -n "$AS_FOR_TARGET"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14431 $as_echo "$AS_FOR_TARGET" >&6; }
14432 else
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14435 fi
14436
14437
14438 fi
14439 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14440
14441
14442 if test -n "$AS_FOR_TARGET"; then
14443 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14444 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14445 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14446 fi
14447
14448 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14449 for ncn_progname in as; do
14450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14451 set dummy ${ncn_progname}; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14457 if test -n "$AS_FOR_TARGET"; then
14458 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14459 else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14462 do
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14469 break 2
14470 fi
14471 done
14472 done
14473 IFS=$as_save_IFS
14474
14475 fi
14476 fi
14477 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14478 if test -n "$AS_FOR_TARGET"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14480 $as_echo "$AS_FOR_TARGET" >&6; }
14481 else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14484 fi
14485
14486
14487 done
14488 fi
14489
14490 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14491 for ncn_progname in as; do
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14493 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14494 if test -x $with_build_time_tools/${ncn_progname}; then
14495 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14498 break
14499 else
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14501 $as_echo "no" >&6; }
14502 fi
14503 done
14504 fi
14505
14506 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14507 for ncn_progname in as; do
14508 if test -n "$ncn_target_tool_prefix"; then
14509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512 $as_echo_n "checking for $ac_word... " >&6; }
14513 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 if test -n "$AS_FOR_TARGET"; then
14517 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14518 else
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14521 do
14522 IFS=$as_save_IFS
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528 break 2
14529 fi
14530 done
14531 done
14532 IFS=$as_save_IFS
14533
14534 fi
14535 fi
14536 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14537 if test -n "$AS_FOR_TARGET"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14539 $as_echo "$AS_FOR_TARGET" >&6; }
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14543 fi
14544
14545
14546 fi
14547 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14549 set dummy ${ncn_progname}; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14551 $as_echo_n "checking for $ac_word... " >&6; }
14552 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 if test -n "$AS_FOR_TARGET"; then
14556 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14557 else
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14560 do
14561 IFS=$as_save_IFS
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14565 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14567 break 2
14568 fi
14569 done
14570 done
14571 IFS=$as_save_IFS
14572
14573 fi
14574 fi
14575 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14576 if test -n "$AS_FOR_TARGET"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14578 $as_echo "$AS_FOR_TARGET" >&6; }
14579 else
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14582 fi
14583
14584
14585 fi
14586 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14587 done
14588 fi
14589
14590 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14591 set dummy as
14592 if test $build = $target ; then
14593 AS_FOR_TARGET="$2"
14594 else
14595 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14596 fi
14597 else
14598 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14599 fi
14600
14601 else
14602 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14603 fi
14604
14605
14606
14607
14608 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14609 if test -n "$with_build_time_tools"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14611 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14612 if test -x $with_build_time_tools/dlltool; then
14613 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14614 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14616 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14617 else
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620 fi
14621 elif test $build != $host && test $have_gcc_for_target = yes; then
14622 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14623 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14624 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14625 fi
14626 fi
14627 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14628 # Extract the first word of "dlltool", so it can be a program name with args.
14629 set dummy dlltool; ac_word=$2
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14631 $as_echo_n "checking for $ac_word... " >&6; }
14632 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 case $DLLTOOL_FOR_TARGET in
14636 [\\/]* | ?:[\\/]*)
14637 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14638 ;;
14639 *)
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $gcc_cv_tool_dirs
14642 do
14643 IFS=$as_save_IFS
14644 test -z "$as_dir" && as_dir=.
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14649 break 2
14650 fi
14651 done
14652 done
14653 IFS=$as_save_IFS
14654
14655 ;;
14656 esac
14657 fi
14658 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14659 if test -n "$DLLTOOL_FOR_TARGET"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14661 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14662 else
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; }
14665 fi
14666
14667
14668 fi
14669 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14670
14671
14672 if test -n "$DLLTOOL_FOR_TARGET"; then
14673 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14674 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14675 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14676 fi
14677
14678 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14679 for ncn_progname in dlltool; do
14680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14681 set dummy ${ncn_progname}; ac_word=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683 $as_echo_n "checking for $ac_word... " >&6; }
14684 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14685 $as_echo_n "(cached) " >&6
14686 else
14687 if test -n "$DLLTOOL_FOR_TARGET"; then
14688 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14689 else
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14692 do
14693 IFS=$as_save_IFS
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14699 break 2
14700 fi
14701 done
14702 done
14703 IFS=$as_save_IFS
14704
14705 fi
14706 fi
14707 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14708 if test -n "$DLLTOOL_FOR_TARGET"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14710 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14711 else
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14714 fi
14715
14716
14717 done
14718 fi
14719
14720 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14721 for ncn_progname in dlltool; do
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14723 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14724 if test -x $with_build_time_tools/${ncn_progname}; then
14725 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14727 $as_echo "yes" >&6; }
14728 break
14729 else
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731 $as_echo "no" >&6; }
14732 fi
14733 done
14734 fi
14735
14736 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14737 for ncn_progname in dlltool; do
14738 if test -n "$ncn_target_tool_prefix"; then
14739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14740 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14742 $as_echo_n "checking for $ac_word... " >&6; }
14743 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14744 $as_echo_n "(cached) " >&6
14745 else
14746 if test -n "$DLLTOOL_FOR_TARGET"; then
14747 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14748 else
14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14750 for as_dir in $PATH
14751 do
14752 IFS=$as_save_IFS
14753 test -z "$as_dir" && as_dir=.
14754 for ac_exec_ext in '' $ac_executable_extensions; do
14755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14756 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14758 break 2
14759 fi
14760 done
14761 done
14762 IFS=$as_save_IFS
14763
14764 fi
14765 fi
14766 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14767 if test -n "$DLLTOOL_FOR_TARGET"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14769 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14770 else
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14773 fi
14774
14775
14776 fi
14777 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14779 set dummy ${ncn_progname}; ac_word=$2
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14781 $as_echo_n "checking for $ac_word... " >&6; }
14782 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 if test -n "$DLLTOOL_FOR_TARGET"; then
14786 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14787 else
14788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14790 do
14791 IFS=$as_save_IFS
14792 test -z "$as_dir" && as_dir=.
14793 for ac_exec_ext in '' $ac_executable_extensions; do
14794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14795 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14797 break 2
14798 fi
14799 done
14800 done
14801 IFS=$as_save_IFS
14802
14803 fi
14804 fi
14805 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14806 if test -n "$DLLTOOL_FOR_TARGET"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14808 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14809 else
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14811 $as_echo "no" >&6; }
14812 fi
14813
14814
14815 fi
14816 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14817 done
14818 fi
14819
14820 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14821 set dummy dlltool
14822 if test $build = $target ; then
14823 DLLTOOL_FOR_TARGET="$2"
14824 else
14825 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14826 fi
14827 else
14828 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14829 fi
14830
14831 else
14832 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14833 fi
14834
14835
14836
14837
14838 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14839 if test -n "$with_build_time_tools"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14841 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14842 if test -x $with_build_time_tools/dsymutil; then
14843 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14844 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14846 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14847 else
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 $as_echo "no" >&6; }
14850 fi
14851 elif test $build != $host && test $have_gcc_for_target = yes; then
14852 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14853 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14854 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14855 fi
14856 fi
14857 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14858 # Extract the first word of "dsymutil", so it can be a program name with args.
14859 set dummy dsymutil; ac_word=$2
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14861 $as_echo_n "checking for $ac_word... " >&6; }
14862 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 case $DSYMUTIL_FOR_TARGET in
14866 [\\/]* | ?:[\\/]*)
14867 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14868 ;;
14869 *)
14870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14871 for as_dir in $gcc_cv_tool_dirs
14872 do
14873 IFS=$as_save_IFS
14874 test -z "$as_dir" && as_dir=.
14875 for ac_exec_ext in '' $ac_executable_extensions; do
14876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14877 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14879 break 2
14880 fi
14881 done
14882 done
14883 IFS=$as_save_IFS
14884
14885 ;;
14886 esac
14887 fi
14888 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14889 if test -n "$DSYMUTIL_FOR_TARGET"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14891 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14892 else
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894 $as_echo "no" >&6; }
14895 fi
14896
14897
14898 fi
14899 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14900
14901
14902 if test -n "$DSYMUTIL_FOR_TARGET"; then
14903 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14904 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14905 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14906 fi
14907
14908 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14909 for ncn_progname in dsymutil; do
14910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14911 set dummy ${ncn_progname}; ac_word=$2
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14913 $as_echo_n "checking for $ac_word... " >&6; }
14914 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14915 $as_echo_n "(cached) " >&6
14916 else
14917 if test -n "$DSYMUTIL_FOR_TARGET"; then
14918 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14919 else
14920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14922 do
14923 IFS=$as_save_IFS
14924 test -z "$as_dir" && as_dir=.
14925 for ac_exec_ext in '' $ac_executable_extensions; do
14926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14927 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14929 break 2
14930 fi
14931 done
14932 done
14933 IFS=$as_save_IFS
14934
14935 fi
14936 fi
14937 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14938 if test -n "$DSYMUTIL_FOR_TARGET"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14940 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14941 else
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943 $as_echo "no" >&6; }
14944 fi
14945
14946
14947 done
14948 fi
14949
14950 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14951 for ncn_progname in dsymutil; do
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14953 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14954 if test -x $with_build_time_tools/${ncn_progname}; then
14955 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14957 $as_echo "yes" >&6; }
14958 break
14959 else
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961 $as_echo "no" >&6; }
14962 fi
14963 done
14964 fi
14965
14966 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14967 for ncn_progname in dsymutil; do
14968 if test -n "$ncn_target_tool_prefix"; then
14969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14972 $as_echo_n "checking for $ac_word... " >&6; }
14973 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 if test -n "$DSYMUTIL_FOR_TARGET"; then
14977 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14978 else
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14981 do
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14988 break 2
14989 fi
14990 done
14991 done
14992 IFS=$as_save_IFS
14993
14994 fi
14995 fi
14996 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14997 if test -n "$DSYMUTIL_FOR_TARGET"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14999 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15003 fi
15004
15005
15006 fi
15007 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15009 set dummy ${ncn_progname}; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011 $as_echo_n "checking for $ac_word... " >&6; }
15012 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 if test -n "$DSYMUTIL_FOR_TARGET"; then
15016 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15017 else
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15020 do
15021 IFS=$as_save_IFS
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 break 2
15028 fi
15029 done
15030 done
15031 IFS=$as_save_IFS
15032
15033 fi
15034 fi
15035 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15036 if test -n "$DSYMUTIL_FOR_TARGET"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15038 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15039 else
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041 $as_echo "no" >&6; }
15042 fi
15043
15044
15045 fi
15046 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15047 done
15048 fi
15049
15050 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15051 set dummy dsymutil
15052 if test $build = $target ; then
15053 DSYMUTIL_FOR_TARGET="$2"
15054 else
15055 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15056 fi
15057 else
15058 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15059 fi
15060
15061 else
15062 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15063 fi
15064
15065
15066
15067
15068 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15069 if test -n "$with_build_time_tools"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15071 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15072 if test -x $with_build_time_tools/ld; then
15073 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15074 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15076 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15077 else
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079 $as_echo "no" >&6; }
15080 fi
15081 elif test $build != $host && test $have_gcc_for_target = yes; then
15082 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15083 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15084 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15085 fi
15086 fi
15087 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15088 # Extract the first word of "ld", so it can be a program name with args.
15089 set dummy ld; ac_word=$2
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15091 $as_echo_n "checking for $ac_word... " >&6; }
15092 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15093 $as_echo_n "(cached) " >&6
15094 else
15095 case $LD_FOR_TARGET in
15096 [\\/]* | ?:[\\/]*)
15097 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15098 ;;
15099 *)
15100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15101 for as_dir in $gcc_cv_tool_dirs
15102 do
15103 IFS=$as_save_IFS
15104 test -z "$as_dir" && as_dir=.
15105 for ac_exec_ext in '' $ac_executable_extensions; do
15106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15107 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15109 break 2
15110 fi
15111 done
15112 done
15113 IFS=$as_save_IFS
15114
15115 ;;
15116 esac
15117 fi
15118 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15119 if test -n "$LD_FOR_TARGET"; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15121 $as_echo "$LD_FOR_TARGET" >&6; }
15122 else
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124 $as_echo "no" >&6; }
15125 fi
15126
15127
15128 fi
15129 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15130
15131
15132 if test -n "$LD_FOR_TARGET"; then
15133 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15134 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15135 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15136 fi
15137
15138 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15139 for ncn_progname in ld; do
15140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15141 set dummy ${ncn_progname}; ac_word=$2
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15143 $as_echo_n "checking for $ac_word... " >&6; }
15144 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15145 $as_echo_n "(cached) " >&6
15146 else
15147 if test -n "$LD_FOR_TARGET"; then
15148 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15149 else
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15152 do
15153 IFS=$as_save_IFS
15154 test -z "$as_dir" && as_dir=.
15155 for ac_exec_ext in '' $ac_executable_extensions; do
15156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15159 break 2
15160 fi
15161 done
15162 done
15163 IFS=$as_save_IFS
15164
15165 fi
15166 fi
15167 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15168 if test -n "$LD_FOR_TARGET"; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15170 $as_echo "$LD_FOR_TARGET" >&6; }
15171 else
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15173 $as_echo "no" >&6; }
15174 fi
15175
15176
15177 done
15178 fi
15179
15180 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15181 for ncn_progname in ld; do
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15183 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15184 if test -x $with_build_time_tools/${ncn_progname}; then
15185 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15187 $as_echo "yes" >&6; }
15188 break
15189 else
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15191 $as_echo "no" >&6; }
15192 fi
15193 done
15194 fi
15195
15196 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15197 for ncn_progname in ld; do
15198 if test -n "$ncn_target_tool_prefix"; then
15199 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15200 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15202 $as_echo_n "checking for $ac_word... " >&6; }
15203 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 if test -n "$LD_FOR_TARGET"; then
15207 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15208 else
15209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15210 for as_dir in $PATH
15211 do
15212 IFS=$as_save_IFS
15213 test -z "$as_dir" && as_dir=.
15214 for ac_exec_ext in '' $ac_executable_extensions; do
15215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15216 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15218 break 2
15219 fi
15220 done
15221 done
15222 IFS=$as_save_IFS
15223
15224 fi
15225 fi
15226 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15227 if test -n "$LD_FOR_TARGET"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15229 $as_echo "$LD_FOR_TARGET" >&6; }
15230 else
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15233 fi
15234
15235
15236 fi
15237 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15239 set dummy ${ncn_progname}; ac_word=$2
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15241 $as_echo_n "checking for $ac_word... " >&6; }
15242 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15245 if test -n "$LD_FOR_TARGET"; then
15246 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15247 else
15248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15249 for as_dir in $PATH
15250 do
15251 IFS=$as_save_IFS
15252 test -z "$as_dir" && as_dir=.
15253 for ac_exec_ext in '' $ac_executable_extensions; do
15254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15255 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15257 break 2
15258 fi
15259 done
15260 done
15261 IFS=$as_save_IFS
15262
15263 fi
15264 fi
15265 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15266 if test -n "$LD_FOR_TARGET"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15268 $as_echo "$LD_FOR_TARGET" >&6; }
15269 else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271 $as_echo "no" >&6; }
15272 fi
15273
15274
15275 fi
15276 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15277 done
15278 fi
15279
15280 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15281 set dummy ld
15282 if test $build = $target ; then
15283 LD_FOR_TARGET="$2"
15284 else
15285 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15286 fi
15287 else
15288 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15289 fi
15290
15291 else
15292 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15293 fi
15294
15295
15296
15297
15298 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15299 if test -n "$with_build_time_tools"; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15301 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15302 if test -x $with_build_time_tools/lipo; then
15303 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15304 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15306 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15307 else
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309 $as_echo "no" >&6; }
15310 fi
15311 elif test $build != $host && test $have_gcc_for_target = yes; then
15312 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15313 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15314 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15315 fi
15316 fi
15317 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15318 # Extract the first word of "lipo", so it can be a program name with args.
15319 set dummy lipo; ac_word=$2
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15321 $as_echo_n "checking for $ac_word... " >&6; }
15322 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15323 $as_echo_n "(cached) " >&6
15324 else
15325 case $LIPO_FOR_TARGET in
15326 [\\/]* | ?:[\\/]*)
15327 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15328 ;;
15329 *)
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $gcc_cv_tool_dirs
15332 do
15333 IFS=$as_save_IFS
15334 test -z "$as_dir" && as_dir=.
15335 for ac_exec_ext in '' $ac_executable_extensions; do
15336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15339 break 2
15340 fi
15341 done
15342 done
15343 IFS=$as_save_IFS
15344
15345 ;;
15346 esac
15347 fi
15348 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15349 if test -n "$LIPO_FOR_TARGET"; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15351 $as_echo "$LIPO_FOR_TARGET" >&6; }
15352 else
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15354 $as_echo "no" >&6; }
15355 fi
15356
15357
15358 fi
15359 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15360
15361
15362 if test -n "$LIPO_FOR_TARGET"; then
15363 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15364 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15365 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15366 fi
15367
15368 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15369 for ncn_progname in lipo; do
15370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15371 set dummy ${ncn_progname}; ac_word=$2
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15373 $as_echo_n "checking for $ac_word... " >&6; }
15374 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377 if test -n "$LIPO_FOR_TARGET"; then
15378 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15379 else
15380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15381 for as_dir in $PATH
15382 do
15383 IFS=$as_save_IFS
15384 test -z "$as_dir" && as_dir=.
15385 for ac_exec_ext in '' $ac_executable_extensions; do
15386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15387 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15389 break 2
15390 fi
15391 done
15392 done
15393 IFS=$as_save_IFS
15394
15395 fi
15396 fi
15397 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15398 if test -n "$LIPO_FOR_TARGET"; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15400 $as_echo "$LIPO_FOR_TARGET" >&6; }
15401 else
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15404 fi
15405
15406
15407 done
15408 fi
15409
15410 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15411 for ncn_progname in lipo; do
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15413 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15414 if test -x $with_build_time_tools/${ncn_progname}; then
15415 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15417 $as_echo "yes" >&6; }
15418 break
15419 else
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15422 fi
15423 done
15424 fi
15425
15426 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15427 for ncn_progname in lipo; do
15428 if test -n "$ncn_target_tool_prefix"; then
15429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15430 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15432 $as_echo_n "checking for $ac_word... " >&6; }
15433 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 if test -n "$LIPO_FOR_TARGET"; then
15437 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15438 else
15439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15440 for as_dir in $PATH
15441 do
15442 IFS=$as_save_IFS
15443 test -z "$as_dir" && as_dir=.
15444 for ac_exec_ext in '' $ac_executable_extensions; do
15445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15446 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15448 break 2
15449 fi
15450 done
15451 done
15452 IFS=$as_save_IFS
15453
15454 fi
15455 fi
15456 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15457 if test -n "$LIPO_FOR_TARGET"; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15459 $as_echo "$LIPO_FOR_TARGET" >&6; }
15460 else
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15463 fi
15464
15465
15466 fi
15467 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15469 set dummy ${ncn_progname}; ac_word=$2
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15471 $as_echo_n "checking for $ac_word... " >&6; }
15472 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15473 $as_echo_n "(cached) " >&6
15474 else
15475 if test -n "$LIPO_FOR_TARGET"; then
15476 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15477 else
15478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479 for as_dir in $PATH
15480 do
15481 IFS=$as_save_IFS
15482 test -z "$as_dir" && as_dir=.
15483 for ac_exec_ext in '' $ac_executable_extensions; do
15484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15487 break 2
15488 fi
15489 done
15490 done
15491 IFS=$as_save_IFS
15492
15493 fi
15494 fi
15495 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15496 if test -n "$LIPO_FOR_TARGET"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15498 $as_echo "$LIPO_FOR_TARGET" >&6; }
15499 else
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15501 $as_echo "no" >&6; }
15502 fi
15503
15504
15505 fi
15506 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15507 done
15508 fi
15509
15510 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15511 set dummy lipo
15512 if test $build = $target ; then
15513 LIPO_FOR_TARGET="$2"
15514 else
15515 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15516 fi
15517 else
15518 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15519 fi
15520
15521 else
15522 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15523 fi
15524
15525
15526
15527
15528 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15529 if test -n "$with_build_time_tools"; then
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15531 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15532 if test -x $with_build_time_tools/nm; then
15533 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15534 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15536 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15537 else
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15540 fi
15541 elif test $build != $host && test $have_gcc_for_target = yes; then
15542 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15543 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15544 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15545 fi
15546 fi
15547 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15548 # Extract the first word of "nm", so it can be a program name with args.
15549 set dummy nm; ac_word=$2
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15551 $as_echo_n "checking for $ac_word... " >&6; }
15552 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15553 $as_echo_n "(cached) " >&6
15554 else
15555 case $NM_FOR_TARGET in
15556 [\\/]* | ?:[\\/]*)
15557 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15558 ;;
15559 *)
15560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561 for as_dir in $gcc_cv_tool_dirs
15562 do
15563 IFS=$as_save_IFS
15564 test -z "$as_dir" && as_dir=.
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15567 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15569 break 2
15570 fi
15571 done
15572 done
15573 IFS=$as_save_IFS
15574
15575 ;;
15576 esac
15577 fi
15578 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15579 if test -n "$NM_FOR_TARGET"; then
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15581 $as_echo "$NM_FOR_TARGET" >&6; }
15582 else
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15585 fi
15586
15587
15588 fi
15589 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15590
15591
15592 if test -n "$NM_FOR_TARGET"; then
15593 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15594 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15595 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15596 fi
15597
15598 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15599 for ncn_progname in nm; do
15600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15601 set dummy ${ncn_progname}; ac_word=$2
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15603 $as_echo_n "checking for $ac_word... " >&6; }
15604 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15605 $as_echo_n "(cached) " >&6
15606 else
15607 if test -n "$NM_FOR_TARGET"; then
15608 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15609 else
15610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15611 for as_dir in $PATH
15612 do
15613 IFS=$as_save_IFS
15614 test -z "$as_dir" && as_dir=.
15615 for ac_exec_ext in '' $ac_executable_extensions; do
15616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15617 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15619 break 2
15620 fi
15621 done
15622 done
15623 IFS=$as_save_IFS
15624
15625 fi
15626 fi
15627 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15628 if test -n "$NM_FOR_TARGET"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15630 $as_echo "$NM_FOR_TARGET" >&6; }
15631 else
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 $as_echo "no" >&6; }
15634 fi
15635
15636
15637 done
15638 fi
15639
15640 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15641 for ncn_progname in nm; do
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15643 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15644 if test -x $with_build_time_tools/${ncn_progname}; then
15645 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15647 $as_echo "yes" >&6; }
15648 break
15649 else
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15651 $as_echo "no" >&6; }
15652 fi
15653 done
15654 fi
15655
15656 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15657 for ncn_progname in nm; do
15658 if test -n "$ncn_target_tool_prefix"; then
15659 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15660 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15662 $as_echo_n "checking for $ac_word... " >&6; }
15663 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15664 $as_echo_n "(cached) " >&6
15665 else
15666 if test -n "$NM_FOR_TARGET"; then
15667 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15668 else
15669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15670 for as_dir in $PATH
15671 do
15672 IFS=$as_save_IFS
15673 test -z "$as_dir" && as_dir=.
15674 for ac_exec_ext in '' $ac_executable_extensions; do
15675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15676 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15678 break 2
15679 fi
15680 done
15681 done
15682 IFS=$as_save_IFS
15683
15684 fi
15685 fi
15686 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15687 if test -n "$NM_FOR_TARGET"; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15689 $as_echo "$NM_FOR_TARGET" >&6; }
15690 else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15693 fi
15694
15695
15696 fi
15697 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15699 set dummy ${ncn_progname}; ac_word=$2
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15701 $as_echo_n "checking for $ac_word... " >&6; }
15702 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15703 $as_echo_n "(cached) " >&6
15704 else
15705 if test -n "$NM_FOR_TARGET"; then
15706 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15707 else
15708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15709 for as_dir in $PATH
15710 do
15711 IFS=$as_save_IFS
15712 test -z "$as_dir" && as_dir=.
15713 for ac_exec_ext in '' $ac_executable_extensions; do
15714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15715 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15717 break 2
15718 fi
15719 done
15720 done
15721 IFS=$as_save_IFS
15722
15723 fi
15724 fi
15725 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15726 if test -n "$NM_FOR_TARGET"; then
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15728 $as_echo "$NM_FOR_TARGET" >&6; }
15729 else
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731 $as_echo "no" >&6; }
15732 fi
15733
15734
15735 fi
15736 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15737 done
15738 fi
15739
15740 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15741 set dummy nm
15742 if test $build = $target ; then
15743 NM_FOR_TARGET="$2"
15744 else
15745 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15746 fi
15747 else
15748 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15749 fi
15750
15751 else
15752 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15753 fi
15754
15755
15756
15757
15758 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15759 if test -n "$with_build_time_tools"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15761 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15762 if test -x $with_build_time_tools/objcopy; then
15763 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15764 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15766 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15767 else
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 $as_echo "no" >&6; }
15770 fi
15771 elif test $build != $host && test $have_gcc_for_target = yes; then
15772 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15773 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15774 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15775 fi
15776 fi
15777 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15778 # Extract the first word of "objcopy", so it can be a program name with args.
15779 set dummy objcopy; ac_word=$2
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15781 $as_echo_n "checking for $ac_word... " >&6; }
15782 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 case $OBJCOPY_FOR_TARGET in
15786 [\\/]* | ?:[\\/]*)
15787 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15788 ;;
15789 *)
15790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15791 for as_dir in $gcc_cv_tool_dirs
15792 do
15793 IFS=$as_save_IFS
15794 test -z "$as_dir" && as_dir=.
15795 for ac_exec_ext in '' $ac_executable_extensions; do
15796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15797 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15799 break 2
15800 fi
15801 done
15802 done
15803 IFS=$as_save_IFS
15804
15805 ;;
15806 esac
15807 fi
15808 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15809 if test -n "$OBJCOPY_FOR_TARGET"; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15811 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15812 else
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15814 $as_echo "no" >&6; }
15815 fi
15816
15817
15818 fi
15819 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15820
15821
15822 if test -n "$OBJCOPY_FOR_TARGET"; then
15823 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15824 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15825 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15826 fi
15827
15828 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15829 for ncn_progname in objcopy; do
15830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15831 set dummy ${ncn_progname}; ac_word=$2
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15833 $as_echo_n "checking for $ac_word... " >&6; }
15834 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 if test -n "$OBJCOPY_FOR_TARGET"; then
15838 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15839 else
15840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15841 for as_dir in $PATH
15842 do
15843 IFS=$as_save_IFS
15844 test -z "$as_dir" && as_dir=.
15845 for ac_exec_ext in '' $ac_executable_extensions; do
15846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15847 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15849 break 2
15850 fi
15851 done
15852 done
15853 IFS=$as_save_IFS
15854
15855 fi
15856 fi
15857 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15858 if test -n "$OBJCOPY_FOR_TARGET"; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15860 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15861 else
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15863 $as_echo "no" >&6; }
15864 fi
15865
15866
15867 done
15868 fi
15869
15870 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15871 for ncn_progname in objcopy; do
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15873 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15874 if test -x $with_build_time_tools/${ncn_progname}; then
15875 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15877 $as_echo "yes" >&6; }
15878 break
15879 else
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15881 $as_echo "no" >&6; }
15882 fi
15883 done
15884 fi
15885
15886 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15887 for ncn_progname in objcopy; do
15888 if test -n "$ncn_target_tool_prefix"; then
15889 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15890 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15892 $as_echo_n "checking for $ac_word... " >&6; }
15893 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895 else
15896 if test -n "$OBJCOPY_FOR_TARGET"; then
15897 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15898 else
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15901 do
15902 IFS=$as_save_IFS
15903 test -z "$as_dir" && as_dir=.
15904 for ac_exec_ext in '' $ac_executable_extensions; do
15905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15908 break 2
15909 fi
15910 done
15911 done
15912 IFS=$as_save_IFS
15913
15914 fi
15915 fi
15916 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15917 if test -n "$OBJCOPY_FOR_TARGET"; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15919 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15920 else
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 $as_echo "no" >&6; }
15923 fi
15924
15925
15926 fi
15927 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15929 set dummy ${ncn_progname}; ac_word=$2
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15931 $as_echo_n "checking for $ac_word... " >&6; }
15932 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15933 $as_echo_n "(cached) " >&6
15934 else
15935 if test -n "$OBJCOPY_FOR_TARGET"; then
15936 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15937 else
15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15939 for as_dir in $PATH
15940 do
15941 IFS=$as_save_IFS
15942 test -z "$as_dir" && as_dir=.
15943 for ac_exec_ext in '' $ac_executable_extensions; do
15944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15945 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15947 break 2
15948 fi
15949 done
15950 done
15951 IFS=$as_save_IFS
15952
15953 fi
15954 fi
15955 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15956 if test -n "$OBJCOPY_FOR_TARGET"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15958 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15959 else
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961 $as_echo "no" >&6; }
15962 fi
15963
15964
15965 fi
15966 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15967 done
15968 fi
15969
15970 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15971 set dummy objcopy
15972 if test $build = $target ; then
15973 OBJCOPY_FOR_TARGET="$2"
15974 else
15975 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15976 fi
15977 else
15978 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15979 fi
15980
15981 else
15982 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15983 fi
15984
15985
15986
15987
15988 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15989 if test -n "$with_build_time_tools"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15991 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15992 if test -x $with_build_time_tools/objdump; then
15993 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15994 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15996 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15997 else
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999 $as_echo "no" >&6; }
16000 fi
16001 elif test $build != $host && test $have_gcc_for_target = yes; then
16002 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16003 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16004 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16005 fi
16006 fi
16007 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16008 # Extract the first word of "objdump", so it can be a program name with args.
16009 set dummy objdump; ac_word=$2
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16011 $as_echo_n "checking for $ac_word... " >&6; }
16012 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16013 $as_echo_n "(cached) " >&6
16014 else
16015 case $OBJDUMP_FOR_TARGET in
16016 [\\/]* | ?:[\\/]*)
16017 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16018 ;;
16019 *)
16020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16021 for as_dir in $gcc_cv_tool_dirs
16022 do
16023 IFS=$as_save_IFS
16024 test -z "$as_dir" && as_dir=.
16025 for ac_exec_ext in '' $ac_executable_extensions; do
16026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16027 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16029 break 2
16030 fi
16031 done
16032 done
16033 IFS=$as_save_IFS
16034
16035 ;;
16036 esac
16037 fi
16038 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16039 if test -n "$OBJDUMP_FOR_TARGET"; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16041 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16042 else
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16044 $as_echo "no" >&6; }
16045 fi
16046
16047
16048 fi
16049 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16050
16051
16052 if test -n "$OBJDUMP_FOR_TARGET"; then
16053 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16054 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16055 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16056 fi
16057
16058 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16059 for ncn_progname in objdump; do
16060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16061 set dummy ${ncn_progname}; ac_word=$2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16063 $as_echo_n "checking for $ac_word... " >&6; }
16064 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066 else
16067 if test -n "$OBJDUMP_FOR_TARGET"; then
16068 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16069 else
16070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071 for as_dir in $PATH
16072 do
16073 IFS=$as_save_IFS
16074 test -z "$as_dir" && as_dir=.
16075 for ac_exec_ext in '' $ac_executable_extensions; do
16076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16077 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16079 break 2
16080 fi
16081 done
16082 done
16083 IFS=$as_save_IFS
16084
16085 fi
16086 fi
16087 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16088 if test -n "$OBJDUMP_FOR_TARGET"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16090 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16091 else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16094 fi
16095
16096
16097 done
16098 fi
16099
16100 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16101 for ncn_progname in objdump; do
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16103 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16104 if test -x $with_build_time_tools/${ncn_progname}; then
16105 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16107 $as_echo "yes" >&6; }
16108 break
16109 else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 $as_echo "no" >&6; }
16112 fi
16113 done
16114 fi
16115
16116 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16117 for ncn_progname in objdump; do
16118 if test -n "$ncn_target_tool_prefix"; then
16119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122 $as_echo_n "checking for $ac_word... " >&6; }
16123 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 if test -n "$OBJDUMP_FOR_TARGET"; then
16127 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16128 else
16129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16131 do
16132 IFS=$as_save_IFS
16133 test -z "$as_dir" && as_dir=.
16134 for ac_exec_ext in '' $ac_executable_extensions; do
16135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16136 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16138 break 2
16139 fi
16140 done
16141 done
16142 IFS=$as_save_IFS
16143
16144 fi
16145 fi
16146 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16147 if test -n "$OBJDUMP_FOR_TARGET"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16149 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16150 else
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16153 fi
16154
16155
16156 fi
16157 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16159 set dummy ${ncn_progname}; ac_word=$2
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16161 $as_echo_n "checking for $ac_word... " >&6; }
16162 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16163 $as_echo_n "(cached) " >&6
16164 else
16165 if test -n "$OBJDUMP_FOR_TARGET"; then
16166 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16167 else
16168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16169 for as_dir in $PATH
16170 do
16171 IFS=$as_save_IFS
16172 test -z "$as_dir" && as_dir=.
16173 for ac_exec_ext in '' $ac_executable_extensions; do
16174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16175 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16177 break 2
16178 fi
16179 done
16180 done
16181 IFS=$as_save_IFS
16182
16183 fi
16184 fi
16185 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16186 if test -n "$OBJDUMP_FOR_TARGET"; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16188 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16189 else
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16192 fi
16193
16194
16195 fi
16196 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16197 done
16198 fi
16199
16200 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16201 set dummy objdump
16202 if test $build = $target ; then
16203 OBJDUMP_FOR_TARGET="$2"
16204 else
16205 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16206 fi
16207 else
16208 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16209 fi
16210
16211 else
16212 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16213 fi
16214
16215
16216
16217
16218 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16219 if test -n "$with_build_time_tools"; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16221 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16222 if test -x $with_build_time_tools/otool; then
16223 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16224 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16226 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16227 else
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16230 fi
16231 elif test $build != $host && test $have_gcc_for_target = yes; then
16232 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16233 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16234 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16235 fi
16236 fi
16237 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16238 # Extract the first word of "otool", so it can be a program name with args.
16239 set dummy otool; ac_word=$2
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16241 $as_echo_n "checking for $ac_word... " >&6; }
16242 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16243 $as_echo_n "(cached) " >&6
16244 else
16245 case $OTOOL_FOR_TARGET in
16246 [\\/]* | ?:[\\/]*)
16247 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16248 ;;
16249 *)
16250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16251 for as_dir in $gcc_cv_tool_dirs
16252 do
16253 IFS=$as_save_IFS
16254 test -z "$as_dir" && as_dir=.
16255 for ac_exec_ext in '' $ac_executable_extensions; do
16256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16257 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16259 break 2
16260 fi
16261 done
16262 done
16263 IFS=$as_save_IFS
16264
16265 ;;
16266 esac
16267 fi
16268 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16269 if test -n "$OTOOL_FOR_TARGET"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16271 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16272 else
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16274 $as_echo "no" >&6; }
16275 fi
16276
16277
16278 fi
16279 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16280
16281
16282 if test -n "$OTOOL_FOR_TARGET"; then
16283 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16284 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16285 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16286 fi
16287
16288 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16289 for ncn_progname in otool; do
16290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16291 set dummy ${ncn_progname}; ac_word=$2
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293 $as_echo_n "checking for $ac_word... " >&6; }
16294 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16295 $as_echo_n "(cached) " >&6
16296 else
16297 if test -n "$OTOOL_FOR_TARGET"; then
16298 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16299 else
16300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301 for as_dir in $PATH
16302 do
16303 IFS=$as_save_IFS
16304 test -z "$as_dir" && as_dir=.
16305 for ac_exec_ext in '' $ac_executable_extensions; do
16306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16307 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16309 break 2
16310 fi
16311 done
16312 done
16313 IFS=$as_save_IFS
16314
16315 fi
16316 fi
16317 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16318 if test -n "$OTOOL_FOR_TARGET"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16320 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16321 else
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16324 fi
16325
16326
16327 done
16328 fi
16329
16330 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16331 for ncn_progname in otool; do
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16333 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16334 if test -x $with_build_time_tools/${ncn_progname}; then
16335 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16337 $as_echo "yes" >&6; }
16338 break
16339 else
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341 $as_echo "no" >&6; }
16342 fi
16343 done
16344 fi
16345
16346 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16347 for ncn_progname in otool; do
16348 if test -n "$ncn_target_tool_prefix"; then
16349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16350 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16352 $as_echo_n "checking for $ac_word... " >&6; }
16353 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356 if test -n "$OTOOL_FOR_TARGET"; then
16357 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16358 else
16359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16360 for as_dir in $PATH
16361 do
16362 IFS=$as_save_IFS
16363 test -z "$as_dir" && as_dir=.
16364 for ac_exec_ext in '' $ac_executable_extensions; do
16365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16366 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16368 break 2
16369 fi
16370 done
16371 done
16372 IFS=$as_save_IFS
16373
16374 fi
16375 fi
16376 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16377 if test -n "$OTOOL_FOR_TARGET"; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16379 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16380 else
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16382 $as_echo "no" >&6; }
16383 fi
16384
16385
16386 fi
16387 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16389 set dummy ${ncn_progname}; ac_word=$2
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16391 $as_echo_n "checking for $ac_word... " >&6; }
16392 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16393 $as_echo_n "(cached) " >&6
16394 else
16395 if test -n "$OTOOL_FOR_TARGET"; then
16396 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16397 else
16398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16399 for as_dir in $PATH
16400 do
16401 IFS=$as_save_IFS
16402 test -z "$as_dir" && as_dir=.
16403 for ac_exec_ext in '' $ac_executable_extensions; do
16404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16405 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16407 break 2
16408 fi
16409 done
16410 done
16411 IFS=$as_save_IFS
16412
16413 fi
16414 fi
16415 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16416 if test -n "$OTOOL_FOR_TARGET"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16418 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16419 else
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16421 $as_echo "no" >&6; }
16422 fi
16423
16424
16425 fi
16426 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16427 done
16428 fi
16429
16430 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16431 set dummy otool
16432 if test $build = $target ; then
16433 OTOOL_FOR_TARGET="$2"
16434 else
16435 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16436 fi
16437 else
16438 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16439 fi
16440
16441 else
16442 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16443 fi
16444
16445
16446
16447
16448 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16449 if test -n "$with_build_time_tools"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16451 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16452 if test -x $with_build_time_tools/ranlib; then
16453 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16454 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16456 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16457 else
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459 $as_echo "no" >&6; }
16460 fi
16461 elif test $build != $host && test $have_gcc_for_target = yes; then
16462 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16463 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16464 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16465 fi
16466 fi
16467 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16468 # Extract the first word of "ranlib", so it can be a program name with args.
16469 set dummy ranlib; ac_word=$2
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16471 $as_echo_n "checking for $ac_word... " >&6; }
16472 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16473 $as_echo_n "(cached) " >&6
16474 else
16475 case $RANLIB_FOR_TARGET in
16476 [\\/]* | ?:[\\/]*)
16477 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16478 ;;
16479 *)
16480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16481 for as_dir in $gcc_cv_tool_dirs
16482 do
16483 IFS=$as_save_IFS
16484 test -z "$as_dir" && as_dir=.
16485 for ac_exec_ext in '' $ac_executable_extensions; do
16486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16487 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16489 break 2
16490 fi
16491 done
16492 done
16493 IFS=$as_save_IFS
16494
16495 ;;
16496 esac
16497 fi
16498 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16499 if test -n "$RANLIB_FOR_TARGET"; then
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16501 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16502 else
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16504 $as_echo "no" >&6; }
16505 fi
16506
16507
16508 fi
16509 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16510
16511
16512 if test -n "$RANLIB_FOR_TARGET"; then
16513 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16514 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16515 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16516 fi
16517
16518 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16519 for ncn_progname in ranlib; do
16520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16521 set dummy ${ncn_progname}; ac_word=$2
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16523 $as_echo_n "checking for $ac_word... " >&6; }
16524 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16525 $as_echo_n "(cached) " >&6
16526 else
16527 if test -n "$RANLIB_FOR_TARGET"; then
16528 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16529 else
16530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16531 for as_dir in $PATH
16532 do
16533 IFS=$as_save_IFS
16534 test -z "$as_dir" && as_dir=.
16535 for ac_exec_ext in '' $ac_executable_extensions; do
16536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16537 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16539 break 2
16540 fi
16541 done
16542 done
16543 IFS=$as_save_IFS
16544
16545 fi
16546 fi
16547 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16548 if test -n "$RANLIB_FOR_TARGET"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16550 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16551 else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16554 fi
16555
16556
16557 done
16558 fi
16559
16560 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16561 for ncn_progname in ranlib; do
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16563 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16564 if test -x $with_build_time_tools/${ncn_progname}; then
16565 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16567 $as_echo "yes" >&6; }
16568 break
16569 else
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16571 $as_echo "no" >&6; }
16572 fi
16573 done
16574 fi
16575
16576 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16577 for ncn_progname in ranlib; do
16578 if test -n "$ncn_target_tool_prefix"; then
16579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16580 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 if test -n "$RANLIB_FOR_TARGET"; then
16587 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16588 else
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16591 do
16592 IFS=$as_save_IFS
16593 test -z "$as_dir" && as_dir=.
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16598 break 2
16599 fi
16600 done
16601 done
16602 IFS=$as_save_IFS
16603
16604 fi
16605 fi
16606 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16607 if test -n "$RANLIB_FOR_TARGET"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16609 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16610 else
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613 fi
16614
16615
16616 fi
16617 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16619 set dummy ${ncn_progname}; ac_word=$2
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16621 $as_echo_n "checking for $ac_word... " >&6; }
16622 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 if test -n "$RANLIB_FOR_TARGET"; then
16626 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16627 else
16628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16629 for as_dir in $PATH
16630 do
16631 IFS=$as_save_IFS
16632 test -z "$as_dir" && as_dir=.
16633 for ac_exec_ext in '' $ac_executable_extensions; do
16634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16635 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16637 break 2
16638 fi
16639 done
16640 done
16641 IFS=$as_save_IFS
16642
16643 fi
16644 fi
16645 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16646 if test -n "$RANLIB_FOR_TARGET"; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16648 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16649 else
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16651 $as_echo "no" >&6; }
16652 fi
16653
16654
16655 fi
16656 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16657 done
16658 fi
16659
16660 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16661 set dummy ranlib
16662 if test $build = $target ; then
16663 RANLIB_FOR_TARGET="$2"
16664 else
16665 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16666 fi
16667 else
16668 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16669 fi
16670
16671 else
16672 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16673 fi
16674
16675
16676
16677
16678 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16679 if test -n "$with_build_time_tools"; then
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16681 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16682 if test -x $with_build_time_tools/readelf; then
16683 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16684 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16686 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16687 else
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689 $as_echo "no" >&6; }
16690 fi
16691 elif test $build != $host && test $have_gcc_for_target = yes; then
16692 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16693 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16694 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16695 fi
16696 fi
16697 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16698 # Extract the first word of "readelf", so it can be a program name with args.
16699 set dummy readelf; ac_word=$2
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16701 $as_echo_n "checking for $ac_word... " >&6; }
16702 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16703 $as_echo_n "(cached) " >&6
16704 else
16705 case $READELF_FOR_TARGET in
16706 [\\/]* | ?:[\\/]*)
16707 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16708 ;;
16709 *)
16710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16711 for as_dir in $gcc_cv_tool_dirs
16712 do
16713 IFS=$as_save_IFS
16714 test -z "$as_dir" && as_dir=.
16715 for ac_exec_ext in '' $ac_executable_extensions; do
16716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16717 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16719 break 2
16720 fi
16721 done
16722 done
16723 IFS=$as_save_IFS
16724
16725 ;;
16726 esac
16727 fi
16728 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16729 if test -n "$READELF_FOR_TARGET"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16731 $as_echo "$READELF_FOR_TARGET" >&6; }
16732 else
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16734 $as_echo "no" >&6; }
16735 fi
16736
16737
16738 fi
16739 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16740
16741
16742 if test -n "$READELF_FOR_TARGET"; then
16743 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16744 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16745 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16746 fi
16747
16748 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16749 for ncn_progname in readelf; do
16750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16751 set dummy ${ncn_progname}; ac_word=$2
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16753 $as_echo_n "checking for $ac_word... " >&6; }
16754 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16755 $as_echo_n "(cached) " >&6
16756 else
16757 if test -n "$READELF_FOR_TARGET"; then
16758 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16759 else
16760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761 for as_dir in $PATH
16762 do
16763 IFS=$as_save_IFS
16764 test -z "$as_dir" && as_dir=.
16765 for ac_exec_ext in '' $ac_executable_extensions; do
16766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16767 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16769 break 2
16770 fi
16771 done
16772 done
16773 IFS=$as_save_IFS
16774
16775 fi
16776 fi
16777 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16778 if test -n "$READELF_FOR_TARGET"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16780 $as_echo "$READELF_FOR_TARGET" >&6; }
16781 else
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16783 $as_echo "no" >&6; }
16784 fi
16785
16786
16787 done
16788 fi
16789
16790 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16791 for ncn_progname in readelf; do
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16793 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16794 if test -x $with_build_time_tools/${ncn_progname}; then
16795 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16797 $as_echo "yes" >&6; }
16798 break
16799 else
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16801 $as_echo "no" >&6; }
16802 fi
16803 done
16804 fi
16805
16806 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16807 for ncn_progname in readelf; do
16808 if test -n "$ncn_target_tool_prefix"; then
16809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16810 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16812 $as_echo_n "checking for $ac_word... " >&6; }
16813 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16814 $as_echo_n "(cached) " >&6
16815 else
16816 if test -n "$READELF_FOR_TARGET"; then
16817 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16818 else
16819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16821 do
16822 IFS=$as_save_IFS
16823 test -z "$as_dir" && as_dir=.
16824 for ac_exec_ext in '' $ac_executable_extensions; do
16825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16826 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16828 break 2
16829 fi
16830 done
16831 done
16832 IFS=$as_save_IFS
16833
16834 fi
16835 fi
16836 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16837 if test -n "$READELF_FOR_TARGET"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16839 $as_echo "$READELF_FOR_TARGET" >&6; }
16840 else
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16843 fi
16844
16845
16846 fi
16847 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16849 set dummy ${ncn_progname}; ac_word=$2
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16851 $as_echo_n "checking for $ac_word... " >&6; }
16852 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 if test -n "$READELF_FOR_TARGET"; then
16856 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16857 else
16858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16859 for as_dir in $PATH
16860 do
16861 IFS=$as_save_IFS
16862 test -z "$as_dir" && as_dir=.
16863 for ac_exec_ext in '' $ac_executable_extensions; do
16864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16865 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16867 break 2
16868 fi
16869 done
16870 done
16871 IFS=$as_save_IFS
16872
16873 fi
16874 fi
16875 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16876 if test -n "$READELF_FOR_TARGET"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16878 $as_echo "$READELF_FOR_TARGET" >&6; }
16879 else
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881 $as_echo "no" >&6; }
16882 fi
16883
16884
16885 fi
16886 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16887 done
16888 fi
16889
16890 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16891 set dummy readelf
16892 if test $build = $target ; then
16893 READELF_FOR_TARGET="$2"
16894 else
16895 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16896 fi
16897 else
16898 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16899 fi
16900
16901 else
16902 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16903 fi
16904
16905
16906
16907
16908 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16909 if test -n "$with_build_time_tools"; then
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16911 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16912 if test -x $with_build_time_tools/strip; then
16913 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16914 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16916 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16917 else
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16919 $as_echo "no" >&6; }
16920 fi
16921 elif test $build != $host && test $have_gcc_for_target = yes; then
16922 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16923 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16924 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16925 fi
16926 fi
16927 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16928 # Extract the first word of "strip", so it can be a program name with args.
16929 set dummy strip; ac_word=$2
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16931 $as_echo_n "checking for $ac_word... " >&6; }
16932 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16933 $as_echo_n "(cached) " >&6
16934 else
16935 case $STRIP_FOR_TARGET in
16936 [\\/]* | ?:[\\/]*)
16937 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16938 ;;
16939 *)
16940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16941 for as_dir in $gcc_cv_tool_dirs
16942 do
16943 IFS=$as_save_IFS
16944 test -z "$as_dir" && as_dir=.
16945 for ac_exec_ext in '' $ac_executable_extensions; do
16946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16947 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16949 break 2
16950 fi
16951 done
16952 done
16953 IFS=$as_save_IFS
16954
16955 ;;
16956 esac
16957 fi
16958 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16959 if test -n "$STRIP_FOR_TARGET"; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16961 $as_echo "$STRIP_FOR_TARGET" >&6; }
16962 else
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964 $as_echo "no" >&6; }
16965 fi
16966
16967
16968 fi
16969 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16970
16971
16972 if test -n "$STRIP_FOR_TARGET"; then
16973 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16974 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16975 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16976 fi
16977
16978 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16979 for ncn_progname in strip; do
16980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16981 set dummy ${ncn_progname}; ac_word=$2
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16983 $as_echo_n "checking for $ac_word... " >&6; }
16984 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16985 $as_echo_n "(cached) " >&6
16986 else
16987 if test -n "$STRIP_FOR_TARGET"; then
16988 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16989 else
16990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991 for as_dir in $PATH
16992 do
16993 IFS=$as_save_IFS
16994 test -z "$as_dir" && as_dir=.
16995 for ac_exec_ext in '' $ac_executable_extensions; do
16996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16997 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16999 break 2
17000 fi
17001 done
17002 done
17003 IFS=$as_save_IFS
17004
17005 fi
17006 fi
17007 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17008 if test -n "$STRIP_FOR_TARGET"; then
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17010 $as_echo "$STRIP_FOR_TARGET" >&6; }
17011 else
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17013 $as_echo "no" >&6; }
17014 fi
17015
17016
17017 done
17018 fi
17019
17020 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17021 for ncn_progname in strip; do
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17023 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17024 if test -x $with_build_time_tools/${ncn_progname}; then
17025 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17027 $as_echo "yes" >&6; }
17028 break
17029 else
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17031 $as_echo "no" >&6; }
17032 fi
17033 done
17034 fi
17035
17036 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17037 for ncn_progname in strip; do
17038 if test -n "$ncn_target_tool_prefix"; then
17039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17040 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17042 $as_echo_n "checking for $ac_word... " >&6; }
17043 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17044 $as_echo_n "(cached) " >&6
17045 else
17046 if test -n "$STRIP_FOR_TARGET"; then
17047 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17048 else
17049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17051 do
17052 IFS=$as_save_IFS
17053 test -z "$as_dir" && as_dir=.
17054 for ac_exec_ext in '' $ac_executable_extensions; do
17055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17056 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17058 break 2
17059 fi
17060 done
17061 done
17062 IFS=$as_save_IFS
17063
17064 fi
17065 fi
17066 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17067 if test -n "$STRIP_FOR_TARGET"; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17069 $as_echo "$STRIP_FOR_TARGET" >&6; }
17070 else
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17072 $as_echo "no" >&6; }
17073 fi
17074
17075
17076 fi
17077 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17079 set dummy ${ncn_progname}; ac_word=$2
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17081 $as_echo_n "checking for $ac_word... " >&6; }
17082 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17083 $as_echo_n "(cached) " >&6
17084 else
17085 if test -n "$STRIP_FOR_TARGET"; then
17086 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17087 else
17088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17089 for as_dir in $PATH
17090 do
17091 IFS=$as_save_IFS
17092 test -z "$as_dir" && as_dir=.
17093 for ac_exec_ext in '' $ac_executable_extensions; do
17094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17095 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17097 break 2
17098 fi
17099 done
17100 done
17101 IFS=$as_save_IFS
17102
17103 fi
17104 fi
17105 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17106 if test -n "$STRIP_FOR_TARGET"; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17108 $as_echo "$STRIP_FOR_TARGET" >&6; }
17109 else
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17111 $as_echo "no" >&6; }
17112 fi
17113
17114
17115 fi
17116 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17117 done
17118 fi
17119
17120 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17121 set dummy strip
17122 if test $build = $target ; then
17123 STRIP_FOR_TARGET="$2"
17124 else
17125 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17126 fi
17127 else
17128 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17129 fi
17130
17131 else
17132 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17133 fi
17134
17135
17136
17137
17138 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17139 if test -n "$with_build_time_tools"; then
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17141 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17142 if test -x $with_build_time_tools/windres; then
17143 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17144 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17146 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17147 else
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17149 $as_echo "no" >&6; }
17150 fi
17151 elif test $build != $host && test $have_gcc_for_target = yes; then
17152 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17153 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17154 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17155 fi
17156 fi
17157 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17158 # Extract the first word of "windres", so it can be a program name with args.
17159 set dummy windres; ac_word=$2
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17161 $as_echo_n "checking for $ac_word... " >&6; }
17162 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17163 $as_echo_n "(cached) " >&6
17164 else
17165 case $WINDRES_FOR_TARGET in
17166 [\\/]* | ?:[\\/]*)
17167 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17168 ;;
17169 *)
17170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $gcc_cv_tool_dirs
17172 do
17173 IFS=$as_save_IFS
17174 test -z "$as_dir" && as_dir=.
17175 for ac_exec_ext in '' $ac_executable_extensions; do
17176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17177 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17179 break 2
17180 fi
17181 done
17182 done
17183 IFS=$as_save_IFS
17184
17185 ;;
17186 esac
17187 fi
17188 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17189 if test -n "$WINDRES_FOR_TARGET"; then
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17191 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17192 else
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17194 $as_echo "no" >&6; }
17195 fi
17196
17197
17198 fi
17199 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17200
17201
17202 if test -n "$WINDRES_FOR_TARGET"; then
17203 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17204 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17205 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17206 fi
17207
17208 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17209 for ncn_progname in windres; do
17210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17211 set dummy ${ncn_progname}; ac_word=$2
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17213 $as_echo_n "checking for $ac_word... " >&6; }
17214 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17215 $as_echo_n "(cached) " >&6
17216 else
17217 if test -n "$WINDRES_FOR_TARGET"; then
17218 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17219 else
17220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221 for as_dir in $PATH
17222 do
17223 IFS=$as_save_IFS
17224 test -z "$as_dir" && as_dir=.
17225 for ac_exec_ext in '' $ac_executable_extensions; do
17226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17227 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17229 break 2
17230 fi
17231 done
17232 done
17233 IFS=$as_save_IFS
17234
17235 fi
17236 fi
17237 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17238 if test -n "$WINDRES_FOR_TARGET"; then
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17240 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17241 else
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17243 $as_echo "no" >&6; }
17244 fi
17245
17246
17247 done
17248 fi
17249
17250 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17251 for ncn_progname in windres; do
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17253 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17254 if test -x $with_build_time_tools/${ncn_progname}; then
17255 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17257 $as_echo "yes" >&6; }
17258 break
17259 else
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17261 $as_echo "no" >&6; }
17262 fi
17263 done
17264 fi
17265
17266 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17267 for ncn_progname in windres; do
17268 if test -n "$ncn_target_tool_prefix"; then
17269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17270 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272 $as_echo_n "checking for $ac_word... " >&6; }
17273 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17274 $as_echo_n "(cached) " >&6
17275 else
17276 if test -n "$WINDRES_FOR_TARGET"; then
17277 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17278 else
17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280 for as_dir in $PATH
17281 do
17282 IFS=$as_save_IFS
17283 test -z "$as_dir" && as_dir=.
17284 for ac_exec_ext in '' $ac_executable_extensions; do
17285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17288 break 2
17289 fi
17290 done
17291 done
17292 IFS=$as_save_IFS
17293
17294 fi
17295 fi
17296 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17297 if test -n "$WINDRES_FOR_TARGET"; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17299 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17300 else
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17302 $as_echo "no" >&6; }
17303 fi
17304
17305
17306 fi
17307 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17309 set dummy ${ncn_progname}; ac_word=$2
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17311 $as_echo_n "checking for $ac_word... " >&6; }
17312 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17313 $as_echo_n "(cached) " >&6
17314 else
17315 if test -n "$WINDRES_FOR_TARGET"; then
17316 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17317 else
17318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17319 for as_dir in $PATH
17320 do
17321 IFS=$as_save_IFS
17322 test -z "$as_dir" && as_dir=.
17323 for ac_exec_ext in '' $ac_executable_extensions; do
17324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17325 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17327 break 2
17328 fi
17329 done
17330 done
17331 IFS=$as_save_IFS
17332
17333 fi
17334 fi
17335 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17336 if test -n "$WINDRES_FOR_TARGET"; then
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17338 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17339 else
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17341 $as_echo "no" >&6; }
17342 fi
17343
17344
17345 fi
17346 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17347 done
17348 fi
17349
17350 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17351 set dummy windres
17352 if test $build = $target ; then
17353 WINDRES_FOR_TARGET="$2"
17354 else
17355 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17356 fi
17357 else
17358 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17359 fi
17360
17361 else
17362 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17363 fi
17364
17365
17366
17367
17368 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17369 if test -n "$with_build_time_tools"; then
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17371 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17372 if test -x $with_build_time_tools/windmc; then
17373 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17374 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17376 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17377 else
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17379 $as_echo "no" >&6; }
17380 fi
17381 elif test $build != $host && test $have_gcc_for_target = yes; then
17382 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17383 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17384 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17385 fi
17386 fi
17387 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17388 # Extract the first word of "windmc", so it can be a program name with args.
17389 set dummy windmc; ac_word=$2
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17391 $as_echo_n "checking for $ac_word... " >&6; }
17392 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17393 $as_echo_n "(cached) " >&6
17394 else
17395 case $WINDMC_FOR_TARGET in
17396 [\\/]* | ?:[\\/]*)
17397 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17398 ;;
17399 *)
17400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17401 for as_dir in $gcc_cv_tool_dirs
17402 do
17403 IFS=$as_save_IFS
17404 test -z "$as_dir" && as_dir=.
17405 for ac_exec_ext in '' $ac_executable_extensions; do
17406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17407 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17409 break 2
17410 fi
17411 done
17412 done
17413 IFS=$as_save_IFS
17414
17415 ;;
17416 esac
17417 fi
17418 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17419 if test -n "$WINDMC_FOR_TARGET"; then
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17421 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17422 else
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17424 $as_echo "no" >&6; }
17425 fi
17426
17427
17428 fi
17429 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17430
17431
17432 if test -n "$WINDMC_FOR_TARGET"; then
17433 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17434 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17435 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17436 fi
17437
17438 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17439 for ncn_progname in windmc; do
17440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17441 set dummy ${ncn_progname}; ac_word=$2
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17443 $as_echo_n "checking for $ac_word... " >&6; }
17444 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17445 $as_echo_n "(cached) " >&6
17446 else
17447 if test -n "$WINDMC_FOR_TARGET"; then
17448 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17449 else
17450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17451 for as_dir in $PATH
17452 do
17453 IFS=$as_save_IFS
17454 test -z "$as_dir" && as_dir=.
17455 for ac_exec_ext in '' $ac_executable_extensions; do
17456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17457 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17459 break 2
17460 fi
17461 done
17462 done
17463 IFS=$as_save_IFS
17464
17465 fi
17466 fi
17467 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17468 if test -n "$WINDMC_FOR_TARGET"; then
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17470 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17471 else
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17473 $as_echo "no" >&6; }
17474 fi
17475
17476
17477 done
17478 fi
17479
17480 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17481 for ncn_progname in windmc; do
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17483 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17484 if test -x $with_build_time_tools/${ncn_progname}; then
17485 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17487 $as_echo "yes" >&6; }
17488 break
17489 else
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17491 $as_echo "no" >&6; }
17492 fi
17493 done
17494 fi
17495
17496 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17497 for ncn_progname in windmc; do
17498 if test -n "$ncn_target_tool_prefix"; then
17499 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17500 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17502 $as_echo_n "checking for $ac_word... " >&6; }
17503 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17504 $as_echo_n "(cached) " >&6
17505 else
17506 if test -n "$WINDMC_FOR_TARGET"; then
17507 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17508 else
17509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17510 for as_dir in $PATH
17511 do
17512 IFS=$as_save_IFS
17513 test -z "$as_dir" && as_dir=.
17514 for ac_exec_ext in '' $ac_executable_extensions; do
17515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17516 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17518 break 2
17519 fi
17520 done
17521 done
17522 IFS=$as_save_IFS
17523
17524 fi
17525 fi
17526 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17527 if test -n "$WINDMC_FOR_TARGET"; then
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17529 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17530 else
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532 $as_echo "no" >&6; }
17533 fi
17534
17535
17536 fi
17537 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17539 set dummy ${ncn_progname}; ac_word=$2
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17541 $as_echo_n "checking for $ac_word... " >&6; }
17542 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17543 $as_echo_n "(cached) " >&6
17544 else
17545 if test -n "$WINDMC_FOR_TARGET"; then
17546 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17547 else
17548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17549 for as_dir in $PATH
17550 do
17551 IFS=$as_save_IFS
17552 test -z "$as_dir" && as_dir=.
17553 for ac_exec_ext in '' $ac_executable_extensions; do
17554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17555 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17557 break 2
17558 fi
17559 done
17560 done
17561 IFS=$as_save_IFS
17562
17563 fi
17564 fi
17565 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17566 if test -n "$WINDMC_FOR_TARGET"; then
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17568 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17569 else
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17571 $as_echo "no" >&6; }
17572 fi
17573
17574
17575 fi
17576 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17577 done
17578 fi
17579
17580 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17581 set dummy windmc
17582 if test $build = $target ; then
17583 WINDMC_FOR_TARGET="$2"
17584 else
17585 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17586 fi
17587 else
17588 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17589 fi
17590
17591 else
17592 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17593 fi
17594
17595
17596 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17597
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17599 $as_echo_n "checking where to find the target ar... " >&6; }
17600 if test "x${build}" != "x${host}" ; then
17601 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17602 # We already found the complete path
17603 ac_dir=`dirname $AR_FOR_TARGET`
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17605 $as_echo "pre-installed in $ac_dir" >&6; }
17606 else
17607 # Canadian cross, just use what we found
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17609 $as_echo "pre-installed" >&6; }
17610 fi
17611 else
17612 ok=yes
17613 case " ${configdirs} " in
17614 *" binutils "*) ;;
17615 *) ok=no ;;
17616 esac
17617
17618 if test $ok = yes; then
17619 # An in-tree tool is available and we can use it
17620 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17622 $as_echo "just compiled" >&6; }
17623 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17624 # We already found the complete path
17625 ac_dir=`dirname $AR_FOR_TARGET`
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17627 $as_echo "pre-installed in $ac_dir" >&6; }
17628 elif test "x$target" = "x$host"; then
17629 # We can use an host tool
17630 AR_FOR_TARGET='$(AR)'
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17632 $as_echo "host tool" >&6; }
17633 else
17634 # We need a cross tool
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17636 $as_echo "pre-installed" >&6; }
17637 fi
17638 fi
17639
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17641 $as_echo_n "checking where to find the target as... " >&6; }
17642 if test "x${build}" != "x${host}" ; then
17643 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17644 # We already found the complete path
17645 ac_dir=`dirname $AS_FOR_TARGET`
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647 $as_echo "pre-installed in $ac_dir" >&6; }
17648 else
17649 # Canadian cross, just use what we found
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17651 $as_echo "pre-installed" >&6; }
17652 fi
17653 else
17654 ok=yes
17655 case " ${configdirs} " in
17656 *" gas "*) ;;
17657 *) ok=no ;;
17658 esac
17659
17660 if test $ok = yes; then
17661 # An in-tree tool is available and we can use it
17662 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17664 $as_echo "just compiled" >&6; }
17665 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17666 # We already found the complete path
17667 ac_dir=`dirname $AS_FOR_TARGET`
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17669 $as_echo "pre-installed in $ac_dir" >&6; }
17670 elif test "x$target" = "x$host"; then
17671 # We can use an host tool
17672 AS_FOR_TARGET='$(AS)'
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17674 $as_echo "host tool" >&6; }
17675 else
17676 # We need a cross tool
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17678 $as_echo "pre-installed" >&6; }
17679 fi
17680 fi
17681
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17683 $as_echo_n "checking where to find the target cc... " >&6; }
17684 if test "x${build}" != "x${host}" ; then
17685 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17686 # We already found the complete path
17687 ac_dir=`dirname $CC_FOR_TARGET`
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17689 $as_echo "pre-installed in $ac_dir" >&6; }
17690 else
17691 # Canadian cross, just use what we found
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17693 $as_echo "pre-installed" >&6; }
17694 fi
17695 else
17696 ok=yes
17697 case " ${configdirs} " in
17698 *" gcc "*) ;;
17699 *) ok=no ;;
17700 esac
17701
17702 if test $ok = yes; then
17703 # An in-tree tool is available and we can use it
17704 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17706 $as_echo "just compiled" >&6; }
17707 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17708 # We already found the complete path
17709 ac_dir=`dirname $CC_FOR_TARGET`
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17711 $as_echo "pre-installed in $ac_dir" >&6; }
17712 elif test "x$target" = "x$host"; then
17713 # We can use an host tool
17714 CC_FOR_TARGET='$(CC)'
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17716 $as_echo "host tool" >&6; }
17717 else
17718 # We need a cross tool
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17720 $as_echo "pre-installed" >&6; }
17721 fi
17722 fi
17723
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17725 $as_echo_n "checking where to find the target c++... " >&6; }
17726 if test "x${build}" != "x${host}" ; then
17727 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17728 # We already found the complete path
17729 ac_dir=`dirname $CXX_FOR_TARGET`
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17731 $as_echo "pre-installed in $ac_dir" >&6; }
17732 else
17733 # Canadian cross, just use what we found
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17735 $as_echo "pre-installed" >&6; }
17736 fi
17737 else
17738 ok=yes
17739 case " ${configdirs} " in
17740 *" gcc "*) ;;
17741 *) ok=no ;;
17742 esac
17743 case ,${enable_languages}, in
17744 *,c++,*) ;;
17745 *) ok=no ;;
17746 esac
17747 if test $ok = yes; then
17748 # An in-tree tool is available and we can use it
17749 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'
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17751 $as_echo "just compiled" >&6; }
17752 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17753 # We already found the complete path
17754 ac_dir=`dirname $CXX_FOR_TARGET`
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17756 $as_echo "pre-installed in $ac_dir" >&6; }
17757 elif test "x$target" = "x$host"; then
17758 # We can use an host tool
17759 CXX_FOR_TARGET='$(CXX)'
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17761 $as_echo "host tool" >&6; }
17762 else
17763 # We need a cross tool
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17765 $as_echo "pre-installed" >&6; }
17766 fi
17767 fi
17768
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17770 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17771 if test "x${build}" != "x${host}" ; then
17772 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17773 # We already found the complete path
17774 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17776 $as_echo "pre-installed in $ac_dir" >&6; }
17777 else
17778 # Canadian cross, just use what we found
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17780 $as_echo "pre-installed" >&6; }
17781 fi
17782 else
17783 ok=yes
17784 case " ${configdirs} " in
17785 *" gcc "*) ;;
17786 *) ok=no ;;
17787 esac
17788 case ,${enable_languages}, in
17789 *,c++,*) ;;
17790 *) ok=no ;;
17791 esac
17792 if test $ok = yes; then
17793 # An in-tree tool is available and we can use it
17794 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'
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17796 $as_echo "just compiled" >&6; }
17797 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17798 # We already found the complete path
17799 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17801 $as_echo "pre-installed in $ac_dir" >&6; }
17802 elif test "x$target" = "x$host"; then
17803 # We can use an host tool
17804 RAW_CXX_FOR_TARGET='$(CXX)'
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17806 $as_echo "host tool" >&6; }
17807 else
17808 # We need a cross tool
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17810 $as_echo "pre-installed" >&6; }
17811 fi
17812 fi
17813
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17815 $as_echo_n "checking where to find the target dlltool... " >&6; }
17816 if test "x${build}" != "x${host}" ; then
17817 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17818 # We already found the complete path
17819 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17821 $as_echo "pre-installed in $ac_dir" >&6; }
17822 else
17823 # Canadian cross, just use what we found
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17825 $as_echo "pre-installed" >&6; }
17826 fi
17827 else
17828 ok=yes
17829 case " ${configdirs} " in
17830 *" binutils "*) ;;
17831 *) ok=no ;;
17832 esac
17833
17834 if test $ok = yes; then
17835 # An in-tree tool is available and we can use it
17836 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17838 $as_echo "just compiled" >&6; }
17839 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17840 # We already found the complete path
17841 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17843 $as_echo "pre-installed in $ac_dir" >&6; }
17844 elif test "x$target" = "x$host"; then
17845 # We can use an host tool
17846 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17848 $as_echo "host tool" >&6; }
17849 else
17850 # We need a cross tool
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17852 $as_echo "pre-installed" >&6; }
17853 fi
17854 fi
17855
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17857 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17858 if test "x${build}" != "x${host}" ; then
17859 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17860 # We already found the complete path
17861 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17863 $as_echo "pre-installed in $ac_dir" >&6; }
17864 else
17865 # Canadian cross, just use what we found
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17867 $as_echo "pre-installed" >&6; }
17868 fi
17869 else
17870 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17871 # We already found the complete path
17872 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17874 $as_echo "pre-installed in $ac_dir" >&6; }
17875 elif test "x$target" = "x$host"; then
17876 # We can use an host tool
17877 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17879 $as_echo "host tool" >&6; }
17880 else
17881 # We need a cross tool
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17883 $as_echo "pre-installed" >&6; }
17884 fi
17885 fi
17886
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17888 $as_echo_n "checking where to find the target gcc... " >&6; }
17889 if test "x${build}" != "x${host}" ; then
17890 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17891 # We already found the complete path
17892 ac_dir=`dirname $GCC_FOR_TARGET`
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17894 $as_echo "pre-installed in $ac_dir" >&6; }
17895 else
17896 # Canadian cross, just use what we found
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17898 $as_echo "pre-installed" >&6; }
17899 fi
17900 else
17901 ok=yes
17902 case " ${configdirs} " in
17903 *" gcc "*) ;;
17904 *) ok=no ;;
17905 esac
17906
17907 if test $ok = yes; then
17908 # An in-tree tool is available and we can use it
17909 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17911 $as_echo "just compiled" >&6; }
17912 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17913 # We already found the complete path
17914 ac_dir=`dirname $GCC_FOR_TARGET`
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17916 $as_echo "pre-installed in $ac_dir" >&6; }
17917 elif test "x$target" = "x$host"; then
17918 # We can use an host tool
17919 GCC_FOR_TARGET='$()'
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17921 $as_echo "host tool" >&6; }
17922 else
17923 # We need a cross tool
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17925 $as_echo "pre-installed" >&6; }
17926 fi
17927 fi
17928
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17930 $as_echo_n "checking where to find the target gfortran... " >&6; }
17931 if test "x${build}" != "x${host}" ; then
17932 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17933 # We already found the complete path
17934 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17936 $as_echo "pre-installed in $ac_dir" >&6; }
17937 else
17938 # Canadian cross, just use what we found
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17940 $as_echo "pre-installed" >&6; }
17941 fi
17942 else
17943 ok=yes
17944 case " ${configdirs} " in
17945 *" gcc "*) ;;
17946 *) ok=no ;;
17947 esac
17948 case ,${enable_languages}, in
17949 *,fortran,*) ;;
17950 *) ok=no ;;
17951 esac
17952 if test $ok = yes; then
17953 # An in-tree tool is available and we can use it
17954 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17956 $as_echo "just compiled" >&6; }
17957 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17958 # We already found the complete path
17959 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17961 $as_echo "pre-installed in $ac_dir" >&6; }
17962 elif test "x$target" = "x$host"; then
17963 # We can use an host tool
17964 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17966 $as_echo "host tool" >&6; }
17967 else
17968 # We need a cross tool
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17970 $as_echo "pre-installed" >&6; }
17971 fi
17972 fi
17973
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17975 $as_echo_n "checking where to find the target gccgo... " >&6; }
17976 if test "x${build}" != "x${host}" ; then
17977 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17978 # We already found the complete path
17979 ac_dir=`dirname $GOC_FOR_TARGET`
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17981 $as_echo "pre-installed in $ac_dir" >&6; }
17982 else
17983 # Canadian cross, just use what we found
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17985 $as_echo "pre-installed" >&6; }
17986 fi
17987 else
17988 ok=yes
17989 case " ${configdirs} " in
17990 *" gcc "*) ;;
17991 *) ok=no ;;
17992 esac
17993 case ,${enable_languages}, in
17994 *,go,*) ;;
17995 *) ok=no ;;
17996 esac
17997 if test $ok = yes; then
17998 # An in-tree tool is available and we can use it
17999 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18001 $as_echo "just compiled" >&6; }
18002 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18003 # We already found the complete path
18004 ac_dir=`dirname $GOC_FOR_TARGET`
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18006 $as_echo "pre-installed in $ac_dir" >&6; }
18007 elif test "x$target" = "x$host"; then
18008 # We can use an host tool
18009 GOC_FOR_TARGET='$(GOC)'
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18011 $as_echo "host tool" >&6; }
18012 else
18013 # We need a cross tool
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18015 $as_echo "pre-installed" >&6; }
18016 fi
18017 fi
18018
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18020 $as_echo_n "checking where to find the target gdc... " >&6; }
18021 if test "x${build}" != "x${host}" ; then
18022 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18023 # We already found the complete path
18024 ac_dir=`dirname $GDC_FOR_TARGET`
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18026 $as_echo "pre-installed in $ac_dir" >&6; }
18027 else
18028 # Canadian cross, just use what we found
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18030 $as_echo "pre-installed" >&6; }
18031 fi
18032 else
18033 ok=yes
18034 case " ${configdirs} " in
18035 *" gcc "*) ;;
18036 *) ok=no ;;
18037 esac
18038 case ,${enable_languages}, in
18039 *,d,*) ;;
18040 *) ok=no ;;
18041 esac
18042 if test $ok = yes; then
18043 # An in-tree tool is available and we can use it
18044 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18046 $as_echo "just compiled" >&6; }
18047 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18048 # We already found the complete path
18049 ac_dir=`dirname $GDC_FOR_TARGET`
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18051 $as_echo "pre-installed in $ac_dir" >&6; }
18052 elif test "x$target" = "x$host"; then
18053 # We can use an host tool
18054 GDC_FOR_TARGET='$(GDC)'
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18056 $as_echo "host tool" >&6; }
18057 else
18058 # We need a cross tool
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18060 $as_echo "pre-installed" >&6; }
18061 fi
18062 fi
18063
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18065 $as_echo_n "checking where to find the target gm2... " >&6; }
18066 if test "x${build}" != "x${host}" ; then
18067 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18068 # We already found the complete path
18069 ac_dir=`dirname $GM2_FOR_TARGET`
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18071 $as_echo "pre-installed in $ac_dir" >&6; }
18072 else
18073 # Canadian cross, just use what we found
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18075 $as_echo "pre-installed" >&6; }
18076 fi
18077 else
18078 ok=yes
18079 case " ${configdirs} " in
18080 *" gcc "*) ;;
18081 *) ok=no ;;
18082 esac
18083 case ,${enable_languages}, in
18084 *,m2,*) ;;
18085 *) ok=no ;;
18086 esac
18087 if test $ok = yes; then
18088 # An in-tree tool is available and we can use it
18089 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18091 $as_echo "just compiled" >&6; }
18092 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18093 # We already found the complete path
18094 ac_dir=`dirname $GM2_FOR_TARGET`
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18096 $as_echo "pre-installed in $ac_dir" >&6; }
18097 elif test "x$target" = "x$host"; then
18098 # We can use an host tool
18099 GM2_FOR_TARGET='$(GM2)'
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18101 $as_echo "host tool" >&6; }
18102 else
18103 # We need a cross tool
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18105 $as_echo "pre-installed" >&6; }
18106 fi
18107 fi
18108
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18110 $as_echo_n "checking where to find the target ld... " >&6; }
18111 if test "x${build}" != "x${host}" ; then
18112 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18113 # We already found the complete path
18114 ac_dir=`dirname $LD_FOR_TARGET`
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18116 $as_echo "pre-installed in $ac_dir" >&6; }
18117 else
18118 # Canadian cross, just use what we found
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18120 $as_echo "pre-installed" >&6; }
18121 fi
18122 else
18123 ok=yes
18124 case " ${configdirs} " in
18125 *" ld "*) ;;
18126 *) ok=no ;;
18127 esac
18128
18129 if test $ok = yes; then
18130 # An in-tree tool is available and we can use it
18131 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18133 $as_echo "just compiled" >&6; }
18134 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18135 # We already found the complete path
18136 ac_dir=`dirname $LD_FOR_TARGET`
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18138 $as_echo "pre-installed in $ac_dir" >&6; }
18139 elif test "x$target" = "x$host"; then
18140 # We can use an host tool
18141 LD_FOR_TARGET='$(LD)'
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18143 $as_echo "host tool" >&6; }
18144 else
18145 # We need a cross tool
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18147 $as_echo "pre-installed" >&6; }
18148 fi
18149 fi
18150
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18152 $as_echo_n "checking where to find the target lipo... " >&6; }
18153 if test "x${build}" != "x${host}" ; then
18154 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18155 # We already found the complete path
18156 ac_dir=`dirname $LIPO_FOR_TARGET`
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18158 $as_echo "pre-installed in $ac_dir" >&6; }
18159 else
18160 # Canadian cross, just use what we found
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18162 $as_echo "pre-installed" >&6; }
18163 fi
18164 else
18165 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18166 # We already found the complete path
18167 ac_dir=`dirname $LIPO_FOR_TARGET`
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18169 $as_echo "pre-installed in $ac_dir" >&6; }
18170 elif test "x$target" = "x$host"; then
18171 # We can use an host tool
18172 LIPO_FOR_TARGET='$(LIPO)'
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18174 $as_echo "host tool" >&6; }
18175 else
18176 # We need a cross tool
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18178 $as_echo "pre-installed" >&6; }
18179 fi
18180 fi
18181
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18183 $as_echo_n "checking where to find the target nm... " >&6; }
18184 if test "x${build}" != "x${host}" ; then
18185 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18186 # We already found the complete path
18187 ac_dir=`dirname $NM_FOR_TARGET`
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18189 $as_echo "pre-installed in $ac_dir" >&6; }
18190 else
18191 # Canadian cross, just use what we found
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18193 $as_echo "pre-installed" >&6; }
18194 fi
18195 else
18196 ok=yes
18197 case " ${configdirs} " in
18198 *" binutils "*) ;;
18199 *) ok=no ;;
18200 esac
18201
18202 if test $ok = yes; then
18203 # An in-tree tool is available and we can use it
18204 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18206 $as_echo "just compiled" >&6; }
18207 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18208 # We already found the complete path
18209 ac_dir=`dirname $NM_FOR_TARGET`
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18211 $as_echo "pre-installed in $ac_dir" >&6; }
18212 elif test "x$target" = "x$host"; then
18213 # We can use an host tool
18214 NM_FOR_TARGET='$(NM)'
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18216 $as_echo "host tool" >&6; }
18217 else
18218 # We need a cross tool
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18220 $as_echo "pre-installed" >&6; }
18221 fi
18222 fi
18223
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18225 $as_echo_n "checking where to find the target objcopy... " >&6; }
18226 if test "x${build}" != "x${host}" ; then
18227 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18228 # We already found the complete path
18229 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18231 $as_echo "pre-installed in $ac_dir" >&6; }
18232 else
18233 # Canadian cross, just use what we found
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18235 $as_echo "pre-installed" >&6; }
18236 fi
18237 else
18238 ok=yes
18239 case " ${configdirs} " in
18240 *" binutils "*) ;;
18241 *) ok=no ;;
18242 esac
18243
18244 if test $ok = yes; then
18245 # An in-tree tool is available and we can use it
18246 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18248 $as_echo "just compiled" >&6; }
18249 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18250 # We already found the complete path
18251 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18253 $as_echo "pre-installed in $ac_dir" >&6; }
18254 elif test "x$target" = "x$host"; then
18255 # We can use an host tool
18256 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18258 $as_echo "host tool" >&6; }
18259 else
18260 # We need a cross tool
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18262 $as_echo "pre-installed" >&6; }
18263 fi
18264 fi
18265
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18267 $as_echo_n "checking where to find the target objdump... " >&6; }
18268 if test "x${build}" != "x${host}" ; then
18269 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18270 # We already found the complete path
18271 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18273 $as_echo "pre-installed in $ac_dir" >&6; }
18274 else
18275 # Canadian cross, just use what we found
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18277 $as_echo "pre-installed" >&6; }
18278 fi
18279 else
18280 ok=yes
18281 case " ${configdirs} " in
18282 *" binutils "*) ;;
18283 *) ok=no ;;
18284 esac
18285
18286 if test $ok = yes; then
18287 # An in-tree tool is available and we can use it
18288 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18290 $as_echo "just compiled" >&6; }
18291 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18292 # We already found the complete path
18293 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18295 $as_echo "pre-installed in $ac_dir" >&6; }
18296 elif test "x$target" = "x$host"; then
18297 # We can use an host tool
18298 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18300 $as_echo "host tool" >&6; }
18301 else
18302 # We need a cross tool
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18304 $as_echo "pre-installed" >&6; }
18305 fi
18306 fi
18307
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18309 $as_echo_n "checking where to find the target otool... " >&6; }
18310 if test "x${build}" != "x${host}" ; then
18311 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18312 # We already found the complete path
18313 ac_dir=`dirname $OTOOL_FOR_TARGET`
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18315 $as_echo "pre-installed in $ac_dir" >&6; }
18316 else
18317 # Canadian cross, just use what we found
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18319 $as_echo "pre-installed" >&6; }
18320 fi
18321 else
18322 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18323 # We already found the complete path
18324 ac_dir=`dirname $OTOOL_FOR_TARGET`
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18326 $as_echo "pre-installed in $ac_dir" >&6; }
18327 elif test "x$target" = "x$host"; then
18328 # We can use an host tool
18329 OTOOL_FOR_TARGET='$(OTOOL)'
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18331 $as_echo "host tool" >&6; }
18332 else
18333 # We need a cross tool
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18335 $as_echo "pre-installed" >&6; }
18336 fi
18337 fi
18338
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18340 $as_echo_n "checking where to find the target ranlib... " >&6; }
18341 if test "x${build}" != "x${host}" ; then
18342 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18343 # We already found the complete path
18344 ac_dir=`dirname $RANLIB_FOR_TARGET`
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18346 $as_echo "pre-installed in $ac_dir" >&6; }
18347 else
18348 # Canadian cross, just use what we found
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18350 $as_echo "pre-installed" >&6; }
18351 fi
18352 else
18353 ok=yes
18354 case " ${configdirs} " in
18355 *" binutils "*) ;;
18356 *) ok=no ;;
18357 esac
18358
18359 if test $ok = yes; then
18360 # An in-tree tool is available and we can use it
18361 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18363 $as_echo "just compiled" >&6; }
18364 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18365 # We already found the complete path
18366 ac_dir=`dirname $RANLIB_FOR_TARGET`
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18368 $as_echo "pre-installed in $ac_dir" >&6; }
18369 elif test "x$target" = "x$host"; then
18370 # We can use an host tool
18371 RANLIB_FOR_TARGET='$(RANLIB)'
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18373 $as_echo "host tool" >&6; }
18374 else
18375 # We need a cross tool
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18377 $as_echo "pre-installed" >&6; }
18378 fi
18379 fi
18380
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18382 $as_echo_n "checking where to find the target readelf... " >&6; }
18383 if test "x${build}" != "x${host}" ; then
18384 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18385 # We already found the complete path
18386 ac_dir=`dirname $READELF_FOR_TARGET`
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18388 $as_echo "pre-installed in $ac_dir" >&6; }
18389 else
18390 # Canadian cross, just use what we found
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18392 $as_echo "pre-installed" >&6; }
18393 fi
18394 else
18395 ok=yes
18396 case " ${configdirs} " in
18397 *" binutils "*) ;;
18398 *) ok=no ;;
18399 esac
18400
18401 if test $ok = yes; then
18402 # An in-tree tool is available and we can use it
18403 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18405 $as_echo "just compiled" >&6; }
18406 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18407 # We already found the complete path
18408 ac_dir=`dirname $READELF_FOR_TARGET`
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18410 $as_echo "pre-installed in $ac_dir" >&6; }
18411 elif test "x$target" = "x$host"; then
18412 # We can use an host tool
18413 READELF_FOR_TARGET='$(READELF)'
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18415 $as_echo "host tool" >&6; }
18416 else
18417 # We need a cross tool
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18419 $as_echo "pre-installed" >&6; }
18420 fi
18421 fi
18422
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18424 $as_echo_n "checking where to find the target strip... " >&6; }
18425 if test "x${build}" != "x${host}" ; then
18426 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18427 # We already found the complete path
18428 ac_dir=`dirname $STRIP_FOR_TARGET`
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18430 $as_echo "pre-installed in $ac_dir" >&6; }
18431 else
18432 # Canadian cross, just use what we found
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18434 $as_echo "pre-installed" >&6; }
18435 fi
18436 else
18437 ok=yes
18438 case " ${configdirs} " in
18439 *" binutils "*) ;;
18440 *) ok=no ;;
18441 esac
18442
18443 if test $ok = yes; then
18444 # An in-tree tool is available and we can use it
18445 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18447 $as_echo "just compiled" >&6; }
18448 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18449 # We already found the complete path
18450 ac_dir=`dirname $STRIP_FOR_TARGET`
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18452 $as_echo "pre-installed in $ac_dir" >&6; }
18453 elif test "x$target" = "x$host"; then
18454 # We can use an host tool
18455 STRIP_FOR_TARGET='$(STRIP)'
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18457 $as_echo "host tool" >&6; }
18458 else
18459 # We need a cross tool
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18461 $as_echo "pre-installed" >&6; }
18462 fi
18463 fi
18464
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18466 $as_echo_n "checking where to find the target windres... " >&6; }
18467 if test "x${build}" != "x${host}" ; then
18468 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18469 # We already found the complete path
18470 ac_dir=`dirname $WINDRES_FOR_TARGET`
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18472 $as_echo "pre-installed in $ac_dir" >&6; }
18473 else
18474 # Canadian cross, just use what we found
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18476 $as_echo "pre-installed" >&6; }
18477 fi
18478 else
18479 ok=yes
18480 case " ${configdirs} " in
18481 *" binutils "*) ;;
18482 *) ok=no ;;
18483 esac
18484
18485 if test $ok = yes; then
18486 # An in-tree tool is available and we can use it
18487 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18489 $as_echo "just compiled" >&6; }
18490 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18491 # We already found the complete path
18492 ac_dir=`dirname $WINDRES_FOR_TARGET`
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18494 $as_echo "pre-installed in $ac_dir" >&6; }
18495 elif test "x$target" = "x$host"; then
18496 # We can use an host tool
18497 WINDRES_FOR_TARGET='$(WINDRES)'
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18499 $as_echo "host tool" >&6; }
18500 else
18501 # We need a cross tool
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18503 $as_echo "pre-installed" >&6; }
18504 fi
18505 fi
18506
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18508 $as_echo_n "checking where to find the target windmc... " >&6; }
18509 if test "x${build}" != "x${host}" ; then
18510 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18511 # We already found the complete path
18512 ac_dir=`dirname $WINDMC_FOR_TARGET`
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18514 $as_echo "pre-installed in $ac_dir" >&6; }
18515 else
18516 # Canadian cross, just use what we found
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18518 $as_echo "pre-installed" >&6; }
18519 fi
18520 else
18521 ok=yes
18522 case " ${configdirs} " in
18523 *" binutils "*) ;;
18524 *) ok=no ;;
18525 esac
18526
18527 if test $ok = yes; then
18528 # An in-tree tool is available and we can use it
18529 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18531 $as_echo "just compiled" >&6; }
18532 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18533 # We already found the complete path
18534 ac_dir=`dirname $WINDMC_FOR_TARGET`
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18536 $as_echo "pre-installed in $ac_dir" >&6; }
18537 elif test "x$target" = "x$host"; then
18538 # We can use an host tool
18539 WINDMC_FOR_TARGET='$(WINDMC)'
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18541 $as_echo "host tool" >&6; }
18542 else
18543 # We need a cross tool
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18545 $as_echo "pre-installed" >&6; }
18546 fi
18547 fi
18548
18549
18550
18551
18552
18553 # Certain tools may need extra flags.
18554 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18555 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18556 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18557
18558 # When building target libraries, except in a Canadian cross, we use
18559 # the same toolchain as the compiler we just built.
18560 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18561 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18562 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18563 if test $host = $build; then
18564 case " $configdirs " in
18565 *" gcc "*)
18566 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18567 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18568 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18569 ;;
18570 esac
18571 fi
18572
18573
18574
18575
18576
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18578 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18579 # Check whether --enable-maintainer-mode was given.
18580 if test "${enable_maintainer_mode+set}" = set; then :
18581 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18582 else
18583 USE_MAINTAINER_MODE=no
18584 fi
18585
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18587 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18588
18589
18590 if test "$USE_MAINTAINER_MODE" = yes; then
18591 MAINTAINER_MODE_TRUE=
18592 MAINTAINER_MODE_FALSE='#'
18593 else
18594 MAINTAINER_MODE_TRUE='#'
18595 MAINTAINER_MODE_FALSE=
18596 fi
18597 MAINT=$MAINTAINER_MODE_TRUE
18598
18599 # ---------------------
18600 # GCC bootstrap support
18601 # ---------------------
18602
18603 # Stage specific cflags for build.
18604 stage1_cflags="-g"
18605 case $build in
18606 vax-*-*)
18607 case ${GCC} in
18608 yes) stage1_cflags="-g -Wa,-J" ;;
18609 *) stage1_cflags="-g -J" ;;
18610 esac ;;
18611 esac
18612
18613
18614
18615 # Enable --enable-checking in stage1 of the compiler.
18616 # Check whether --enable-stage1-checking was given.
18617 if test "${enable_stage1_checking+set}" = set; then :
18618 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18619 else
18620 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18621 # For --disable-checking or implicit --enable-checking=release, avoid
18622 # setting --enable-checking=gc in the default stage1 checking for LTO
18623 # bootstraps. See PR62077.
18624 case $BUILD_CONFIG in
18625 *lto*)
18626 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18627 *)
18628 stage1_checking=--enable-checking=yes,types;;
18629 esac
18630 if test "x$enable_checking" = x && \
18631 test -d ${srcdir}/gcc && \
18632 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18633 stage1_checking=--enable-checking=yes,types,extra
18634 fi
18635 else
18636 stage1_checking=--enable-checking=$enable_checking,types
18637 fi
18638 fi
18639
18640
18641
18642 # Enable -Werror in bootstrap stage2 and later.
18643 # Check whether --enable-werror was given.
18644 if test "${enable_werror+set}" = set; then :
18645 enableval=$enable_werror;
18646 case ${enable_werror} in
18647 yes) stage2_werror_flag="--enable-werror-always" ;;
18648 *) stage2_werror_flag="" ;;
18649 esac
18650
18651 else
18652
18653 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18654 case $BUILD_CONFIG in
18655 bootstrap-debug)
18656 stage2_werror_flag="--enable-werror-always" ;;
18657 "")
18658 stage2_werror_flag="--enable-werror-always" ;;
18659 esac
18660 fi
18661
18662 fi
18663
18664
18665
18666
18667 # Specify what files to not compare during bootstrap.
18668
18669 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18670 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18671 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18672 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18673 case "$target" in
18674 hppa*64*-*-hpux*) ;;
18675 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18676 esac
18677
18678
18679 ac_config_files="$ac_config_files Makefile"
18680
18681 cat >confcache <<\_ACEOF
18682 # This file is a shell script that caches the results of configure
18683 # tests run on this system so they can be shared between configure
18684 # scripts and configure runs, see configure's option --config-cache.
18685 # It is not useful on other systems. If it contains results you don't
18686 # want to keep, you may remove or edit it.
18687 #
18688 # config.status only pays attention to the cache file if you give it
18689 # the --recheck option to rerun configure.
18690 #
18691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18693 # following values.
18694
18695 _ACEOF
18696
18697 # The following way of writing the cache mishandles newlines in values,
18698 # but we know of no workaround that is simple, portable, and efficient.
18699 # So, we kill variables containing newlines.
18700 # Ultrix sh set writes to stderr and can't be redirected directly,
18701 # and sets the high bit in the cache file unless we assign to the vars.
18702 (
18703 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18704 eval ac_val=\$$ac_var
18705 case $ac_val in #(
18706 *${as_nl}*)
18707 case $ac_var in #(
18708 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18709 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18710 esac
18711 case $ac_var in #(
18712 _ | IFS | as_nl) ;; #(
18713 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18714 *) { eval $ac_var=; unset $ac_var;} ;;
18715 esac ;;
18716 esac
18717 done
18718
18719 (set) 2>&1 |
18720 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18721 *${as_nl}ac_space=\ *)
18722 # `set' does not quote correctly, so add quotes: double-quote
18723 # substitution turns \\\\ into \\, and sed turns \\ into \.
18724 sed -n \
18725 "s/'/'\\\\''/g;
18726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18727 ;; #(
18728 *)
18729 # `set' quotes correctly as required by POSIX, so do not add quotes.
18730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18731 ;;
18732 esac |
18733 sort
18734 ) |
18735 sed '
18736 /^ac_cv_env_/b end
18737 t clear
18738 :clear
18739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18740 t end
18741 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18742 :end' >>confcache
18743 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18744 if test -w "$cache_file"; then
18745 if test "x$cache_file" != "x/dev/null"; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18747 $as_echo "$as_me: updating cache $cache_file" >&6;}
18748 if test ! -f "$cache_file" || test -h "$cache_file"; then
18749 cat confcache >"$cache_file"
18750 else
18751 case $cache_file in #(
18752 */* | ?:*)
18753 mv -f confcache "$cache_file"$$ &&
18754 mv -f "$cache_file"$$ "$cache_file" ;; #(
18755 *)
18756 mv -f confcache "$cache_file" ;;
18757 esac
18758 fi
18759 fi
18760 else
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18762 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18763 fi
18764 fi
18765 rm -f confcache
18766
18767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18768 # Let make expand exec_prefix.
18769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18770
18771 # Transform confdefs.h into DEFS.
18772 # Protect against shell expansion while executing Makefile rules.
18773 # Protect against Makefile macro expansion.
18774 #
18775 # If the first sed substitution is executed (which looks for macros that
18776 # take arguments), then branch to the quote section. Otherwise,
18777 # look for a macro that doesn't take arguments.
18778 ac_script='
18779 :mline
18780 /\\$/{
18781 N
18782 s,\\\n,,
18783 b mline
18784 }
18785 t clear
18786 :clear
18787 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18788 t quote
18789 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18790 t quote
18791 b any
18792 :quote
18793 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18794 s/\[/\\&/g
18795 s/\]/\\&/g
18796 s/\$/$$/g
18797 H
18798 :any
18799 ${
18800 g
18801 s/^\n//
18802 s/\n/ /g
18803 p
18804 }
18805 '
18806 DEFS=`sed -n "$ac_script" confdefs.h`
18807
18808
18809 ac_libobjs=
18810 ac_ltlibobjs=
18811 U=
18812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18813 # 1. Remove the extension, and $U if already installed.
18814 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18815 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18816 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18817 # will be set to the directory where LIBOBJS objects are built.
18818 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18819 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18820 done
18821 LIBOBJS=$ac_libobjs
18822
18823 LTLIBOBJS=$ac_ltlibobjs
18824
18825
18826
18827 : "${CONFIG_STATUS=./config.status}"
18828 ac_write_fail=0
18829 ac_clean_files_save=$ac_clean_files
18830 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18833 as_write_fail=0
18834 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18835 #! $SHELL
18836 # Generated by $as_me.
18837 # Run this file to recreate the current configuration.
18838 # Compiler output produced by configure, useful for debugging
18839 # configure, is in config.log if it exists.
18840
18841 debug=false
18842 ac_cs_recheck=false
18843 ac_cs_silent=false
18844
18845 SHELL=\${CONFIG_SHELL-$SHELL}
18846 export SHELL
18847 _ASEOF
18848 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18849 ## -------------------- ##
18850 ## M4sh Initialization. ##
18851 ## -------------------- ##
18852
18853 # Be more Bourne compatible
18854 DUALCASE=1; export DUALCASE # for MKS sh
18855 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18856 emulate sh
18857 NULLCMD=:
18858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18859 # is contrary to our usage. Disable this feature.
18860 alias -g '${1+"$@"}'='"$@"'
18861 setopt NO_GLOB_SUBST
18862 else
18863 case `(set -o) 2>/dev/null` in #(
18864 *posix*) :
18865 set -o posix ;; #(
18866 *) :
18867 ;;
18868 esac
18869 fi
18870
18871
18872 as_nl='
18873 '
18874 export as_nl
18875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18876 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18879 # Prefer a ksh shell builtin over an external printf program on Solaris,
18880 # but without wasting forks for bash or zsh.
18881 if test -z "$BASH_VERSION$ZSH_VERSION" \
18882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18883 as_echo='print -r --'
18884 as_echo_n='print -rn --'
18885 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18886 as_echo='printf %s\n'
18887 as_echo_n='printf %s'
18888 else
18889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18890 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18891 as_echo_n='/usr/ucb/echo -n'
18892 else
18893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18894 as_echo_n_body='eval
18895 arg=$1;
18896 case $arg in #(
18897 *"$as_nl"*)
18898 expr "X$arg" : "X\\(.*\\)$as_nl";
18899 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18900 esac;
18901 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18902 '
18903 export as_echo_n_body
18904 as_echo_n='sh -c $as_echo_n_body as_echo'
18905 fi
18906 export as_echo_body
18907 as_echo='sh -c $as_echo_body as_echo'
18908 fi
18909
18910 # The user is always right.
18911 if test "${PATH_SEPARATOR+set}" != set; then
18912 PATH_SEPARATOR=:
18913 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18914 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18915 PATH_SEPARATOR=';'
18916 }
18917 fi
18918
18919
18920 # IFS
18921 # We need space, tab and new line, in precisely that order. Quoting is
18922 # there to prevent editors from complaining about space-tab.
18923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18924 # splitting by setting IFS to empty value.)
18925 IFS=" "" $as_nl"
18926
18927 # Find who we are. Look in the path if we contain no directory separator.
18928 as_myself=
18929 case $0 in #((
18930 *[\\/]* ) as_myself=$0 ;;
18931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18932 for as_dir in $PATH
18933 do
18934 IFS=$as_save_IFS
18935 test -z "$as_dir" && as_dir=.
18936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18937 done
18938 IFS=$as_save_IFS
18939
18940 ;;
18941 esac
18942 # We did not find ourselves, most probably we were run as `sh COMMAND'
18943 # in which case we are not to be found in the path.
18944 if test "x$as_myself" = x; then
18945 as_myself=$0
18946 fi
18947 if test ! -f "$as_myself"; then
18948 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18949 exit 1
18950 fi
18951
18952 # Unset variables that we do not need and which cause bugs (e.g. in
18953 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18954 # suppresses any "Segmentation fault" message there. '((' could
18955 # trigger a bug in pdksh 5.2.14.
18956 for as_var in BASH_ENV ENV MAIL MAILPATH
18957 do eval test x\${$as_var+set} = xset \
18958 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18959 done
18960 PS1='$ '
18961 PS2='> '
18962 PS4='+ '
18963
18964 # NLS nuisances.
18965 LC_ALL=C
18966 export LC_ALL
18967 LANGUAGE=C
18968 export LANGUAGE
18969
18970 # CDPATH.
18971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18972
18973
18974 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18975 # ----------------------------------------
18976 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18977 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18978 # script with STATUS, using 1 if that was 0.
18979 as_fn_error ()
18980 {
18981 as_status=$1; test $as_status -eq 0 && as_status=1
18982 if test "$4"; then
18983 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18984 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18985 fi
18986 $as_echo "$as_me: error: $2" >&2
18987 as_fn_exit $as_status
18988 } # as_fn_error
18989
18990
18991 # as_fn_set_status STATUS
18992 # -----------------------
18993 # Set $? to STATUS, without forking.
18994 as_fn_set_status ()
18995 {
18996 return $1
18997 } # as_fn_set_status
18998
18999 # as_fn_exit STATUS
19000 # -----------------
19001 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19002 as_fn_exit ()
19003 {
19004 set +e
19005 as_fn_set_status $1
19006 exit $1
19007 } # as_fn_exit
19008
19009 # as_fn_unset VAR
19010 # ---------------
19011 # Portably unset VAR.
19012 as_fn_unset ()
19013 {
19014 { eval $1=; unset $1;}
19015 }
19016 as_unset=as_fn_unset
19017 # as_fn_append VAR VALUE
19018 # ----------------------
19019 # Append the text in VALUE to the end of the definition contained in VAR. Take
19020 # advantage of any shell optimizations that allow amortized linear growth over
19021 # repeated appends, instead of the typical quadratic growth present in naive
19022 # implementations.
19023 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19024 eval 'as_fn_append ()
19025 {
19026 eval $1+=\$2
19027 }'
19028 else
19029 as_fn_append ()
19030 {
19031 eval $1=\$$1\$2
19032 }
19033 fi # as_fn_append
19034
19035 # as_fn_arith ARG...
19036 # ------------------
19037 # Perform arithmetic evaluation on the ARGs, and store the result in the
19038 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19039 # must be portable across $(()) and expr.
19040 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19041 eval 'as_fn_arith ()
19042 {
19043 as_val=$(( $* ))
19044 }'
19045 else
19046 as_fn_arith ()
19047 {
19048 as_val=`expr "$@" || test $? -eq 1`
19049 }
19050 fi # as_fn_arith
19051
19052
19053 if expr a : '\(a\)' >/dev/null 2>&1 &&
19054 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19055 as_expr=expr
19056 else
19057 as_expr=false
19058 fi
19059
19060 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19061 as_basename=basename
19062 else
19063 as_basename=false
19064 fi
19065
19066 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19067 as_dirname=dirname
19068 else
19069 as_dirname=false
19070 fi
19071
19072 as_me=`$as_basename -- "$0" ||
19073 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19074 X"$0" : 'X\(//\)$' \| \
19075 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19076 $as_echo X/"$0" |
19077 sed '/^.*\/\([^/][^/]*\)\/*$/{
19078 s//\1/
19079 q
19080 }
19081 /^X\/\(\/\/\)$/{
19082 s//\1/
19083 q
19084 }
19085 /^X\/\(\/\).*/{
19086 s//\1/
19087 q
19088 }
19089 s/.*/./; q'`
19090
19091 # Avoid depending upon Character Ranges.
19092 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19093 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19094 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19095 as_cr_digits='0123456789'
19096 as_cr_alnum=$as_cr_Letters$as_cr_digits
19097
19098 ECHO_C= ECHO_N= ECHO_T=
19099 case `echo -n x` in #(((((
19100 -n*)
19101 case `echo 'xy\c'` in
19102 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19103 xy) ECHO_C='\c';;
19104 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19105 ECHO_T=' ';;
19106 esac;;
19107 *)
19108 ECHO_N='-n';;
19109 esac
19110
19111 rm -f conf$$ conf$$.exe conf$$.file
19112 if test -d conf$$.dir; then
19113 rm -f conf$$.dir/conf$$.file
19114 else
19115 rm -f conf$$.dir
19116 mkdir conf$$.dir 2>/dev/null
19117 fi
19118 if (echo >conf$$.file) 2>/dev/null; then
19119 if ln -s conf$$.file conf$$ 2>/dev/null; then
19120 as_ln_s='ln -s'
19121 # ... but there are two gotchas:
19122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19124 # In both cases, we have to default to `cp -pR'.
19125 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19126 as_ln_s='cp -pR'
19127 elif ln conf$$.file conf$$ 2>/dev/null; then
19128 as_ln_s=ln
19129 else
19130 as_ln_s='cp -pR'
19131 fi
19132 else
19133 as_ln_s='cp -pR'
19134 fi
19135 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19136 rmdir conf$$.dir 2>/dev/null
19137
19138
19139 # as_fn_mkdir_p
19140 # -------------
19141 # Create "$as_dir" as a directory, including parents if necessary.
19142 as_fn_mkdir_p ()
19143 {
19144
19145 case $as_dir in #(
19146 -*) as_dir=./$as_dir;;
19147 esac
19148 test -d "$as_dir" || eval $as_mkdir_p || {
19149 as_dirs=
19150 while :; do
19151 case $as_dir in #(
19152 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19153 *) as_qdir=$as_dir;;
19154 esac
19155 as_dirs="'$as_qdir' $as_dirs"
19156 as_dir=`$as_dirname -- "$as_dir" ||
19157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19158 X"$as_dir" : 'X\(//\)[^/]' \| \
19159 X"$as_dir" : 'X\(//\)$' \| \
19160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19161 $as_echo X"$as_dir" |
19162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19163 s//\1/
19164 q
19165 }
19166 /^X\(\/\/\)[^/].*/{
19167 s//\1/
19168 q
19169 }
19170 /^X\(\/\/\)$/{
19171 s//\1/
19172 q
19173 }
19174 /^X\(\/\).*/{
19175 s//\1/
19176 q
19177 }
19178 s/.*/./; q'`
19179 test -d "$as_dir" && break
19180 done
19181 test -z "$as_dirs" || eval "mkdir $as_dirs"
19182 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19183
19184
19185 } # as_fn_mkdir_p
19186 if mkdir -p . 2>/dev/null; then
19187 as_mkdir_p='mkdir -p "$as_dir"'
19188 else
19189 test -d ./-p && rmdir ./-p
19190 as_mkdir_p=false
19191 fi
19192
19193
19194 # as_fn_executable_p FILE
19195 # -----------------------
19196 # Test if FILE is an executable regular file.
19197 as_fn_executable_p ()
19198 {
19199 test -f "$1" && test -x "$1"
19200 } # as_fn_executable_p
19201 as_test_x='test -x'
19202 as_executable_p=as_fn_executable_p
19203
19204 # Sed expression to map a string onto a valid CPP name.
19205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19206
19207 # Sed expression to map a string onto a valid variable name.
19208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19209
19210
19211 exec 6>&1
19212 ## ----------------------------------- ##
19213 ## Main body of $CONFIG_STATUS script. ##
19214 ## ----------------------------------- ##
19215 _ASEOF
19216 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19217
19218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19219 # Save the log message, to keep $0 and so on meaningful, and to
19220 # report actual input values of CONFIG_FILES etc. instead of their
19221 # values after options handling.
19222 ac_log="
19223 This file was extended by $as_me, which was
19224 generated by GNU Autoconf 2.69. Invocation command line was
19225
19226 CONFIG_FILES = $CONFIG_FILES
19227 CONFIG_HEADERS = $CONFIG_HEADERS
19228 CONFIG_LINKS = $CONFIG_LINKS
19229 CONFIG_COMMANDS = $CONFIG_COMMANDS
19230 $ $0 $@
19231
19232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19233 "
19234
19235 _ACEOF
19236
19237 case $ac_config_files in *"
19238 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19239 esac
19240
19241
19242
19243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19244 # Files that config.status was made for.
19245 config_files="$ac_config_files"
19246
19247 _ACEOF
19248
19249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19250 ac_cs_usage="\
19251 \`$as_me' instantiates files and other configuration actions
19252 from templates according to the current configuration. Unless the files
19253 and actions are specified as TAGs, all are instantiated by default.
19254
19255 Usage: $0 [OPTION]... [TAG]...
19256
19257 -h, --help print this help, then exit
19258 -V, --version print version number and configuration settings, then exit
19259 --config print configuration, then exit
19260 -q, --quiet, --silent
19261 do not print progress messages
19262 -d, --debug don't remove temporary files
19263 --recheck update $as_me by reconfiguring in the same conditions
19264 --file=FILE[:TEMPLATE]
19265 instantiate the configuration file FILE
19266
19267 Configuration files:
19268 $config_files
19269
19270 Report bugs to the package provider."
19271
19272 _ACEOF
19273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19274 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19275 ac_cs_version="\\
19276 config.status
19277 configured by $0, generated by GNU Autoconf 2.69,
19278 with options \\"\$ac_cs_config\\"
19279
19280 Copyright (C) 2012 Free Software Foundation, Inc.
19281 This config.status script is free software; the Free Software Foundation
19282 gives unlimited permission to copy, distribute and modify it."
19283
19284 ac_pwd='$ac_pwd'
19285 srcdir='$srcdir'
19286 INSTALL='$INSTALL'
19287 AWK='$AWK'
19288 test -n "\$AWK" || AWK=awk
19289 _ACEOF
19290
19291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19292 # The default lists apply if the user does not specify any file.
19293 ac_need_defaults=:
19294 while test $# != 0
19295 do
19296 case $1 in
19297 --*=?*)
19298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19300 ac_shift=:
19301 ;;
19302 --*=)
19303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19304 ac_optarg=
19305 ac_shift=:
19306 ;;
19307 *)
19308 ac_option=$1
19309 ac_optarg=$2
19310 ac_shift=shift
19311 ;;
19312 esac
19313
19314 case $ac_option in
19315 # Handling of the options.
19316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19317 ac_cs_recheck=: ;;
19318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19319 $as_echo "$ac_cs_version"; exit ;;
19320 --config | --confi | --conf | --con | --co | --c )
19321 $as_echo "$ac_cs_config"; exit ;;
19322 --debug | --debu | --deb | --de | --d | -d )
19323 debug=: ;;
19324 --file | --fil | --fi | --f )
19325 $ac_shift
19326 case $ac_optarg in
19327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19328 '') as_fn_error $? "missing file argument" ;;
19329 esac
19330 as_fn_append CONFIG_FILES " '$ac_optarg'"
19331 ac_need_defaults=false;;
19332 --he | --h | --help | --hel | -h )
19333 $as_echo "$ac_cs_usage"; exit ;;
19334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19335 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19336 ac_cs_silent=: ;;
19337
19338 # This is an error.
19339 -*) as_fn_error $? "unrecognized option: \`$1'
19340 Try \`$0 --help' for more information." ;;
19341
19342 *) as_fn_append ac_config_targets " $1"
19343 ac_need_defaults=false ;;
19344
19345 esac
19346 shift
19347 done
19348
19349 ac_configure_extra_args=
19350
19351 if $ac_cs_silent; then
19352 exec 6>/dev/null
19353 ac_configure_extra_args="$ac_configure_extra_args --silent"
19354 fi
19355
19356 _ACEOF
19357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19358 if \$ac_cs_recheck; then
19359 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19360 shift
19361 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19362 CONFIG_SHELL='$SHELL'
19363 export CONFIG_SHELL
19364 exec "\$@"
19365 fi
19366
19367 _ACEOF
19368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19369 exec 5>>config.log
19370 {
19371 echo
19372 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19373 ## Running $as_me. ##
19374 _ASBOX
19375 $as_echo "$ac_log"
19376 } >&5
19377
19378 _ACEOF
19379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19380 #
19381 # INIT-COMMANDS
19382 #
19383 extrasub_build="$extrasub_build"
19384 extrasub_host="$extrasub_host"
19385 extrasub_target="$extrasub_target"
19386
19387 _ACEOF
19388
19389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19390
19391 # Handling of arguments.
19392 for ac_config_target in $ac_config_targets
19393 do
19394 case $ac_config_target in
19395 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19396
19397 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19398 esac
19399 done
19400
19401
19402 # If the user did not use the arguments to specify the items to instantiate,
19403 # then the envvar interface is used. Set only those that are not.
19404 # We use the long form for the default assignment because of an extremely
19405 # bizarre bug on SunOS 4.1.3.
19406 if $ac_need_defaults; then
19407 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19408 fi
19409
19410 # Have a temporary directory for convenience. Make it in the build tree
19411 # simply because there is no reason against having it here, and in addition,
19412 # creating and moving files from /tmp can sometimes cause problems.
19413 # Hook for its removal unless debugging.
19414 # Note that there is a small window in which the directory will not be cleaned:
19415 # after its creation but before its name has been assigned to `$tmp'.
19416 $debug ||
19417 {
19418 tmp= ac_tmp=
19419 trap 'exit_status=$?
19420 : "${ac_tmp:=$tmp}"
19421 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19422 ' 0
19423 trap 'as_fn_exit 1' 1 2 13 15
19424 }
19425 # Create a (secure) tmp directory for tmp files.
19426
19427 {
19428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19429 test -d "$tmp"
19430 } ||
19431 {
19432 tmp=./conf$$-$RANDOM
19433 (umask 077 && mkdir "$tmp")
19434 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19435 ac_tmp=$tmp
19436
19437 # Set up the scripts for CONFIG_FILES section.
19438 # No need to generate them if there are no CONFIG_FILES.
19439 # This happens for instance with `./config.status config.h'.
19440 if test -n "$CONFIG_FILES"; then
19441
19442 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19443 ac_cs_awk_getline=:
19444 ac_cs_awk_pipe_init=
19445 ac_cs_awk_read_file='
19446 while ((getline aline < (F[key])) > 0)
19447 print(aline)
19448 close(F[key])'
19449 ac_cs_awk_pipe_fini=
19450 else
19451 ac_cs_awk_getline=false
19452 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19453 ac_cs_awk_read_file='
19454 print "|#_!!_#|"
19455 print "cat " F[key] " &&"
19456 '$ac_cs_awk_pipe_init
19457 # The final `:' finishes the AND list.
19458 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19459 fi
19460 ac_cr=`echo X | tr X '\015'`
19461 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19462 # But we know of no other shell where ac_cr would be empty at this
19463 # point, so we can use a bashism as a fallback.
19464 if test "x$ac_cr" = x; then
19465 eval ac_cr=\$\'\\r\'
19466 fi
19467 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19468 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19469 ac_cs_awk_cr='\\r'
19470 else
19471 ac_cs_awk_cr=$ac_cr
19472 fi
19473
19474 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19475 _ACEOF
19476
19477 # Create commands to substitute file output variables.
19478 {
19479 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19480 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19481 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19482 echo "_ACAWK" &&
19483 echo "_ACEOF"
19484 } >conf$$files.sh &&
19485 . ./conf$$files.sh ||
19486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19487 rm -f conf$$files.sh
19488
19489 {
19490 echo "cat >conf$$subs.awk <<_ACEOF" &&
19491 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19492 echo "_ACEOF"
19493 } >conf$$subs.sh ||
19494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19495 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19496 ac_delim='%!_!# '
19497 for ac_last_try in false false false false false :; do
19498 . ./conf$$subs.sh ||
19499 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19500
19501 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19502 if test $ac_delim_n = $ac_delim_num; then
19503 break
19504 elif $ac_last_try; then
19505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19506 else
19507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19508 fi
19509 done
19510 rm -f conf$$subs.sh
19511
19512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19513 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19514 _ACEOF
19515 sed -n '
19516 h
19517 s/^/S["/; s/!.*/"]=/
19518 p
19519 g
19520 s/^[^!]*!//
19521 :repl
19522 t repl
19523 s/'"$ac_delim"'$//
19524 t delim
19525 :nl
19526 h
19527 s/\(.\{148\}\)..*/\1/
19528 t more1
19529 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19530 p
19531 n
19532 b repl
19533 :more1
19534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19535 p
19536 g
19537 s/.\{148\}//
19538 t nl
19539 :delim
19540 h
19541 s/\(.\{148\}\)..*/\1/
19542 t more2
19543 s/["\\]/\\&/g; s/^/"/; s/$/"/
19544 p
19545 b
19546 :more2
19547 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19548 p
19549 g
19550 s/.\{148\}//
19551 t delim
19552 ' <conf$$subs.awk | sed '
19553 /^[^""]/{
19554 N
19555 s/\n//
19556 }
19557 ' >>$CONFIG_STATUS || ac_write_fail=1
19558 rm -f conf$$subs.awk
19559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19560 _ACAWK
19561 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19562 for (key in S) S_is_set[key] = 1
19563 FS = "\a"
19564 \$ac_cs_awk_pipe_init
19565 }
19566 {
19567 line = $ 0
19568 nfields = split(line, field, "@")
19569 substed = 0
19570 len = length(field[1])
19571 for (i = 2; i < nfields; i++) {
19572 key = field[i]
19573 keylen = length(key)
19574 if (S_is_set[key]) {
19575 value = S[key]
19576 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19577 len += length(value) + length(field[++i])
19578 substed = 1
19579 } else
19580 len += 1 + keylen
19581 }
19582 if (nfields == 3 && !substed) {
19583 key = field[2]
19584 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19585 \$ac_cs_awk_read_file
19586 next
19587 }
19588 }
19589 print line
19590 }
19591 \$ac_cs_awk_pipe_fini
19592 _ACAWK
19593 _ACEOF
19594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19595 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19596 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19597 else
19598 cat
19599 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19600 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19601 _ACEOF
19602
19603 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19604 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19605 # trailing colons and then remove the whole line if VPATH becomes empty
19606 # (actually we leave an empty line to preserve line numbers).
19607 if test "x$srcdir" = x.; then
19608 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19609 h
19610 s///
19611 s/^/:/
19612 s/[ ]*$/:/
19613 s/:\$(srcdir):/:/g
19614 s/:\${srcdir}:/:/g
19615 s/:@srcdir@:/:/g
19616 s/^:*//
19617 s/:*$//
19618 x
19619 s/\(=[ ]*\).*/\1/
19620 G
19621 s/\n//
19622 s/^[^=]*=[ ]*$//
19623 }'
19624 fi
19625
19626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19627 fi # test -n "$CONFIG_FILES"
19628
19629
19630 eval set X " :F $CONFIG_FILES "
19631 shift
19632 for ac_tag
19633 do
19634 case $ac_tag in
19635 :[FHLC]) ac_mode=$ac_tag; continue;;
19636 esac
19637 case $ac_mode$ac_tag in
19638 :[FHL]*:*);;
19639 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19640 :[FH]-) ac_tag=-:-;;
19641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19642 esac
19643 ac_save_IFS=$IFS
19644 IFS=:
19645 set x $ac_tag
19646 IFS=$ac_save_IFS
19647 shift
19648 ac_file=$1
19649 shift
19650
19651 case $ac_mode in
19652 :L) ac_source=$1;;
19653 :[FH])
19654 ac_file_inputs=
19655 for ac_f
19656 do
19657 case $ac_f in
19658 -) ac_f="$ac_tmp/stdin";;
19659 *) # Look for the file first in the build tree, then in the source tree
19660 # (if the path is not absolute). The absolute path cannot be DOS-style,
19661 # because $ac_f cannot contain `:'.
19662 test -f "$ac_f" ||
19663 case $ac_f in
19664 [\\/$]*) false;;
19665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19666 esac ||
19667 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19668 esac
19669 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19670 as_fn_append ac_file_inputs " '$ac_f'"
19671 done
19672
19673 # Let's still pretend it is `configure' which instantiates (i.e., don't
19674 # use $as_me), people would be surprised to read:
19675 # /* config.h. Generated by config.status. */
19676 configure_input='Generated from '`
19677 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19678 `' by configure.'
19679 if test x"$ac_file" != x-; then
19680 configure_input="$ac_file. $configure_input"
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19682 $as_echo "$as_me: creating $ac_file" >&6;}
19683 fi
19684 # Neutralize special characters interpreted by sed in replacement strings.
19685 case $configure_input in #(
19686 *\&* | *\|* | *\\* )
19687 ac_sed_conf_input=`$as_echo "$configure_input" |
19688 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19689 *) ac_sed_conf_input=$configure_input;;
19690 esac
19691
19692 case $ac_tag in
19693 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19695 esac
19696 ;;
19697 esac
19698
19699 ac_dir=`$as_dirname -- "$ac_file" ||
19700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19701 X"$ac_file" : 'X\(//\)[^/]' \| \
19702 X"$ac_file" : 'X\(//\)$' \| \
19703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19704 $as_echo X"$ac_file" |
19705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19706 s//\1/
19707 q
19708 }
19709 /^X\(\/\/\)[^/].*/{
19710 s//\1/
19711 q
19712 }
19713 /^X\(\/\/\)$/{
19714 s//\1/
19715 q
19716 }
19717 /^X\(\/\).*/{
19718 s//\1/
19719 q
19720 }
19721 s/.*/./; q'`
19722 as_dir="$ac_dir"; as_fn_mkdir_p
19723 ac_builddir=.
19724
19725 case "$ac_dir" in
19726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19727 *)
19728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19729 # A ".." for each directory in $ac_dir_suffix.
19730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19731 case $ac_top_builddir_sub in
19732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19734 esac ;;
19735 esac
19736 ac_abs_top_builddir=$ac_pwd
19737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19738 # for backward compatibility:
19739 ac_top_builddir=$ac_top_build_prefix
19740
19741 case $srcdir in
19742 .) # We are building in place.
19743 ac_srcdir=.
19744 ac_top_srcdir=$ac_top_builddir_sub
19745 ac_abs_top_srcdir=$ac_pwd ;;
19746 [\\/]* | ?:[\\/]* ) # Absolute name.
19747 ac_srcdir=$srcdir$ac_dir_suffix;
19748 ac_top_srcdir=$srcdir
19749 ac_abs_top_srcdir=$srcdir ;;
19750 *) # Relative name.
19751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19752 ac_top_srcdir=$ac_top_build_prefix$srcdir
19753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19754 esac
19755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19756
19757
19758 case $ac_mode in
19759 :F)
19760 #
19761 # CONFIG_FILE
19762 #
19763
19764 case $INSTALL in
19765 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19766 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19767 esac
19768 _ACEOF
19769
19770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19771 # If the template does not know about datarootdir, expand it.
19772 # FIXME: This hack should be removed a few years after 2.60.
19773 ac_datarootdir_hack=; ac_datarootdir_seen=
19774 ac_sed_dataroot='
19775 /datarootdir/ {
19776 p
19777 q
19778 }
19779 /@datadir@/p
19780 /@docdir@/p
19781 /@infodir@/p
19782 /@localedir@/p
19783 /@mandir@/p'
19784 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19785 *datarootdir*) ac_datarootdir_seen=yes;;
19786 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19788 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19789 _ACEOF
19790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19791 ac_datarootdir_hack='
19792 s&@datadir@&$datadir&g
19793 s&@docdir@&$docdir&g
19794 s&@infodir@&$infodir&g
19795 s&@localedir@&$localedir&g
19796 s&@mandir@&$mandir&g
19797 s&\\\${datarootdir}&$datarootdir&g' ;;
19798 esac
19799 _ACEOF
19800
19801 # Neutralize VPATH when `$srcdir' = `.'.
19802 # Shell code in configure.ac might set extrasub.
19803 # FIXME: do we really want to maintain this feature?
19804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19805 ac_sed_extra="$ac_vpsub
19806 $extrasub
19807 _ACEOF
19808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19809 :t
19810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19811 s|@configure_input@|$ac_sed_conf_input|;t t
19812 s&@top_builddir@&$ac_top_builddir_sub&;t t
19813 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19814 s&@srcdir@&$ac_srcdir&;t t
19815 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19816 s&@top_srcdir@&$ac_top_srcdir&;t t
19817 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19818 s&@builddir@&$ac_builddir&;t t
19819 s&@abs_builddir@&$ac_abs_builddir&;t t
19820 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19821 s&@INSTALL@&$ac_INSTALL&;t t
19822 $ac_datarootdir_hack
19823 "
19824 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19825 if $ac_cs_awk_getline; then
19826 $AWK -f "$ac_tmp/subs.awk"
19827 else
19828 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19829 fi \
19830 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19831
19832 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19833 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19835 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19837 which seems to be undefined. Please make sure it is defined" >&5
19838 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19839 which seems to be undefined. Please make sure it is defined" >&2;}
19840
19841 rm -f "$ac_tmp/stdin"
19842 case $ac_file in
19843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19845 esac \
19846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19847 ;;
19848
19849
19850
19851 esac
19852
19853
19854 case $ac_file$ac_mode in
19855 "Makefile":F) sed "$extrasub_build" Makefile |
19856 sed "$extrasub_host" |
19857 sed "$extrasub_target" > mf$$
19858 mv -f mf$$ Makefile ;;
19859
19860 esac
19861 done # for ac_tag
19862
19863
19864 as_fn_exit 0
19865 _ACEOF
19866 ac_clean_files=$ac_clean_files_save
19867
19868 test $ac_write_fail = 0 ||
19869 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19870
19871
19872 # configure is writing to config.log, and then calls config.status.
19873 # config.status does its own redirection, appending to config.log.
19874 # Unfortunately, on DOS this fails, as config.log is still kept open
19875 # by configure, so config.status won't be able to write to it; its
19876 # output is simply discarded. So we exec the FD to /dev/null,
19877 # effectively closing config.log, so it can be properly (re)opened and
19878 # appended to by config.status. When coming back to configure, we
19879 # need to make the FD available again.
19880 if test "$no_create" != yes; then
19881 ac_cs_success=:
19882 ac_config_status_args=
19883 test "$silent" = yes &&
19884 ac_config_status_args="$ac_config_status_args --quiet"
19885 exec 5>/dev/null
19886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19887 exec 5>>config.log
19888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19889 # would make configure fail if this is the last instruction.
19890 $ac_cs_success || as_fn_exit 1
19891 fi
19892 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19894 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19895 fi
19896