Remove the Ada DOT_ALL token
[binutils-gdb.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 OBJDUMP_FOR_TARGET
607 OBJCOPY_FOR_TARGET
608 NM_FOR_TARGET
609 LIPO_FOR_TARGET
610 LD_FOR_TARGET
611 DLLTOOL_FOR_TARGET
612 AS_FOR_TARGET
613 AR_FOR_TARGET
614 GOC_FOR_TARGET
615 GFORTRAN_FOR_TARGET
616 GCC_FOR_TARGET
617 CXX_FOR_TARGET
618 CC_FOR_TARGET
619 RANLIB_PLUGIN_OPTION
620 AR_PLUGIN_OPTION
621 READELF
622 OBJDUMP
623 OBJCOPY
624 WINDMC
625 WINDRES
626 STRIP
627 RANLIB
628 NM
629 LIPO
630 LD
631 DLLTOOL
632 AS
633 AR
634 RUNTEST
635 EXPECT
636 MAKEINFO
637 FLEX
638 LEX
639 M4
640 BISON
641 YACC
642 WINDRES_FOR_BUILD
643 WINDMC_FOR_BUILD
644 RANLIB_FOR_BUILD
645 NM_FOR_BUILD
646 LD_FOR_BUILD
647 LDFLAGS_FOR_BUILD
648 GOC_FOR_BUILD
649 GFORTRAN_FOR_BUILD
650 DLLTOOL_FOR_BUILD
651 CXX_FOR_BUILD
652 CXXFLAGS_FOR_BUILD
653 CFLAGS_FOR_BUILD
654 CC_FOR_BUILD
655 AS_FOR_BUILD
656 AR_FOR_BUILD
657 target_configdirs
658 configdirs
659 build_configdirs
660 INSTALL_GDB_TK
661 GDB_TK
662 CONFIGURE_GDB_TK
663 build_tooldir
664 tooldir
665 GCC_SHLIB_SUBDIR
666 RPATH_ENVVAR
667 target_configargs
668 host_configargs
669 build_configargs
670 BUILD_CONFIG
671 LDFLAGS_FOR_TARGET
672 CXXFLAGS_FOR_TARGET
673 CFLAGS_FOR_TARGET
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
676 get_gcc_base_ver
677 extra_host_zlib_configure_flags
678 extra_host_libiberty_configure_flags
679 stage1_languages
680 host_shared
681 extra_linker_plugin_flags
682 extra_linker_plugin_configure_flags
683 islinc
684 isllibs
685 poststage1_ldflags
686 poststage1_libs
687 stage1_ldflags
688 stage1_libs
689 extra_isl_gmp_configure_flags
690 extra_mpc_mpfr_configure_flags
691 extra_mpc_gmp_configure_flags
692 extra_mpfr_configure_flags
693 gmpinc
694 gmplibs
695 PGO_BUILD_LTO_CFLAGS
696 PGO_BUILD_USE_CFLAGS
697 PGO_BUILD_GEN_CFLAGS
698 do_compare
699 GNATMAKE
700 GNATBIND
701 ac_ct_CXX
702 CXXFLAGS
703 CXX
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 extra_liboffloadmic_configure_flags
712 target_subdir
713 host_subdir
714 build_subdir
715 build_libsubdir
716 AWK
717 SED
718 LN_S
719 LN
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_os
724 target_vendor
725 target_cpu
726 target
727 host_os
728 host_vendor
729 host_cpu
730 host
731 target_noncanonical
732 host_noncanonical
733 build_noncanonical
734 build_os
735 build_vendor
736 build_cpu
737 build
738 TOPLEVEL_CONFIGURE_ARGUMENTS
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files='serialization_dependencies
778 host_makefile_frag
779 target_makefile_frag
780 alphaieee_frag
781 ospace_frag'
782 ac_user_opts='
783 enable_option_checking
784 with_build_libsubdir
785 with_system_zlib
786 enable_as_accelerator_for
787 enable_offload_targets
788 enable_gold
789 enable_ld
790 enable_gprofng
791 enable_compressed_debug_sections
792 enable_libquadmath
793 enable_libquadmath_support
794 enable_libada
795 enable_libssp
796 enable_libstdcxx
797 enable_liboffloadmic
798 enable_bootstrap
799 enable_pgo_build
800 with_mpc
801 with_mpc_include
802 with_mpc_lib
803 with_mpfr_dir
804 with_mpfr
805 with_mpfr_include
806 with_mpfr_lib
807 with_gmp_dir
808 with_gmp
809 with_gmp_include
810 with_gmp_lib
811 with_stage1_libs
812 with_static_standard_libraries
813 with_stage1_ldflags
814 with_boot_libs
815 with_boot_ldflags
816 with_isl
817 with_isl_include
818 with_isl_lib
819 enable_isl_version_check
820 enable_lto
821 enable_linker_plugin_configure_flags
822 enable_linker_plugin_flags
823 enable_host_shared
824 enable_stage1_languages
825 enable_objc_gc
826 with_target_bdw_gc
827 with_target_bdw_gc_include
828 with_target_bdw_gc_lib
829 with_gcc_major_version_only
830 with_build_sysroot
831 with_debug_prefix_map
832 with_build_config
833 enable_vtable_verify
834 enable_serial_configure
835 with_build_time_tools
836 enable_maintainer_mode
837 enable_stage1_checking
838 enable_werror
839 '
840 ac_precious_vars='build_alias
841 host_alias
842 target_alias
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 CXX
849 CXXFLAGS
850 CCC
851 build_configargs
852 host_configargs
853 target_configargs
854 AR
855 AS
856 DLLTOOL
857 LD
858 LIPO
859 NM
860 RANLIB
861 STRIP
862 WINDRES
863 WINDMC
864 OBJCOPY
865 OBJDUMP
866 READELF
867 CC_FOR_TARGET
868 CXX_FOR_TARGET
869 GCC_FOR_TARGET
870 GFORTRAN_FOR_TARGET
871 GOC_FOR_TARGET
872 AR_FOR_TARGET
873 AS_FOR_TARGET
874 DLLTOOL_FOR_TARGET
875 LD_FOR_TARGET
876 LIPO_FOR_TARGET
877 NM_FOR_TARGET
878 OBJCOPY_FOR_TARGET
879 OBJDUMP_FOR_TARGET
880 RANLIB_FOR_TARGET
881 READELF_FOR_TARGET
882 STRIP_FOR_TARGET
883 WINDRES_FOR_TARGET
884 WINDMC_FOR_TARGET'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
950 esac
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
962
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
977
978 -datadir | --datadir | --datadi | --datad)
979 ac_prev=datadir ;;
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
982
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
990 -disable-* | --disable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1015
1016 -enable-* | --enable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid feature name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1051
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1056
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1086
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1160
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1219
1220 -with-* | --with-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: $ac_useropt"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=\$ac_optarg ;;
1235
1236 -without-* | --without-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1269
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1272 ;;
1273
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1280 esac
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1283
1284 *)
1285 # FIXME: should be removed in autoconf 3.0.
1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1290 ;;
1291
1292 esac
1293 done
1294
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 as_fn_error $? "missing argument to $ac_option"
1298 fi
1299
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 esac
1306 fi
1307
1308 # Check all directory arguments for consistency.
1309 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1313 do
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
1322 case $ac_val in
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325 esac
1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1327 done
1328
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1332 build=$build_alias
1333 host=$host_alias
1334 target=$target_alias
1335
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1342 fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error $? "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error $? "pwd does not report name of working directory"
1357
1358
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\/\)$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\).*/{
1382 s//\1/
1383 q
1384 }
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1389 fi
1390 else
1391 ac_srcdir_defaulted=no
1392 fi
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1396 fi
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400 pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404 fi
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 case $srcdir in
1412 *" "*)
1413 as_fn_error $? "path to source, $srcdir, contains spaces"
1414 ;;
1415 esac
1416 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1417
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1431 cat <<_ACEOF
1432 \`configure' configures this package to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1485 _ACEOF
1486
1487 cat <<\_ACEOF
1488
1489 Program names:
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493
1494 System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --enable-as-accelerator-for=ARG
1510 build as offload target compiler. Specify offload
1511 host triple by ARG
1512 --enable-offload-targets=LIST
1513 enable offloading to devices from comma-separated
1514 LIST of TARGET[=DIR]. Use optional path to find
1515 offload target compiler during the build
1516 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1517 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1518 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1519 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1520 Enable compressed debug sections for gas, gold or ld
1521 by default
1522 --disable-libquadmath do not build libquadmath directory
1523 --disable-libquadmath-support
1524 disable libquadmath support for Fortran
1525 --enable-libada build libada directory
1526 --enable-libssp build libssp directory
1527 --disable-libstdcxx do not build libstdc++-v3 directory
1528 --enable-liboffloadmic=ARG
1529 build liboffloadmic [ARG={no,host,target}]
1530 --enable-bootstrap enable bootstrapping [yes if native build]
1531 --enable-pgo-build[=lto]
1532 enable the PGO build
1533 --disable-isl-version-check
1534 disable check for isl version
1535 --enable-lto enable link time optimization support
1536 --enable-linker-plugin-configure-flags=FLAGS
1537 additional flags for configuring linker plugins
1538 [none]
1539 --enable-linker-plugin-flags=FLAGS
1540 additional flags for configuring and building linker
1541 plugins [none]
1542 --enable-host-shared build host code as shared libraries
1543 --enable-stage1-languages[=all]
1544 choose additional languages to build during stage1.
1545 Mostly useful for compiler development
1546 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1547 Objective-C runtime
1548 --enable-vtable-verify Enable vtable verification feature
1549 --enable-serial-[{host,target,build}-]configure
1550 force sequential configuration of sub-packages for
1551 the host, target or build machine, or all
1552 sub-packages
1553 --enable-maintainer-mode
1554 enable make rules and dependencies not useful (and
1555 sometimes confusing) to the casual installer
1556 --enable-stage1-checking[=all]
1557 choose additional checking for stage1 of the
1558 compiler
1559 --enable-werror enable -Werror in bootstrap stage2 and later
1560
1561 Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-build-libsubdir=DIR Directory where to find libraries for build system
1565 --with-system-zlib use installed libz
1566 --with-mpc=PATH specify prefix directory for installed MPC package.
1567 Equivalent to --with-mpc-include=PATH/include plus
1568 --with-mpc-lib=PATH/lib
1569 --with-mpc-include=PATH specify directory for installed MPC include files
1570 --with-mpc-lib=PATH specify directory for the installed MPC library
1571 --with-mpfr-dir=PATH this option has been REMOVED
1572 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1573 Equivalent to --with-mpfr-include=PATH/include plus
1574 --with-mpfr-lib=PATH/lib
1575 --with-mpfr-include=PATH
1576 specify directory for installed MPFR include files
1577 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1578 --with-gmp-dir=PATH this option has been REMOVED
1579 --with-gmp=PATH specify prefix directory for the installed GMP
1580 package. Equivalent to
1581 --with-gmp-include=PATH/include plus
1582 --with-gmp-lib=PATH/lib
1583 --with-gmp-include=PATH specify directory for installed GMP include files
1584 --with-gmp-lib=PATH specify directory for the installed GMP library
1585 --with-stage1-libs=LIBS libraries for stage1
1586 --with-static-standard-libraries
1587 use -static-libstdc++ and -static-libgcc
1588 (default=auto)
1589 --with-stage1-ldflags=FLAGS
1590 linker flags for stage1
1591 --with-boot-libs=LIBS libraries for stage2 and later
1592 --with-boot-ldflags=FLAGS
1593 linker flags for stage2 and later
1594 --with-isl=PATH Specify prefix directory for the installed isl
1595 package. Equivalent to
1596 --with-isl-include=PATH/include plus
1597 --with-isl-lib=PATH/lib
1598 --with-isl-include=PATH Specify directory for installed isl include files
1599 --with-isl-lib=PATH Specify the directory for the installed isl library
1600 --with-target-bdw-gc=PATHLIST
1601 specify prefix directory for installed bdw-gc
1602 package. Equivalent to
1603 --with-target-bdw-gc-include=PATH/include plus
1604 --with-target-bdw-gc-lib=PATH/lib
1605 --with-target-bdw-gc-include=PATHLIST
1606 specify directories for installed bdw-gc include
1607 files
1608 --with-target-bdw-gc-lib=PATHLIST
1609 specify directories for installed bdw-gc library
1610 --with-gcc-major-version-only
1611 use only GCC major number in filesystem paths
1612 --with-build-sysroot=SYSROOT
1613 use sysroot as the system root during the build
1614 --with-debug-prefix-map='A=B C=D ...'
1615 map A to B, C to D ... in debug information
1616 --with-build-config='NAME NAME2...'
1617 use config/NAME.mk build configuration
1618 --with-build-time-tools=PATH
1619 use given path to find target tools during the build
1620
1621 Some influential environment variables:
1622 CC C compiler command
1623 CFLAGS C compiler flags
1624 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1625 nonstandard directory <lib dir>
1626 LIBS libraries to pass to the linker, e.g. -l<library>
1627 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1628 you have headers in a nonstandard directory <include dir>
1629 CXX C++ compiler command
1630 CXXFLAGS C++ compiler flags
1631 build_configargs
1632 additional configure arguments for build directories
1633 host_configargs
1634 additional configure arguments for host directories
1635 target_configargs
1636 additional configure arguments for target directories
1637 AR AR for the host
1638 AS AS for the host
1639 DLLTOOL DLLTOOL for the host
1640 LD LD for the host
1641 LIPO LIPO for the host
1642 NM NM for the host
1643 RANLIB RANLIB for the host
1644 STRIP STRIP for the host
1645 WINDRES WINDRES for the host
1646 WINDMC WINDMC for the host
1647 OBJCOPY OBJCOPY for the host
1648 OBJDUMP OBJDUMP for the host
1649 READELF READELF for the host
1650 CC_FOR_TARGET
1651 CC for the target
1652 CXX_FOR_TARGET
1653 CXX for the target
1654 GCC_FOR_TARGET
1655 GCC for the target
1656 GFORTRAN_FOR_TARGET
1657 GFORTRAN for the target
1658 GOC_FOR_TARGET
1659 GOC for the target
1660 AR_FOR_TARGET
1661 AR for the target
1662 AS_FOR_TARGET
1663 AS for the target
1664 DLLTOOL_FOR_TARGET
1665 DLLTOOL for the target
1666 LD_FOR_TARGET
1667 LD for the target
1668 LIPO_FOR_TARGET
1669 LIPO for the target
1670 NM_FOR_TARGET
1671 NM for the target
1672 OBJCOPY_FOR_TARGET
1673 OBJCOPY for the target
1674 OBJDUMP_FOR_TARGET
1675 OBJDUMP for the target
1676 RANLIB_FOR_TARGET
1677 RANLIB for the target
1678 READELF_FOR_TARGET
1679 READELF for the target
1680 STRIP_FOR_TARGET
1681 STRIP for the target
1682 WINDRES_FOR_TARGET
1683 WINDRES for the target
1684 WINDMC_FOR_TARGET
1685 WINDMC for the target
1686
1687 Use these variables to override the choices made by `configure' or to help
1688 it to find libraries and programs with nonstandard names/locations.
1689
1690 Report bugs to the package provider.
1691 _ACEOF
1692 ac_status=$?
1693 fi
1694
1695 if test "$ac_init_help" = "recursive"; then
1696 # If there are subdirs, report their specific --help.
1697 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1698 test -d "$ac_dir" ||
1699 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1700 continue
1701 ac_builddir=.
1702
1703 case "$ac_dir" in
1704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *)
1706 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1707 # A ".." for each directory in $ac_dir_suffix.
1708 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1709 case $ac_top_builddir_sub in
1710 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1712 esac ;;
1713 esac
1714 ac_abs_top_builddir=$ac_pwd
1715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1716 # for backward compatibility:
1717 ac_top_builddir=$ac_top_build_prefix
1718
1719 case $srcdir in
1720 .) # We are building in place.
1721 ac_srcdir=.
1722 ac_top_srcdir=$ac_top_builddir_sub
1723 ac_abs_top_srcdir=$ac_pwd ;;
1724 [\\/]* | ?:[\\/]* ) # Absolute name.
1725 ac_srcdir=$srcdir$ac_dir_suffix;
1726 ac_top_srcdir=$srcdir
1727 ac_abs_top_srcdir=$srcdir ;;
1728 *) # Relative name.
1729 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1730 ac_top_srcdir=$ac_top_build_prefix$srcdir
1731 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732 esac
1733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734
1735 cd "$ac_dir" || { ac_status=$?; continue; }
1736 # Check for guested configure.
1737 if test -f "$ac_srcdir/configure.gnu"; then
1738 echo &&
1739 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1740 elif test -f "$ac_srcdir/configure"; then
1741 echo &&
1742 $SHELL "$ac_srcdir/configure" --help=recursive
1743 else
1744 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745 fi || ac_status=$?
1746 cd "$ac_pwd" || { ac_status=$?; break; }
1747 done
1748 fi
1749
1750 test -n "$ac_init_help" && exit $ac_status
1751 if $ac_init_version; then
1752 cat <<\_ACEOF
1753 configure
1754 generated by GNU Autoconf 2.69
1755
1756 Copyright (C) 2012 Free Software Foundation, Inc.
1757 This configure script is free software; the Free Software Foundation
1758 gives unlimited permission to copy, distribute and modify it.
1759 _ACEOF
1760 exit
1761 fi
1762
1763 ## ------------------------ ##
1764 ## Autoconf initialization. ##
1765 ## ------------------------ ##
1766
1767 # ac_fn_c_try_compile LINENO
1768 # --------------------------
1769 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_compile ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext
1774 if { { ac_try="$ac_compile"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_compile") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1787 fi
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest.$ac_objext; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 ac_retval=1
1799 fi
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_compile
1804
1805 # ac_fn_cxx_try_compile LINENO
1806 # ----------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_cxx_try_compile ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext
1812 if { { ac_try="$ac_compile"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_compile") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_cxx_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest.$ac_objext; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=1
1837 fi
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_cxx_try_compile
1842
1843 # ac_fn_cxx_try_link LINENO
1844 # -------------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_cxx_try_link ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext conftest$ac_exeext
1850 if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>conftest.err
1858 ac_status=$?
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1863 fi
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_cxx_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest$ac_exeext && {
1869 test "$cross_compiling" = yes ||
1870 test -x conftest$ac_exeext
1871 }; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=1
1878 fi
1879 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1880 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1881 # interfere with the next link command; also delete a directory that is
1882 # left behind by Apple's compiler. We do this before executing the actions.
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1886
1887 } # ac_fn_cxx_try_link
1888
1889 # ac_fn_c_try_link LINENO
1890 # -----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_c_try_link ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897 case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1909 fi
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_c_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
1916 test -x conftest$ac_exeext
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924 fi
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1932
1933 } # ac_fn_c_try_link
1934 cat >config.log <<_ACEOF
1935 This file contains any messages produced by compilers while
1936 running configure, to aid debugging if configure makes a mistake.
1937
1938 It was created by $as_me, which was
1939 generated by GNU Autoconf 2.69. Invocation command line was
1940
1941 $ $0 $@
1942
1943 _ACEOF
1944 exec 5>>config.log
1945 {
1946 cat <<_ASUNAME
1947 ## --------- ##
1948 ## Platform. ##
1949 ## --------- ##
1950
1951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1956
1957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1958 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1959
1960 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1961 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1963 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1964 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1965 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1966 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1967
1968 _ASUNAME
1969
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 $as_echo "PATH: $as_dir"
1976 done
1977 IFS=$as_save_IFS
1978
1979 } >&5
1980
1981 cat >&5 <<_ACEOF
1982
1983
1984 ## ----------- ##
1985 ## Core tests. ##
1986 ## ----------- ##
1987
1988 _ACEOF
1989
1990
1991 # Keep a trace of the command line.
1992 # Strip out --no-create and --no-recursion so they do not pile up.
1993 # Strip out --silent because we don't want to record it for future runs.
1994 # Also quote any args containing shell meta-characters.
1995 # Make two passes to allow for proper duplicate-argument suppression.
1996 ac_configure_args=
1997 ac_configure_args0=
1998 ac_configure_args1=
1999 ac_must_keep_next=false
2000 for ac_pass in 1 2
2001 do
2002 for ac_arg
2003 do
2004 case $ac_arg in
2005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2007 | -silent | --silent | --silen | --sile | --sil)
2008 continue ;;
2009 *\'*)
2010 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 esac
2012 case $ac_pass in
2013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2014 2)
2015 as_fn_append ac_configure_args1 " '$ac_arg'"
2016 if test $ac_must_keep_next = true; then
2017 ac_must_keep_next=false # Got value, back to normal.
2018 else
2019 case $ac_arg in
2020 *=* | --config-cache | -C | -disable-* | --disable-* \
2021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2023 | -with-* | --with-* | -without-* | --without-* | --x)
2024 case "$ac_configure_args0 " in
2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026 esac
2027 ;;
2028 -* ) ac_must_keep_next=true ;;
2029 esac
2030 fi
2031 as_fn_append ac_configure_args " '$ac_arg'"
2032 ;;
2033 esac
2034 done
2035 done
2036 { ac_configure_args0=; unset ac_configure_args0;}
2037 { ac_configure_args1=; unset ac_configure_args1;}
2038
2039 # When interrupted or exit'd, cleanup temporary files, and complete
2040 # config.log. We remove comments because anyway the quotes in there
2041 # would cause problems or look ugly.
2042 # WARNING: Use '\'' to represent an apostrophe within the trap.
2043 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2044 trap 'exit_status=$?
2045 # Save into config.log some information that might help in debugging.
2046 {
2047 echo
2048
2049 $as_echo "## ---------------- ##
2050 ## Cache variables. ##
2051 ## ---------------- ##"
2052 echo
2053 # The following way of writing the cache mishandles newlines in values,
2054 (
2055 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in #(
2058 *${as_nl}*)
2059 case $ac_var in #(
2060 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2061 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2062 esac
2063 case $ac_var in #(
2064 _ | IFS | as_nl) ;; #(
2065 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2066 *) { eval $ac_var=; unset $ac_var;} ;;
2067 esac ;;
2068 esac
2069 done
2070 (set) 2>&1 |
2071 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2072 *${as_nl}ac_space=\ *)
2073 sed -n \
2074 "s/'\''/'\''\\\\'\'''\''/g;
2075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2076 ;; #(
2077 *)
2078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2079 ;;
2080 esac |
2081 sort
2082 )
2083 echo
2084
2085 $as_echo "## ----------------- ##
2086 ## Output variables. ##
2087 ## ----------------- ##"
2088 echo
2089 for ac_var in $ac_subst_vars
2090 do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in
2093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094 esac
2095 $as_echo "$ac_var='\''$ac_val'\''"
2096 done | sort
2097 echo
2098
2099 if test -n "$ac_subst_files"; then
2100 $as_echo "## ------------------- ##
2101 ## File substitutions. ##
2102 ## ------------------- ##"
2103 echo
2104 for ac_var in $ac_subst_files
2105 do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in
2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109 esac
2110 $as_echo "$ac_var='\''$ac_val'\''"
2111 done | sort
2112 echo
2113 fi
2114
2115 if test -s confdefs.h; then
2116 $as_echo "## ----------- ##
2117 ## confdefs.h. ##
2118 ## ----------- ##"
2119 echo
2120 cat confdefs.h
2121 echo
2122 fi
2123 test "$ac_signal" != 0 &&
2124 $as_echo "$as_me: caught signal $ac_signal"
2125 $as_echo "$as_me: exit $exit_status"
2126 } >&5
2127 rm -f core *.core core.conftest.* &&
2128 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2129 exit $exit_status
2130 ' 0
2131 for ac_signal in 1 2 13 15; do
2132 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2133 done
2134 ac_signal=0
2135
2136 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2137 rm -f -r conftest* confdefs.h
2138
2139 $as_echo "/* confdefs.h */" > confdefs.h
2140
2141 # Predefined preprocessor variables.
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_NAME "$PACKAGE_NAME"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_STRING "$PACKAGE_STRING"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_URL "$PACKAGE_URL"
2165 _ACEOF
2166
2167
2168 # Let the site file select an alternate cache file if it wants to.
2169 # Prefer an explicitly selected file to automatically selected ones.
2170 ac_site_file1=NONE
2171 ac_site_file2=NONE
2172 if test -n "$CONFIG_SITE"; then
2173 # We do not want a PATH search for config.site.
2174 case $CONFIG_SITE in #((
2175 -*) ac_site_file1=./$CONFIG_SITE;;
2176 */*) ac_site_file1=$CONFIG_SITE;;
2177 *) ac_site_file1=./$CONFIG_SITE;;
2178 esac
2179 elif test "x$prefix" != xNONE; then
2180 ac_site_file1=$prefix/share/config.site
2181 ac_site_file2=$prefix/etc/config.site
2182 else
2183 ac_site_file1=$ac_default_prefix/share/config.site
2184 ac_site_file2=$ac_default_prefix/etc/config.site
2185 fi
2186 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2187 do
2188 test "x$ac_site_file" = xNONE && continue
2189 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2191 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2192 sed 's/^/| /' "$ac_site_file" >&5
2193 . "$ac_site_file" \
2194 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196 as_fn_error $? "failed to load site script $ac_site_file
2197 See \`config.log' for more details" "$LINENO" 5; }
2198 fi
2199 done
2200
2201 if test -r "$cache_file"; then
2202 # Some versions of bash will fail to source /dev/null (special files
2203 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2204 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2206 $as_echo "$as_me: loading cache $cache_file" >&6;}
2207 case $cache_file in
2208 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2209 *) . "./$cache_file";;
2210 esac
2211 fi
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2214 $as_echo "$as_me: creating cache $cache_file" >&6;}
2215 >$cache_file
2216 fi
2217
2218 # Check that the precious variables saved in the cache have kept the same
2219 # value.
2220 ac_cache_corrupted=false
2221 for ac_var in $ac_precious_vars; do
2222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2223 eval ac_new_set=\$ac_env_${ac_var}_set
2224 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2225 eval ac_new_val=\$ac_env_${ac_var}_value
2226 case $ac_old_set,$ac_new_set in
2227 set,)
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2229 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2230 ac_cache_corrupted=: ;;
2231 ,set)
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2234 ac_cache_corrupted=: ;;
2235 ,);;
2236 *)
2237 if test "x$ac_old_val" != "x$ac_new_val"; then
2238 # differences in whitespace do not lead to failure.
2239 ac_old_val_w=`echo x $ac_old_val`
2240 ac_new_val_w=`echo x $ac_new_val`
2241 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2243 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2244 ac_cache_corrupted=:
2245 else
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2247 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2248 eval $ac_var=\$ac_old_val
2249 fi
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2251 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2253 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2254 fi;;
2255 esac
2256 # Pass precious variables to config.status.
2257 if test "$ac_new_set" = set; then
2258 case $ac_new_val in
2259 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2260 *) ac_arg=$ac_var=$ac_new_val ;;
2261 esac
2262 case " $ac_configure_args " in
2263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2264 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2265 esac
2266 fi
2267 done
2268 if $ac_cache_corrupted; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2272 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2273 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2274 fi
2275 ## -------------------- ##
2276 ## Main body of script. ##
2277 ## -------------------- ##
2278
2279 ac_ext=c
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284
2285
2286
2287
2288
2289
2290
2291
2292 progname=$0
2293 # if PWD already has a value, it is probably wrong.
2294 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2295
2296 # Export original configure arguments for use by sub-configures.
2297 # Quote arguments with shell meta charatcers.
2298 TOPLEVEL_CONFIGURE_ARGUMENTS=
2299 set -- "$progname" "$@"
2300 for ac_arg
2301 do
2302 case "$ac_arg" in
2303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2304 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2305 # if the argument is of the form -foo=baz, quote the baz part only
2306 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2307 *) ;;
2308 esac
2309 # Add the quoted argument to the list.
2310 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2311 done
2312 if test "$silent" = yes; then
2313 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2314 fi
2315 # Remove the initial space we just introduced and, as these will be
2316 # expanded by make, quote '$'.
2317 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2318
2319
2320 # Find the build, host, and target systems.
2321 ac_aux_dir=
2322 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2323 if test -f "$ac_dir/install-sh"; then
2324 ac_aux_dir=$ac_dir
2325 ac_install_sh="$ac_aux_dir/install-sh -c"
2326 break
2327 elif test -f "$ac_dir/install.sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install.sh -c"
2330 break
2331 elif test -f "$ac_dir/shtool"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/shtool install -c"
2334 break
2335 fi
2336 done
2337 if test -z "$ac_aux_dir"; then
2338 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2339 fi
2340
2341 # These three variables are undocumented and unsupported,
2342 # and are intended to be withdrawn in a future Autoconf release.
2343 # They can cause serious problems if a builder's source tree is in a directory
2344 # whose full name contains unusual characters.
2345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2347 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2348
2349
2350 # Make sure we can run config.sub.
2351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2352 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2353
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2355 $as_echo_n "checking build system type... " >&6; }
2356 if ${ac_cv_build+:} false; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 ac_build_alias=$build_alias
2360 test "x$ac_build_alias" = x &&
2361 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2362 test "x$ac_build_alias" = x &&
2363 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2364 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2366
2367 fi
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2369 $as_echo "$ac_cv_build" >&6; }
2370 case $ac_cv_build in
2371 *-*-*) ;;
2372 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2373 esac
2374 build=$ac_cv_build
2375 ac_save_IFS=$IFS; IFS='-'
2376 set x $ac_cv_build
2377 shift
2378 build_cpu=$1
2379 build_vendor=$2
2380 shift; shift
2381 # Remember, the first character of IFS is used to create $*,
2382 # except with old shells:
2383 build_os=$*
2384 IFS=$ac_save_IFS
2385 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2386
2387
2388 case ${build_alias} in
2389 "") build_noncanonical=${build} ;;
2390 *) build_noncanonical=${build_alias} ;;
2391 esac
2392
2393
2394
2395 case ${host_alias} in
2396 "") host_noncanonical=${build_noncanonical} ;;
2397 *) host_noncanonical=${host_alias} ;;
2398 esac
2399
2400
2401
2402 case ${target_alias} in
2403 "") target_noncanonical=${host_noncanonical} ;;
2404 *) target_noncanonical=${target_alias} ;;
2405 esac
2406
2407
2408
2409
2410 test "$host_noncanonical" = "$target_noncanonical" &&
2411 test "$program_prefix$program_suffix$program_transform_name" = \
2412 NONENONEs,x,x, &&
2413 program_transform_name=s,y,y,
2414
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2416 $as_echo_n "checking host system type... " >&6; }
2417 if ${ac_cv_host+:} false; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test "x$host_alias" = x; then
2421 ac_cv_host=$ac_cv_build
2422 else
2423 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2424 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2425 fi
2426
2427 fi
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2429 $as_echo "$ac_cv_host" >&6; }
2430 case $ac_cv_host in
2431 *-*-*) ;;
2432 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2433 esac
2434 host=$ac_cv_host
2435 ac_save_IFS=$IFS; IFS='-'
2436 set x $ac_cv_host
2437 shift
2438 host_cpu=$1
2439 host_vendor=$2
2440 shift; shift
2441 # Remember, the first character of IFS is used to create $*,
2442 # except with old shells:
2443 host_os=$*
2444 IFS=$ac_save_IFS
2445 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2446
2447
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2449 $as_echo_n "checking target system type... " >&6; }
2450 if ${ac_cv_target+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 if test "x$target_alias" = x; then
2454 ac_cv_target=$ac_cv_host
2455 else
2456 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2458 fi
2459
2460 fi
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2462 $as_echo "$ac_cv_target" >&6; }
2463 case $ac_cv_target in
2464 *-*-*) ;;
2465 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2466 esac
2467 target=$ac_cv_target
2468 ac_save_IFS=$IFS; IFS='-'
2469 set x $ac_cv_target
2470 shift
2471 target_cpu=$1
2472 target_vendor=$2
2473 shift; shift
2474 # Remember, the first character of IFS is used to create $*,
2475 # except with old shells:
2476 target_os=$*
2477 IFS=$ac_save_IFS
2478 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2479
2480
2481 # The aliases save the names the user supplied, while $host etc.
2482 # will get canonicalized.
2483 test -n "$target_alias" &&
2484 test "$program_prefix$program_suffix$program_transform_name" = \
2485 NONENONEs,x,x, &&
2486 program_prefix=${target_alias}-
2487
2488 test "$program_prefix" != NONE &&
2489 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2490 # Use a double $ so make ignores it.
2491 test "$program_suffix" != NONE &&
2492 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2493 # Double any \ or $.
2494 # By default was `s,x,x', remove it if useless.
2495 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2496 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2497
2498
2499
2500 # Get 'install' or 'install-sh' and its variants.
2501 # Find a good install program. We prefer a C program (faster),
2502 # so one script is as good as another. But avoid the broken or
2503 # incompatible versions:
2504 # SysV /etc/install, /usr/sbin/install
2505 # SunOS /usr/etc/install
2506 # IRIX /sbin/install
2507 # AIX /bin/install
2508 # AmigaOS /C/install, which installs bootblocks on floppy discs
2509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2512 # OS/2's system install, which has a completely different semantic
2513 # ./install, which can be erroneously created by make from ./install.sh.
2514 # Reject install programs that cannot install multiple files.
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2516 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2517 if test -z "$INSTALL"; then
2518 if ${ac_cv_path_install+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 # Account for people who put trailing slashes in PATH elements.
2527 case $as_dir/ in #((
2528 ./ | .// | /[cC]/* | \
2529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2530 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2531 /usr/ucb/* ) ;;
2532 *)
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2535 # by default.
2536 for ac_prog in ginstall scoinst install; do
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2539 if test $ac_prog = install &&
2540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2542 :
2543 elif test $ac_prog = install &&
2544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2546 :
2547 else
2548 rm -rf conftest.one conftest.two conftest.dir
2549 echo one > conftest.one
2550 echo two > conftest.two
2551 mkdir conftest.dir
2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2553 test -s conftest.one && test -s conftest.two &&
2554 test -s conftest.dir/conftest.one &&
2555 test -s conftest.dir/conftest.two
2556 then
2557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2558 break 3
2559 fi
2560 fi
2561 fi
2562 done
2563 done
2564 ;;
2565 esac
2566
2567 done
2568 IFS=$as_save_IFS
2569
2570 rm -rf conftest.one conftest.two conftest.dir
2571
2572 fi
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL=$ac_cv_path_install
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 INSTALL=$ac_install_sh
2581 fi
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2584 $as_echo "$INSTALL" >&6; }
2585
2586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2587 # It thinks the first close brace ends the variable substitution.
2588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2589
2590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2591
2592 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2595 $as_echo_n "checking whether ln works... " >&6; }
2596 if ${acx_cv_prog_LN+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 rm -f conftestdata_t
2600 echo >conftestdata_f
2601 if ln conftestdata_f conftestdata_t 2>/dev/null
2602 then
2603 acx_cv_prog_LN=ln
2604 else
2605 acx_cv_prog_LN=no
2606 fi
2607 rm -f conftestdata_f conftestdata_t
2608
2609 fi
2610 if test $acx_cv_prog_LN = no; then
2611 LN="cp"
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2613 $as_echo "no, using $LN" >&6; }
2614 else
2615 LN="$acx_cv_prog_LN"
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617 $as_echo "yes" >&6; }
2618 fi
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2621 $as_echo_n "checking whether ln -s works... " >&6; }
2622 LN_S=$as_ln_s
2623 if test "$LN_S" = "ln -s"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2625 $as_echo "yes" >&6; }
2626 else
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2628 $as_echo "no, using $LN_S" >&6; }
2629 fi
2630
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2632 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2633 if ${ac_cv_path_SED+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2637 for ac_i in 1 2 3 4 5 6 7; do
2638 ac_script="$ac_script$as_nl$ac_script"
2639 done
2640 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2641 { ac_script=; unset ac_script;}
2642 if test -z "$SED"; then
2643 ac_path_SED_found=false
2644 # Loop through the user's path and test for each of PROGNAME-LIST
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_prog in sed gsed; do
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2653 as_fn_executable_p "$ac_path_SED" || continue
2654 # Check for GNU ac_path_SED and select it if it is found.
2655 # Check for GNU $ac_path_SED
2656 case `"$ac_path_SED" --version 2>&1` in
2657 *GNU*)
2658 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2659 *)
2660 ac_count=0
2661 $as_echo_n 0123456789 >"conftest.in"
2662 while :
2663 do
2664 cat "conftest.in" "conftest.in" >"conftest.tmp"
2665 mv "conftest.tmp" "conftest.in"
2666 cp "conftest.in" "conftest.nl"
2667 $as_echo '' >> "conftest.nl"
2668 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2670 as_fn_arith $ac_count + 1 && ac_count=$as_val
2671 if test $ac_count -gt ${ac_path_SED_max-0}; then
2672 # Best one so far, save it but keep looking for a better one
2673 ac_cv_path_SED="$ac_path_SED"
2674 ac_path_SED_max=$ac_count
2675 fi
2676 # 10*(2^10) chars as input seems more than enough
2677 test $ac_count -gt 10 && break
2678 done
2679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2680 esac
2681
2682 $ac_path_SED_found && break 3
2683 done
2684 done
2685 done
2686 IFS=$as_save_IFS
2687 if test -z "$ac_cv_path_SED"; then
2688 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2689 fi
2690 else
2691 ac_cv_path_SED=$SED
2692 fi
2693
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2696 $as_echo "$ac_cv_path_SED" >&6; }
2697 SED="$ac_cv_path_SED"
2698 rm -f conftest.sed
2699
2700 for ac_prog in gawk mawk nawk awk
2701 do
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703 set dummy $ac_prog; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_AWK+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$AWK"; then
2710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_AWK="$ac_prog"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 AWK=$ac_cv_prog_AWK
2730 if test -n "$AWK"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2732 $as_echo "$AWK" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738
2739 test -n "$AWK" && break
2740 done
2741
2742
2743 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2744
2745 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2746 # a relative path.
2747 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2748 INSTALL="${srcpwd}/install-sh -c"
2749 fi
2750
2751 # Set srcdir to "." if that's what it is.
2752 # This is important for multilib support.
2753 pwd=`${PWDCMD-pwd}`
2754 if test "${pwd}" = "${srcpwd}" ; then
2755 srcdir=.
2756 fi
2757
2758 topsrcdir=$srcpwd
2759
2760 extra_host_args=
2761
2762 ### To add a new directory to the tree, first choose whether it is a target
2763 ### or a host dependent tool. Then put it into the appropriate list
2764 ### (library or tools, host or target), doing a dependency sort.
2765
2766 # Subdirs will be configured in the order listed in build_configdirs,
2767 # configdirs, or target_configdirs; see the serialization section below.
2768
2769 # Dependency sorting is only needed when *configuration* must be done in
2770 # a particular order. In all cases a dependency should be specified in
2771 # the Makefile, whether or not it's implicitly specified here.
2772
2773 # Double entries in build_configdirs, configdirs, or target_configdirs may
2774 # cause circular dependencies and break everything horribly.
2775
2776 # these library is used by various programs built for the build
2777 # environment
2778 #
2779 build_libs="build-libiberty build-libcpp"
2780
2781 # these tools are built for the build environment
2782 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2783
2784 # these libraries are used by various programs built for the host environment
2785 #f
2786 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2787
2788 # these tools are built for the host environment
2789 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2790 # know that we are building the simulator.
2791 # binutils, gas and ld appear in that order because it makes sense to run
2792 # "make check" in that particular order.
2793 # If --enable-gold is used, "gold" may replace "ld".
2794 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2795
2796 # these libraries are built for the target environment, and are built after
2797 # the host libraries and the host tools (which may be a cross compiler)
2798 # Note that libiberty is not a target library.
2799 target_libraries="target-libgcc \
2800 target-libbacktrace \
2801 target-libgloss \
2802 target-newlib \
2803 target-libgomp \
2804 target-liboffloadmic \
2805 target-libhsail-rt \
2806 target-libatomic \
2807 target-libitm \
2808 target-libstdc++-v3 \
2809 target-libsanitizer \
2810 target-libvtv \
2811 target-libssp \
2812 target-libquadmath \
2813 target-libgfortran \
2814 target-libffi \
2815 target-libobjc \
2816 target-libada \
2817 target-libgo"
2818
2819 # these tools are built using the target libraries, and are intended to
2820 # run only in the target environment
2821 #
2822 # note: any program that *uses* libraries that are in the "target_libraries"
2823 # list belongs in this list.
2824 #
2825 target_tools="target-rda"
2826
2827 ################################################################################
2828
2829 ## All tools belong in one of the four categories, and are assigned above
2830 ## We assign ${configdirs} this way to remove all embedded newlines. This
2831 ## is important because configure will choke if they ever get through.
2832 ## ${configdirs} is directories we build using the host tools.
2833 ## ${target_configdirs} is directories we build using the target tools.
2834 configdirs=`echo ${host_libs} ${host_tools}`
2835 target_configdirs=`echo ${target_libraries} ${target_tools}`
2836 build_configdirs=`echo ${build_libs} ${build_tools}`
2837
2838
2839
2840 ################################################################################
2841
2842 srcname="gnu development package"
2843
2844 # This gets set non-empty for some net releases of packages.
2845 appdirs=""
2846
2847 # Define is_cross_compiler to save on calls to 'test'.
2848 is_cross_compiler=
2849 if test x"${host}" = x"${target}" ; then
2850 is_cross_compiler=no
2851 else
2852 is_cross_compiler=yes
2853 fi
2854
2855 # Find the build and target subdir names.
2856
2857 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2858 # have matching libraries, they should use host libraries: Makefile.tpl
2859 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2860 # However, they still use the build modules, because the corresponding
2861 # host modules (e.g. bison) are only built for the host when bootstrap
2862 # finishes. So:
2863 # - build_subdir is where we find build modules, and never changes.
2864 # - build_libsubdir is where we find build libraries, and can be overridden.
2865
2866 # Prefix 'build-' so this never conflicts with target_subdir.
2867 build_subdir="build-${build_noncanonical}"
2868
2869 # Check whether --with-build-libsubdir was given.
2870 if test "${with_build_libsubdir+set}" = set; then :
2871 withval=$with_build_libsubdir; build_libsubdir="$withval"
2872 else
2873 build_libsubdir="$build_subdir"
2874 fi
2875
2876 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2877 if ( test $srcdir = . && test -d gcc ) \
2878 || test -d $srcdir/../host-${host_noncanonical}; then
2879 host_subdir="host-${host_noncanonical}"
2880 else
2881 host_subdir=.
2882 fi
2883 # No prefix.
2884 target_subdir=${target_noncanonical}
2885
2886 # Be sure to cover against remnants of an in-tree build.
2887 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2888 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2889 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2890 fi
2891
2892 # Skipdirs are removed silently.
2893 skipdirs=
2894 # Noconfigdirs are removed loudly.
2895 noconfigdirs=""
2896
2897 use_gnu_ld=
2898 # Make sure we don't let GNU ld be added if we didn't want it.
2899 if test x$with_gnu_ld = xno ; then
2900 use_gnu_ld=no
2901 noconfigdirs="$noconfigdirs ld gold"
2902 fi
2903
2904 use_gnu_as=
2905 # Make sure we don't let GNU as be added if we didn't want it.
2906 if test x$with_gnu_as = xno ; then
2907 use_gnu_as=no
2908 noconfigdirs="$noconfigdirs gas"
2909 fi
2910
2911 use_included_zlib=
2912
2913 # Check whether --with-system-zlib was given.
2914 if test "${with_system_zlib+set}" = set; then :
2915 withval=$with_system_zlib;
2916 fi
2917
2918 # Make sure we don't let ZLIB be added if we didn't want it.
2919 if test x$with_system_zlib = xyes ; then
2920 use_included_zlib=no
2921 noconfigdirs="$noconfigdirs zlib"
2922 fi
2923
2924 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2925 # is provided.
2926 if test x$with_system_readline = xyes ; then
2927 noconfigdirs="$noconfigdirs readline"
2928 fi
2929
2930 # some tools are so dependent upon X11 that if we're not building with X,
2931 # it's not even worth trying to configure, much less build, that tool.
2932
2933 case ${with_x} in
2934 yes | "") ;; # the default value for this tree is that X11 is available
2935 no)
2936 skipdirs="${skipdirs} tk itcl libgui"
2937 # We won't be able to build gdbtk without X.
2938 enable_gdbtk=no
2939 ;;
2940 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2941 esac
2942
2943 # Some are only suitable for cross toolchains.
2944 # Remove these if host=target.
2945 cross_only="target-libgloss target-newlib target-opcodes"
2946
2947 case $is_cross_compiler in
2948 no) skipdirs="${skipdirs} ${cross_only}" ;;
2949 esac
2950
2951 # If both --with-headers and --with-libs are specified, default to
2952 # --without-newlib.
2953 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2954 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2955 if test x"${with_newlib}" = x ; then
2956 with_newlib=no
2957 fi
2958 fi
2959
2960 # Recognize --with-newlib/--without-newlib.
2961 case ${with_newlib} in
2962 no) skipdirs="${skipdirs} target-newlib" ;;
2963 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2964 esac
2965
2966 # Check whether --enable-as-accelerator-for was given.
2967 if test "${enable_as_accelerator_for+set}" = set; then :
2968 enableval=$enable_as_accelerator_for;
2969 fi
2970
2971
2972 # Check whether --enable-offload-targets was given.
2973 if test "${enable_offload_targets+set}" = set; then :
2974 enableval=$enable_offload_targets;
2975 if test x"$enable_offload_targets" = x; then
2976 as_fn_error $? "no offload targets specified" "$LINENO" 5
2977 fi
2978
2979 else
2980 enable_offload_targets=
2981 fi
2982
2983
2984 # Handle --enable-gold, --enable-ld.
2985 # --disable-gold [--enable-ld]
2986 # Build only ld. Default option.
2987 # --enable-gold [--enable-ld]
2988 # Build both gold and ld. Install gold as "ld.gold", install ld
2989 # as "ld.bfd" and "ld".
2990 # --enable-gold=default [--enable-ld]
2991 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2992 # install ld as "ld.bfd".
2993 # --enable-gold[=default] --disable-ld
2994 # Build only gold, which is then installed as both "ld.gold" and "ld".
2995 # --enable-gold --enable-ld=default
2996 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2997 # and ld.bfd).
2998 # In other words, ld is default
2999 # --enable-gold=default --enable-ld=default
3000 # Error.
3001
3002 default_ld=
3003 # Check whether --enable-gold was given.
3004 if test "${enable_gold+set}" = set; then :
3005 enableval=$enable_gold; ENABLE_GOLD=$enableval
3006 else
3007 ENABLE_GOLD=no
3008 fi
3009
3010 case "${ENABLE_GOLD}" in
3011 yes|default)
3012 # Check for ELF target.
3013 is_elf=no
3014 case "${target}" in
3015 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3016 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3017 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3018 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3019 case "${target}" in
3020 *-*-linux*aout* | *-*-linux*oldld*)
3021 ;;
3022 *)
3023 is_elf=yes
3024 ;;
3025 esac
3026 esac
3027
3028 if test "$is_elf" = "yes"; then
3029 # Check for target supported by gold.
3030 case "${target}" in
3031 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3032 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3033 configdirs="$configdirs gold"
3034 if test x${ENABLE_GOLD} = xdefault; then
3035 default_ld=gold
3036 fi
3037 ENABLE_GOLD=yes
3038 ;;
3039 esac
3040 fi
3041 ;;
3042 no)
3043 ;;
3044 *)
3045 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3046 ;;
3047 esac
3048
3049 # Check whether --enable-ld was given.
3050 if test "${enable_ld+set}" = set; then :
3051 enableval=$enable_ld; ENABLE_LD=$enableval
3052 else
3053 ENABLE_LD=yes
3054 fi
3055
3056
3057 case "${ENABLE_LD}" in
3058 default)
3059 if test x${default_ld} != x; then
3060 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3061 fi
3062 ;;
3063 yes)
3064 ;;
3065 no)
3066 if test x${ENABLE_GOLD} != xyes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3068 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3069 fi
3070 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3071 ;;
3072 *)
3073 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3074 ;;
3075 esac
3076
3077 # Check whether --enable-gprofng was given.
3078 if test "${enable_gprofng+set}" = set; then :
3079 enableval=$enable_gprofng; enable_gprofng=$enableval
3080 else
3081 enable_gprofng=yes
3082 fi
3083
3084 if test "$enable_gprofng" = "yes"; then
3085 case "${target}" in
3086 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3087 configdirs="$configdirs gprofng"
3088 ;;
3089 esac
3090 fi
3091
3092
3093 # PR gas/19109
3094 # Decide the default method for compressing debug sections.
3095 # Provide a configure time option to override our default.
3096 # Check whether --enable-compressed_debug_sections was given.
3097 if test "${enable_compressed_debug_sections+set}" = set; then :
3098 enableval=$enable_compressed_debug_sections;
3099 if test x"$enable_compressed_debug_sections" = xyes; then
3100 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3101 fi
3102
3103 else
3104 enable_compressed_debug_sections=
3105 fi
3106
3107
3108 # Configure extra directories which are host specific
3109
3110 case "${host}" in
3111 *-cygwin*)
3112 configdirs="$configdirs libtermcap" ;;
3113 esac
3114
3115 # A target can indicate whether a language isn't supported for some reason.
3116 # Only spaces may be used in this macro; not newlines or tabs.
3117 unsupported_languages=
3118
3119 # Remove more programs from consideration, based on the host or
3120 # target this usually means that a port of the program doesn't
3121 # exist yet.
3122
3123 case "${host}" in
3124 i[3456789]86-*-msdosdjgpp*)
3125 noconfigdirs="$noconfigdirs tcl tk itcl"
3126 ;;
3127 esac
3128
3129
3130 # Check whether --enable-libquadmath was given.
3131 if test "${enable_libquadmath+set}" = set; then :
3132 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3133 else
3134 ENABLE_LIBQUADMATH=yes
3135 fi
3136
3137 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3138 noconfigdirs="$noconfigdirs target-libquadmath"
3139 fi
3140
3141
3142 # Check whether --enable-libquadmath-support was given.
3143 if test "${enable_libquadmath_support+set}" = set; then :
3144 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3145 else
3146 ENABLE_LIBQUADMATH_SUPPORT=yes
3147 fi
3148
3149 enable_libquadmath_support=
3150 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3151 enable_libquadmath_support=no
3152 fi
3153
3154
3155 # Check whether --enable-libada was given.
3156 if test "${enable_libada+set}" = set; then :
3157 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3158 else
3159 ENABLE_LIBADA=yes
3160 fi
3161
3162 if test "${ENABLE_LIBADA}" != "yes" ; then
3163 noconfigdirs="$noconfigdirs gnattools"
3164 fi
3165
3166 # Check whether --enable-libssp was given.
3167 if test "${enable_libssp+set}" = set; then :
3168 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3169 else
3170 ENABLE_LIBSSP=yes
3171 fi
3172
3173
3174 # Check whether --enable-libstdcxx was given.
3175 if test "${enable_libstdcxx+set}" = set; then :
3176 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3177 else
3178 ENABLE_LIBSTDCXX=default
3179 fi
3180
3181 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3182 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3183 fi
3184
3185 # If this is accelerator compiler and its target is intelmic we enable
3186 # target liboffloadmic by default. If this is compiler with offloading
3187 # for intelmic we enable host liboffloadmic by default. Otherwise
3188 # liboffloadmic is disabled by default.
3189 # Check whether --enable-liboffloadmic was given.
3190 if test "${enable_liboffloadmic+set}" = set; then :
3191 enableval=$enable_liboffloadmic; case "$enableval" in
3192 no | host | target)
3193 enable_liboffloadmic=$enableval ;;
3194 *)
3195 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3196 esac
3197 else
3198 if test x"$enable_as_accelerator_for" != x; then
3199 case "${target}" in
3200 *-intelmic-* | *-intelmicemul-*)
3201 enable_liboffloadmic=target
3202 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3203 ;;
3204 *)
3205 enable_liboffloadmic=no
3206 ;;
3207 esac
3208 else
3209 case "${enable_offload_targets}" in
3210 *-intelmic-* | *-intelmicemul-*)
3211 enable_liboffloadmic=host
3212 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3213 ;;
3214 *)
3215 enable_liboffloadmic=no
3216 ;;
3217 esac
3218 fi
3219 fi
3220
3221
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*-*-*)
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 liboffloadmic on unsupported systems.
3262 if test -d ${srcdir}/liboffloadmic; then
3263 if test x$enable_liboffloadmic != xno; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3265 $as_echo_n "checking for liboffloadmic support... " >&6; }
3266 if (srcdir=${srcdir}/liboffloadmic; \
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-liboffloadmic"
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 libitm on unsupported systems.
3281 if test -d ${srcdir}/libitm; then
3282 if test x$enable_libitm = x; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3284 $as_echo_n "checking for libitm support... " >&6; }
3285 if (srcdir=${srcdir}/libitm; \
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-libitm"
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 libsanitizer on unsupported systems.
3300 if test -d ${srcdir}/libsanitizer; then
3301 if test x$enable_libsanitizer = x; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3303 $as_echo_n "checking for libsanitizer support... " >&6; }
3304 if (srcdir=${srcdir}/libsanitizer; \
3305 . ${srcdir}/configure.tgt; \
3306 test -n "$UNSUPPORTED")
3307 then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 noconfigdirs="$noconfigdirs target-libsanitizer"
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 libvtv on unsupported systems.
3319 if test -d ${srcdir}/libvtv; then
3320 if test x$enable_libvtv = x; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3322 $as_echo_n "checking for libvtv support... " >&6; }
3323 if (srcdir=${srcdir}/libvtv; \
3324 . ${srcdir}/configure.tgt; \
3325 test "$VTV_SUPPORTED" != "yes")
3326 then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 noconfigdirs="$noconfigdirs target-libvtv"
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3333 fi
3334 fi
3335 fi
3336
3337
3338 # Disable libhsail-rt on unsupported systems.
3339 if test -d ${srcdir}/libhsail-rt; then
3340 if test x$enable_libhsail_rt = x; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3342 $as_echo_n "checking for libhsail-rt support... " >&6; }
3343 if (srcdir=${srcdir}/libhsail-rt; \
3344 . ${srcdir}/configure.tgt; \
3345 test -n "$UNSUPPORTED")
3346 then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 unsupported_languages="$unsupported_languages brig"
3350 # This implicitly disables also target-libhsail-rt as it won't
3351 # get added to the build without BRIG FE.
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3355 fi
3356 fi
3357 fi
3358
3359
3360 # Disable libquadmath for some systems.
3361 case "${target}" in
3362 avr-*-*)
3363 noconfigdirs="$noconfigdirs target-libquadmath"
3364 ;;
3365 # libquadmath is unused on AIX and libquadmath build process use of
3366 # LD_LIBRARY_PATH can break AIX bootstrap.
3367 powerpc-*-aix* | rs6000-*-aix*)
3368 noconfigdirs="$noconfigdirs target-libquadmath"
3369 ;;
3370 esac
3371
3372 # Disable libssp for some systems.
3373 case "${target}" in
3374 avr-*-*)
3375 # No hosted I/O support.
3376 noconfigdirs="$noconfigdirs target-libssp"
3377 ;;
3378 powerpc-*-aix* | rs6000-*-aix*)
3379 noconfigdirs="$noconfigdirs target-libssp"
3380 ;;
3381 rl78-*-*)
3382 # libssp uses a misaligned load to trigger a fault, but the RL78
3383 # doesn't fault for those - instead, it gives a build-time error
3384 # for explicit misaligned loads.
3385 noconfigdirs="$noconfigdirs target-libssp"
3386 ;;
3387 visium-*-*)
3388 # No hosted I/O support.
3389 noconfigdirs="$noconfigdirs target-libssp"
3390 ;;
3391 esac
3392
3393 # Disable libstdc++-v3 for some systems.
3394 # Allow user to override this if they pass --enable-libstdc++-v3
3395 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3396 case "${target}" in
3397 *-*-vxworks*)
3398 # VxWorks uses the Dinkumware C++ library.
3399 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3400 ;;
3401 arm*-wince-pe*)
3402 # the C++ libraries don't build on top of CE's C libraries
3403 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3404 ;;
3405 avr-*-*)
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3407 ;;
3408 ft32-*-*)
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 ;;
3411 esac
3412 fi
3413
3414 # Disable Fortran for some systems.
3415 case "${target}" in
3416 mmix-*-*)
3417 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3418 unsupported_languages="$unsupported_languages fortran"
3419 ;;
3420 esac
3421
3422 # Disable libffi for some systems.
3423 case "${target}" in
3424 powerpc-*-darwin*)
3425 ;;
3426 i[3456789]86-*-darwin*)
3427 ;;
3428 x86_64-*-darwin[912]*)
3429 ;;
3430 *-*-darwin*)
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 *-*-netware*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 *-*-phoenix*)
3437 noconfigdirs="$noconfigdirs target-libffi"
3438 ;;
3439 *-*-rtems*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 *-*-tpf*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 *-*-uclinux*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 *-*-vxworks*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 aarch64*-*-freebsd*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 alpha*-*-*vms*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3456 ;;
3457 arm*-*-freebsd*)
3458 noconfigdirs="$noconfigdirs target-libffi"
3459 ;;
3460 arm-wince-pe)
3461 noconfigdirs="$noconfigdirs target-libffi"
3462 ;;
3463 cris-*-* | crisv32-*-*)
3464 case "${target}" in
3465 *-*-linux*)
3466 ;;
3467 *) # See PR46792 regarding target-libffi.
3468 noconfigdirs="$noconfigdirs target-libffi";;
3469 esac
3470 ;;
3471 hppa*64*-*-hpux*)
3472 noconfigdirs="$noconfigdirs target-libffi"
3473 ;;
3474 hppa*-hp-hpux11*)
3475 ;;
3476 hppa*-*-hpux*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479 ia64*-*-*vms*)
3480 noconfigdirs="$noconfigdirs target-libffi"
3481 ;;
3482 i[3456789]86-w64-mingw*)
3483 noconfigdirs="$noconfigdirs target-libffi"
3484 ;;
3485 i[3456789]86-*-mingw*)
3486 noconfigdirs="$noconfigdirs target-libffi"
3487 ;;
3488 x86_64-*-mingw*)
3489 noconfigdirs="$noconfigdirs target-libffi"
3490 ;;
3491 mmix-*-*)
3492 noconfigdirs="$noconfigdirs target-libffi"
3493 ;;
3494 powerpc-*-aix*)
3495 ;;
3496 rs6000-*-aix*)
3497 ;;
3498 ft32-*-*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3500 ;;
3501 *-*-lynxos*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
3504 esac
3505
3506 # Disable the go frontend on systems where it is known to not work. Please keep
3507 # this in sync with contrib/config-list.mk.
3508 case "${target}" in
3509 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3510 unsupported_languages="$unsupported_languages go"
3511 ;;
3512 esac
3513
3514 # Only allow gdbserver on some systems.
3515 if test -d ${srcdir}/gdbserver; then
3516 if test x$enable_gdbserver = x; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3518 $as_echo_n "checking for gdbserver support... " >&6; }
3519 if (srcdir=${srcdir}/gdbserver; \
3520 . ${srcdir}/configure.srv; \
3521 test -n "$UNSUPPORTED")
3522 then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 noconfigdirs="$noconfigdirs gdbserver"
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3528 $as_echo "yes" >&6; }
3529 fi
3530 fi
3531 fi
3532
3533 # Disable libgo for some systems where it is known to not work.
3534 # For testing, you can easily override this with --enable-libgo.
3535 if test x$enable_libgo = x; then
3536 case "${target}" in
3537 *-*-darwin*)
3538 # PR 46986
3539 noconfigdirs="$noconfigdirs target-libgo"
3540 ;;
3541 *-*-cygwin* | *-*-mingw*)
3542 noconfigdirs="$noconfigdirs target-libgo"
3543 ;;
3544 esac
3545 fi
3546
3547 # Default libgloss CPU subdirectory.
3548 libgloss_dir="$target_cpu"
3549
3550 case "${target}" in
3551 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3552 libgloss_dir=wince
3553 ;;
3554 aarch64*-*-* )
3555 libgloss_dir=aarch64
3556 ;;
3557 arm*-*-*)
3558 libgloss_dir=arm
3559 ;;
3560 cris-*-* | crisv32-*-*)
3561 libgloss_dir=cris
3562 ;;
3563 hppa*-*-*)
3564 libgloss_dir=pa
3565 ;;
3566 i[3456789]86-*-*)
3567 libgloss_dir=i386
3568 ;;
3569 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3570 libgloss_dir=m68hc11
3571 ;;
3572 m68*-*-* | fido-*-*)
3573 libgloss_dir=m68k
3574 ;;
3575 mips*-*-*)
3576 libgloss_dir=mips
3577 ;;
3578 powerpc*-*-*)
3579 libgloss_dir=rs6000
3580 ;;
3581 sparc*-*-*)
3582 libgloss_dir=sparc
3583 ;;
3584 esac
3585
3586 # Disable newlib and libgloss for various target OSes.
3587 case "${target}" in
3588 alpha*-dec-osf*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 i[3456789]86-*-linux*)
3592 # This section makes it possible to build newlib natively on linux.
3593 # If we are using a cross compiler then don't configure newlib.
3594 if test x${is_cross_compiler} != xno ; then
3595 noconfigdirs="$noconfigdirs target-newlib"
3596 fi
3597 noconfigdirs="$noconfigdirs target-libgloss"
3598 # If we are not using a cross compiler, do configure newlib.
3599 # Note however, that newlib will only be configured in this situation
3600 # if the --with-newlib option has been given, because otherwise
3601 # 'target-newlib' will appear in skipdirs.
3602 ;;
3603 i[3456789]86-*-rdos*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 sparc-*-sunos4*)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-aix*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-beos*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-chorusos)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 *-*-dragonfly*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 *-*-freebsd*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-lynxos*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 *-*-mingw*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636 *-*-netbsd*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 ;;
3639 *-*-netware*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 ;;
3642 *-*-tpf*)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 ;;
3645 *-*-uclinux*)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 ;;
3648 *-*-vxworks*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 esac
3652
3653 case "${target}" in
3654 *-*-chorusos)
3655 ;;
3656 aarch64-*-darwin*)
3657 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3658 noconfigdirs="$noconfigdirs sim target-rda"
3659 ;;
3660 arm-*-darwin*)
3661 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3662 noconfigdirs="$noconfigdirs sim target-rda"
3663 ;;
3664 powerpc-*-darwin*)
3665 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3666 noconfigdirs="$noconfigdirs sim target-rda"
3667 ;;
3668 i[3456789]86-*-darwin*)
3669 noconfigdirs="$noconfigdirs ld gprof"
3670 noconfigdirs="$noconfigdirs sim target-rda"
3671 ;;
3672 x86_64-*-darwin[912]*)
3673 noconfigdirs="$noconfigdirs ld gas gprof"
3674 noconfigdirs="$noconfigdirs sim target-rda"
3675 ;;
3676 *-*-darwin*)
3677 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3678 noconfigdirs="$noconfigdirs sim target-rda"
3679 ;;
3680 *-*-dragonfly*)
3681 ;;
3682 *-*-freebsd*)
3683 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3684 && test -f /usr/local/include/gmp.h; then
3685 with_gmp=/usr/local
3686 fi
3687 ;;
3688 *-*-kaos*)
3689 # Remove unsupported stuff on all kaOS configurations.
3690 noconfigdirs="$noconfigdirs target-libgloss"
3691 ;;
3692 *-*-netbsd*)
3693 ;;
3694 *-*-netware*)
3695 ;;
3696 *-*-phoenix*)
3697 noconfigdirs="$noconfigdirs target-libgloss"
3698 ;;
3699 *-*-rtems*)
3700 noconfigdirs="$noconfigdirs target-libgloss"
3701 ;;
3702 # The tpf target doesn't support gdb yet.
3703 *-*-tpf*)
3704 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3705 ;;
3706 *-*-uclinux*)
3707 noconfigdirs="$noconfigdirs target-rda"
3708 ;;
3709 *-*-vxworks*)
3710 ;;
3711 alpha*-dec-osf*)
3712 # ld works, but does not support shared libraries.
3713 # gas doesn't generate exception information.
3714 noconfigdirs="$noconfigdirs gas ld"
3715 ;;
3716 alpha*-*-*vms*)
3717 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3718 ;;
3719 alpha*-*-*)
3720 # newlib is not 64 bit ready
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3724 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3725 ;;
3726 arc*-*-*)
3727 noconfigdirs="$noconfigdirs sim"
3728 ;;
3729 arm-*-pe*)
3730 noconfigdirs="$noconfigdirs target-libgloss"
3731 ;;
3732 arm-*-riscix*)
3733 noconfigdirs="$noconfigdirs ld target-libgloss"
3734 ;;
3735 avr-*-*)
3736 if test x${with_avrlibc} != xno; then
3737 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3738 fi
3739 ;;
3740 c4x-*-* | tic4x-*-*)
3741 noconfigdirs="$noconfigdirs target-libgloss"
3742 ;;
3743 tic54x-*-*)
3744 noconfigdirs="$noconfigdirs target-libgloss gdb"
3745 ;;
3746 d10v-*-*)
3747 noconfigdirs="$noconfigdirs target-libgloss"
3748 ;;
3749 d30v-*-*)
3750 noconfigdirs="$noconfigdirs gdb"
3751 ;;
3752 fr30-*-elf*)
3753 noconfigdirs="$noconfigdirs gdb"
3754 ;;
3755 ft32-*-*)
3756 noconfigdirs="$noconfigdirs target-rda gprof"
3757 ;;
3758 moxie-*-*)
3759 noconfigdirs="$noconfigdirs"
3760 ;;
3761 h8300*-*-*)
3762 noconfigdirs="$noconfigdirs target-libgloss"
3763 ;;
3764 h8500-*-*)
3765 noconfigdirs="$noconfigdirs target-libgloss"
3766 ;;
3767 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3768 ;;
3769 hppa*64*-*-hpux*)
3770 noconfigdirs="$noconfigdirs gdb"
3771 ;;
3772 hppa*-*-hpux11*)
3773 noconfigdirs="$noconfigdirs gdb ld"
3774 ;;
3775 hppa*64*-*-linux*)
3776 ;;
3777 hppa*-*-linux*)
3778 ;;
3779 hppa*-*-*elf* | \
3780 hppa*-*-lites* | \
3781 hppa*-*-openbsd* | \
3782 hppa*64*-*-*)
3783 ;;
3784 hppa*-*-pro*)
3785 ;;
3786 hppa*-*-*)
3787 noconfigdirs="$noconfigdirs ld"
3788 ;;
3789 i960-*-*)
3790 noconfigdirs="$noconfigdirs gdb"
3791 ;;
3792 ia64*-*-elf*)
3793 # No gdb support yet.
3794 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3795 ;;
3796 ia64*-**-hpux*)
3797 # No ld support yet.
3798 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3799 ;;
3800 ia64*-*-*vms*)
3801 # No ld support yet.
3802 noconfigdirs="$noconfigdirs libgui itcl ld"
3803 ;;
3804 i[3456789]86-w64-mingw*)
3805 ;;
3806 i[3456789]86-*-mingw*)
3807 target_configdirs="$target_configdirs target-winsup"
3808 ;;
3809 *-*-cygwin*)
3810 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3811 noconfigdirs="$noconfigdirs target-libgloss"
3812 # always build newlib if winsup directory is present.
3813 if test -d "$srcdir/winsup/cygwin"; then
3814 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3815 elif test -d "$srcdir/newlib"; then
3816 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3817 fi
3818 ;;
3819 i[3456789]86-*-pe)
3820 noconfigdirs="$noconfigdirs target-libgloss"
3821 ;;
3822 i[3456789]86-*-sco3.2v5*)
3823 # The linker does not yet know about weak symbols in COFF,
3824 # and is not configured to handle mixed ELF and COFF.
3825 noconfigdirs="$noconfigdirs ld target-libgloss"
3826 ;;
3827 i[3456789]86-*-sco*)
3828 noconfigdirs="$noconfigdirs gprof target-libgloss"
3829 ;;
3830 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3831 noconfigdirs="$noconfigdirs target-libgloss"
3832 ;;
3833 i[3456789]86-*-sysv4*)
3834 noconfigdirs="$noconfigdirs target-libgloss"
3835 ;;
3836 i[3456789]86-*-beos*)
3837 noconfigdirs="$noconfigdirs gdb"
3838 ;;
3839 i[3456789]86-*-rdos*)
3840 noconfigdirs="$noconfigdirs gdb"
3841 ;;
3842 mmix-*-*)
3843 noconfigdirs="$noconfigdirs gdb"
3844 ;;
3845 mt-*-*)
3846 noconfigdirs="$noconfigdirs sim"
3847 ;;
3848 nfp-*-*)
3849 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3850 noconfigdirs="$noconfigdirs $target_libraries"
3851 ;;
3852 pdp11-*-*)
3853 noconfigdirs="$noconfigdirs gdb gprof"
3854 ;;
3855 powerpc-*-aix*)
3856 # copied from rs6000-*-* entry
3857 noconfigdirs="$noconfigdirs gprof"
3858 ;;
3859 powerpc*-*-winnt* | powerpc*-*-pe*)
3860 target_configdirs="$target_configdirs target-winsup"
3861 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3862 # always build newlib.
3863 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3864 ;;
3865 # This is temporary until we can link against shared libraries
3866 powerpcle-*-solaris*)
3867 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3868 ;;
3869 powerpc-*-beos*)
3870 noconfigdirs="$noconfigdirs gdb"
3871 ;;
3872 rs6000-*-lynxos*)
3873 noconfigdirs="$noconfigdirs gprof"
3874 ;;
3875 rs6000-*-aix*)
3876 noconfigdirs="$noconfigdirs gprof"
3877 ;;
3878 rs6000-*-*)
3879 noconfigdirs="$noconfigdirs gprof"
3880 ;;
3881 m68k-apollo-*)
3882 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3883 ;;
3884 microblaze*)
3885 noconfigdirs="$noconfigdirs gprof"
3886 ;;
3887 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3888 if test x$with_newlib = xyes; then
3889 noconfigdirs="$noconfigdirs gprof"
3890 fi
3891 ;;
3892 mips*-*-irix5*)
3893 noconfigdirs="$noconfigdirs gprof target-libgloss"
3894 ;;
3895 mips*-*-irix6*)
3896 noconfigdirs="$noconfigdirs gprof target-libgloss"
3897 ;;
3898 mips*-*-bsd*)
3899 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3900 ;;
3901 mips*-*-linux*)
3902 ;;
3903 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3904 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3905 noconfigdirs="$noconfigdirs ld gas gprof"
3906 ;;
3907 mips*-*-*)
3908 noconfigdirs="$noconfigdirs gprof"
3909 ;;
3910 nvptx*-*-*)
3911 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3912 ;;
3913 sh-*-*)
3914 case "${target}" in
3915 sh*-*-elf)
3916 ;;
3917 *)
3918 noconfigdirs="$noconfigdirs target-libgloss" ;;
3919 esac
3920 ;;
3921 sparc-*-sunos4*)
3922 if test x${is_cross_compiler} = xno ; then
3923 use_gnu_ld=no
3924 fi
3925 ;;
3926 tic6x-*-*)
3927 noconfigdirs="$noconfigdirs sim"
3928 ;;
3929 tilepro*-*-* | tilegx*-*-*)
3930 noconfigdirs="$noconfigdirs sim"
3931 ;;
3932 v810-*-*)
3933 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3934 ;;
3935 vax-*-*)
3936 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3937 ;;
3938 wasm32-*-*)
3939 noconfigdirs="$noconfigdirs ld"
3940 ;;
3941 esac
3942
3943 # If we aren't building newlib, then don't build libgloss, since libgloss
3944 # depends upon some newlib header files.
3945 case "${noconfigdirs}" in
3946 *target-libgloss*) ;;
3947 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3948 esac
3949
3950 # Work in distributions that contain no compiler tools, like Autoconf.
3951 host_makefile_frag=/dev/null
3952 if test -d ${srcdir}/config ; then
3953 case "${host}" in
3954 i[3456789]86-*-msdosdjgpp*)
3955 host_makefile_frag="config/mh-djgpp"
3956 ;;
3957 *-cygwin*)
3958
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3960 $as_echo_n "checking to see if cat works as expected... " >&6; }
3961 echo a >cygwin-cat-check
3962 if test `cat cygwin-cat-check` = a ; then
3963 rm cygwin-cat-check
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965 $as_echo "yes" >&6; }
3966 else
3967 rm cygwin-cat-check
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 as_fn_error $? "The cat command does not ignore carriage return characters.
3971 Please either mount the build directory in binary mode or run the following
3972 commands before running any configure script:
3973 set -o igncr
3974 export SHELLOPTS
3975 " "$LINENO" 5
3976 fi
3977
3978 host_makefile_frag="config/mh-cygwin"
3979 ;;
3980 *-mingw*)
3981 host_makefile_frag="config/mh-mingw"
3982 ;;
3983 alpha*-linux*)
3984 host_makefile_frag="config/mh-alpha-linux"
3985 ;;
3986 hppa*-hp-hpux10*)
3987 host_makefile_frag="config/mh-pa-hpux10"
3988 ;;
3989 hppa*-hp-hpux*)
3990 host_makefile_frag="config/mh-pa"
3991 ;;
3992 hppa*-*)
3993 host_makefile_frag="config/mh-pa"
3994 ;;
3995 *-*-darwin*)
3996 host_makefile_frag="config/mh-darwin"
3997 ;;
3998 powerpc-*-aix*)
3999 host_makefile_frag="config/mh-ppc-aix"
4000 ;;
4001 rs6000-*-aix*)
4002 host_makefile_frag="config/mh-ppc-aix"
4003 ;;
4004 esac
4005 fi
4006
4007 if test "${build}" != "${host}" ; then
4008 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4009 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4010 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4011 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4012 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4013 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4014 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4015 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4016 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4017 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4018 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4019 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4020 else
4021 AR_FOR_BUILD="\$(AR)"
4022 AS_FOR_BUILD="\$(AS)"
4023 CC_FOR_BUILD="\$(CC)"
4024 CXX_FOR_BUILD="\$(CXX)"
4025 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4026 GOC_FOR_BUILD="\$(GOC)"
4027 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4028 LD_FOR_BUILD="\$(LD)"
4029 NM_FOR_BUILD="\$(NM)"
4030 RANLIB_FOR_BUILD="\$(RANLIB)"
4031 WINDRES_FOR_BUILD="\$(WINDRES)"
4032 WINDMC_FOR_BUILD="\$(WINDMC)"
4033 fi
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_prog_CC+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if test -n "$CC"; then
4049 ac_cv_prog_CC="$CC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 break 2
4061 fi
4062 done
4063 done
4064 IFS=$as_save_IFS
4065
4066 fi
4067 fi
4068 CC=$ac_cv_prog_CC
4069 if test -n "$CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071 $as_echo "$CC" >&6; }
4072 else
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4075 fi
4076
4077
4078 fi
4079 if test -z "$ac_cv_prog_CC"; then
4080 ac_ct_CC=$CC
4081 # Extract the first word of "gcc", so it can be a program name with args.
4082 set dummy gcc; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 if test -n "$ac_ct_CC"; then
4089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_CC="gcc"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 break 2
4101 fi
4102 done
4103 done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4111 $as_echo "$ac_ct_CC" >&6; }
4112 else
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 fi
4116
4117 if test "x$ac_ct_CC" = x; then
4118 CC=""
4119 else
4120 case $cross_compiling:$ac_tool_warned in
4121 yes:)
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4124 ac_tool_warned=yes ;;
4125 esac
4126 CC=$ac_ct_CC
4127 fi
4128 else
4129 CC="$ac_cv_prog_CC"
4130 fi
4131
4132 if test -z "$CC"; then
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}cc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_CC+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_CC="${ac_tool_prefix}cc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4154 fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 CC=$ac_cv_prog_CC
4162 if test -n "$CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164 $as_echo "$CC" >&6; }
4165 else
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170
4171 fi
4172 fi
4173 if test -z "$CC"; then
4174 # Extract the first word of "cc", so it can be a program name with args.
4175 set dummy cc; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_CC+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4183 else
4184 ac_prog_rejected=no
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4193 ac_prog_rejected=yes
4194 continue
4195 fi
4196 ac_cv_prog_CC="cc"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202 IFS=$as_save_IFS
4203
4204 if test $ac_prog_rejected = yes; then
4205 # We found a bogon in the path, so make sure we never use it.
4206 set dummy $ac_cv_prog_CC
4207 shift
4208 if test $# != 0; then
4209 # We chose a different compiler from the bogus one.
4210 # However, it has the same basename, so the bogon will be chosen
4211 # first if we set CC to just the basename; use the full file name.
4212 shift
4213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4214 fi
4215 fi
4216 fi
4217 fi
4218 CC=$ac_cv_prog_CC
4219 if test -n "$CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 $as_echo "$CC" >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226
4227
4228 fi
4229 if test -z "$CC"; then
4230 if test -n "$ac_tool_prefix"; then
4231 for ac_prog in cl.exe
4232 do
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_CC+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -n "$CC"; then
4241 ac_cv_prog_CC="$CC" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254 done
4255 done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 CC=$ac_cv_prog_CC
4261 if test -n "$CC"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263 $as_echo "$CC" >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268
4269
4270 test -n "$CC" && break
4271 done
4272 fi
4273 if test -z "$CC"; then
4274 ac_ct_CC=$CC
4275 for ac_prog in cl.exe
4276 do
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if test -n "$ac_ct_CC"; then
4285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_ac_ct_CC="$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298 done
4299 done
4300 IFS=$as_save_IFS
4301
4302 fi
4303 fi
4304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4305 if test -n "$ac_ct_CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4307 $as_echo "$ac_ct_CC" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314 test -n "$ac_ct_CC" && break
4315 done
4316
4317 if test "x$ac_ct_CC" = x; then
4318 CC=""
4319 else
4320 case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4325 esac
4326 CC=$ac_ct_CC
4327 fi
4328 fi
4329
4330 fi
4331
4332
4333 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335 as_fn_error $? "no acceptable C compiler found in \$PATH
4336 See \`config.log' for more details" "$LINENO" 5; }
4337
4338 # Provide some information about the compiler.
4339 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4340 set X $ac_compile
4341 ac_compiler=$2
4342 for ac_option in --version -v -V -qversion; do
4343 { { ac_try="$ac_compiler $ac_option >&5"
4344 case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4351 ac_status=$?
4352 if test -s conftest.err; then
4353 sed '10a\
4354 ... rest of stderr output deleted ...
4355 10q' conftest.err >conftest.er1
4356 cat conftest.er1 >&5
4357 fi
4358 rm -f conftest.er1 conftest.err
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }
4361 done
4362
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365
4366 int
4367 main ()
4368 {
4369
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 ac_clean_files_save=$ac_clean_files
4375 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4376 # Try to create an executable without -o first, disregard a.out.
4377 # It will help us diagnose broken compilers, and finding out an intuition
4378 # of exeext.
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4380 $as_echo_n "checking whether the C compiler works... " >&6; }
4381 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4382
4383 # The possible output files:
4384 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4385
4386 ac_rmfiles=
4387 for ac_file in $ac_files
4388 do
4389 case $ac_file in
4390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4392 esac
4393 done
4394 rm -f $ac_rmfiles
4395
4396 if { { ac_try="$ac_link_default"
4397 case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_link_default") 2>&5
4404 ac_status=$?
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; }; then :
4407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4408 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4409 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4410 # so that the user can short-circuit this test for compilers unknown to
4411 # Autoconf.
4412 for ac_file in $ac_files ''
4413 do
4414 test -f "$ac_file" || continue
4415 case $ac_file in
4416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4417 ;;
4418 [ab].out )
4419 # We found the default executable, but exeext='' is most
4420 # certainly right.
4421 break;;
4422 *.* )
4423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4424 then :; else
4425 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4426 fi
4427 # We set ac_cv_exeext here because the later test for it is not
4428 # safe: cross compilers may not add the suffix if given an `-o'
4429 # argument, so we may need to know it at that point already.
4430 # Even if this section looks crufty: it has the advantage of
4431 # actually working.
4432 break;;
4433 * )
4434 break;;
4435 esac
4436 done
4437 test "$ac_cv_exeext" = no && ac_cv_exeext=
4438
4439 else
4440 ac_file=''
4441 fi
4442 if test -z "$ac_file"; then :
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 $as_echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error 77 "C compiler cannot create executables
4451 See \`config.log' for more details" "$LINENO" 5; }
4452 else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4454 $as_echo "yes" >&6; }
4455 fi
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4457 $as_echo_n "checking for C compiler default output file name... " >&6; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4459 $as_echo "$ac_file" >&6; }
4460 ac_exeext=$ac_cv_exeext
4461
4462 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4463 ac_clean_files=$ac_clean_files_save
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4465 $as_echo_n "checking for suffix of executables... " >&6; }
4466 if { { ac_try="$ac_link"
4467 case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470 esac
4471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472 $as_echo "$ac_try_echo"; } >&5
4473 (eval "$ac_link") 2>&5
4474 ac_status=$?
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }; then :
4477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4478 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4479 # work properly (i.e., refer to `conftest.exe'), while it won't with
4480 # `rm'.
4481 for ac_file in conftest.exe conftest conftest.*; do
4482 test -f "$ac_file" || continue
4483 case $ac_file in
4484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4486 break;;
4487 * ) break;;
4488 esac
4489 done
4490 else
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4494 See \`config.log' for more details" "$LINENO" 5; }
4495 fi
4496 rm -f conftest conftest$ac_cv_exeext
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4498 $as_echo "$ac_cv_exeext" >&6; }
4499
4500 rm -f conftest.$ac_ext
4501 EXEEXT=$ac_cv_exeext
4502 ac_exeext=$EXEEXT
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #include <stdio.h>
4506 int
4507 main ()
4508 {
4509 FILE *f = fopen ("conftest.out", "w");
4510 return ferror (f) || fclose (f) != 0;
4511
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 ac_clean_files="$ac_clean_files conftest.out"
4517 # Check that the compiler produces executables we can run. If not, either
4518 # the compiler is broken, or we cross compile.
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4520 $as_echo_n "checking whether we are cross compiling... " >&6; }
4521 if test "$cross_compiling" != yes; then
4522 { { ac_try="$ac_link"
4523 case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_link") 2>&5
4530 ac_status=$?
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }
4533 if { ac_try='./conftest$ac_cv_exeext'
4534 { { case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 $as_echo "$ac_try_echo"; } >&5
4540 (eval "$ac_try") 2>&5
4541 ac_status=$?
4542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }; }; then
4544 cross_compiling=no
4545 else
4546 if test "$cross_compiling" = maybe; then
4547 cross_compiling=yes
4548 else
4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error $? "cannot run C compiled programs.
4552 If you meant to cross compile, use \`--host'.
4553 See \`config.log' for more details" "$LINENO" 5; }
4554 fi
4555 fi
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4558 $as_echo "$cross_compiling" >&6; }
4559
4560 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4561 ac_clean_files=$ac_clean_files_save
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4563 $as_echo_n "checking for suffix of object files... " >&6; }
4564 if ${ac_cv_objext+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569
4570 int
4571 main ()
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.o conftest.obj
4579 if { { ac_try="$ac_compile"
4580 case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583 esac
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 $as_echo "$ac_try_echo"; } >&5
4586 (eval "$ac_compile") 2>&5
4587 ac_status=$?
4588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }; then :
4590 for ac_file in conftest.o conftest.obj conftest.*; do
4591 test -f "$ac_file" || continue;
4592 case $ac_file in
4593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4595 break;;
4596 esac
4597 done
4598 else
4599 $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "cannot compute suffix of object files: cannot compile
4605 See \`config.log' for more details" "$LINENO" 5; }
4606 fi
4607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4610 $as_echo "$ac_cv_objext" >&6; }
4611 OBJEXT=$ac_cv_objext
4612 ac_objext=$OBJEXT
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4614 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4615 if ${ac_cv_c_compiler_gnu+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620
4621 int
4622 main ()
4623 {
4624 #ifndef __GNUC__
4625 choke me
4626 #endif
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_compiler_gnu=yes
4634 else
4635 ac_compiler_gnu=no
4636 fi
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4639
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4642 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4643 if test $ac_compiler_gnu = yes; then
4644 GCC=yes
4645 else
4646 GCC=
4647 fi
4648 ac_test_CFLAGS=${CFLAGS+set}
4649 ac_save_CFLAGS=$CFLAGS
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4651 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4652 if ${ac_cv_prog_cc_g+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 ac_save_c_werror_flag=$ac_c_werror_flag
4656 ac_c_werror_flag=yes
4657 ac_cv_prog_cc_g=no
4658 CFLAGS="-g"
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661
4662 int
4663 main ()
4664 {
4665
4666 ;
4667 return 0;
4668 }
4669 _ACEOF
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671 ac_cv_prog_cc_g=yes
4672 else
4673 CFLAGS=""
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676
4677 int
4678 main ()
4679 {
4680
4681 ;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686
4687 else
4688 ac_c_werror_flag=$ac_save_c_werror_flag
4689 CFLAGS="-g"
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4692
4693 int
4694 main ()
4695 {
4696
4697 ;
4698 return 0;
4699 }
4700 _ACEOF
4701 if ac_fn_c_try_compile "$LINENO"; then :
4702 ac_cv_prog_cc_g=yes
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 fi
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 ac_c_werror_flag=$ac_save_c_werror_flag
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4712 $as_echo "$ac_cv_prog_cc_g" >&6; }
4713 if test "$ac_test_CFLAGS" = set; then
4714 CFLAGS=$ac_save_CFLAGS
4715 elif test $ac_cv_prog_cc_g = yes; then
4716 if test "$GCC" = yes; then
4717 CFLAGS="-g -O2"
4718 else
4719 CFLAGS="-g"
4720 fi
4721 else
4722 if test "$GCC" = yes; then
4723 CFLAGS="-O2"
4724 else
4725 CFLAGS=
4726 fi
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4729 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4730 if ${ac_cv_prog_cc_c89+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 ac_cv_prog_cc_c89=no
4734 ac_save_CC=$CC
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 #include <stdarg.h>
4738 #include <stdio.h>
4739 struct stat;
4740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4741 struct buf { int x; };
4742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4743 static char *e (p, i)
4744 char **p;
4745 int i;
4746 {
4747 return p[i];
4748 }
4749 static char *f (char * (*g) (char **, int), char **p, ...)
4750 {
4751 char *s;
4752 va_list v;
4753 va_start (v,p);
4754 s = g (p, va_arg (v,int));
4755 va_end (v);
4756 return s;
4757 }
4758
4759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4760 function prototypes and stuff, but not '\xHH' hex character constants.
4761 These don't provoke an error unfortunately, instead are silently treated
4762 as 'x'. The following induces an error, until -std is added to get
4763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4764 array size at least. It's necessary to write '\x00'==0 to get something
4765 that's true only with -std. */
4766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4767
4768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4769 inside strings and character constants. */
4770 #define FOO(x) 'x'
4771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4772
4773 int test (int i, double x);
4774 struct s1 {int (*f) (int a);};
4775 struct s2 {int (*f) (double a);};
4776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4777 int argc;
4778 char **argv;
4779 int
4780 main ()
4781 {
4782 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4783 ;
4784 return 0;
4785 }
4786 _ACEOF
4787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4789 do
4790 CC="$ac_save_CC $ac_arg"
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792 ac_cv_prog_cc_c89=$ac_arg
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext
4795 test "x$ac_cv_prog_cc_c89" != "xno" && break
4796 done
4797 rm -f conftest.$ac_ext
4798 CC=$ac_save_CC
4799
4800 fi
4801 # AC_CACHE_VAL
4802 case "x$ac_cv_prog_cc_c89" in
4803 x)
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4805 $as_echo "none needed" >&6; } ;;
4806 xno)
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4808 $as_echo "unsupported" >&6; } ;;
4809 *)
4810 CC="$CC $ac_cv_prog_cc_c89"
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4812 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4813 esac
4814 if test "x$ac_cv_prog_cc_c89" != xno; then :
4815
4816 fi
4817
4818 ac_ext=c
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4825 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4826 if ${ac_cv_prog_cc_c99+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 ac_cv_prog_cc_c99=no
4830 ac_save_CC=$CC
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #include <stdarg.h>
4834 #include <stdbool.h>
4835 #include <stdlib.h>
4836 #include <wchar.h>
4837 #include <stdio.h>
4838
4839 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4840 #define debug(...) fprintf (stderr, __VA_ARGS__)
4841 #define showlist(...) puts (#__VA_ARGS__)
4842 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4843 static void
4844 test_varargs_macros (void)
4845 {
4846 int x = 1234;
4847 int y = 5678;
4848 debug ("Flag");
4849 debug ("X = %d\n", x);
4850 showlist (The first, second, and third items.);
4851 report (x>y, "x is %d but y is %d", x, y);
4852 }
4853
4854 // Check long long types.
4855 #define BIG64 18446744073709551615ull
4856 #define BIG32 4294967295ul
4857 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4858 #if !BIG_OK
4859 your preprocessor is broken;
4860 #endif
4861 #if BIG_OK
4862 #else
4863 your preprocessor is broken;
4864 #endif
4865 static long long int bignum = -9223372036854775807LL;
4866 static unsigned long long int ubignum = BIG64;
4867
4868 struct incomplete_array
4869 {
4870 int datasize;
4871 double data[];
4872 };
4873
4874 struct named_init {
4875 int number;
4876 const wchar_t *name;
4877 double average;
4878 };
4879
4880 typedef const char *ccp;
4881
4882 static inline int
4883 test_restrict (ccp restrict text)
4884 {
4885 // See if C++-style comments work.
4886 // Iterate through items via the restricted pointer.
4887 // Also check for declarations in for loops.
4888 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4889 continue;
4890 return 0;
4891 }
4892
4893 // Check varargs and va_copy.
4894 static void
4895 test_varargs (const char *format, ...)
4896 {
4897 va_list args;
4898 va_start (args, format);
4899 va_list args_copy;
4900 va_copy (args_copy, args);
4901
4902 const char *str;
4903 int number;
4904 float fnumber;
4905
4906 while (*format)
4907 {
4908 switch (*format++)
4909 {
4910 case 's': // string
4911 str = va_arg (args_copy, const char *);
4912 break;
4913 case 'd': // int
4914 number = va_arg (args_copy, int);
4915 break;
4916 case 'f': // float
4917 fnumber = va_arg (args_copy, double);
4918 break;
4919 default:
4920 break;
4921 }
4922 }
4923 va_end (args_copy);
4924 va_end (args);
4925 }
4926
4927 int
4928 main ()
4929 {
4930
4931 // Check bool.
4932 _Bool success = false;
4933
4934 // Check restrict.
4935 if (test_restrict ("String literal") == 0)
4936 success = true;
4937 char *restrict newvar = "Another string";
4938
4939 // Check varargs.
4940 test_varargs ("s, d' f .", "string", 65, 34.234);
4941 test_varargs_macros ();
4942
4943 // Check flexible array members.
4944 struct incomplete_array *ia =
4945 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4946 ia->datasize = 10;
4947 for (int i = 0; i < ia->datasize; ++i)
4948 ia->data[i] = i * 1.234;
4949
4950 // Check named initializers.
4951 struct named_init ni = {
4952 .number = 34,
4953 .name = L"Test wide string",
4954 .average = 543.34343,
4955 };
4956
4957 ni.number = 58;
4958
4959 int dynamic_array[ni.number];
4960 dynamic_array[ni.number - 1] = 543;
4961
4962 // work around unused variable warnings
4963 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4964 || dynamic_array[ni.number - 1] != 543);
4965
4966 ;
4967 return 0;
4968 }
4969 _ACEOF
4970 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4971 do
4972 CC="$ac_save_CC $ac_arg"
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 ac_cv_prog_cc_c99=$ac_arg
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext
4977 test "x$ac_cv_prog_cc_c99" != "xno" && break
4978 done
4979 rm -f conftest.$ac_ext
4980 CC=$ac_save_CC
4981
4982 fi
4983 # AC_CACHE_VAL
4984 case "x$ac_cv_prog_cc_c99" in
4985 x)
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4987 $as_echo "none needed" >&6; } ;;
4988 xno)
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4990 $as_echo "unsupported" >&6; } ;;
4991 *)
4992 CC="$CC $ac_cv_prog_cc_c99"
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4994 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4995 esac
4996 if test "x$ac_cv_prog_cc_c99" != xno; then :
4997
4998 fi
4999
5000
5001 ac_ext=cpp
5002 ac_cpp='$CXXCPP $CPPFLAGS'
5003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5006 if test -z "$CXX"; then
5007 if test -n "$CCC"; then
5008 CXX=$CCC
5009 else
5010 if test -n "$ac_tool_prefix"; then
5011 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5012 do
5013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_CXX+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$CXX"; then
5021 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034 done
5035 done
5036 IFS=$as_save_IFS
5037
5038 fi
5039 fi
5040 CXX=$ac_cv_prog_CXX
5041 if test -n "$CXX"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5043 $as_echo "$CXX" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5047 fi
5048
5049
5050 test -n "$CXX" && break
5051 done
5052 fi
5053 if test -z "$CXX"; then
5054 ac_ct_CXX=$CXX
5055 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5056 do
5057 # Extract the first word of "$ac_prog", so it can be a program name with args.
5058 set dummy $ac_prog; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$ac_ct_CXX"; then
5065 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_ac_ct_CXX="$ac_prog"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078 done
5079 done
5080 IFS=$as_save_IFS
5081
5082 fi
5083 fi
5084 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5085 if test -n "$ac_ct_CXX"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5087 $as_echo "$ac_ct_CXX" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5091 fi
5092
5093
5094 test -n "$ac_ct_CXX" && break
5095 done
5096
5097 if test "x$ac_ct_CXX" = x; then
5098 CXX="g++"
5099 else
5100 case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 CXX=$ac_ct_CXX
5107 fi
5108 fi
5109
5110 fi
5111 fi
5112 # Provide some information about the compiler.
5113 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5114 set X $ac_compile
5115 ac_compiler=$2
5116 for ac_option in --version -v -V -qversion; do
5117 { { ac_try="$ac_compiler $ac_option >&5"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5125 ac_status=$?
5126 if test -s conftest.err; then
5127 sed '10a\
5128 ... rest of stderr output deleted ...
5129 10q' conftest.err >conftest.er1
5130 cat conftest.er1 >&5
5131 fi
5132 rm -f conftest.er1 conftest.err
5133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5134 test $ac_status = 0; }
5135 done
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5138 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5139 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144
5145 int
5146 main ()
5147 {
5148 #ifndef __GNUC__
5149 choke me
5150 #endif
5151
5152 ;
5153 return 0;
5154 }
5155 _ACEOF
5156 if ac_fn_cxx_try_compile "$LINENO"; then :
5157 ac_compiler_gnu=yes
5158 else
5159 ac_compiler_gnu=no
5160 fi
5161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5163
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5166 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5167 if test $ac_compiler_gnu = yes; then
5168 GXX=yes
5169 else
5170 GXX=
5171 fi
5172 ac_test_CXXFLAGS=${CXXFLAGS+set}
5173 ac_save_CXXFLAGS=$CXXFLAGS
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5175 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5176 if ${ac_cv_prog_cxx_g+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5180 ac_cxx_werror_flag=yes
5181 ac_cv_prog_cxx_g=no
5182 CXXFLAGS="-g"
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185
5186 int
5187 main ()
5188 {
5189
5190 ;
5191 return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_cxx_try_compile "$LINENO"; then :
5195 ac_cv_prog_cxx_g=yes
5196 else
5197 CXXFLAGS=""
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200
5201 int
5202 main ()
5203 {
5204
5205 ;
5206 return 0;
5207 }
5208 _ACEOF
5209 if ac_fn_cxx_try_compile "$LINENO"; then :
5210
5211 else
5212 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5213 CXXFLAGS="-g"
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216
5217 int
5218 main ()
5219 {
5220
5221 ;
5222 return 0;
5223 }
5224 _ACEOF
5225 if ac_fn_cxx_try_compile "$LINENO"; then :
5226 ac_cv_prog_cxx_g=yes
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 fi
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5234 fi
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5236 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5237 if test "$ac_test_CXXFLAGS" = set; then
5238 CXXFLAGS=$ac_save_CXXFLAGS
5239 elif test $ac_cv_prog_cxx_g = yes; then
5240 if test "$GXX" = yes; then
5241 CXXFLAGS="-g -O2"
5242 else
5243 CXXFLAGS="-g"
5244 fi
5245 else
5246 if test "$GXX" = yes; then
5247 CXXFLAGS="-O2"
5248 else
5249 CXXFLAGS=
5250 fi
5251 fi
5252 ac_ext=c
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257
5258
5259 # We must set the default linker to the linker used by gcc for the correct
5260 # operation of libtool. If LD is not defined and we are using gcc, try to
5261 # set the LD default to the ld used by gcc.
5262 if test -z "$LD"; then
5263 if test "$GCC" = yes; then
5264 case $build in
5265 *-*-mingw*)
5266 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5267 *)
5268 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5269 esac
5270 case $gcc_prog_ld in
5271 # Accept absolute paths.
5272 [\\/]* | [A-Za-z]:[\\/]*)
5273 LD="$gcc_prog_ld" ;;
5274 esac
5275 fi
5276 fi
5277
5278 # Check whether -static-libstdc++ -static-libgcc is supported.
5279 have_static_libs=no
5280 if test "$GCC" = yes; then
5281 saved_LDFLAGS="$LDFLAGS"
5282
5283 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5285 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5286 ac_ext=cpp
5287 ac_cpp='$CXXCPP $CPPFLAGS'
5288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5291
5292
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295
5296 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5297 #error -static-libstdc++ not implemented
5298 #endif
5299 int main() {}
5300 _ACEOF
5301 if ac_fn_cxx_try_link "$LINENO"; then :
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5303 $as_echo "yes" >&6; }; have_static_libs=yes
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext \
5309 conftest$ac_exeext conftest.$ac_ext
5310 ac_ext=c
5311 ac_cpp='$CPP $CPPFLAGS'
5312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315
5316
5317 LDFLAGS="$saved_LDFLAGS"
5318 fi
5319
5320
5321
5322
5323 if test -n "$ac_tool_prefix"; then
5324 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5325 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_GNATBIND+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$GNATBIND"; then
5332 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349 fi
5350 fi
5351 GNATBIND=$ac_cv_prog_GNATBIND
5352 if test -n "$GNATBIND"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5354 $as_echo "$GNATBIND" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360
5361 fi
5362 if test -z "$ac_cv_prog_GNATBIND"; then
5363 ac_ct_GNATBIND=$GNATBIND
5364 # Extract the first word of "gnatbind", so it can be a program name with args.
5365 set dummy gnatbind; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$ac_ct_GNATBIND"; then
5372 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385 done
5386 done
5387 IFS=$as_save_IFS
5388
5389 fi
5390 fi
5391 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5392 if test -n "$ac_ct_GNATBIND"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5394 $as_echo "$ac_ct_GNATBIND" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400 if test "x$ac_ct_GNATBIND" = x; then
5401 GNATBIND="no"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404 yes:)
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned=yes ;;
5408 esac
5409 GNATBIND=$ac_ct_GNATBIND
5410 fi
5411 else
5412 GNATBIND="$ac_cv_prog_GNATBIND"
5413 fi
5414
5415 if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_GNATMAKE+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$GNATMAKE"; then
5424 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437 done
5438 done
5439 IFS=$as_save_IFS
5440
5441 fi
5442 fi
5443 GNATMAKE=$ac_cv_prog_GNATMAKE
5444 if test -n "$GNATMAKE"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5446 $as_echo "$GNATMAKE" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451
5452
5453 fi
5454 if test -z "$ac_cv_prog_GNATMAKE"; then
5455 ac_ct_GNATMAKE=$GNATMAKE
5456 # Extract the first word of "gnatmake", so it can be a program name with args.
5457 set dummy gnatmake; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$ac_ct_GNATMAKE"; then
5464 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5484 if test -n "$ac_ct_GNATMAKE"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5486 $as_echo "$ac_ct_GNATMAKE" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492 if test "x$ac_ct_GNATMAKE" = x; then
5493 GNATMAKE="no"
5494 else
5495 case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501 GNATMAKE=$ac_ct_GNATMAKE
5502 fi
5503 else
5504 GNATMAKE="$ac_cv_prog_GNATMAKE"
5505 fi
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5508 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5509 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 cat >conftest.adb <<EOF
5513 procedure conftest is begin null; end conftest;
5514 EOF
5515 acx_cv_cc_gcc_supports_ada=no
5516 # There is a bug in old released versions of GCC which causes the
5517 # driver to exit successfully when the appropriate language module
5518 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5519 # Therefore we must check for the error message as well as an
5520 # unsuccessful exit.
5521 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5522 # given a .adb file, but produce no object file. So we must check
5523 # if an object file was really produced to guard against this.
5524 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5525 if test x"$errors" = x && test -f conftest.$ac_objext; then
5526 acx_cv_cc_gcc_supports_ada=yes
5527 fi
5528 rm -f conftest.*
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5531 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5532
5533 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5534 have_gnat=yes
5535 else
5536 have_gnat=no
5537 fi
5538
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5540 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5541 if ${gcc_cv_prog_cmp_skip+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 echo abfoo >t1
5545 echo cdfoo >t2
5546 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5547 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5548 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5549 :
5550 else
5551 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5552 fi
5553 fi
5554 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5555 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5556 :
5557 else
5558 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5559 fi
5560 fi
5561 rm t1 t2
5562
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5565 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5566 do_compare="$gcc_cv_prog_cmp_skip"
5567
5568
5569
5570 # Check whether --enable-bootstrap was given.
5571 if test "${enable_bootstrap+set}" = set; then :
5572 enableval=$enable_bootstrap;
5573 else
5574 enable_bootstrap=default
5575 fi
5576
5577
5578 # Issue errors and warnings for invalid/strange bootstrap combinations.
5579 if test -r $srcdir/gcc/configure; then
5580 have_compiler=yes
5581 else
5582 have_compiler=no
5583 fi
5584
5585 case "$have_compiler:$host:$target:$enable_bootstrap" in
5586 *:*:*:no) ;;
5587
5588 # Default behavior. Enable bootstrap if we have a compiler
5589 # and we are in a native configuration.
5590 yes:$build:$build:default)
5591 enable_bootstrap=yes ;;
5592
5593 *:*:*:default)
5594 enable_bootstrap=no ;;
5595
5596 # We have a compiler and we are in a native configuration, bootstrap is ok
5597 yes:$build:$build:yes)
5598 ;;
5599
5600 # Other configurations, but we have a compiler. Assume the user knows
5601 # what he's doing.
5602 yes:*:*:yes)
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5604 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5605 ;;
5606
5607 # No compiler: if they passed --enable-bootstrap explicitly, fail
5608 no:*:*:yes)
5609 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5610
5611 # Fail if wrong command line
5612 *)
5613 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5614 ;;
5615 esac
5616
5617 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5618 # C++98 compiler can still start the bootstrap.
5619 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5620 CXX="$CXX -std=gnu++98"
5621 fi
5622
5623 # Check whether --enable-pgo-build was given.
5624 if test "${enable_pgo_build+set}" = set; then :
5625 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5626 else
5627 enable_pgo_build=no
5628 fi
5629
5630
5631 # Issue errors and warnings for invalid/strange PGO build combinations.
5632 case "$have_compiler:$host:$target:$enable_pgo_build" in
5633 *:*:*:no) ;;
5634
5635 # Allow the PGO build only if we aren't building a compiler and
5636 # we are in a native configuration.
5637 no:$build:$build:yes | no:$build:$build:lto) ;;
5638
5639 # Disallow the PGO bootstrap if we are building a compiler.
5640 yes:*:*:yes | yes:*:*:lto)
5641 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5642
5643 *)
5644 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5645 ;;
5646 esac
5647
5648 if test "$enable_pgo_build" != "no"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5650 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5651 old_CFLAGS="$CFLAGS"
5652 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5653 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5654
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 int foo;
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660
5661 else
5662 PGO_BUILD_GEN_CFLAGS=
5663 fi
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 CFLAGS="$old_CFLAGS"
5666 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5668 $as_echo "yes" >&6; }
5669 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5674 fi
5675
5676 if test "$enable_pgo_build" = "lto"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5678 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5679 old_CFLAGS="$CFLAGS"
5680 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5681 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 int foo;
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687
5688 else
5689 PGO_BUILD_LTO_CFLAGS=
5690 fi
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 CFLAGS="$old_CFLAGS"
5693 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695 $as_echo "yes" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5700 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5701 fi
5702 fi
5703 fi
5704
5705
5706
5707
5708 # Used for setting $lt_cv_objdir
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5710 $as_echo_n "checking for objdir... " >&6; }
5711 if ${lt_cv_objdir+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 rm -f .libs 2>/dev/null
5715 mkdir .libs 2>/dev/null
5716 if test -d .libs; then
5717 lt_cv_objdir=.libs
5718 else
5719 # MS-DOS does not allow filenames that begin with a dot.
5720 lt_cv_objdir=_libs
5721 fi
5722 rmdir .libs 2>/dev/null
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5725 $as_echo "$lt_cv_objdir" >&6; }
5726 objdir=$lt_cv_objdir
5727
5728
5729
5730
5731
5732 cat >>confdefs.h <<_ACEOF
5733 #define LT_OBJDIR "$lt_cv_objdir/"
5734 _ACEOF
5735
5736
5737
5738 # Check for GMP, MPFR and MPC
5739 gmplibs="-lmpc -lmpfr -lgmp"
5740 gmpinc=
5741 have_gmp=no
5742
5743 # Specify a location for mpc
5744 # check for this first so it ends up on the link line before mpfr.
5745
5746 # Check whether --with-mpc was given.
5747 if test "${with_mpc+set}" = set; then :
5748 withval=$with_mpc;
5749 fi
5750
5751
5752 # Check whether --with-mpc-include was given.
5753 if test "${with_mpc_include+set}" = set; then :
5754 withval=$with_mpc_include;
5755 fi
5756
5757
5758 # Check whether --with-mpc-lib was given.
5759 if test "${with_mpc_lib+set}" = set; then :
5760 withval=$with_mpc_lib;
5761 fi
5762
5763
5764 if test "x$with_mpc" != x; then
5765 gmplibs="-L$with_mpc/lib $gmplibs"
5766 gmpinc="-I$with_mpc/include $gmpinc"
5767 fi
5768 if test "x$with_mpc_include" != x; then
5769 gmpinc="-I$with_mpc_include $gmpinc"
5770 fi
5771 if test "x$with_mpc_lib" != x; then
5772 gmplibs="-L$with_mpc_lib $gmplibs"
5773 fi
5774 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5775 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5776 gmpinc='-I$$s/mpc/src '"$gmpinc"
5777 # Do not test the mpc version. Assume that it is sufficient, since
5778 # it is in the source tree, and the library has not been built yet
5779 # but it would be included on the link line in the version check below
5780 # hence making the test fail.
5781 have_gmp=yes
5782 fi
5783
5784 # Specify a location for mpfr
5785 # check for this first so it ends up on the link line before gmp.
5786
5787 # Check whether --with-mpfr-dir was given.
5788 if test "${with_mpfr_dir+set}" = set; then :
5789 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5790 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5791 fi
5792
5793
5794
5795 # Check whether --with-mpfr was given.
5796 if test "${with_mpfr+set}" = set; then :
5797 withval=$with_mpfr;
5798 fi
5799
5800
5801 # Check whether --with-mpfr-include was given.
5802 if test "${with_mpfr_include+set}" = set; then :
5803 withval=$with_mpfr_include;
5804 fi
5805
5806
5807 # Check whether --with-mpfr-lib was given.
5808 if test "${with_mpfr_lib+set}" = set; then :
5809 withval=$with_mpfr_lib;
5810 fi
5811
5812
5813 if test "x$with_mpfr" != x; then
5814 gmplibs="-L$with_mpfr/lib $gmplibs"
5815 gmpinc="-I$with_mpfr/include $gmpinc"
5816 fi
5817 if test "x$with_mpfr_include" != x; then
5818 gmpinc="-I$with_mpfr_include $gmpinc"
5819 fi
5820 if test "x$with_mpfr_lib" != x; then
5821 gmplibs="-L$with_mpfr_lib $gmplibs"
5822 fi
5823 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5824 # MPFR v3.1.0 moved the sources into a src sub-directory.
5825 if ! test -d ${srcdir}/mpfr/src; then
5826 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5827 fi
5828 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5829 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5830 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5831 # Do not test the mpfr version. Assume that it is sufficient, since
5832 # it is in the source tree, and the library has not been built yet
5833 # but it would be included on the link line in the version check below
5834 # hence making the test fail.
5835 have_gmp=yes
5836 fi
5837
5838 # Specify a location for gmp
5839
5840 # Check whether --with-gmp-dir was given.
5841 if test "${with_gmp_dir+set}" = set; then :
5842 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5843 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5844 fi
5845
5846
5847
5848 # Check whether --with-gmp was given.
5849 if test "${with_gmp+set}" = set; then :
5850 withval=$with_gmp;
5851 fi
5852
5853
5854 # Check whether --with-gmp-include was given.
5855 if test "${with_gmp_include+set}" = set; then :
5856 withval=$with_gmp_include;
5857 fi
5858
5859
5860 # Check whether --with-gmp-lib was given.
5861 if test "${with_gmp_lib+set}" = set; then :
5862 withval=$with_gmp_lib;
5863 fi
5864
5865
5866
5867 if test "x$with_gmp" != x; then
5868 gmplibs="-L$with_gmp/lib $gmplibs"
5869 gmpinc="-I$with_gmp/include $gmpinc"
5870 fi
5871 if test "x$with_gmp_include" != x; then
5872 gmpinc="-I$with_gmp_include $gmpinc"
5873 fi
5874 if test "x$with_gmp_lib" != x; then
5875 gmplibs="-L$with_gmp_lib $gmplibs"
5876 fi
5877 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5878 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5879 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5880 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5881 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5882 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5883 # Do not test the gmp version. Assume that it is sufficient, since
5884 # it is in the source tree, and the library has not been built yet
5885 # but it would be included on the link line in the version check below
5886 # hence making the test fail.
5887 have_gmp=yes
5888 fi
5889
5890 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5891 have_gmp=yes
5892 saved_CFLAGS="$CFLAGS"
5893 CFLAGS="$CFLAGS $gmpinc"
5894 # Check for the recommended and required versions of GMP.
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5896 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 #include "gmp.h"
5900 int
5901 main ()
5902 {
5903
5904 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5905 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5906 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5907 choke me
5908 #endif
5909
5910 ;
5911 return 0;
5912 }
5913 _ACEOF
5914 if ac_fn_c_try_compile "$LINENO"; then :
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include <gmp.h>
5918 int
5919 main ()
5920 {
5921
5922 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5923 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5924 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5925 choke me
5926 #endif
5927
5928 ;
5929 return 0;
5930 }
5931 _ACEOF
5932 if ac_fn_c_try_compile "$LINENO"; then :
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5934 $as_echo "yes" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5937 $as_echo "buggy but acceptable" >&6; }
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 else
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }; have_gmp=no
5943 fi
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945
5946 # If we have GMP, check the MPFR version.
5947 if test x"$have_gmp" = xyes; then
5948 # Check for the recommended and required versions of MPFR.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5950 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #include <gmp.h>
5954 #include <mpfr.h>
5955 int
5956 main ()
5957 {
5958
5959 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5960 choke me
5961 #endif
5962
5963 ;
5964 return 0;
5965 }
5966 _ACEOF
5967 if ac_fn_c_try_compile "$LINENO"; then :
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <gmp.h>
5971 #include <mpfr.h>
5972 int
5973 main ()
5974 {
5975
5976 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5977 choke me
5978 #endif
5979
5980 ;
5981 return 0;
5982 }
5983 _ACEOF
5984 if ac_fn_c_try_compile "$LINENO"; then :
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5986 $as_echo "yes" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5989 $as_echo "buggy but acceptable" >&6; }
5990 fi
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }; have_gmp=no
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 fi
5998
5999 # Check for the MPC header version.
6000 if test x"$have_gmp" = xyes ; then
6001 # Check for the recommended and required versions of MPC.
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6003 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6006 #include <mpc.h>
6007 int
6008 main ()
6009 {
6010
6011 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6012 choke me
6013 #endif
6014
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_compile "$LINENO"; then :
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 #include <mpc.h>
6023 int
6024 main ()
6025 {
6026
6027 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6028 choke me
6029 #endif
6030
6031 ;
6032 return 0;
6033 }
6034 _ACEOF
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6037 $as_echo "yes" >&6; }
6038 else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6040 $as_echo "buggy but acceptable" >&6; }
6041 fi
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }; have_gmp=no
6046 fi
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 fi
6049
6050 # Now check the MPFR library.
6051 if test x"$have_gmp" = xyes; then
6052 saved_LIBS="$LIBS"
6053 LIBS="$LIBS $gmplibs"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6055 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <mpc.h>
6059 int
6060 main ()
6061 {
6062
6063 mpfr_t n;
6064 mpfr_t x;
6065 mpc_t c;
6066 int t;
6067 mpfr_init (n);
6068 mpfr_init (x);
6069 mpfr_atan2 (n, n, x, GMP_RNDN);
6070 mpfr_erfc (n, x, GMP_RNDN);
6071 mpfr_subnormalize (x, t, GMP_RNDN);
6072 mpfr_clear(n);
6073 mpfr_clear(x);
6074 mpc_init2 (c, 53);
6075 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6076 mpc_cosh (c, c, MPC_RNDNN);
6077 mpc_pow (c, c, c, MPC_RNDNN);
6078 mpc_acosh (c, c, MPC_RNDNN);
6079 mpc_clear (c);
6080
6081 ;
6082 return 0;
6083 }
6084 _ACEOF
6085 if ac_fn_c_try_link "$LINENO"; then :
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6087 $as_echo "yes" >&6; }
6088 else
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }; have_gmp=no
6091 fi
6092 rm -f core conftest.err conftest.$ac_objext \
6093 conftest$ac_exeext conftest.$ac_ext
6094 LIBS="$saved_LIBS"
6095 fi
6096
6097 CFLAGS="$saved_CFLAGS"
6098
6099 # The library versions listed in the error message below should match
6100 # the HARD-minimums enforced above.
6101 if test x$have_gmp != xyes; then
6102 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6103 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6104 their locations. Source code for these libraries can be found at
6105 their respective hosting sites as well as at
6106 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6107 http://gcc.gnu.org/install/prerequisites.html for additional info. If
6108 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6109 make sure that you have installed both the libraries and the header
6110 files. They may be located in separate packages." "$LINENO" 5
6111 fi
6112 fi
6113
6114 # Flags needed for both GMP, MPFR and/or MPC.
6115
6116
6117
6118
6119
6120
6121
6122 # Libraries to use for stage1 or when not bootstrapping.
6123
6124 # Check whether --with-stage1-libs was given.
6125 if test "${with_stage1_libs+set}" = set; then :
6126 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6127 stage1_libs=
6128 else
6129 stage1_libs=$withval
6130 fi
6131 else
6132 stage1_libs=
6133 fi
6134
6135
6136
6137 # Whether or not to use -static-libstdc++ and -static-libgcc. The
6138 # default is yes if gcc is being built; no otherwise. The reason for
6139 # this default is that gdb is sometimes linked against GNU Source
6140 # Highlight, which is a shared library that uses C++ exceptions. In
6141 # this case, -static-libstdc++ will cause crashes.
6142
6143 # Check whether --with-static-standard-libraries was given.
6144 if test "${with_static_standard_libraries+set}" = set; then :
6145 withval=$with_static_standard_libraries;
6146 else
6147 with_static_standard_libraries=auto
6148 fi
6149
6150 if test "$with_static_standard_libraries" = auto; then
6151 with_static_standard_libraries=$have_compiler
6152 fi
6153
6154 # Linker flags to use for stage1 or when not bootstrapping.
6155
6156 # Check whether --with-stage1-ldflags was given.
6157 if test "${with_stage1_ldflags+set}" = set; then :
6158 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6159 stage1_ldflags=
6160 else
6161 stage1_ldflags=$withval
6162 fi
6163 else
6164 stage1_ldflags=
6165 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6166 # if supported. But if the user explicitly specified the libraries to use,
6167 # trust that they are doing what they want.
6168 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6169 -a "$have_static_libs" = yes; then
6170 stage1_ldflags="-static-libstdc++ -static-libgcc"
6171 fi
6172 fi
6173
6174
6175
6176 # Libraries to use for stage2 and later builds.
6177
6178 # Check whether --with-boot-libs was given.
6179 if test "${with_boot_libs+set}" = set; then :
6180 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6181 poststage1_libs=
6182 else
6183 poststage1_libs=$withval
6184 fi
6185 else
6186 poststage1_libs=
6187 fi
6188
6189
6190
6191 # Linker flags to use for stage2 and later builds.
6192
6193 # Check whether --with-boot-ldflags was given.
6194 if test "${with_boot_ldflags+set}" = set; then :
6195 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6196 poststage1_ldflags=
6197 else
6198 poststage1_ldflags=$withval
6199 fi
6200 else
6201 poststage1_ldflags=
6202 # In stages 2 and 3, default to linking libstdc++ and libgcc
6203 # statically. But if the user explicitly specified the libraries to
6204 # use, trust that they are doing what they want.
6205 if test "$poststage1_libs" = ""; then
6206 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6207 fi
6208 fi
6209
6210
6211
6212 # GCC GRAPHITE dependency isl.
6213 # Basic setup is inlined here, actual checks are in config/isl.m4
6214
6215
6216 # Check whether --with-isl was given.
6217 if test "${with_isl+set}" = set; then :
6218 withval=$with_isl;
6219 fi
6220
6221
6222 # Treat --without-isl as a request to disable
6223 # GRAPHITE support and skip all following checks.
6224 if test "x$with_isl" != "xno"; then
6225 # Check for isl
6226
6227
6228 # Check whether --with-isl-include was given.
6229 if test "${with_isl_include+set}" = set; then :
6230 withval=$with_isl_include;
6231 fi
6232
6233
6234 # Check whether --with-isl-lib was given.
6235 if test "${with_isl_lib+set}" = set; then :
6236 withval=$with_isl_lib;
6237 fi
6238
6239
6240 # Check whether --enable-isl-version-check was given.
6241 if test "${enable_isl_version_check+set}" = set; then :
6242 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6243 else
6244 ENABLE_ISL_CHECK=yes
6245 fi
6246
6247
6248 # Initialize isllibs and islinc.
6249 case $with_isl in
6250 no)
6251 isllibs=
6252 islinc=
6253 ;;
6254 "" | yes)
6255 ;;
6256 *)
6257 isllibs="-L$with_isl/lib"
6258 islinc="-I$with_isl/include"
6259 ;;
6260 esac
6261 if test "x${with_isl_include}" != x ; then
6262 islinc="-I$with_isl_include"
6263 fi
6264 if test "x${with_isl_lib}" != x; then
6265 isllibs="-L$with_isl_lib"
6266 fi
6267 if test "x${islinc}" = x && test "x${isllibs}" = x \
6268 && test -d ${srcdir}/isl; then
6269 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6270 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6271 ENABLE_ISL_CHECK=no
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6273 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6274 fi
6275
6276 isllibs="${isllibs} -lisl"
6277
6278
6279
6280 if test "${ENABLE_ISL_CHECK}" = yes ; then
6281 _isl_saved_CFLAGS=$CFLAGS
6282 _isl_saved_LDFLAGS=$LDFLAGS
6283 _isl_saved_LIBS=$LIBS
6284
6285 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6286 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6287 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6288
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6290 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 #include <isl/schedule.h>
6294 int
6295 main ()
6296 {
6297 isl_options_set_schedule_serialize_sccs (NULL, 0);
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"; then :
6303 gcc_cv_isl=yes
6304 else
6305 gcc_cv_isl=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6310 $as_echo "$gcc_cv_isl" >&6; }
6311
6312 if test "${gcc_cv_isl}" = no ; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6314 $as_echo "required isl version is 0.15 or later" >&6; }
6315 fi
6316
6317 CFLAGS=$_isl_saved_CFLAGS
6318 LDFLAGS=$_isl_saved_LDFLAGS
6319 LIBS=$_isl_saved_LIBS
6320 fi
6321
6322
6323
6324
6325
6326
6327 if test "x${with_isl}" = xno; then
6328 graphite_requested=no
6329 elif test "x${with_isl}" != x \
6330 || test "x${with_isl_include}" != x \
6331 || test "x${with_isl_lib}" != x ; then
6332 graphite_requested=yes
6333 else
6334 graphite_requested=no
6335 fi
6336
6337
6338
6339 if test "${gcc_cv_isl}" = no ; then
6340 isllibs=
6341 islinc=
6342 fi
6343
6344 if test "${graphite_requested}" = yes \
6345 && test "x${isllibs}" = x \
6346 && test "x${islinc}" = x ; then
6347
6348 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6349 fi
6350
6351
6352 fi
6353
6354 # If the isl check failed, disable builds of in-tree variant of isl
6355 if test "x$with_isl" = xno ||
6356 test "x$gcc_cv_isl" = xno; then
6357 noconfigdirs="$noconfigdirs isl"
6358 islinc=
6359 fi
6360
6361
6362
6363
6364 # Check for LTO support.
6365 # Check whether --enable-lto was given.
6366 if test "${enable_lto+set}" = set; then :
6367 enableval=$enable_lto; enable_lto=$enableval
6368 else
6369 enable_lto=yes; default_enable_lto=yes
6370 fi
6371
6372
6373
6374
6375
6376 target_elf=no
6377 case $target in
6378 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6379 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6380 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6381 nvptx-*-none)
6382 target_elf=no
6383 ;;
6384 *)
6385 target_elf=yes
6386 ;;
6387 esac
6388
6389 if test $target_elf = yes; then :
6390 # ELF platforms build the lto-plugin always.
6391 build_lto_plugin=yes
6392
6393 else
6394 if test x"$default_enable_lto" = x"yes" ; then
6395 case $target in
6396 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6397 # On other non-ELF platforms, LTO has yet to be validated.
6398 *) enable_lto=no ;;
6399 esac
6400 else
6401 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6402 # It would also be nice to check the binutils support, but we don't
6403 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6404 # warn during gcc/ subconfigure; unless you're bootstrapping with
6405 # -flto it won't be needed until after installation anyway.
6406 case $target in
6407 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6408 *) if test x"$enable_lto" = x"yes"; then
6409 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6410 fi
6411 ;;
6412 esac
6413 fi
6414 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6415 # Build it unless LTO was explicitly disabled.
6416 case $target in
6417 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6418 *) ;;
6419 esac
6420
6421 fi
6422
6423
6424 # Check whether --enable-linker-plugin-configure-flags was given.
6425 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6426 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6427 else
6428 extra_linker_plugin_configure_flags=
6429 fi
6430
6431
6432 # Check whether --enable-linker-plugin-flags was given.
6433 if test "${enable_linker_plugin_flags+set}" = set; then :
6434 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6435 else
6436 extra_linker_plugin_flags=
6437 fi
6438
6439
6440
6441 # Enable --enable-host-shared.
6442 # Checked early to determine whether jit is an 'all' language
6443 # Check whether --enable-host-shared was given.
6444 if test "${enable_host_shared+set}" = set; then :
6445 enableval=$enable_host_shared; host_shared=$enableval
6446 else
6447 host_shared=no
6448 fi
6449
6450
6451
6452 # By default, C and C++ are the only stage 1 languages.
6453 stage1_languages=,c,
6454
6455 # Target libraries that we bootstrap.
6456 bootstrap_target_libs=,target-libgcc,
6457
6458 # Figure out what language subdirectories are present.
6459 # Look if the user specified --enable-languages="..."; if not, use
6460 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6461 # go away some day.
6462 # NB: embedded tabs in this IF block -- do not untabify
6463 if test -d ${srcdir}/gcc; then
6464 if test x"${enable_languages+set}" != xset; then
6465 if test x"${LANGUAGES+set}" = xset; then
6466 enable_languages="${LANGUAGES}"
6467 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6468 else
6469 enable_languages=default
6470 fi
6471 else
6472 if test x"${enable_languages}" = x ||
6473 test x"${enable_languages}" = xyes;
6474 then
6475 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6476 exit 1
6477 fi
6478 fi
6479 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6480
6481 # 'f95' is the old name for the 'fortran' language. We issue a warning
6482 # and make the substitution.
6483 case ,${enable_languages}, in
6484 *,f95,*)
6485 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6486 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6487 ;;
6488 esac
6489
6490 # If bootstrapping, C++ must be enabled.
6491 case ",$enable_languages,:$enable_bootstrap" in
6492 *,c++,*:*) ;;
6493 *:yes)
6494 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6495 enable_languages="${enable_languages},c++"
6496 else
6497 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6498 fi
6499 ;;
6500 esac
6501
6502 # First scan to see if an enabled language requires some other language.
6503 # We assume that a given config-lang.in will list all the language
6504 # front ends it requires, even if some are required indirectly.
6505 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6506 case ${lang_frag} in
6507 ..) ;;
6508 # The odd quoting in the next line works around
6509 # an apparent bug in bash 1.12 on linux.
6510 ${srcdir}/gcc/[*]/config-lang.in) ;;
6511 *)
6512 # From the config-lang.in, get $language, $lang_requires, and
6513 # $lang_requires_boot_languages.
6514 language=
6515 lang_requires=
6516 lang_requires_boot_languages=
6517 # set srcdir during sourcing lang_frag to the gcc dir.
6518 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6519 # polutes this shell
6520 saved_srcdir=${srcdir}
6521 srcdir=${srcdir}/gcc . ${lang_frag}
6522 srcdir=${saved_srcdir}
6523 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6524 case ,${enable_languages}, in
6525 *,$other,*) ;;
6526 *,default,*) ;;
6527 *,all,*) ;;
6528 *,$language,*)
6529 echo " \`$other' language required by \`$language'; enabling" 1>&2
6530 enable_languages="${enable_languages},${other}"
6531 ;;
6532 esac
6533 done
6534 for other in ${lang_requires_boot_languages} ; do
6535 if test "$other" != "c"; then
6536 case ,${enable_stage1_languages}, in
6537 *,$other,*) ;;
6538 *,default,*) ;;
6539 *,all,*) ;;
6540 *)
6541 case ,${enable_languages}, in
6542 *,$language,*)
6543 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6544 enable_stage1_languages="$enable_stage1_languages,${other}"
6545 ;;
6546 esac
6547 ;;
6548 esac
6549 fi
6550 done
6551 ;;
6552 esac
6553 done
6554
6555 new_enable_languages=,c,
6556
6557 # If LTO is enabled, add the LTO front end.
6558 if test "$enable_lto" = "yes" ; then
6559 case ,${enable_languages}, in
6560 *,lto,*) ;;
6561 *) enable_languages="${enable_languages},lto" ;;
6562 esac
6563 if test "${build_lto_plugin}" = "yes" ; then
6564 configdirs="$configdirs lto-plugin"
6565 fi
6566 fi
6567
6568 # If we're building an offloading compiler, add the LTO front end.
6569 if test x"$enable_as_accelerator_for" != x ; then
6570 case ,${enable_languages}, in
6571 *,lto,*) ;;
6572 *) enable_languages="${enable_languages},lto" ;;
6573 esac
6574 fi
6575
6576 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6577 potential_languages=,c,
6578
6579 enabled_target_libs=
6580 disabled_target_libs=
6581
6582 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6583 case ${lang_frag} in
6584 ..) ;;
6585 # The odd quoting in the next line works around
6586 # an apparent bug in bash 1.12 on linux.
6587 ${srcdir}/gcc/[*]/config-lang.in) ;;
6588 *)
6589 # From the config-lang.in, get $language, $target_libs,
6590 # $lang_dirs, $boot_language, and $build_by_default
6591 language=
6592 target_libs=
6593 lang_dirs=
6594 subdir_requires=
6595 boot_language=no
6596 build_by_default=yes
6597 # set srcdir during sourcing. See above about save & restore
6598 saved_srcdir=${srcdir}
6599 srcdir=${srcdir}/gcc . ${lang_frag}
6600 srcdir=${saved_srcdir}
6601 if test x${language} = x; then
6602 echo "${lang_frag} doesn't set \$language." 1>&2
6603 exit 1
6604 fi
6605
6606 if test "$language" = "c++"; then
6607 boot_language=yes
6608 fi
6609
6610 add_this_lang=no
6611 # C is always enabled, so no need to add it again
6612 if test "$language" != "c"; then
6613 case ,${enable_languages}, in
6614 *,${language},*)
6615 # Language was explicitly selected; include it
6616 add_this_lang=yes
6617 ;;
6618 *,all,*)
6619 # All languages are enabled
6620 add_this_lang=all
6621 ;;
6622 *,default,*)
6623 # 'default' was selected, select it if it is a default language
6624 add_this_lang=${build_by_default}
6625 ;;
6626 esac
6627 fi
6628
6629 # Disable languages that need other directories if these aren't available.
6630 for i in $subdir_requires; do
6631 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6632 case ${add_this_lang} in
6633 yes)
6634 # Specifically requested language; tell them.
6635 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6636 ;;
6637 all)
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6639 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6640 add_this_lang=unsupported
6641 ;;
6642 *)
6643 # Silently disable.
6644 add_this_lang=unsupported
6645 ;;
6646 esac
6647 done
6648
6649 # Disable Ada if no preexisting GNAT is available.
6650 case ${add_this_lang}:${language}:${have_gnat} in
6651 yes:ada:no)
6652 # Specifically requested language; tell them.
6653 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6654 ;;
6655 all:ada:no)
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6657 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6658 add_this_lang=unsupported
6659 ;;
6660 *:ada:no)
6661 # Silently disable.
6662 add_this_lang=unsupported
6663 ;;
6664 esac
6665
6666 # Disable jit if -enable-host-shared not specified
6667 case ${add_this_lang}:${language}:${host_shared} in
6668 yes:jit:no)
6669 # PR jit/64780: explicitly specify --enable-host-shared
6670 as_fn_error $? "
6671 Enabling language \"jit\" requires --enable-host-shared.
6672
6673 --enable-host-shared typically slows the rest of the compiler down by
6674 a few %, so you must explicitly enable it.
6675
6676 If you want to build both the jit and the regular compiler, it is often
6677 best to do this via two separate configure/builds, in separate
6678 directories, to avoid imposing the performance cost of
6679 --enable-host-shared on the regular compiler." "$LINENO" 5
6680 ;;
6681 all:jit:no)
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6683 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6684 add_this_lang=unsupported
6685 ;;
6686 *:jit:no)
6687 # Silently disable.
6688 add_this_lang=unsupported
6689 ;;
6690 esac
6691
6692 # Disable a language that is unsupported by the target.
6693 case "${add_this_lang}: $unsupported_languages " in
6694 no:*) ;;
6695 unsupported:*) ;;
6696 *:*" $language "*)
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6698 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6699 add_this_lang=unsupported
6700 ;;
6701 esac
6702
6703 case $add_this_lang in
6704 unsupported)
6705 # Remove language-dependent dirs.
6706 disabled_target_libs="$disabled_target_libs $target_libs"
6707 noconfigdirs="$noconfigdirs $lang_dirs"
6708 ;;
6709 no)
6710 # Remove language-dependent dirs; still show language as supported.
6711 disabled_target_libs="$disabled_target_libs $target_libs"
6712 noconfigdirs="$noconfigdirs $lang_dirs"
6713 potential_languages="${potential_languages}${language},"
6714 ;;
6715 all|yes)
6716 new_enable_languages="${new_enable_languages}${language},"
6717 potential_languages="${potential_languages}${language},"
6718 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6719 enabled_target_libs="$enabled_target_libs $target_libs"
6720 case "${boot_language}:,$enable_stage1_languages," in
6721 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6722 # Add to (comma-separated) list of stage 1 languages.
6723 case ",$stage1_languages," in
6724 *,$language,* | ,yes, | ,all,) ;;
6725 *) stage1_languages="${stage1_languages}${language}," ;;
6726 esac
6727 # We need to bootstrap any supporting libraries.
6728 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6729 ;;
6730 esac
6731 ;;
6732 esac
6733 ;;
6734 esac
6735 done
6736
6737 # Add target libraries which are only needed for disabled languages
6738 # to noconfigdirs.
6739 if test -n "$disabled_target_libs"; then
6740 for dir in $disabled_target_libs; do
6741 case " $enabled_target_libs " in
6742 *" ${dir} "*) ;;
6743 *) noconfigdirs="$noconfigdirs $dir" ;;
6744 esac
6745 done
6746 fi
6747
6748 # Check whether --enable-stage1-languages was given.
6749 if test "${enable_stage1_languages+set}" = set; then :
6750 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6751 ,no,|,,)
6752 # Set it to something that will have no effect in the loop below
6753 enable_stage1_languages=c ;;
6754 ,yes,)
6755 enable_stage1_languages=`echo $new_enable_languages | \
6756 sed -e "s/^,//" -e "s/,$//" ` ;;
6757 *,all,*)
6758 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6759 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6760 esac
6761
6762 # Add "good" languages from enable_stage1_languages to stage1_languages,
6763 # while "bad" languages go in missing_languages. Leave no duplicates.
6764 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6765 case $potential_languages in
6766 *,$i,*)
6767 case $stage1_languages in
6768 *,$i,*) ;;
6769 *) stage1_languages="$stage1_languages$i," ;;
6770 esac ;;
6771 *)
6772 case $missing_languages in
6773 *,$i,*) ;;
6774 *) missing_languages="$missing_languages$i," ;;
6775 esac ;;
6776 esac
6777 done
6778 fi
6779
6780
6781 # Remove leading/trailing commas that were added for simplicity
6782 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6783 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6784 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6785 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6786
6787 if test "x$missing_languages" != x; then
6788 as_fn_error $? "
6789 The following requested languages could not be built: ${missing_languages}
6790 Supported languages are: ${potential_languages}" "$LINENO" 5
6791 fi
6792 if test "x$new_enable_languages" != "x$enable_languages"; then
6793 echo The following languages will be built: ${new_enable_languages}
6794 enable_languages="$new_enable_languages"
6795 fi
6796
6797
6798 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6799 fi
6800
6801 # Handle --disable-<component> generically.
6802 for dir in $configdirs $build_configdirs $target_configdirs ; do
6803 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6804 varname=`echo $dirname | sed -e s/+/_/g`
6805 if eval test x\${enable_${varname}} "=" xno ; then
6806 noconfigdirs="$noconfigdirs $dir"
6807 fi
6808 done
6809
6810 # Check for Boehm's garbage collector
6811 # Check whether --enable-objc-gc was given.
6812 if test "${enable_objc_gc+set}" = set; then :
6813 enableval=$enable_objc_gc;
6814 fi
6815
6816
6817 # Check whether --with-target-bdw-gc was given.
6818 if test "${with_target_bdw_gc+set}" = set; then :
6819 withval=$with_target_bdw_gc;
6820 fi
6821
6822
6823 # Check whether --with-target-bdw-gc-include was given.
6824 if test "${with_target_bdw_gc_include+set}" = set; then :
6825 withval=$with_target_bdw_gc_include;
6826 fi
6827
6828
6829 # Check whether --with-target-bdw-gc-lib was given.
6830 if test "${with_target_bdw_gc_lib+set}" = set; then :
6831 withval=$with_target_bdw_gc_lib;
6832 fi
6833
6834
6835 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6837 $as_echo_n "checking for bdw garbage collector... " >&6; }
6838 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6840 $as_echo "using bdw-gc in default locations" >&6; }
6841 else
6842 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6843 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6844 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6845 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6846 else
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6848 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6849 fi
6850 fi
6851 esac
6852
6853 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6854 case ,${enable_languages}, in
6855 *,c++,*)
6856 # Disable libitm, libsanitizer if we're not building libstdc++
6857 case "${noconfigdirs}" in
6858 *target-libstdc++-v3*)
6859 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6860 ;;
6861 *) ;;
6862 esac
6863 ;;
6864 *)
6865 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6866 ;;
6867 esac
6868
6869 # If gcc/ is not in the source tree then we'll not be building a
6870 # target compiler, assume in that case we don't want to build any
6871 # target libraries or tools.
6872 #
6873 # This was added primarily for the benefit for binutils-gdb who reuse
6874 # this configure script, but don't always have target tools available.
6875 if test ! -d ${srcdir}/gcc; then
6876 skipdirs="${skipdirs} ${target_configdirs}"
6877 fi
6878
6879 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6880 # $build_configdirs and $target_configdirs.
6881 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6882
6883 notsupp=""
6884 for dir in . $skipdirs $noconfigdirs ; do
6885 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6886 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6887 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6888 if test -r $srcdir/$dirname/configure ; then
6889 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6890 true
6891 else
6892 notsupp="$notsupp $dir"
6893 fi
6894 fi
6895 fi
6896 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6897 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6898 if test -r $srcdir/$dirname/configure ; then
6899 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6900 true
6901 else
6902 notsupp="$notsupp $dir"
6903 fi
6904 fi
6905 fi
6906 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6907 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6908 if test -r $srcdir/$dirname/configure ; then
6909 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6910 true
6911 else
6912 notsupp="$notsupp $dir"
6913 fi
6914 fi
6915 fi
6916 done
6917
6918 # Quietly strip out all directories which aren't configurable in this tree.
6919 # This relies on all configurable subdirectories being autoconfiscated, which
6920 # is now the case.
6921 build_configdirs_all="$build_configdirs"
6922 build_configdirs=
6923 for i in ${build_configdirs_all} ; do
6924 j=`echo $i | sed -e s/build-//g`
6925 if test -f ${srcdir}/$j/configure ; then
6926 build_configdirs="${build_configdirs} $i"
6927 fi
6928 done
6929
6930 configdirs_all="$configdirs"
6931 configdirs=
6932 for i in ${configdirs_all} ; do
6933 if test -f ${srcdir}/$i/configure ; then
6934 configdirs="${configdirs} $i"
6935 fi
6936 done
6937
6938 target_configdirs_all="$target_configdirs"
6939 target_configdirs=
6940 for i in ${target_configdirs_all} ; do
6941 j=`echo $i | sed -e s/target-//g`
6942 if test -f ${srcdir}/$j/configure ; then
6943 target_configdirs="${target_configdirs} $i"
6944 fi
6945 done
6946
6947 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6948 # so we have to add it after the preceding checks.
6949 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6950 then
6951 case " $configdirs " in
6952 *" libiberty "*)
6953 # If we can build libiberty, we can also build libiberty-linker-plugin.
6954 configdirs="$configdirs libiberty-linker-plugin"
6955 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6956 --with-libiberty=../libiberty-linker-plugin";;
6957 *)
6958 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6959 esac
6960 fi
6961
6962 # Sometimes we have special requirements for the host libiberty.
6963 extra_host_libiberty_configure_flags=
6964 extra_host_zlib_configure_flags=
6965 case " $configdirs " in
6966 *" lto-plugin "* | *" libcc1 "*)
6967 # When these are to be built as shared libraries, the same applies to
6968 # libiberty.
6969 extra_host_libiberty_configure_flags=--enable-shared
6970 ;;
6971 *" bfd "*)
6972 # When bfd is to be built as a shared library, the same applies to
6973 # zlib.
6974 if test "$enable_shared" = "yes"; then
6975 extra_host_zlib_configure_flags=--enable-host-shared
6976 fi
6977 ;;
6978 esac
6979
6980
6981
6982 # Produce a warning message for the subdirs we can't configure.
6983 # This isn't especially interesting in the Cygnus tree, but in the individual
6984 # FSF releases, it's important to let people know when their machine isn't
6985 # supported by the one or two programs in a package.
6986
6987 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6988 # If $appdirs is non-empty, at least one of those directories must still
6989 # be configured, or we error out. (E.g., if the gas release supports a
6990 # specified target in some subdirs but not the gas subdir, we shouldn't
6991 # pretend that all is well.)
6992 if test -n "$appdirs" ; then
6993 for dir in $appdirs ; do
6994 if test -r $dir/Makefile.in ; then
6995 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6996 appdirs=""
6997 break
6998 fi
6999 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7000 appdirs=""
7001 break
7002 fi
7003 fi
7004 done
7005 if test -n "$appdirs" ; then
7006 echo "*** This configuration is not supported by this package." 1>&2
7007 exit 1
7008 fi
7009 fi
7010 # Okay, some application will build, or we don't care to check. Still
7011 # notify of subdirs not getting built.
7012 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7013 echo " ${notsupp}" 1>&2
7014 echo " (Any other directories should still work fine.)" 1>&2
7015 fi
7016
7017 case "$host" in
7018 *msdosdjgpp*)
7019 enable_gdbtk=no ;;
7020 esac
7021
7022 # To find our prefix, in gcc_cv_tool_prefix.
7023
7024 # The user is always right.
7025 if test "${PATH_SEPARATOR+set}" != set; then
7026 echo "#! /bin/sh" >conf$$.sh
7027 echo "exit 0" >>conf$$.sh
7028 chmod +x conf$$.sh
7029 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7030 PATH_SEPARATOR=';'
7031 else
7032 PATH_SEPARATOR=:
7033 fi
7034 rm -f conf$$.sh
7035 fi
7036
7037
7038 get_gcc_base_ver="cat"
7039
7040 # Check whether --with-gcc-major-version-only was given.
7041 if test "${with_gcc_major_version_only+set}" = set; then :
7042 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
7043 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
7044 fi
7045
7046 fi
7047
7048
7049
7050
7051
7052
7053 if test "x$exec_prefix" = xNONE; then
7054 if test "x$prefix" = xNONE; then
7055 gcc_cv_tool_prefix=$ac_default_prefix
7056 else
7057 gcc_cv_tool_prefix=$prefix
7058 fi
7059 else
7060 gcc_cv_tool_prefix=$exec_prefix
7061 fi
7062
7063 # If there is no compiler in the tree, use the PATH only. In any
7064 # case, if there is no compiler in the tree nobody should use
7065 # AS_FOR_TARGET and LD_FOR_TARGET.
7066 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7067 if test x$with_gcc_major_version_only = xyes ; then
7068 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7069 else
7070 gcc_version=`cat $srcdir/gcc/BASE-VER`
7071 fi
7072 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7076 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7077 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7078 else
7079 gcc_cv_tool_dirs=
7080 fi
7081
7082 if test x$build = x$target && test -n "$md_exec_prefix"; then
7083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7084 fi
7085
7086
7087
7088 copy_dirs=
7089
7090
7091 # Check whether --with-build-sysroot was given.
7092 if test "${with_build_sysroot+set}" = set; then :
7093 withval=$with_build_sysroot; if test x"$withval" != x ; then
7094 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7095 fi
7096 else
7097 SYSROOT_CFLAGS_FOR_TARGET=
7098 fi
7099
7100
7101
7102
7103 # Check whether --with-debug-prefix-map was given.
7104 if test "${with_debug_prefix_map+set}" = set; then :
7105 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7106 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7107 for debug_map in $withval; do
7108 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7109 done
7110 fi
7111 else
7112 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7113 fi
7114
7115
7116
7117 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7118 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7119 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7120 # We want to ensure that TARGET libraries (which we know are built with
7121 # gcc) are built with "-O2 -g", so include those options when setting
7122 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7123 if test "x$CFLAGS_FOR_TARGET" = x; then
7124 if test "x${is_cross_compiler}" = xyes; then
7125 CFLAGS_FOR_TARGET="-g -O2"
7126 else
7127 CFLAGS_FOR_TARGET=$CFLAGS
7128 case " $CFLAGS " in
7129 *" -O2 "*) ;;
7130 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7131 esac
7132 case " $CFLAGS " in
7133 *" -g "* | *" -g3 "*) ;;
7134 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7135 esac
7136 fi
7137 fi
7138
7139
7140 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7141 if test "x${is_cross_compiler}" = xyes; then
7142 CXXFLAGS_FOR_TARGET="-g -O2"
7143 else
7144 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7145 case " $CXXFLAGS " in
7146 *" -O2 "*) ;;
7147 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7148 esac
7149 case " $CXXFLAGS " in
7150 *" -g "* | *" -g3 "*) ;;
7151 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7152 esac
7153 fi
7154 fi
7155
7156
7157
7158
7159 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7160 # the named directory are copied to $(tooldir)/sys-include.
7161 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7162 if test x${is_cross_compiler} = xno ; then
7163 echo 1>&2 '***' --with-headers is only supported when cross compiling
7164 exit 1
7165 fi
7166 if test x"${with_headers}" != xyes ; then
7167 x=${gcc_cv_tool_prefix}
7168 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7169 fi
7170 fi
7171
7172 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7173 # the name directories are copied to $(tooldir)/lib. Multiple directories
7174 # are permitted.
7175 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7176 if test x${is_cross_compiler} = xno ; then
7177 echo 1>&2 '***' --with-libs is only supported when cross compiling
7178 exit 1
7179 fi
7180 if test x"${with_libs}" != xyes ; then
7181 # Copy the libraries in reverse order, so that files in the first named
7182 # library override files in subsequent libraries.
7183 x=${gcc_cv_tool_prefix}
7184 for l in ${with_libs}; do
7185 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7186 done
7187 fi
7188 fi
7189
7190 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7191 #
7192 # This is done by determining whether or not the appropriate directory
7193 # is available, and by checking whether or not specific configurations
7194 # have requested that this magic not happen.
7195 #
7196 # The command line options always override the explicit settings in
7197 # configure.ac, and the settings in configure.ac override this magic.
7198 #
7199 # If the default for a toolchain is to use GNU as and ld, and you don't
7200 # want to do that, then you should use the --without-gnu-as and
7201 # --without-gnu-ld options for the configure script. Similarly, if
7202 # the default is to use the included zlib and you don't want to do that,
7203 # you should use the --with-system-zlib option for the configure script.
7204
7205 if test x${use_gnu_as} = x &&
7206 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7207 with_gnu_as=yes
7208 extra_host_args="$extra_host_args --with-gnu-as"
7209 fi
7210
7211 if test x${use_gnu_ld} = x &&
7212 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7213 with_gnu_ld=yes
7214 extra_host_args="$extra_host_args --with-gnu-ld"
7215 fi
7216
7217 if test x${use_included_zlib} = x &&
7218 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7219 :
7220 else
7221 with_system_zlib=yes
7222 extra_host_args="$extra_host_args --with-system-zlib"
7223 fi
7224
7225 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7226 # can detect this case.
7227
7228 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7229 with_newlib=yes
7230 extra_host_args="$extra_host_args --with-newlib"
7231 fi
7232
7233 # Handle ${copy_dirs}
7234 set fnord ${copy_dirs}
7235 shift
7236 while test $# != 0 ; do
7237 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7238 :
7239 else
7240 echo Copying $1 to $2
7241
7242 # Use the install script to create the directory and all required
7243 # parent directories.
7244 if test -d $2 ; then
7245 :
7246 else
7247 echo >config.temp
7248 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7249 fi
7250
7251 # Copy the directory, assuming we have tar.
7252 # FIXME: Should we use B in the second tar? Not all systems support it.
7253 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7254
7255 # It is the responsibility of the user to correctly adjust all
7256 # symlinks. If somebody can figure out how to handle them correctly
7257 # here, feel free to add the code.
7258
7259 echo $1 > $2/COPIED
7260 fi
7261 shift; shift
7262 done
7263
7264 # Determine a target-dependent exec_prefix that the installed
7265 # gcc will search in. Keep this list sorted by triplet, with
7266 # the *-*-osname triplets last.
7267 md_exec_prefix=
7268 case "${target}" in
7269 i[34567]86-pc-msdosdjgpp*)
7270 md_exec_prefix=/dev/env/DJDIR/bin
7271 ;;
7272 *-*-hpux* | \
7273 *-*-nto-qnx* | \
7274 *-*-solaris2*)
7275 md_exec_prefix=/usr/ccs/bin
7276 ;;
7277 esac
7278
7279 extra_arflags_for_target=
7280 extra_nmflags_for_target=
7281 extra_ranlibflags_for_target=
7282 target_makefile_frag=/dev/null
7283 case "${target}" in
7284 spu-*-*)
7285 target_makefile_frag="config/mt-spu"
7286 ;;
7287 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7288 target_makefile_frag="config/mt-sde"
7289 ;;
7290 mipsisa*-*-elfoabi*)
7291 target_makefile_frag="config/mt-mips-elfoabi"
7292 ;;
7293 mips*-*-*linux* | mips*-*-gnu*)
7294 target_makefile_frag="config/mt-mips-gnu"
7295 ;;
7296 nios2-*-elf*)
7297 target_makefile_frag="config/mt-nios2-elf"
7298 ;;
7299 *-*-linux-android*)
7300 target_makefile_frag="config/mt-android"
7301 ;;
7302 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7303 target_makefile_frag="config/mt-gnu"
7304 ;;
7305 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7306 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7307 # commands to handle both 32-bit and 64-bit objects. These flags are
7308 # harmless if we're using GNU nm or ar.
7309 extra_arflags_for_target=" -X32_64"
7310 extra_nmflags_for_target=" -B -X32_64"
7311 ;;
7312 esac
7313
7314 alphaieee_frag=/dev/null
7315 case $target in
7316 alpha*-*-*)
7317 # This just makes sure to use the -mieee option to build target libs.
7318 # This should probably be set individually by each library.
7319 alphaieee_frag="config/mt-alphaieee"
7320 ;;
7321 esac
7322
7323 # If --enable-target-optspace always use -Os instead of -O2 to build
7324 # the target libraries, similarly if it is not specified, use -Os
7325 # on selected platforms.
7326 ospace_frag=/dev/null
7327 case "${enable_target_optspace}:${target}" in
7328 yes:*)
7329 ospace_frag="config/mt-ospace"
7330 ;;
7331 :d30v-*)
7332 ospace_frag="config/mt-d30v"
7333 ;;
7334 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7335 ospace_frag="config/mt-ospace"
7336 ;;
7337 no:* | :*)
7338 ;;
7339 *)
7340 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7341 ;;
7342 esac
7343
7344 # Some systems (e.g., one of the i386-aix systems the gas testers are
7345 # using) don't handle "\$" correctly, so don't use it here.
7346 tooldir='${exec_prefix}'/${target_noncanonical}
7347 build_tooldir=${tooldir}
7348
7349 # Create a .gdbinit file which runs the one in srcdir
7350 # and tells GDB to look there for source files.
7351
7352 if test -r ${srcdir}/.gdbinit ; then
7353 case ${srcdir} in
7354 .) ;;
7355 *) cat > ./.gdbinit <<EOF
7356 # ${NO_EDIT}
7357 dir ${srcdir}
7358 dir .
7359 source ${srcdir}/.gdbinit
7360 EOF
7361 ;;
7362 esac
7363 fi
7364
7365 # Make sure that the compiler is able to generate an executable. If it
7366 # can't, we are probably in trouble. We don't care whether we can run the
7367 # executable--we might be using a cross compiler--we only care whether it
7368 # can be created. At this point the main configure script has set CC.
7369 we_are_ok=no
7370 echo "int main () { return 0; }" > conftest.c
7371 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7372 if test $? = 0 ; then
7373 if test -s conftest || test -s conftest.exe ; then
7374 we_are_ok=yes
7375 fi
7376 fi
7377 case $we_are_ok in
7378 no)
7379 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7380 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7381 rm -f conftest*
7382 exit 1
7383 ;;
7384 esac
7385 rm -f conftest*
7386
7387 # Decide which environment variable is used to find dynamic libraries.
7388 case "${host}" in
7389 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7390 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7391 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7392 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7393 esac
7394
7395 # On systems where the dynamic library environment variable is PATH,
7396 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7397 # built executables to PATH.
7398 if test "$RPATH_ENVVAR" = PATH; then
7399 GCC_SHLIB_SUBDIR=/shlib
7400 else
7401 GCC_SHLIB_SUBDIR=
7402 fi
7403
7404 # Adjust the toplevel makefile according to whether bootstrap was selected.
7405 case $enable_bootstrap in
7406 yes)
7407 bootstrap_suffix=bootstrap
7408 BUILD_CONFIG=bootstrap-debug
7409 ;;
7410 no)
7411 bootstrap_suffix=no-bootstrap
7412 BUILD_CONFIG=
7413 ;;
7414 esac
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7417 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7418
7419
7420 # Check whether --with-build-config was given.
7421 if test "${with_build_config+set}" = set; then :
7422 withval=$with_build_config; case $with_build_config in
7423 yes) with_build_config= ;;
7424 no) with_build_config= BUILD_CONFIG= ;;
7425 esac
7426 fi
7427
7428
7429 if test "x${with_build_config}" != x; then
7430 BUILD_CONFIG=$with_build_config
7431 else
7432 case $BUILD_CONFIG in
7433 bootstrap-debug)
7434 if echo "int f (void) { return 0; }" > conftest.c &&
7435 ${CC} -c conftest.c &&
7436 mv conftest.o conftest.o.g0 &&
7437 ${CC} -c -g conftest.c &&
7438 mv conftest.o conftest.o.g &&
7439 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7440 :
7441 else
7442 BUILD_CONFIG=
7443 fi
7444 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7445 ;;
7446 esac
7447 fi
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7449 $as_echo "$BUILD_CONFIG" >&6; }
7450
7451
7452 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7454 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7455 # Check whether --enable-vtable-verify was given.
7456 if test "${enable_vtable_verify+set}" = set; then :
7457 enableval=$enable_vtable_verify; case "$enableval" in
7458 yes) enable_vtable_verify=yes ;;
7459 no) enable_vtable_verify=no ;;
7460 *) enable_vtable_verify=no;;
7461 esac
7462 else
7463 enable_vtable_verify=no
7464 fi
7465
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7467 $as_echo "$enable_vtable_verify" >&6; }
7468
7469 # Record target_configdirs and the configure arguments for target and
7470 # build configuration in Makefile.
7471 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7472 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7473 bootstrap_fixincludes=no
7474
7475 # If we are building libgomp, bootstrap it.
7476 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7477 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7478 fi
7479
7480 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7481 # or bootstrap-ubsan, bootstrap it.
7482 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7483 case "$BUILD_CONFIG" in
7484 *bootstrap-asan* | *bootstrap-ubsan* )
7485 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7486 bootstrap_fixincludes=yes
7487 ;;
7488 esac
7489 fi
7490
7491 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7492 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7493 test "$enable_vtable_verify" != no; then
7494 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7495 fi
7496
7497 # Determine whether gdb needs tk/tcl or not.
7498 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7499 # and in that case we want gdb to be built without tk. Ugh!
7500 # In fact I believe gdb is the *only* package directly dependent on tk,
7501 # so we should be able to put the 'maybe's in unconditionally and
7502 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7503 # 100% sure that that's safe though.
7504
7505 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7506 case "$enable_gdbtk" in
7507 no)
7508 GDB_TK="" ;;
7509 yes)
7510 GDB_TK="${gdb_tk}" ;;
7511 *)
7512 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7513 # distro. Eventually someone will fix this and move Insight, nee
7514 # gdbtk to a separate directory.
7515 if test -d ${srcdir}/gdb/gdbtk ; then
7516 GDB_TK="${gdb_tk}"
7517 else
7518 GDB_TK=""
7519 fi
7520 ;;
7521 esac
7522 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7523 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7524
7525 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7526 # else does, only include them if one of these is built. The Makefile
7527 # provides the ordering, so it's enough here to add to the list.
7528 case " ${configdirs} " in
7529 *\ gdb\ *)
7530 configdirs="${configdirs} gnulib gdbsupport"
7531 ;;
7532 *\ gdbserver\ *)
7533 configdirs="${configdirs} gnulib gdbsupport"
7534 ;;
7535 *\ sim\ *)
7536 configdirs="${configdirs} gnulib"
7537 ;;
7538 esac
7539
7540 # Strip out unwanted targets.
7541
7542 # While at that, we remove Makefiles if we were started for recursive
7543 # configuration, so that the top-level Makefile reconfigures them,
7544 # like we used to do when configure itself was recursive.
7545
7546 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7547 # but now we're fixing up the Makefile ourselves with the additional
7548 # commands passed to AC_CONFIG_FILES. Use separate variables
7549 # extrasub-{build,host,target} not because there is any reason to split
7550 # the substitutions up that way, but only to remain below the limit of
7551 # 99 commands in a script, for HP-UX sed.
7552
7553 # Do not nest @if/@endif or @unless/@endunless pairs, because
7554 # configure will not warn you at all.
7555
7556 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7557 yes:yes:*\ gold\ *:*,c++,*) ;;
7558 yes:yes:*\ gold\ *:*)
7559 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7560 ;;
7561 esac
7562
7563 extrasub_build=
7564 for module in ${build_configdirs} ; do
7565 if test -z "${no_recursion}" \
7566 && test -f ${build_subdir}/${module}/Makefile; then
7567 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7568 rm -f ${build_subdir}/${module}/Makefile
7569 fi
7570 extrasub_build="$extrasub_build
7571 /^@if build-$module\$/d
7572 /^@endif build-$module\$/d
7573 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7574 /^@if build-$module-$bootstrap_suffix\$/d
7575 /^@endif build-$module-$bootstrap_suffix\$/d
7576 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7577 done
7578 extrasub_host=
7579 for module in ${configdirs} ; do
7580 if test -z "${no_recursion}"; then
7581 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7582 if test -f ${file}; then
7583 echo 1>&2 "*** removing ${file} to force reconfigure"
7584 rm -f ${file}
7585 fi
7586 done
7587 fi
7588 case ${module},${bootstrap_fixincludes} in
7589 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7590 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7591 esac
7592 extrasub_host="$extrasub_host
7593 /^@if $module\$/d
7594 /^@endif $module\$/d
7595 /^@unless $module\$/,/^@endunless $module\$/d
7596 /^@if $module-$host_bootstrap_suffix\$/d
7597 /^@endif $module-$host_bootstrap_suffix\$/d
7598 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7599 done
7600 extrasub_target=
7601 for module in ${target_configdirs} ; do
7602 if test -z "${no_recursion}" \
7603 && test -f ${target_subdir}/${module}/Makefile; then
7604 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7605 rm -f ${target_subdir}/${module}/Makefile
7606 fi
7607
7608 # We only bootstrap target libraries listed in bootstrap_target_libs.
7609 case $bootstrap_target_libs in
7610 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7611 *) target_bootstrap_suffix=no-bootstrap ;;
7612 esac
7613
7614 extrasub_target="$extrasub_target
7615 /^@if target-$module\$/d
7616 /^@endif target-$module\$/d
7617 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7618 /^@if target-$module-$target_bootstrap_suffix\$/d
7619 /^@endif target-$module-$target_bootstrap_suffix\$/d
7620 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7621 done
7622
7623 # Do the final fixup along with target modules.
7624 extrasub_target="$extrasub_target
7625 /^@if /,/^@endif /d
7626 /^@unless /d
7627 /^@endunless /d"
7628
7629 if test "$enable_pgo_build" != "no"; then
7630 extrasub_build="$extrasub_build
7631 /^@if pgo-build\$/d
7632 /^@endif pgo-build\$/d"
7633 fi
7634
7635 # Create the serialization dependencies. This uses a temporary file.
7636
7637 # Check whether --enable-serial-configure was given.
7638 if test "${enable_serial_configure+set}" = set; then :
7639 enableval=$enable_serial_configure;
7640 fi
7641
7642
7643 case ${enable_serial_configure} in
7644 yes)
7645 enable_serial_build_configure=yes
7646 enable_serial_host_configure=yes
7647 enable_serial_target_configure=yes
7648 ;;
7649 esac
7650
7651 # These force 'configure's to be done one at a time, to avoid problems
7652 # with contention over a shared config.cache.
7653 rm -f serdep.tmp
7654 echo '# serdep.tmp' > serdep.tmp
7655 olditem=
7656 test "x${enable_serial_build_configure}" = xyes &&
7657 for item in ${build_configdirs} ; do
7658 case ${olditem} in
7659 "") ;;
7660 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7661 esac
7662 olditem=${item}
7663 done
7664 olditem=
7665 test "x${enable_serial_host_configure}" = xyes &&
7666 for item in ${configdirs} ; do
7667 case ${olditem} in
7668 "") ;;
7669 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7670 esac
7671 olditem=${item}
7672 done
7673 olditem=
7674 test "x${enable_serial_target_configure}" = xyes &&
7675 for item in ${target_configdirs} ; do
7676 case ${olditem} in
7677 "") ;;
7678 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7679 esac
7680 olditem=${item}
7681 done
7682 serialization_dependencies=serdep.tmp
7683
7684
7685 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7686 # target, nonopt, and variable assignments. These are the ones we
7687 # might not want to pass down to subconfigures. The exception being
7688 # --cache-file=/dev/null, which is used to turn off the use of cache
7689 # files altogether, and which should be passed on to subconfigures.
7690 # Also strip program-prefix, program-suffix, and program-transform-name,
7691 # so that we can pass down a consistent program-transform-name.
7692 baseargs=
7693 tbaseargs=
7694 keep_next=no
7695 skip_next=no
7696 eval "set -- $ac_configure_args"
7697 for ac_arg
7698 do
7699 if test X"$skip_next" = X"yes"; then
7700 skip_next=no
7701 continue
7702 fi
7703 if test X"$keep_next" = X"yes"; then
7704 case $ac_arg in
7705 *\'*)
7706 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7707 esac
7708 baseargs="$baseargs '$ac_arg'"
7709 tbaseargs="$tbaseargs '$ac_arg'"
7710 keep_next=no
7711 continue
7712 fi
7713
7714 # Handle separated arguments. Based on the logic generated by
7715 # autoconf 2.59.
7716 case $ac_arg in
7717 *=* | --config-cache | -C | -disable-* | --disable-* \
7718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7720 | -with-* | --with-* | -without-* | --without-* | --x)
7721 separate_arg=no
7722 ;;
7723 -*)
7724 separate_arg=yes
7725 ;;
7726 *)
7727 separate_arg=no
7728 ;;
7729 esac
7730
7731 skip_targ=no
7732 case $ac_arg in
7733
7734 --with-* | --without-*)
7735 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7736
7737 case $libopt in
7738 *[-_]include)
7739 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7740 ;;
7741 *[-_]lib)
7742 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7743 ;;
7744 *)
7745 lib=$libopt
7746 ;;
7747 esac
7748
7749
7750 case $lib in
7751 mpc | mpfr | gmp | isl)
7752 # If we're processing --with-$lib, --with-$lib-include or
7753 # --with-$lib-lib, for one of the libs above, and target is
7754 # different from host, don't pass the current argument to any
7755 # target library's configure.
7756 if test x$is_cross_compiler = xyes; then
7757 skip_targ=yes
7758 fi
7759 ;;
7760 esac
7761 ;;
7762 esac
7763
7764 case "$ac_arg" in
7765 --cache-file=/dev/null | \
7766 -cache-file=/dev/null )
7767 # Handled here to avoid the test to skip args below.
7768 baseargs="$baseargs '$ac_arg'"
7769 tbaseargs="$tbaseargs '$ac_arg'"
7770 # Assert: $separate_arg should always be no.
7771 keep_next=$separate_arg
7772 ;;
7773 --no*)
7774 continue
7775 ;;
7776 --c* | \
7777 --sr* | \
7778 --ho* | \
7779 --bu* | \
7780 --t* | \
7781 --program-* | \
7782 -cache_file* | \
7783 -srcdir* | \
7784 -host* | \
7785 -build* | \
7786 -target* | \
7787 -program-prefix* | \
7788 -program-suffix* | \
7789 -program-transform-name* )
7790 skip_next=$separate_arg
7791 continue
7792 ;;
7793 -*)
7794 # An option. Add it.
7795 case $ac_arg in
7796 *\'*)
7797 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7798 esac
7799 baseargs="$baseargs '$ac_arg'"
7800 if test X"$skip_targ" = Xno; then
7801 tbaseargs="$tbaseargs '$ac_arg'"
7802 fi
7803 keep_next=$separate_arg
7804 ;;
7805 *)
7806 # Either a variable assignment, or a nonopt (triplet). Don't
7807 # pass it down; let the Makefile handle this.
7808 continue
7809 ;;
7810 esac
7811 done
7812 # Remove the initial space we just introduced and, as these will be
7813 # expanded by make, quote '$'.
7814 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7815
7816 # Add in --program-transform-name, after --program-prefix and
7817 # --program-suffix have been applied to it. Autoconf has already
7818 # doubled dollar signs and backslashes in program_transform_name; we want
7819 # the backslashes un-doubled, and then the entire thing wrapped in single
7820 # quotes, because this will be expanded first by make and then by the shell.
7821 # Also, because we want to override the logic in subdir configure scripts to
7822 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7823 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7824 ${program_transform_name}
7825 EOF_SED
7826 gcc_transform_name=`cat conftestsed.out`
7827 rm -f conftestsed.out
7828 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7829 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7830 if test "$silent" = yes; then
7831 baseargs="$baseargs --silent"
7832 tbaseargs="$tbaseargs --silent"
7833 fi
7834 baseargs="$baseargs --disable-option-checking"
7835 tbaseargs="$tbaseargs --disable-option-checking"
7836
7837 # Record and document user additions to sub configure arguments.
7838
7839
7840
7841
7842 # For the build-side libraries, we just need to pretend we're native,
7843 # and not use the same cache file. Multilibs are neither needed nor
7844 # desired. We can't even use the same cache file for all build-side
7845 # libraries, as they're compiled differently; some with C, some with
7846 # C++ or with different feature-enabling options.
7847 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7848
7849 # For host modules, accept cache file option, or specification as blank.
7850 case "${cache_file}" in
7851 "") # empty
7852 cache_file_option="" ;;
7853 /* | [A-Za-z]:[\\/]* ) # absolute path
7854 cache_file_option="--cache-file=${cache_file}" ;;
7855 *) # relative path
7856 cache_file_option="--cache-file=../${cache_file}" ;;
7857 esac
7858
7859 # Host dirs don't like to share a cache file either, horribly enough.
7860 # This seems to be due to autoconf 2.5x stupidity.
7861 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7862
7863 target_configargs="$target_configargs ${tbaseargs}"
7864
7865 # Passing a --with-cross-host argument lets the target libraries know
7866 # whether they are being built with a cross-compiler or being built
7867 # native. However, it would be better to use other mechanisms to make the
7868 # sorts of decisions they want to make on this basis. Please consider
7869 # this option to be deprecated. FIXME.
7870 if test x${is_cross_compiler} = xyes ; then
7871 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7872 fi
7873
7874 # Special user-friendly check for native x86_64-linux build, if
7875 # multilib is not explicitly enabled.
7876 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7877 x86_64-*linux*:yes:$build:$build:)
7878 # Make sure we have a development environment that handles 32-bit
7879 dev64=no
7880 echo "int main () { return 0; }" > conftest.c
7881 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7882 if test $? = 0 ; then
7883 if test -s conftest || test -s conftest.exe ; then
7884 dev64=yes
7885 fi
7886 fi
7887 rm -f conftest*
7888 if test x${dev64} != xyes ; then
7889 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
7890 fi
7891 ;;
7892 esac
7893
7894 # Default to --enable-multilib.
7895 if test x${enable_multilib} = x ; then
7896 target_configargs="--enable-multilib ${target_configargs}"
7897 fi
7898
7899 # Pass --with-newlib if appropriate. Note that target_configdirs has
7900 # changed from the earlier setting of with_newlib.
7901 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7902 target_configargs="--with-newlib ${target_configargs}"
7903 fi
7904
7905 # Different target subdirs use different values of certain variables
7906 # (notably CXX). Worse, multilibs use *lots* of different values.
7907 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7908 # it doesn't automatically accept command-line overrides of them.
7909 # This means it's not safe for target subdirs to share a cache file,
7910 # which is disgusting, but there you have it. Hopefully this can be
7911 # fixed in future. It's still worthwhile to use a cache file for each
7912 # directory. I think.
7913
7914 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7915 # We need to pass --target, as newer autoconf's requires consistency
7916 # for target_alias and gcc doesn't manage it consistently.
7917 target_configargs="--cache-file=./config.cache ${target_configargs}"
7918
7919 FLAGS_FOR_TARGET=
7920 case " $target_configdirs " in
7921 *" newlib "*)
7922 case " $target_configargs " in
7923 *" --with-newlib "*)
7924 case "$target" in
7925 *-cygwin*)
7926 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7927 ;;
7928 esac
7929
7930 # If we're not building GCC, don't discard standard headers.
7931 if test -d ${srcdir}/gcc; then
7932 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7933
7934 if test "${build}" != "${host}"; then
7935 # On Canadian crosses, CC_FOR_TARGET will have already been set
7936 # by `configure', so we won't have an opportunity to add -Bgcc/
7937 # to it. This is right: we don't want to search that directory
7938 # for binaries, but we want the header files in there, so add
7939 # them explicitly.
7940 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7941
7942 # Someone might think of using the pre-installed headers on
7943 # Canadian crosses, in case the installed compiler is not fully
7944 # compatible with the compiler being built. In this case, it
7945 # would be better to flag an error than risking having
7946 # incompatible object files being constructed. We can't
7947 # guarantee that an error will be flagged, but let's hope the
7948 # compiler will do it, when presented with incompatible header
7949 # files.
7950 fi
7951 fi
7952
7953 case "${target}-${is_cross_compiler}" in
7954 i[3456789]86-*-linux*-no)
7955 # Here host == target, so we don't need to build gcc,
7956 # so we don't want to discard standard headers.
7957 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7958 ;;
7959 *)
7960 # If we're building newlib, use its generic headers last, but search
7961 # for any libc-related directories first (so make it the last -B
7962 # switch).
7963 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7964
7965 # If we're building libgloss, find the startup file, simulator library
7966 # and linker script.
7967 case " $target_configdirs " in
7968 *" libgloss "*)
7969 # Look for startup file, simulator library and maybe linker script.
7970 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7971 # Look for libnosys.a in case the target needs it.
7972 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7973 # Most targets have the linker script in the source directory.
7974 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7975 ;;
7976 esac
7977 ;;
7978 esac
7979 ;;
7980 esac
7981 ;;
7982 esac
7983
7984 case "$target" in
7985 x86_64-*mingw* | *-w64-mingw*)
7986 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7987 # however, use a symlink named 'mingw' in ${prefix} .
7988 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7989 ;;
7990 *-mingw*)
7991 # MinGW can't be handled as Cygwin above since it does not use newlib.
7992 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'
7993 ;;
7994 esac
7995
7996 # Allow the user to override the flags for
7997 # our build compiler if desired.
7998 if test x"${build}" = x"${host}" ; then
7999 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8000 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8001 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8002 fi
8003
8004 # On Canadian crosses, we'll be searching the right directories for
8005 # the previously-installed cross compiler, so don't bother to add
8006 # flags for directories within the install tree of the compiler
8007 # being built; programs in there won't even run.
8008 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8009 # Search for pre-installed headers if nothing else fits.
8010 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8011 fi
8012
8013 if test "x${use_gnu_ld}" = x &&
8014 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8015 # Arrange for us to find uninstalled linker scripts.
8016 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8017 fi
8018
8019 # Search for other target-specific linker scripts and such.
8020 case "${target}" in
8021 mep*)
8022 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8023 ;;
8024 esac
8025
8026 # Makefile fragments.
8027 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8028 do
8029 eval fragval=\$$frag
8030 if test $fragval != /dev/null; then
8031 eval $frag=${srcdir}/$fragval
8032 fi
8033 done
8034
8035
8036
8037
8038
8039 # Miscellanea: directories, flags, etc.
8040
8041
8042
8043
8044
8045
8046
8047
8048 # Build module lists & subconfigure args.
8049
8050
8051
8052 # Host module lists & subconfigure args.
8053
8054
8055
8056
8057 # Target module lists & subconfigure args.
8058
8059
8060
8061 # Build tools.
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 # Generate default definitions for YACC, M4, LEX and other programs that run
8079 # on the build machine. These are used if the Makefile can't locate these
8080 # programs in objdir.
8081 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8082
8083 for ac_prog in 'bison -y' byacc yacc
8084 do
8085 # Extract the first word of "$ac_prog", so it can be a program name with args.
8086 set dummy $ac_prog; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_YACC+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 if test -n "$YACC"; then
8093 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_YACC="$ac_prog"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 YACC=$ac_cv_prog_YACC
8113 if test -n "$YACC"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8115 $as_echo "$YACC" >&6; }
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121
8122 test -n "$YACC" && break
8123 done
8124 test -n "$YACC" || YACC="$MISSING bison -y"
8125
8126 case " $build_configdirs " in
8127 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8128 esac
8129
8130 for ac_prog in bison
8131 do
8132 # Extract the first word of "$ac_prog", so it can be a program name with args.
8133 set dummy $ac_prog; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_prog_BISON+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 if test -n "$BISON"; then
8140 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8144 do
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149 ac_cv_prog_BISON="$ac_prog"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8152 fi
8153 done
8154 done
8155 IFS=$as_save_IFS
8156
8157 fi
8158 fi
8159 BISON=$ac_cv_prog_BISON
8160 if test -n "$BISON"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8162 $as_echo "$BISON" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8166 fi
8167
8168
8169 test -n "$BISON" && break
8170 done
8171 test -n "$BISON" || BISON="$MISSING bison"
8172
8173 case " $build_configdirs " in
8174 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8175 esac
8176
8177 for ac_prog in gm4 gnum4 m4
8178 do
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180 set dummy $ac_prog; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if ${ac_cv_prog_M4+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 if test -n "$M4"; then
8187 ac_cv_prog_M4="$M4" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_prog_M4="$ac_prog"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8199 fi
8200 done
8201 done
8202 IFS=$as_save_IFS
8203
8204 fi
8205 fi
8206 M4=$ac_cv_prog_M4
8207 if test -n "$M4"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8209 $as_echo "$M4" >&6; }
8210 else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8213 fi
8214
8215
8216 test -n "$M4" && break
8217 done
8218 test -n "$M4" || M4="$MISSING m4"
8219
8220 case " $build_configdirs " in
8221 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8222 esac
8223
8224 for ac_prog in flex lex
8225 do
8226 # Extract the first word of "$ac_prog", so it can be a program name with args.
8227 set dummy $ac_prog; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if ${ac_cv_prog_LEX+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 if test -n "$LEX"; then
8234 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243 ac_cv_prog_LEX="$ac_prog"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247 done
8248 done
8249 IFS=$as_save_IFS
8250
8251 fi
8252 fi
8253 LEX=$ac_cv_prog_LEX
8254 if test -n "$LEX"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8256 $as_echo "$LEX" >&6; }
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8260 fi
8261
8262
8263 test -n "$LEX" && break
8264 done
8265 test -n "$LEX" || LEX="$MISSING flex"
8266
8267 case " $build_configdirs " in
8268 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8269 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8270 esac
8271
8272 for ac_prog in flex
8273 do
8274 # Extract the first word of "$ac_prog", so it can be a program name with args.
8275 set dummy $ac_prog; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if ${ac_cv_prog_FLEX+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 if test -n "$FLEX"; then
8282 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8291 ac_cv_prog_FLEX="$ac_prog"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 break 2
8294 fi
8295 done
8296 done
8297 IFS=$as_save_IFS
8298
8299 fi
8300 fi
8301 FLEX=$ac_cv_prog_FLEX
8302 if test -n "$FLEX"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8304 $as_echo "$FLEX" >&6; }
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8308 fi
8309
8310
8311 test -n "$FLEX" && break
8312 done
8313 test -n "$FLEX" || FLEX="$MISSING flex"
8314
8315 case " $build_configdirs " in
8316 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8317 esac
8318
8319 for ac_prog in makeinfo
8320 do
8321 # Extract the first word of "$ac_prog", so it can be a program name with args.
8322 set dummy $ac_prog; ac_word=$2
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324 $as_echo_n "checking for $ac_word... " >&6; }
8325 if ${ac_cv_prog_MAKEINFO+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 if test -n "$MAKEINFO"; then
8329 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8330 else
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8333 do
8334 IFS=$as_save_IFS
8335 test -z "$as_dir" && as_dir=.
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8338 ac_cv_prog_MAKEINFO="$ac_prog"
8339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 break 2
8341 fi
8342 done
8343 done
8344 IFS=$as_save_IFS
8345
8346 fi
8347 fi
8348 MAKEINFO=$ac_cv_prog_MAKEINFO
8349 if test -n "$MAKEINFO"; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8351 $as_echo "$MAKEINFO" >&6; }
8352 else
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8355 fi
8356
8357
8358 test -n "$MAKEINFO" && break
8359 done
8360 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8361
8362 case " $build_configdirs " in
8363 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8364 *)
8365
8366 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8367 # higher, else we use the "missing" dummy.
8368 if ${MAKEINFO} --version \
8369 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8370 :
8371 else
8372 MAKEINFO="$MISSING makeinfo"
8373 fi
8374 ;;
8375
8376 esac
8377
8378 # FIXME: expect and dejagnu may become build tools?
8379
8380 for ac_prog in expect
8381 do
8382 # Extract the first word of "$ac_prog", so it can be a program name with args.
8383 set dummy $ac_prog; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if ${ac_cv_prog_EXPECT+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 if test -n "$EXPECT"; then
8390 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8394 do
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8399 ac_cv_prog_EXPECT="$ac_prog"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8402 fi
8403 done
8404 done
8405 IFS=$as_save_IFS
8406
8407 fi
8408 fi
8409 EXPECT=$ac_cv_prog_EXPECT
8410 if test -n "$EXPECT"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8412 $as_echo "$EXPECT" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 fi
8417
8418
8419 test -n "$EXPECT" && break
8420 done
8421 test -n "$EXPECT" || EXPECT="expect"
8422
8423 case " $configdirs " in
8424 *" expect "*)
8425 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8426 ;;
8427 esac
8428
8429 for ac_prog in runtest
8430 do
8431 # Extract the first word of "$ac_prog", so it can be a program name with args.
8432 set dummy $ac_prog; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_RUNTEST+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 if test -n "$RUNTEST"; then
8439 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_RUNTEST="$ac_prog"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8451 fi
8452 done
8453 done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 RUNTEST=$ac_cv_prog_RUNTEST
8459 if test -n "$RUNTEST"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8461 $as_echo "$RUNTEST" >&6; }
8462 else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467
8468 test -n "$RUNTEST" && break
8469 done
8470 test -n "$RUNTEST" || RUNTEST="runtest"
8471
8472 case " $configdirs " in
8473 *" dejagnu "*)
8474 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8475 ;;
8476 esac
8477
8478
8479 # Host tools.
8480 ncn_tool_prefix=
8481 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8482 ncn_target_tool_prefix=
8483 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8484
8485
8486
8487 if test -n "$AR"; then
8488 ac_cv_prog_AR=$AR
8489 elif test -n "$ac_cv_prog_AR"; then
8490 AR=$ac_cv_prog_AR
8491 fi
8492
8493 if test -n "$ac_cv_prog_AR"; then
8494 for ncn_progname in ar; do
8495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8496 set dummy ${ncn_progname}; ac_word=$2
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; }
8499 if ${ac_cv_prog_AR+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 if test -n "$AR"; then
8503 ac_cv_prog_AR="$AR" # Let the user override the test.
8504 else
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512 ac_cv_prog_AR="${ncn_progname}"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8515 fi
8516 done
8517 done
8518 IFS=$as_save_IFS
8519
8520 fi
8521 fi
8522 AR=$ac_cv_prog_AR
8523 if test -n "$AR"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8525 $as_echo "$AR" >&6; }
8526 else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8529 fi
8530
8531
8532 done
8533 fi
8534
8535 for ncn_progname in ar; do
8536 if test -n "$ncn_tool_prefix"; then
8537 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8538 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_AR+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 if test -n "$AR"; then
8545 ac_cv_prog_AR="$AR" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8549 do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8557 fi
8558 done
8559 done
8560 IFS=$as_save_IFS
8561
8562 fi
8563 fi
8564 AR=$ac_cv_prog_AR
8565 if test -n "$AR"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8567 $as_echo "$AR" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573
8574 fi
8575 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8577 set dummy ${ncn_progname}; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if ${ac_cv_prog_AR+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 if test -n "$AR"; then
8584 ac_cv_prog_AR="$AR" # Let the user override the test.
8585 else
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 for as_dir in $PATH
8588 do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8593 ac_cv_prog_AR="${ncn_progname}"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8596 fi
8597 done
8598 done
8599 IFS=$as_save_IFS
8600
8601 fi
8602 fi
8603 AR=$ac_cv_prog_AR
8604 if test -n "$AR"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8606 $as_echo "$AR" >&6; }
8607 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8610 fi
8611
8612
8613 fi
8614 test -n "$ac_cv_prog_AR" && break
8615 done
8616
8617 if test -z "$ac_cv_prog_AR" ; then
8618 set dummy ar
8619 if test $build = $host ; then
8620 AR="$2"
8621 else
8622 AR="${ncn_tool_prefix}$2"
8623 fi
8624 fi
8625
8626
8627
8628 if test -n "$AS"; then
8629 ac_cv_prog_AS=$AS
8630 elif test -n "$ac_cv_prog_AS"; then
8631 AS=$ac_cv_prog_AS
8632 fi
8633
8634 if test -n "$ac_cv_prog_AS"; then
8635 for ncn_progname in as; do
8636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8637 set dummy ${ncn_progname}; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if ${ac_cv_prog_AS+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 if test -n "$AS"; then
8644 ac_cv_prog_AS="$AS" # Let the user override the test.
8645 else
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_AS="${ncn_progname}"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8656 fi
8657 done
8658 done
8659 IFS=$as_save_IFS
8660
8661 fi
8662 fi
8663 AS=$ac_cv_prog_AS
8664 if test -n "$AS"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8666 $as_echo "$AS" >&6; }
8667 else
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8670 fi
8671
8672
8673 done
8674 fi
8675
8676 for ncn_progname in as; do
8677 if test -n "$ncn_tool_prefix"; then
8678 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8679 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681 $as_echo_n "checking for $ac_word... " >&6; }
8682 if ${ac_cv_prog_AS+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 if test -n "$AS"; then
8686 ac_cv_prog_AS="$AS" # Let the user override the test.
8687 else
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8690 do
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 break 2
8698 fi
8699 done
8700 done
8701 IFS=$as_save_IFS
8702
8703 fi
8704 fi
8705 AS=$ac_cv_prog_AS
8706 if test -n "$AS"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8708 $as_echo "$AS" >&6; }
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8712 fi
8713
8714
8715 fi
8716 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8718 set dummy ${ncn_progname}; ac_word=$2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720 $as_echo_n "checking for $ac_word... " >&6; }
8721 if ${ac_cv_prog_AS+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 if test -n "$AS"; then
8725 ac_cv_prog_AS="$AS" # Let the user override the test.
8726 else
8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728 for as_dir in $PATH
8729 do
8730 IFS=$as_save_IFS
8731 test -z "$as_dir" && as_dir=.
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8734 ac_cv_prog_AS="${ncn_progname}"
8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 break 2
8737 fi
8738 done
8739 done
8740 IFS=$as_save_IFS
8741
8742 fi
8743 fi
8744 AS=$ac_cv_prog_AS
8745 if test -n "$AS"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8747 $as_echo "$AS" >&6; }
8748 else
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 $as_echo "no" >&6; }
8751 fi
8752
8753
8754 fi
8755 test -n "$ac_cv_prog_AS" && break
8756 done
8757
8758 if test -z "$ac_cv_prog_AS" ; then
8759 set dummy as
8760 if test $build = $host ; then
8761 AS="$2"
8762 else
8763 AS="${ncn_tool_prefix}$2"
8764 fi
8765 fi
8766
8767
8768
8769 if test -n "$DLLTOOL"; then
8770 ac_cv_prog_DLLTOOL=$DLLTOOL
8771 elif test -n "$ac_cv_prog_DLLTOOL"; then
8772 DLLTOOL=$ac_cv_prog_DLLTOOL
8773 fi
8774
8775 if test -n "$ac_cv_prog_DLLTOOL"; then
8776 for ncn_progname in dlltool; do
8777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8778 set dummy ${ncn_progname}; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 $as_echo_n "checking for $ac_word... " >&6; }
8781 if ${ac_cv_prog_DLLTOOL+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 if test -n "$DLLTOOL"; then
8785 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8786 else
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788 for as_dir in $PATH
8789 do
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8794 ac_cv_prog_DLLTOOL="${ncn_progname}"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8797 fi
8798 done
8799 done
8800 IFS=$as_save_IFS
8801
8802 fi
8803 fi
8804 DLLTOOL=$ac_cv_prog_DLLTOOL
8805 if test -n "$DLLTOOL"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8807 $as_echo "$DLLTOOL" >&6; }
8808 else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8811 fi
8812
8813
8814 done
8815 fi
8816
8817 for ncn_progname in dlltool; do
8818 if test -n "$ncn_tool_prefix"; then
8819 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8820 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if ${ac_cv_prog_DLLTOOL+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 if test -n "$DLLTOOL"; then
8827 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8839 fi
8840 done
8841 done
8842 IFS=$as_save_IFS
8843
8844 fi
8845 fi
8846 DLLTOOL=$ac_cv_prog_DLLTOOL
8847 if test -n "$DLLTOOL"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8849 $as_echo "$DLLTOOL" >&6; }
8850 else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855
8856 fi
8857 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8859 set dummy ${ncn_progname}; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_prog_DLLTOOL+:} false; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 if test -n "$DLLTOOL"; then
8866 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_DLLTOOL="${ncn_progname}"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 break 2
8878 fi
8879 done
8880 done
8881 IFS=$as_save_IFS
8882
8883 fi
8884 fi
8885 DLLTOOL=$ac_cv_prog_DLLTOOL
8886 if test -n "$DLLTOOL"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8888 $as_echo "$DLLTOOL" >&6; }
8889 else
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8892 fi
8893
8894
8895 fi
8896 test -n "$ac_cv_prog_DLLTOOL" && break
8897 done
8898
8899 if test -z "$ac_cv_prog_DLLTOOL" ; then
8900 set dummy dlltool
8901 if test $build = $host ; then
8902 DLLTOOL="$2"
8903 else
8904 DLLTOOL="${ncn_tool_prefix}$2"
8905 fi
8906 fi
8907
8908
8909
8910 if test -n "$LD"; then
8911 ac_cv_prog_LD=$LD
8912 elif test -n "$ac_cv_prog_LD"; then
8913 LD=$ac_cv_prog_LD
8914 fi
8915
8916 if test -n "$ac_cv_prog_LD"; then
8917 for ncn_progname in ld; do
8918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8919 set dummy ${ncn_progname}; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_prog_LD+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 if test -n "$LD"; then
8926 ac_cv_prog_LD="$LD" # Let the user override the test.
8927 else
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8930 do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_LD="${ncn_progname}"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939 done
8940 done
8941 IFS=$as_save_IFS
8942
8943 fi
8944 fi
8945 LD=$ac_cv_prog_LD
8946 if test -n "$LD"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8948 $as_echo "$LD" >&6; }
8949 else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8952 fi
8953
8954
8955 done
8956 fi
8957
8958 for ncn_progname in ld; do
8959 if test -n "$ncn_tool_prefix"; then
8960 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8961 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_prog_LD+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 if test -n "$LD"; then
8968 ac_cv_prog_LD="$LD" # Let the user override the test.
8969 else
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH
8972 do
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8977 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 break 2
8980 fi
8981 done
8982 done
8983 IFS=$as_save_IFS
8984
8985 fi
8986 fi
8987 LD=$ac_cv_prog_LD
8988 if test -n "$LD"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8990 $as_echo "$LD" >&6; }
8991 else
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8994 fi
8995
8996
8997 fi
8998 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9000 set dummy ${ncn_progname}; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002 $as_echo_n "checking for $ac_word... " >&6; }
9003 if ${ac_cv_prog_LD+:} false; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 if test -n "$LD"; then
9007 ac_cv_prog_LD="$LD" # Let the user override the test.
9008 else
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 for as_dir in $PATH
9011 do
9012 IFS=$as_save_IFS
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016 ac_cv_prog_LD="${ncn_progname}"
9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 break 2
9019 fi
9020 done
9021 done
9022 IFS=$as_save_IFS
9023
9024 fi
9025 fi
9026 LD=$ac_cv_prog_LD
9027 if test -n "$LD"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9029 $as_echo "$LD" >&6; }
9030 else
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9033 fi
9034
9035
9036 fi
9037 test -n "$ac_cv_prog_LD" && break
9038 done
9039
9040 if test -z "$ac_cv_prog_LD" ; then
9041 set dummy ld
9042 if test $build = $host ; then
9043 LD="$2"
9044 else
9045 LD="${ncn_tool_prefix}$2"
9046 fi
9047 fi
9048
9049
9050
9051 if test -n "$LIPO"; then
9052 ac_cv_prog_LIPO=$LIPO
9053 elif test -n "$ac_cv_prog_LIPO"; then
9054 LIPO=$ac_cv_prog_LIPO
9055 fi
9056
9057 if test -n "$ac_cv_prog_LIPO"; then
9058 for ncn_progname in lipo; do
9059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9060 set dummy ${ncn_progname}; ac_word=$2
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062 $as_echo_n "checking for $ac_word... " >&6; }
9063 if ${ac_cv_prog_LIPO+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 if test -n "$LIPO"; then
9067 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9068 else
9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 for as_dir in $PATH
9071 do
9072 IFS=$as_save_IFS
9073 test -z "$as_dir" && as_dir=.
9074 for ac_exec_ext in '' $ac_executable_extensions; do
9075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9076 ac_cv_prog_LIPO="${ncn_progname}"
9077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9078 break 2
9079 fi
9080 done
9081 done
9082 IFS=$as_save_IFS
9083
9084 fi
9085 fi
9086 LIPO=$ac_cv_prog_LIPO
9087 if test -n "$LIPO"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9089 $as_echo "$LIPO" >&6; }
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9093 fi
9094
9095
9096 done
9097 fi
9098
9099 for ncn_progname in lipo; do
9100 if test -n "$ncn_tool_prefix"; then
9101 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9102 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 $as_echo_n "checking for $ac_word... " >&6; }
9105 if ${ac_cv_prog_LIPO+:} false; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 if test -n "$LIPO"; then
9109 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9110 else
9111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112 for as_dir in $PATH
9113 do
9114 IFS=$as_save_IFS
9115 test -z "$as_dir" && as_dir=.
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9118 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120 break 2
9121 fi
9122 done
9123 done
9124 IFS=$as_save_IFS
9125
9126 fi
9127 fi
9128 LIPO=$ac_cv_prog_LIPO
9129 if test -n "$LIPO"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9131 $as_echo "$LIPO" >&6; }
9132 else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9135 fi
9136
9137
9138 fi
9139 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9141 set dummy ${ncn_progname}; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if ${ac_cv_prog_LIPO+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 if test -n "$LIPO"; then
9148 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9149 else
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9152 do
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9157 ac_cv_prog_LIPO="${ncn_progname}"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 break 2
9160 fi
9161 done
9162 done
9163 IFS=$as_save_IFS
9164
9165 fi
9166 fi
9167 LIPO=$ac_cv_prog_LIPO
9168 if test -n "$LIPO"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9170 $as_echo "$LIPO" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9174 fi
9175
9176
9177 fi
9178 test -n "$ac_cv_prog_LIPO" && break
9179 done
9180
9181 if test -z "$ac_cv_prog_LIPO" ; then
9182 set dummy lipo
9183 if test $build = $host ; then
9184 LIPO="$2"
9185 else
9186 LIPO="${ncn_tool_prefix}$2"
9187 fi
9188 fi
9189
9190
9191
9192 if test -n "$NM"; then
9193 ac_cv_prog_NM=$NM
9194 elif test -n "$ac_cv_prog_NM"; then
9195 NM=$ac_cv_prog_NM
9196 fi
9197
9198 if test -n "$ac_cv_prog_NM"; then
9199 for ncn_progname in nm; do
9200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9201 set dummy ${ncn_progname}; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if ${ac_cv_prog_NM+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 if test -n "$NM"; then
9208 ac_cv_prog_NM="$NM" # Let the user override the test.
9209 else
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in $PATH
9212 do
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217 ac_cv_prog_NM="${ncn_progname}"
9218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9220 fi
9221 done
9222 done
9223 IFS=$as_save_IFS
9224
9225 fi
9226 fi
9227 NM=$ac_cv_prog_NM
9228 if test -n "$NM"; then
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9230 $as_echo "$NM" >&6; }
9231 else
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9234 fi
9235
9236
9237 done
9238 fi
9239
9240 for ncn_progname in nm; do
9241 if test -n "$ncn_tool_prefix"; then
9242 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9243 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 $as_echo_n "checking for $ac_word... " >&6; }
9246 if ${ac_cv_prog_NM+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 if test -n "$NM"; then
9250 ac_cv_prog_NM="$NM" # Let the user override the test.
9251 else
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 for as_dir in $PATH
9254 do
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9259 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9262 fi
9263 done
9264 done
9265 IFS=$as_save_IFS
9266
9267 fi
9268 fi
9269 NM=$ac_cv_prog_NM
9270 if test -n "$NM"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9272 $as_echo "$NM" >&6; }
9273 else
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9276 fi
9277
9278
9279 fi
9280 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9282 set dummy ${ncn_progname}; ac_word=$2
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284 $as_echo_n "checking for $ac_word... " >&6; }
9285 if ${ac_cv_prog_NM+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 if test -n "$NM"; then
9289 ac_cv_prog_NM="$NM" # Let the user override the test.
9290 else
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298 ac_cv_prog_NM="${ncn_progname}"
9299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 break 2
9301 fi
9302 done
9303 done
9304 IFS=$as_save_IFS
9305
9306 fi
9307 fi
9308 NM=$ac_cv_prog_NM
9309 if test -n "$NM"; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9311 $as_echo "$NM" >&6; }
9312 else
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314 $as_echo "no" >&6; }
9315 fi
9316
9317
9318 fi
9319 test -n "$ac_cv_prog_NM" && break
9320 done
9321
9322 if test -z "$ac_cv_prog_NM" ; then
9323 set dummy nm
9324 if test $build = $host ; then
9325 NM="$2"
9326 else
9327 NM="${ncn_tool_prefix}$2"
9328 fi
9329 fi
9330
9331
9332
9333 if test -n "$RANLIB"; then
9334 ac_cv_prog_RANLIB=$RANLIB
9335 elif test -n "$ac_cv_prog_RANLIB"; then
9336 RANLIB=$ac_cv_prog_RANLIB
9337 fi
9338
9339 if test -n "$ac_cv_prog_RANLIB"; then
9340 for ncn_progname in ranlib; do
9341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9342 set dummy ${ncn_progname}; ac_word=$2
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344 $as_echo_n "checking for $ac_word... " >&6; }
9345 if ${ac_cv_prog_RANLIB+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 if test -n "$RANLIB"; then
9349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9350 else
9351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352 for as_dir in $PATH
9353 do
9354 IFS=$as_save_IFS
9355 test -z "$as_dir" && as_dir=.
9356 for ac_exec_ext in '' $ac_executable_extensions; do
9357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9358 ac_cv_prog_RANLIB="${ncn_progname}"
9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 break 2
9361 fi
9362 done
9363 done
9364 IFS=$as_save_IFS
9365
9366 fi
9367 fi
9368 RANLIB=$ac_cv_prog_RANLIB
9369 if test -n "$RANLIB"; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9371 $as_echo "$RANLIB" >&6; }
9372 else
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 $as_echo "no" >&6; }
9375 fi
9376
9377
9378 done
9379 fi
9380
9381 for ncn_progname in ranlib; do
9382 if test -n "$ncn_tool_prefix"; then
9383 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9384 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if ${ac_cv_prog_RANLIB+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 if test -n "$RANLIB"; then
9391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9392 else
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9395 do
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 break 2
9403 fi
9404 done
9405 done
9406 IFS=$as_save_IFS
9407
9408 fi
9409 fi
9410 RANLIB=$ac_cv_prog_RANLIB
9411 if test -n "$RANLIB"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9413 $as_echo "$RANLIB" >&6; }
9414 else
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9417 fi
9418
9419
9420 fi
9421 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9423 set dummy ${ncn_progname}; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if ${ac_cv_prog_RANLIB+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 if test -n "$RANLIB"; then
9430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9431 else
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9434 do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9439 ac_cv_prog_RANLIB="${ncn_progname}"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443 done
9444 done
9445 IFS=$as_save_IFS
9446
9447 fi
9448 fi
9449 RANLIB=$ac_cv_prog_RANLIB
9450 if test -n "$RANLIB"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9452 $as_echo "$RANLIB" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 fi
9457
9458
9459 fi
9460 test -n "$ac_cv_prog_RANLIB" && break
9461 done
9462
9463 if test -z "$ac_cv_prog_RANLIB" ; then
9464 RANLIB="true"
9465 fi
9466
9467
9468
9469 if test -n "$STRIP"; then
9470 ac_cv_prog_STRIP=$STRIP
9471 elif test -n "$ac_cv_prog_STRIP"; then
9472 STRIP=$ac_cv_prog_STRIP
9473 fi
9474
9475 if test -n "$ac_cv_prog_STRIP"; then
9476 for ncn_progname in strip; do
9477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9478 set dummy ${ncn_progname}; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if ${ac_cv_prog_STRIP+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 if test -n "$STRIP"; then
9485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9486 else
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in $PATH
9489 do
9490 IFS=$as_save_IFS
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9494 ac_cv_prog_STRIP="${ncn_progname}"
9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496 break 2
9497 fi
9498 done
9499 done
9500 IFS=$as_save_IFS
9501
9502 fi
9503 fi
9504 STRIP=$ac_cv_prog_STRIP
9505 if test -n "$STRIP"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9507 $as_echo "$STRIP" >&6; }
9508 else
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9511 fi
9512
9513
9514 done
9515 fi
9516
9517 for ncn_progname in strip; do
9518 if test -n "$ncn_tool_prefix"; then
9519 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9520 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522 $as_echo_n "checking for $ac_word... " >&6; }
9523 if ${ac_cv_prog_STRIP+:} false; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 if test -n "$STRIP"; then
9527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9528 else
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9531 do
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9536 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9539 fi
9540 done
9541 done
9542 IFS=$as_save_IFS
9543
9544 fi
9545 fi
9546 STRIP=$ac_cv_prog_STRIP
9547 if test -n "$STRIP"; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9549 $as_echo "$STRIP" >&6; }
9550 else
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553 fi
9554
9555
9556 fi
9557 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9559 set dummy ${ncn_progname}; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if ${ac_cv_prog_STRIP+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 if test -n "$STRIP"; then
9566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9567 else
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9570 do
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575 ac_cv_prog_STRIP="${ncn_progname}"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9578 fi
9579 done
9580 done
9581 IFS=$as_save_IFS
9582
9583 fi
9584 fi
9585 STRIP=$ac_cv_prog_STRIP
9586 if test -n "$STRIP"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9588 $as_echo "$STRIP" >&6; }
9589 else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593
9594
9595 fi
9596 test -n "$ac_cv_prog_STRIP" && break
9597 done
9598
9599 if test -z "$ac_cv_prog_STRIP" ; then
9600 STRIP="true"
9601 fi
9602
9603
9604
9605 if test -n "$WINDRES"; then
9606 ac_cv_prog_WINDRES=$WINDRES
9607 elif test -n "$ac_cv_prog_WINDRES"; then
9608 WINDRES=$ac_cv_prog_WINDRES
9609 fi
9610
9611 if test -n "$ac_cv_prog_WINDRES"; then
9612 for ncn_progname in windres; do
9613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9614 set dummy ${ncn_progname}; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if ${ac_cv_prog_WINDRES+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 if test -n "$WINDRES"; then
9621 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9622 else
9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624 for as_dir in $PATH
9625 do
9626 IFS=$as_save_IFS
9627 test -z "$as_dir" && as_dir=.
9628 for ac_exec_ext in '' $ac_executable_extensions; do
9629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9630 ac_cv_prog_WINDRES="${ncn_progname}"
9631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9632 break 2
9633 fi
9634 done
9635 done
9636 IFS=$as_save_IFS
9637
9638 fi
9639 fi
9640 WINDRES=$ac_cv_prog_WINDRES
9641 if test -n "$WINDRES"; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9643 $as_echo "$WINDRES" >&6; }
9644 else
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9647 fi
9648
9649
9650 done
9651 fi
9652
9653 for ncn_progname in windres; do
9654 if test -n "$ncn_tool_prefix"; then
9655 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9656 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658 $as_echo_n "checking for $ac_word... " >&6; }
9659 if ${ac_cv_prog_WINDRES+:} false; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662 if test -n "$WINDRES"; then
9663 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9664 else
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 for as_dir in $PATH
9667 do
9668 IFS=$as_save_IFS
9669 test -z "$as_dir" && as_dir=.
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9672 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 break 2
9675 fi
9676 done
9677 done
9678 IFS=$as_save_IFS
9679
9680 fi
9681 fi
9682 WINDRES=$ac_cv_prog_WINDRES
9683 if test -n "$WINDRES"; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9685 $as_echo "$WINDRES" >&6; }
9686 else
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688 $as_echo "no" >&6; }
9689 fi
9690
9691
9692 fi
9693 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9695 set dummy ${ncn_progname}; ac_word=$2
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9697 $as_echo_n "checking for $ac_word... " >&6; }
9698 if ${ac_cv_prog_WINDRES+:} false; then :
9699 $as_echo_n "(cached) " >&6
9700 else
9701 if test -n "$WINDRES"; then
9702 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9703 else
9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705 for as_dir in $PATH
9706 do
9707 IFS=$as_save_IFS
9708 test -z "$as_dir" && as_dir=.
9709 for ac_exec_ext in '' $ac_executable_extensions; do
9710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9711 ac_cv_prog_WINDRES="${ncn_progname}"
9712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9713 break 2
9714 fi
9715 done
9716 done
9717 IFS=$as_save_IFS
9718
9719 fi
9720 fi
9721 WINDRES=$ac_cv_prog_WINDRES
9722 if test -n "$WINDRES"; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9724 $as_echo "$WINDRES" >&6; }
9725 else
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 $as_echo "no" >&6; }
9728 fi
9729
9730
9731 fi
9732 test -n "$ac_cv_prog_WINDRES" && break
9733 done
9734
9735 if test -z "$ac_cv_prog_WINDRES" ; then
9736 set dummy windres
9737 if test $build = $host ; then
9738 WINDRES="$2"
9739 else
9740 WINDRES="${ncn_tool_prefix}$2"
9741 fi
9742 fi
9743
9744
9745
9746 if test -n "$WINDMC"; then
9747 ac_cv_prog_WINDMC=$WINDMC
9748 elif test -n "$ac_cv_prog_WINDMC"; then
9749 WINDMC=$ac_cv_prog_WINDMC
9750 fi
9751
9752 if test -n "$ac_cv_prog_WINDMC"; then
9753 for ncn_progname in windmc; do
9754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9755 set dummy ${ncn_progname}; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757 $as_echo_n "checking for $ac_word... " >&6; }
9758 if ${ac_cv_prog_WINDMC+:} false; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 if test -n "$WINDMC"; then
9762 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9763 else
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 for as_dir in $PATH
9766 do
9767 IFS=$as_save_IFS
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9771 ac_cv_prog_WINDMC="${ncn_progname}"
9772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9773 break 2
9774 fi
9775 done
9776 done
9777 IFS=$as_save_IFS
9778
9779 fi
9780 fi
9781 WINDMC=$ac_cv_prog_WINDMC
9782 if test -n "$WINDMC"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9784 $as_echo "$WINDMC" >&6; }
9785 else
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9788 fi
9789
9790
9791 done
9792 fi
9793
9794 for ncn_progname in windmc; do
9795 if test -n "$ncn_tool_prefix"; then
9796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9797 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799 $as_echo_n "checking for $ac_word... " >&6; }
9800 if ${ac_cv_prog_WINDMC+:} false; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 if test -n "$WINDMC"; then
9804 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9805 else
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 for as_dir in $PATH
9808 do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9813 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9816 fi
9817 done
9818 done
9819 IFS=$as_save_IFS
9820
9821 fi
9822 fi
9823 WINDMC=$ac_cv_prog_WINDMC
9824 if test -n "$WINDMC"; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9826 $as_echo "$WINDMC" >&6; }
9827 else
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829 $as_echo "no" >&6; }
9830 fi
9831
9832
9833 fi
9834 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9836 set dummy ${ncn_progname}; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_prog_WINDMC+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 if test -n "$WINDMC"; then
9843 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9844 else
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9847 do
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_prog_WINDMC="${ncn_progname}"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 break 2
9855 fi
9856 done
9857 done
9858 IFS=$as_save_IFS
9859
9860 fi
9861 fi
9862 WINDMC=$ac_cv_prog_WINDMC
9863 if test -n "$WINDMC"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9865 $as_echo "$WINDMC" >&6; }
9866 else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9869 fi
9870
9871
9872 fi
9873 test -n "$ac_cv_prog_WINDMC" && break
9874 done
9875
9876 if test -z "$ac_cv_prog_WINDMC" ; then
9877 set dummy windmc
9878 if test $build = $host ; then
9879 WINDMC="$2"
9880 else
9881 WINDMC="${ncn_tool_prefix}$2"
9882 fi
9883 fi
9884
9885
9886
9887 if test -n "$OBJCOPY"; then
9888 ac_cv_prog_OBJCOPY=$OBJCOPY
9889 elif test -n "$ac_cv_prog_OBJCOPY"; then
9890 OBJCOPY=$ac_cv_prog_OBJCOPY
9891 fi
9892
9893 if test -n "$ac_cv_prog_OBJCOPY"; then
9894 for ncn_progname in objcopy; do
9895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9896 set dummy ${ncn_progname}; ac_word=$2
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 $as_echo_n "checking for $ac_word... " >&6; }
9899 if ${ac_cv_prog_OBJCOPY+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 if test -n "$OBJCOPY"; then
9903 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9904 else
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906 for as_dir in $PATH
9907 do
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9912 ac_cv_prog_OBJCOPY="${ncn_progname}"
9913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 break 2
9915 fi
9916 done
9917 done
9918 IFS=$as_save_IFS
9919
9920 fi
9921 fi
9922 OBJCOPY=$ac_cv_prog_OBJCOPY
9923 if test -n "$OBJCOPY"; then
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9925 $as_echo "$OBJCOPY" >&6; }
9926 else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9929 fi
9930
9931
9932 done
9933 fi
9934
9935 for ncn_progname in objcopy; do
9936 if test -n "$ncn_tool_prefix"; then
9937 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9938 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if ${ac_cv_prog_OBJCOPY+:} false; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 if test -n "$OBJCOPY"; then
9945 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9946 else
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9949 do
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 break 2
9957 fi
9958 done
9959 done
9960 IFS=$as_save_IFS
9961
9962 fi
9963 fi
9964 OBJCOPY=$ac_cv_prog_OBJCOPY
9965 if test -n "$OBJCOPY"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9967 $as_echo "$OBJCOPY" >&6; }
9968 else
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9971 fi
9972
9973
9974 fi
9975 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9977 set dummy ${ncn_progname}; ac_word=$2
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979 $as_echo_n "checking for $ac_word... " >&6; }
9980 if ${ac_cv_prog_OBJCOPY+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 if test -n "$OBJCOPY"; then
9984 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9985 else
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987 for as_dir in $PATH
9988 do
9989 IFS=$as_save_IFS
9990 test -z "$as_dir" && as_dir=.
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9993 ac_cv_prog_OBJCOPY="${ncn_progname}"
9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995 break 2
9996 fi
9997 done
9998 done
9999 IFS=$as_save_IFS
10000
10001 fi
10002 fi
10003 OBJCOPY=$ac_cv_prog_OBJCOPY
10004 if test -n "$OBJCOPY"; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10006 $as_echo "$OBJCOPY" >&6; }
10007 else
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 $as_echo "no" >&6; }
10010 fi
10011
10012
10013 fi
10014 test -n "$ac_cv_prog_OBJCOPY" && break
10015 done
10016
10017 if test -z "$ac_cv_prog_OBJCOPY" ; then
10018 set dummy objcopy
10019 if test $build = $host ; then
10020 OBJCOPY="$2"
10021 else
10022 OBJCOPY="${ncn_tool_prefix}$2"
10023 fi
10024 fi
10025
10026
10027
10028 if test -n "$OBJDUMP"; then
10029 ac_cv_prog_OBJDUMP=$OBJDUMP
10030 elif test -n "$ac_cv_prog_OBJDUMP"; then
10031 OBJDUMP=$ac_cv_prog_OBJDUMP
10032 fi
10033
10034 if test -n "$ac_cv_prog_OBJDUMP"; then
10035 for ncn_progname in objdump; do
10036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10037 set dummy ${ncn_progname}; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if ${ac_cv_prog_OBJDUMP+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 if test -n "$OBJDUMP"; then
10044 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10045 else
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10048 do
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053 ac_cv_prog_OBJDUMP="${ncn_progname}"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10056 fi
10057 done
10058 done
10059 IFS=$as_save_IFS
10060
10061 fi
10062 fi
10063 OBJDUMP=$ac_cv_prog_OBJDUMP
10064 if test -n "$OBJDUMP"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10066 $as_echo "$OBJDUMP" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 fi
10071
10072
10073 done
10074 fi
10075
10076 for ncn_progname in objdump; do
10077 if test -n "$ncn_tool_prefix"; then
10078 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10079 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_prog_OBJDUMP+:} false; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 if test -n "$OBJDUMP"; then
10086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10087 else
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10090 do
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10098 fi
10099 done
10100 done
10101 IFS=$as_save_IFS
10102
10103 fi
10104 fi
10105 OBJDUMP=$ac_cv_prog_OBJDUMP
10106 if test -n "$OBJDUMP"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10108 $as_echo "$OBJDUMP" >&6; }
10109 else
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112 fi
10113
10114
10115 fi
10116 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10118 set dummy ${ncn_progname}; ac_word=$2
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10120 $as_echo_n "checking for $ac_word... " >&6; }
10121 if ${ac_cv_prog_OBJDUMP+:} false; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 if test -n "$OBJDUMP"; then
10125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10126 else
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128 for as_dir in $PATH
10129 do
10130 IFS=$as_save_IFS
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10134 ac_cv_prog_OBJDUMP="${ncn_progname}"
10135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10136 break 2
10137 fi
10138 done
10139 done
10140 IFS=$as_save_IFS
10141
10142 fi
10143 fi
10144 OBJDUMP=$ac_cv_prog_OBJDUMP
10145 if test -n "$OBJDUMP"; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10147 $as_echo "$OBJDUMP" >&6; }
10148 else
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10151 fi
10152
10153
10154 fi
10155 test -n "$ac_cv_prog_OBJDUMP" && break
10156 done
10157
10158 if test -z "$ac_cv_prog_OBJDUMP" ; then
10159 set dummy objdump
10160 if test $build = $host ; then
10161 OBJDUMP="$2"
10162 else
10163 OBJDUMP="${ncn_tool_prefix}$2"
10164 fi
10165 fi
10166
10167
10168
10169 if test -n "$READELF"; then
10170 ac_cv_prog_READELF=$READELF
10171 elif test -n "$ac_cv_prog_READELF"; then
10172 READELF=$ac_cv_prog_READELF
10173 fi
10174
10175 if test -n "$ac_cv_prog_READELF"; then
10176 for ncn_progname in readelf; do
10177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10178 set dummy ${ncn_progname}; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if ${ac_cv_prog_READELF+:} false; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10184 if test -n "$READELF"; then
10185 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10186 else
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10189 do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_READELF="${ncn_progname}"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198 done
10199 done
10200 IFS=$as_save_IFS
10201
10202 fi
10203 fi
10204 READELF=$ac_cv_prog_READELF
10205 if test -n "$READELF"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10207 $as_echo "$READELF" >&6; }
10208 else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10211 fi
10212
10213
10214 done
10215 fi
10216
10217 for ncn_progname in readelf; do
10218 if test -n "$ncn_tool_prefix"; then
10219 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10220 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10222 $as_echo_n "checking for $ac_word... " >&6; }
10223 if ${ac_cv_prog_READELF+:} false; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 if test -n "$READELF"; then
10227 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10228 else
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10231 do
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10239 fi
10240 done
10241 done
10242 IFS=$as_save_IFS
10243
10244 fi
10245 fi
10246 READELF=$ac_cv_prog_READELF
10247 if test -n "$READELF"; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10249 $as_echo "$READELF" >&6; }
10250 else
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252 $as_echo "no" >&6; }
10253 fi
10254
10255
10256 fi
10257 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10259 set dummy ${ncn_progname}; ac_word=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261 $as_echo_n "checking for $ac_word... " >&6; }
10262 if ${ac_cv_prog_READELF+:} false; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 if test -n "$READELF"; then
10266 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10267 else
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10270 do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_prog_READELF="${ncn_progname}"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279 done
10280 done
10281 IFS=$as_save_IFS
10282
10283 fi
10284 fi
10285 READELF=$ac_cv_prog_READELF
10286 if test -n "$READELF"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10288 $as_echo "$READELF" >&6; }
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10292 fi
10293
10294
10295 fi
10296 test -n "$ac_cv_prog_READELF" && break
10297 done
10298
10299 if test -z "$ac_cv_prog_READELF" ; then
10300 set dummy readelf
10301 if test $build = $host ; then
10302 READELF="$2"
10303 else
10304 READELF="${ncn_tool_prefix}$2"
10305 fi
10306 fi
10307
10308
10309
10310
10311
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10314 $as_echo_n "checking for -plugin option... " >&6; }
10315
10316 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10317 plugin_option=
10318 for plugin in $plugin_names; do
10319 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10320 if test x$plugin_so = x$plugin; then
10321 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10322 fi
10323 if test x$plugin_so != x$plugin; then
10324 plugin_option="--plugin $plugin_so"
10325 break
10326 fi
10327 done
10328 if test -n "$ac_tool_prefix"; then
10329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10330 set dummy ${ac_tool_prefix}ar; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 $as_echo_n "checking for $ac_word... " >&6; }
10333 if ${ac_cv_prog_AR+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 if test -n "$AR"; then
10337 ac_cv_prog_AR="$AR" # Let the user override the test.
10338 else
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10341 do
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10346 ac_cv_prog_AR="${ac_tool_prefix}ar"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10349 fi
10350 done
10351 done
10352 IFS=$as_save_IFS
10353
10354 fi
10355 fi
10356 AR=$ac_cv_prog_AR
10357 if test -n "$AR"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10359 $as_echo "$AR" >&6; }
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10363 fi
10364
10365
10366 fi
10367 if test -z "$ac_cv_prog_AR"; then
10368 ac_ct_AR=$AR
10369 # Extract the first word of "ar", so it can be a program name with args.
10370 set dummy ar; ac_word=$2
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10372 $as_echo_n "checking for $ac_word... " >&6; }
10373 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 if test -n "$ac_ct_AR"; then
10377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10378 else
10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380 for as_dir in $PATH
10381 do
10382 IFS=$as_save_IFS
10383 test -z "$as_dir" && as_dir=.
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10386 ac_cv_prog_ac_ct_AR="ar"
10387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 break 2
10389 fi
10390 done
10391 done
10392 IFS=$as_save_IFS
10393
10394 fi
10395 fi
10396 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10397 if test -n "$ac_ct_AR"; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10399 $as_echo "$ac_ct_AR" >&6; }
10400 else
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 $as_echo "no" >&6; }
10403 fi
10404
10405 if test "x$ac_ct_AR" = x; then
10406 AR=""
10407 else
10408 case $cross_compiling:$ac_tool_warned in
10409 yes:)
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10412 ac_tool_warned=yes ;;
10413 esac
10414 AR=$ac_ct_AR
10415 fi
10416 else
10417 AR="$ac_cv_prog_AR"
10418 fi
10419
10420 if test "${AR}" = "" ; then
10421 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10422 fi
10423 touch conftest.c
10424 ${AR} $plugin_option rc conftest.a conftest.c
10425 if test "$?" != 0; then
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10427 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10428 plugin_option=
10429 fi
10430 rm -f conftest.*
10431 if test -n "$plugin_option"; then
10432 PLUGIN_OPTION="$plugin_option"
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10434 $as_echo "$plugin_option" >&6; }
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438 fi
10439
10440 AR_PLUGIN_OPTION=
10441 RANLIB_PLUGIN_OPTION=
10442 if test -n "$PLUGIN_OPTION"; then
10443 if $AR --help 2>&1 | grep -q "\--plugin"; then
10444 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10445 fi
10446 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10447 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10448 fi
10449 else
10450 if test "$enable_pgo_build" != "no"; then
10451 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10452 fi
10453 fi
10454
10455
10456
10457 # Target tools.
10458
10459 # Check whether --with-build-time-tools was given.
10460 if test "${with_build_time_tools+set}" = set; then :
10461 withval=$with_build_time_tools; case x"$withval" in
10462 x/*) ;;
10463 *)
10464 with_build_time_tools=
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10466 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10467 ;;
10468 esac
10469 else
10470 with_build_time_tools=
10471 fi
10472
10473
10474
10475
10476 if test -n "$CC_FOR_TARGET"; then
10477 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10478 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10479 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10480 fi
10481
10482 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10483 for ncn_progname in cc gcc; do
10484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10485 set dummy ${ncn_progname}; ac_word=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 $as_echo_n "checking for $ac_word... " >&6; }
10488 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 if test -n "$CC_FOR_TARGET"; then
10492 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10493 else
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495 for as_dir in $PATH
10496 do
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10501 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 break 2
10504 fi
10505 done
10506 done
10507 IFS=$as_save_IFS
10508
10509 fi
10510 fi
10511 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10512 if test -n "$CC_FOR_TARGET"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10514 $as_echo "$CC_FOR_TARGET" >&6; }
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10518 fi
10519
10520
10521 done
10522 fi
10523
10524 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10525 for ncn_progname in cc gcc; do
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10527 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10528 if test -x $with_build_time_tools/${ncn_progname}; then
10529 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10531 $as_echo "yes" >&6; }
10532 break
10533 else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10536 fi
10537 done
10538 fi
10539
10540 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10541 for ncn_progname in cc gcc; do
10542 if test -n "$ncn_target_tool_prefix"; then
10543 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10544 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10546 $as_echo_n "checking for $ac_word... " >&6; }
10547 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 if test -n "$CC_FOR_TARGET"; then
10551 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10552 else
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in $PATH
10555 do
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
10558 for ac_exec_ext in '' $ac_executable_extensions; do
10559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10560 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 break 2
10563 fi
10564 done
10565 done
10566 IFS=$as_save_IFS
10567
10568 fi
10569 fi
10570 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10571 if test -n "$CC_FOR_TARGET"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10573 $as_echo "$CC_FOR_TARGET" >&6; }
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10577 fi
10578
10579
10580 fi
10581 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10583 set dummy ${ncn_progname}; 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_CC_FOR_TARGET+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 if test -n "$CC_FOR_TARGET"; then
10590 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # 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_CC_FOR_TARGET="${ncn_progname}"
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 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10610 if test -n "$CC_FOR_TARGET"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10612 $as_echo "$CC_FOR_TARGET" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10616 fi
10617
10618
10619 fi
10620 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10621 done
10622 fi
10623
10624 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10625 set dummy cc gcc
10626 if test $build = $target ; then
10627 CC_FOR_TARGET="$2"
10628 else
10629 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10630 fi
10631 else
10632 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10633 fi
10634
10635
10636
10637 if test -n "$CXX_FOR_TARGET"; then
10638 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10639 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10640 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10641 fi
10642
10643 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10644 for ncn_progname in c++ g++ cxx gxx; do
10645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10646 set dummy ${ncn_progname}; ac_word=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648 $as_echo_n "checking for $ac_word... " >&6; }
10649 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 if test -n "$CXX_FOR_TARGET"; then
10653 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10654 else
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656 for as_dir in $PATH
10657 do
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10662 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10664 break 2
10665 fi
10666 done
10667 done
10668 IFS=$as_save_IFS
10669
10670 fi
10671 fi
10672 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10673 if test -n "$CXX_FOR_TARGET"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10675 $as_echo "$CXX_FOR_TARGET" >&6; }
10676 else
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10679 fi
10680
10681
10682 done
10683 fi
10684
10685 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10686 for ncn_progname in c++ g++ cxx gxx; do
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10688 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10689 if test -x $with_build_time_tools/${ncn_progname}; then
10690 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10692 $as_echo "yes" >&6; }
10693 break
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10697 fi
10698 done
10699 fi
10700
10701 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10702 for ncn_progname in c++ g++ cxx gxx; do
10703 if test -n "$ncn_target_tool_prefix"; then
10704 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10705 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10707 $as_echo_n "checking for $ac_word... " >&6; }
10708 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 if test -n "$CXX_FOR_TARGET"; then
10712 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10713 else
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10716 do
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10721 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 break 2
10724 fi
10725 done
10726 done
10727 IFS=$as_save_IFS
10728
10729 fi
10730 fi
10731 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10732 if test -n "$CXX_FOR_TARGET"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10734 $as_echo "$CXX_FOR_TARGET" >&6; }
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10738 fi
10739
10740
10741 fi
10742 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10744 set dummy ${ncn_progname}; ac_word=$2
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10746 $as_echo_n "checking for $ac_word... " >&6; }
10747 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 if test -n "$CXX_FOR_TARGET"; then
10751 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10752 else
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10755 do
10756 IFS=$as_save_IFS
10757 test -z "$as_dir" && as_dir=.
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10760 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762 break 2
10763 fi
10764 done
10765 done
10766 IFS=$as_save_IFS
10767
10768 fi
10769 fi
10770 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10771 if test -n "$CXX_FOR_TARGET"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10773 $as_echo "$CXX_FOR_TARGET" >&6; }
10774 else
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10777 fi
10778
10779
10780 fi
10781 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10782 done
10783 fi
10784
10785 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10786 set dummy c++ g++ cxx gxx
10787 if test $build = $target ; then
10788 CXX_FOR_TARGET="$2"
10789 else
10790 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10791 fi
10792 else
10793 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10794 fi
10795
10796
10797
10798 if test -n "$GCC_FOR_TARGET"; then
10799 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10800 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10801 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10802 fi
10803
10804 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10805 for ncn_progname in gcc; do
10806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10807 set dummy ${ncn_progname}; ac_word=$2
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10809 $as_echo_n "checking for $ac_word... " >&6; }
10810 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 if test -n "$GCC_FOR_TARGET"; then
10814 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10815 else
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10818 do
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10823 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10826 fi
10827 done
10828 done
10829 IFS=$as_save_IFS
10830
10831 fi
10832 fi
10833 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10834 if test -n "$GCC_FOR_TARGET"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10836 $as_echo "$GCC_FOR_TARGET" >&6; }
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10840 fi
10841
10842
10843 done
10844 fi
10845
10846 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10847 for ncn_progname in gcc; do
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10849 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10850 if test -x $with_build_time_tools/${ncn_progname}; then
10851 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10853 $as_echo "yes" >&6; }
10854 break
10855 else
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10857 $as_echo "no" >&6; }
10858 fi
10859 done
10860 fi
10861
10862 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10863 for ncn_progname in gcc; do
10864 if test -n "$ncn_target_tool_prefix"; then
10865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10866 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868 $as_echo_n "checking for $ac_word... " >&6; }
10869 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 if test -n "$GCC_FOR_TARGET"; then
10873 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10874 else
10875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876 for as_dir in $PATH
10877 do
10878 IFS=$as_save_IFS
10879 test -z "$as_dir" && as_dir=.
10880 for ac_exec_ext in '' $ac_executable_extensions; do
10881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10882 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10884 break 2
10885 fi
10886 done
10887 done
10888 IFS=$as_save_IFS
10889
10890 fi
10891 fi
10892 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10893 if test -n "$GCC_FOR_TARGET"; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10895 $as_echo "$GCC_FOR_TARGET" >&6; }
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899 fi
10900
10901
10902 fi
10903 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10905 set dummy ${ncn_progname}; ac_word=$2
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10907 $as_echo_n "checking for $ac_word... " >&6; }
10908 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911 if test -n "$GCC_FOR_TARGET"; then
10912 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10913 else
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915 for as_dir in $PATH
10916 do
10917 IFS=$as_save_IFS
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10921 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10923 break 2
10924 fi
10925 done
10926 done
10927 IFS=$as_save_IFS
10928
10929 fi
10930 fi
10931 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10932 if test -n "$GCC_FOR_TARGET"; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10934 $as_echo "$GCC_FOR_TARGET" >&6; }
10935 else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10938 fi
10939
10940
10941 fi
10942 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10943 done
10944 fi
10945
10946 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10947 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10948 else
10949 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10950 fi
10951
10952
10953
10954 if test -n "$GFORTRAN_FOR_TARGET"; then
10955 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10956 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10957 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10958 fi
10959
10960 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10961 for ncn_progname in gfortran; do
10962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10963 set dummy ${ncn_progname}; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 if test -n "$GFORTRAN_FOR_TARGET"; then
10970 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10971 else
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10974 do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10982 fi
10983 done
10984 done
10985 IFS=$as_save_IFS
10986
10987 fi
10988 fi
10989 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10990 if test -n "$GFORTRAN_FOR_TARGET"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10992 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10996 fi
10997
10998
10999 done
11000 fi
11001
11002 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
11003 for ncn_progname in gfortran; do
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11005 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11006 if test -x $with_build_time_tools/${ncn_progname}; then
11007 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11009 $as_echo "yes" >&6; }
11010 break
11011 else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11014 fi
11015 done
11016 fi
11017
11018 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11019 for ncn_progname in gfortran; do
11020 if test -n "$ncn_target_tool_prefix"; then
11021 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11022 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 if test -n "$GFORTRAN_FOR_TARGET"; then
11029 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11030 else
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11033 do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11038 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042 done
11043 done
11044 IFS=$as_save_IFS
11045
11046 fi
11047 fi
11048 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11049 if test -n "$GFORTRAN_FOR_TARGET"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11051 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11055 fi
11056
11057
11058 fi
11059 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11061 set dummy ${ncn_progname}; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 if test -n "$GFORTRAN_FOR_TARGET"; then
11068 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11069 else
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11072 do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11077 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11080 fi
11081 done
11082 done
11083 IFS=$as_save_IFS
11084
11085 fi
11086 fi
11087 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11088 if test -n "$GFORTRAN_FOR_TARGET"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11090 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11094 fi
11095
11096
11097 fi
11098 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11099 done
11100 fi
11101
11102 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11103 set dummy gfortran
11104 if test $build = $target ; then
11105 GFORTRAN_FOR_TARGET="$2"
11106 else
11107 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11108 fi
11109 else
11110 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11111 fi
11112
11113
11114
11115 if test -n "$GOC_FOR_TARGET"; then
11116 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11117 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11118 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11119 fi
11120
11121 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11122 for ncn_progname in gccgo; do
11123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11124 set dummy ${ncn_progname}; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 if test -n "$GOC_FOR_TARGET"; then
11131 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11132 else
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11143 fi
11144 done
11145 done
11146 IFS=$as_save_IFS
11147
11148 fi
11149 fi
11150 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11151 if test -n "$GOC_FOR_TARGET"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11153 $as_echo "$GOC_FOR_TARGET" >&6; }
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157 fi
11158
11159
11160 done
11161 fi
11162
11163 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11164 for ncn_progname in gccgo; do
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11166 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11167 if test -x $with_build_time_tools/${ncn_progname}; then
11168 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11170 $as_echo "yes" >&6; }
11171 break
11172 else
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175 fi
11176 done
11177 fi
11178
11179 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11180 for ncn_progname in gccgo; do
11181 if test -n "$ncn_target_tool_prefix"; then
11182 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11183 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 if test -n "$GOC_FOR_TARGET"; then
11190 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11191 else
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11194 do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11199 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203 done
11204 done
11205 IFS=$as_save_IFS
11206
11207 fi
11208 fi
11209 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11210 if test -n "$GOC_FOR_TARGET"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11212 $as_echo "$GOC_FOR_TARGET" >&6; }
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11216 fi
11217
11218
11219 fi
11220 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11222 set dummy ${ncn_progname}; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 if test -n "$GOC_FOR_TARGET"; then
11229 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11241 fi
11242 done
11243 done
11244 IFS=$as_save_IFS
11245
11246 fi
11247 fi
11248 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11249 if test -n "$GOC_FOR_TARGET"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11251 $as_echo "$GOC_FOR_TARGET" >&6; }
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 fi
11256
11257
11258 fi
11259 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11260 done
11261 fi
11262
11263 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11264 set dummy gccgo
11265 if test $build = $target ; then
11266 GOC_FOR_TARGET="$2"
11267 else
11268 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11269 fi
11270 else
11271 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11272 fi
11273
11274
11275
11276 cat > conftest.c << \EOF
11277 #ifdef __GNUC__
11278 gcc_yay;
11279 #endif
11280 EOF
11281 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11282 have_gcc_for_target=yes
11283 else
11284 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11285 have_gcc_for_target=no
11286 fi
11287 rm conftest.c
11288
11289
11290
11291
11292 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11293 if test -n "$with_build_time_tools"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11295 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11296 if test -x $with_build_time_tools/ar; then
11297 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11298 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11300 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11301 else
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11304 fi
11305 elif test $build != $host && test $have_gcc_for_target = yes; then
11306 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11307 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11308 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11309 fi
11310 fi
11311 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11312 # Extract the first word of "ar", so it can be a program name with args.
11313 set dummy ar; ac_word=$2
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11315 $as_echo_n "checking for $ac_word... " >&6; }
11316 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 case $AR_FOR_TARGET in
11320 [\\/]* | ?:[\\/]*)
11321 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11322 ;;
11323 *)
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $gcc_cv_tool_dirs
11326 do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11334 fi
11335 done
11336 done
11337 IFS=$as_save_IFS
11338
11339 ;;
11340 esac
11341 fi
11342 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11343 if test -n "$AR_FOR_TARGET"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11345 $as_echo "$AR_FOR_TARGET" >&6; }
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11349 fi
11350
11351
11352 fi
11353 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11354
11355
11356 if test -n "$AR_FOR_TARGET"; then
11357 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11358 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11359 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11360 fi
11361
11362 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11363 for ncn_progname in ar; do
11364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11365 set dummy ${ncn_progname}; ac_word=$2
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367 $as_echo_n "checking for $ac_word... " >&6; }
11368 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 if test -n "$AR_FOR_TARGET"; then
11372 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11373 else
11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375 for as_dir in $PATH
11376 do
11377 IFS=$as_save_IFS
11378 test -z "$as_dir" && as_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11381 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11383 break 2
11384 fi
11385 done
11386 done
11387 IFS=$as_save_IFS
11388
11389 fi
11390 fi
11391 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11392 if test -n "$AR_FOR_TARGET"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11394 $as_echo "$AR_FOR_TARGET" >&6; }
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11398 fi
11399
11400
11401 done
11402 fi
11403
11404 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11405 for ncn_progname in ar; do
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11407 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11408 if test -x $with_build_time_tools/${ncn_progname}; then
11409 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11411 $as_echo "yes" >&6; }
11412 break
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11416 fi
11417 done
11418 fi
11419
11420 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11421 for ncn_progname in ar; do
11422 if test -n "$ncn_target_tool_prefix"; then
11423 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11424 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 if test -n "$AR_FOR_TARGET"; then
11431 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444 done
11445 done
11446 IFS=$as_save_IFS
11447
11448 fi
11449 fi
11450 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11451 if test -n "$AR_FOR_TARGET"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11453 $as_echo "$AR_FOR_TARGET" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458
11459
11460 fi
11461 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11463 set dummy ${ncn_progname}; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 if test -n "$AR_FOR_TARGET"; then
11470 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11471 else
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11474 do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483 done
11484 done
11485 IFS=$as_save_IFS
11486
11487 fi
11488 fi
11489 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11490 if test -n "$AR_FOR_TARGET"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11492 $as_echo "$AR_FOR_TARGET" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11496 fi
11497
11498
11499 fi
11500 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11501 done
11502 fi
11503
11504 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11505 set dummy ar
11506 if test $build = $target ; then
11507 AR_FOR_TARGET="$2"
11508 else
11509 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11510 fi
11511 else
11512 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11513 fi
11514
11515 else
11516 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11517 fi
11518
11519
11520
11521
11522 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11523 if test -n "$with_build_time_tools"; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11525 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11526 if test -x $with_build_time_tools/as; then
11527 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11528 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11530 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11534 fi
11535 elif test $build != $host && test $have_gcc_for_target = yes; then
11536 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11537 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11538 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11539 fi
11540 fi
11541 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11542 # Extract the first word of "as", so it can be a program name with args.
11543 set dummy as; ac_word=$2
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545 $as_echo_n "checking for $ac_word... " >&6; }
11546 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 case $AS_FOR_TARGET in
11550 [\\/]* | ?:[\\/]*)
11551 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11552 ;;
11553 *)
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $gcc_cv_tool_dirs
11556 do
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11564 fi
11565 done
11566 done
11567 IFS=$as_save_IFS
11568
11569 ;;
11570 esac
11571 fi
11572 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11573 if test -n "$AS_FOR_TARGET"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11575 $as_echo "$AS_FOR_TARGET" >&6; }
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11579 fi
11580
11581
11582 fi
11583 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11584
11585
11586 if test -n "$AS_FOR_TARGET"; then
11587 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11588 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11589 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11590 fi
11591
11592 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11593 for ncn_progname in as; do
11594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11595 set dummy ${ncn_progname}; ac_word=$2
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597 $as_echo_n "checking for $ac_word... " >&6; }
11598 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 if test -n "$AS_FOR_TARGET"; then
11602 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11603 else
11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605 for as_dir in $PATH
11606 do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 break 2
11614 fi
11615 done
11616 done
11617 IFS=$as_save_IFS
11618
11619 fi
11620 fi
11621 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11622 if test -n "$AS_FOR_TARGET"; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11624 $as_echo "$AS_FOR_TARGET" >&6; }
11625 else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627 $as_echo "no" >&6; }
11628 fi
11629
11630
11631 done
11632 fi
11633
11634 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11635 for ncn_progname in as; do
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11637 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11638 if test -x $with_build_time_tools/${ncn_progname}; then
11639 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11641 $as_echo "yes" >&6; }
11642 break
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11646 fi
11647 done
11648 fi
11649
11650 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11651 for ncn_progname in as; do
11652 if test -n "$ncn_target_tool_prefix"; then
11653 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11654 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 if test -n "$AS_FOR_TARGET"; then
11661 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11662 else
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11665 do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674 done
11675 done
11676 IFS=$as_save_IFS
11677
11678 fi
11679 fi
11680 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11681 if test -n "$AS_FOR_TARGET"; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11683 $as_echo "$AS_FOR_TARGET" >&6; }
11684 else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11687 fi
11688
11689
11690 fi
11691 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11693 set dummy ${ncn_progname}; ac_word=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 if test -n "$AS_FOR_TARGET"; then
11700 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11701 else
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11704 do
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11709 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11712 fi
11713 done
11714 done
11715 IFS=$as_save_IFS
11716
11717 fi
11718 fi
11719 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11720 if test -n "$AS_FOR_TARGET"; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11722 $as_echo "$AS_FOR_TARGET" >&6; }
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; }
11726 fi
11727
11728
11729 fi
11730 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11731 done
11732 fi
11733
11734 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11735 set dummy as
11736 if test $build = $target ; then
11737 AS_FOR_TARGET="$2"
11738 else
11739 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11740 fi
11741 else
11742 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11743 fi
11744
11745 else
11746 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11747 fi
11748
11749
11750
11751
11752 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11753 if test -n "$with_build_time_tools"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11755 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11756 if test -x $with_build_time_tools/dlltool; then
11757 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11758 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11760 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11761 else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11764 fi
11765 elif test $build != $host && test $have_gcc_for_target = yes; then
11766 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11767 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11768 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11769 fi
11770 fi
11771 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11772 # Extract the first word of "dlltool", so it can be a program name with args.
11773 set dummy dlltool; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 case $DLLTOOL_FOR_TARGET in
11780 [\\/]* | ?:[\\/]*)
11781 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11782 ;;
11783 *)
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $gcc_cv_tool_dirs
11786 do
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11794 fi
11795 done
11796 done
11797 IFS=$as_save_IFS
11798
11799 ;;
11800 esac
11801 fi
11802 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11803 if test -n "$DLLTOOL_FOR_TARGET"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11805 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11806 else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810
11811
11812 fi
11813 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11814
11815
11816 if test -n "$DLLTOOL_FOR_TARGET"; then
11817 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11818 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11819 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11820 fi
11821
11822 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11823 for ncn_progname in dlltool; do
11824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11825 set dummy ${ncn_progname}; ac_word=$2
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827 $as_echo_n "checking for $ac_word... " >&6; }
11828 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 if test -n "$DLLTOOL_FOR_TARGET"; then
11832 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11833 else
11834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $PATH
11836 do
11837 IFS=$as_save_IFS
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 break 2
11844 fi
11845 done
11846 done
11847 IFS=$as_save_IFS
11848
11849 fi
11850 fi
11851 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11852 if test -n "$DLLTOOL_FOR_TARGET"; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11854 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11855 else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11858 fi
11859
11860
11861 done
11862 fi
11863
11864 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11865 for ncn_progname in dlltool; do
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11867 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11868 if test -x $with_build_time_tools/${ncn_progname}; then
11869 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871 $as_echo "yes" >&6; }
11872 break
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11876 fi
11877 done
11878 fi
11879
11880 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11881 for ncn_progname in dlltool; do
11882 if test -n "$ncn_target_tool_prefix"; then
11883 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11884 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 if test -n "$DLLTOOL_FOR_TARGET"; then
11891 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11892 else
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894 for as_dir in $PATH
11895 do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11902 break 2
11903 fi
11904 done
11905 done
11906 IFS=$as_save_IFS
11907
11908 fi
11909 fi
11910 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11911 if test -n "$DLLTOOL_FOR_TARGET"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11913 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 fi
11918
11919
11920 fi
11921 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11923 set dummy ${ncn_progname}; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 if test -n "$DLLTOOL_FOR_TARGET"; then
11930 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11931 else
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11934 do
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 break 2
11942 fi
11943 done
11944 done
11945 IFS=$as_save_IFS
11946
11947 fi
11948 fi
11949 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11950 if test -n "$DLLTOOL_FOR_TARGET"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11952 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956 fi
11957
11958
11959 fi
11960 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11961 done
11962 fi
11963
11964 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11965 set dummy dlltool
11966 if test $build = $target ; then
11967 DLLTOOL_FOR_TARGET="$2"
11968 else
11969 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11970 fi
11971 else
11972 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11973 fi
11974
11975 else
11976 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11977 fi
11978
11979
11980
11981
11982 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11983 if test -n "$with_build_time_tools"; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11985 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11986 if test -x $with_build_time_tools/ld; then
11987 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11988 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11990 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11991 else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11994 fi
11995 elif test $build != $host && test $have_gcc_for_target = yes; then
11996 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11997 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11998 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11999 fi
12000 fi
12001 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12002 # Extract the first word of "ld", so it can be a program name with args.
12003 set dummy ld; ac_word=$2
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12005 $as_echo_n "checking for $ac_word... " >&6; }
12006 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 case $LD_FOR_TARGET in
12010 [\\/]* | ?:[\\/]*)
12011 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12012 ;;
12013 *)
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $gcc_cv_tool_dirs
12016 do
12017 IFS=$as_save_IFS
12018 test -z "$as_dir" && as_dir=.
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12021 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12023 break 2
12024 fi
12025 done
12026 done
12027 IFS=$as_save_IFS
12028
12029 ;;
12030 esac
12031 fi
12032 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12033 if test -n "$LD_FOR_TARGET"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12035 $as_echo "$LD_FOR_TARGET" >&6; }
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12039 fi
12040
12041
12042 fi
12043 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12044
12045
12046 if test -n "$LD_FOR_TARGET"; then
12047 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12048 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12049 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12050 fi
12051
12052 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12053 for ncn_progname in ld; do
12054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12055 set dummy ${ncn_progname}; ac_word=$2
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057 $as_echo_n "checking for $ac_word... " >&6; }
12058 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 if test -n "$LD_FOR_TARGET"; then
12062 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12063 else
12064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 for as_dir in $PATH
12066 do
12067 IFS=$as_save_IFS
12068 test -z "$as_dir" && as_dir=.
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12071 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 break 2
12074 fi
12075 done
12076 done
12077 IFS=$as_save_IFS
12078
12079 fi
12080 fi
12081 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12082 if test -n "$LD_FOR_TARGET"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12084 $as_echo "$LD_FOR_TARGET" >&6; }
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12088 fi
12089
12090
12091 done
12092 fi
12093
12094 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12095 for ncn_progname in ld; do
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12097 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12098 if test -x $with_build_time_tools/${ncn_progname}; then
12099 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12101 $as_echo "yes" >&6; }
12102 break
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12106 fi
12107 done
12108 fi
12109
12110 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12111 for ncn_progname in ld; do
12112 if test -n "$ncn_target_tool_prefix"; then
12113 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12114 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 if test -n "$LD_FOR_TARGET"; then
12121 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12122 else
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12125 do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12130 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132 break 2
12133 fi
12134 done
12135 done
12136 IFS=$as_save_IFS
12137
12138 fi
12139 fi
12140 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12141 if test -n "$LD_FOR_TARGET"; then
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12143 $as_echo "$LD_FOR_TARGET" >&6; }
12144 else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147 fi
12148
12149
12150 fi
12151 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12153 set dummy ${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_LD_FOR_TARGET+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test -n "$LD_FOR_TARGET"; then
12160 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # 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_LD_FOR_TARGET="${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 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12180 if test -n "$LD_FOR_TARGET"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12182 $as_echo "$LD_FOR_TARGET" >&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 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12191 done
12192 fi
12193
12194 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12195 set dummy ld
12196 if test $build = $target ; then
12197 LD_FOR_TARGET="$2"
12198 else
12199 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12200 fi
12201 else
12202 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12203 fi
12204
12205 else
12206 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12207 fi
12208
12209
12210
12211
12212 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12213 if test -n "$with_build_time_tools"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12215 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12216 if test -x $with_build_time_tools/lipo; then
12217 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12218 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12220 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12224 fi
12225 elif test $build != $host && test $have_gcc_for_target = yes; then
12226 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12227 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12228 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12229 fi
12230 fi
12231 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12232 # Extract the first word of "lipo", so it can be a program name with args.
12233 set dummy lipo; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 case $LIPO_FOR_TARGET in
12240 [\\/]* | ?:[\\/]*)
12241 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12242 ;;
12243 *)
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $gcc_cv_tool_dirs
12246 do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12254 fi
12255 done
12256 done
12257 IFS=$as_save_IFS
12258
12259 ;;
12260 esac
12261 fi
12262 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12263 if test -n "$LIPO_FOR_TARGET"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12265 $as_echo "$LIPO_FOR_TARGET" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270
12271
12272 fi
12273 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12274
12275
12276 if test -n "$LIPO_FOR_TARGET"; then
12277 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12278 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12279 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12280 fi
12281
12282 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12283 for ncn_progname in lipo; do
12284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12285 set dummy ${ncn_progname}; ac_word=$2
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287 $as_echo_n "checking for $ac_word... " >&6; }
12288 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 if test -n "$LIPO_FOR_TARGET"; then
12292 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12293 else
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12296 do
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303 break 2
12304 fi
12305 done
12306 done
12307 IFS=$as_save_IFS
12308
12309 fi
12310 fi
12311 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12312 if test -n "$LIPO_FOR_TARGET"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12314 $as_echo "$LIPO_FOR_TARGET" >&6; }
12315 else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317 $as_echo "no" >&6; }
12318 fi
12319
12320
12321 done
12322 fi
12323
12324 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12325 for ncn_progname in lipo; do
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12327 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12328 if test -x $with_build_time_tools/${ncn_progname}; then
12329 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12331 $as_echo "yes" >&6; }
12332 break
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12336 fi
12337 done
12338 fi
12339
12340 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12341 for ncn_progname in lipo; do
12342 if test -n "$ncn_target_tool_prefix"; then
12343 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12344 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346 $as_echo_n "checking for $ac_word... " >&6; }
12347 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 if test -n "$LIPO_FOR_TARGET"; then
12351 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12352 else
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12355 do
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12363 fi
12364 done
12365 done
12366 IFS=$as_save_IFS
12367
12368 fi
12369 fi
12370 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12371 if test -n "$LIPO_FOR_TARGET"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12373 $as_echo "$LIPO_FOR_TARGET" >&6; }
12374 else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12377 fi
12378
12379
12380 fi
12381 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12383 set dummy ${ncn_progname}; ac_word=$2
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385 $as_echo_n "checking for $ac_word... " >&6; }
12386 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 if test -n "$LIPO_FOR_TARGET"; then
12390 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12391 else
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12394 do
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401 break 2
12402 fi
12403 done
12404 done
12405 IFS=$as_save_IFS
12406
12407 fi
12408 fi
12409 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12410 if test -n "$LIPO_FOR_TARGET"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12412 $as_echo "$LIPO_FOR_TARGET" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12416 fi
12417
12418
12419 fi
12420 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12421 done
12422 fi
12423
12424 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12425 set dummy lipo
12426 if test $build = $target ; then
12427 LIPO_FOR_TARGET="$2"
12428 else
12429 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12430 fi
12431 else
12432 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12433 fi
12434
12435 else
12436 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12437 fi
12438
12439
12440
12441
12442 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12443 if test -n "$with_build_time_tools"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12445 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12446 if test -x $with_build_time_tools/nm; then
12447 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12448 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12450 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12454 fi
12455 elif test $build != $host && test $have_gcc_for_target = yes; then
12456 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12457 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12458 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12459 fi
12460 fi
12461 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12462 # Extract the first word of "nm", so it can be a program name with args.
12463 set dummy nm; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465 $as_echo_n "checking for $ac_word... " >&6; }
12466 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 case $NM_FOR_TARGET in
12470 [\\/]* | ?:[\\/]*)
12471 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12472 ;;
12473 *)
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $gcc_cv_tool_dirs
12476 do
12477 IFS=$as_save_IFS
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12481 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483 break 2
12484 fi
12485 done
12486 done
12487 IFS=$as_save_IFS
12488
12489 ;;
12490 esac
12491 fi
12492 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12493 if test -n "$NM_FOR_TARGET"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12495 $as_echo "$NM_FOR_TARGET" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12499 fi
12500
12501
12502 fi
12503 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12504
12505
12506 if test -n "$NM_FOR_TARGET"; then
12507 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12508 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12509 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12510 fi
12511
12512 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12513 for ncn_progname in nm; do
12514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12515 set dummy ${ncn_progname}; ac_word=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517 $as_echo_n "checking for $ac_word... " >&6; }
12518 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 if test -n "$NM_FOR_TARGET"; then
12522 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12523 else
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12526 do
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 break 2
12534 fi
12535 done
12536 done
12537 IFS=$as_save_IFS
12538
12539 fi
12540 fi
12541 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12542 if test -n "$NM_FOR_TARGET"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12544 $as_echo "$NM_FOR_TARGET" >&6; }
12545 else
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12548 fi
12549
12550
12551 done
12552 fi
12553
12554 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12555 for ncn_progname in nm; do
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12557 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12558 if test -x $with_build_time_tools/${ncn_progname}; then
12559 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12561 $as_echo "yes" >&6; }
12562 break
12563 else
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 $as_echo "no" >&6; }
12566 fi
12567 done
12568 fi
12569
12570 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12571 for ncn_progname in nm; do
12572 if test -n "$ncn_target_tool_prefix"; then
12573 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12574 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576 $as_echo_n "checking for $ac_word... " >&6; }
12577 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 if test -n "$NM_FOR_TARGET"; then
12581 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12582 else
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12585 do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12590 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 break 2
12593 fi
12594 done
12595 done
12596 IFS=$as_save_IFS
12597
12598 fi
12599 fi
12600 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12601 if test -n "$NM_FOR_TARGET"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12603 $as_echo "$NM_FOR_TARGET" >&6; }
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12607 fi
12608
12609
12610 fi
12611 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12613 set dummy ${ncn_progname}; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615 $as_echo_n "checking for $ac_word... " >&6; }
12616 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 if test -n "$NM_FOR_TARGET"; then
12620 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12621 else
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12624 do
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631 break 2
12632 fi
12633 done
12634 done
12635 IFS=$as_save_IFS
12636
12637 fi
12638 fi
12639 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12640 if test -n "$NM_FOR_TARGET"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12642 $as_echo "$NM_FOR_TARGET" >&6; }
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12646 fi
12647
12648
12649 fi
12650 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12651 done
12652 fi
12653
12654 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12655 set dummy nm
12656 if test $build = $target ; then
12657 NM_FOR_TARGET="$2"
12658 else
12659 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12660 fi
12661 else
12662 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12663 fi
12664
12665 else
12666 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12667 fi
12668
12669
12670
12671
12672 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12673 if test -n "$with_build_time_tools"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12675 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12676 if test -x $with_build_time_tools/objcopy; then
12677 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12678 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12680 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12681 else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12684 fi
12685 elif test $build != $host && test $have_gcc_for_target = yes; then
12686 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12687 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12688 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12689 fi
12690 fi
12691 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12692 # Extract the first word of "objcopy", so it can be a program name with args.
12693 set dummy objcopy; ac_word=$2
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695 $as_echo_n "checking for $ac_word... " >&6; }
12696 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 case $OBJCOPY_FOR_TARGET in
12700 [\\/]* | ?:[\\/]*)
12701 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12702 ;;
12703 *)
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $gcc_cv_tool_dirs
12706 do
12707 IFS=$as_save_IFS
12708 test -z "$as_dir" && as_dir=.
12709 for ac_exec_ext in '' $ac_executable_extensions; do
12710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12711 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713 break 2
12714 fi
12715 done
12716 done
12717 IFS=$as_save_IFS
12718
12719 ;;
12720 esac
12721 fi
12722 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12723 if test -n "$OBJCOPY_FOR_TARGET"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12725 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12726 else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12729 fi
12730
12731
12732 fi
12733 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12734
12735
12736 if test -n "$OBJCOPY_FOR_TARGET"; then
12737 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12738 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12739 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12740 fi
12741
12742 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12743 for ncn_progname in objcopy; do
12744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12745 set dummy ${ncn_progname}; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test -n "$OBJCOPY_FOR_TARGET"; then
12752 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12753 else
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12756 do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12764 fi
12765 done
12766 done
12767 IFS=$as_save_IFS
12768
12769 fi
12770 fi
12771 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12772 if test -n "$OBJCOPY_FOR_TARGET"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12774 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 fi
12779
12780
12781 done
12782 fi
12783
12784 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12785 for ncn_progname in objcopy; do
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12787 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12788 if test -x $with_build_time_tools/${ncn_progname}; then
12789 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12791 $as_echo "yes" >&6; }
12792 break
12793 else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796 fi
12797 done
12798 fi
12799
12800 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12801 for ncn_progname in objcopy; do
12802 if test -n "$ncn_target_tool_prefix"; then
12803 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12804 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 if test -n "$OBJCOPY_FOR_TARGET"; then
12811 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12812 else
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12815 do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824 done
12825 done
12826 IFS=$as_save_IFS
12827
12828 fi
12829 fi
12830 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12831 if test -n "$OBJCOPY_FOR_TARGET"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12833 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12837 fi
12838
12839
12840 fi
12841 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12843 set dummy ${ncn_progname}; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 if test -n "$OBJCOPY_FOR_TARGET"; then
12850 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12851 else
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH
12854 do
12855 IFS=$as_save_IFS
12856 test -z "$as_dir" && as_dir=.
12857 for ac_exec_ext in '' $ac_executable_extensions; do
12858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12859 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12861 break 2
12862 fi
12863 done
12864 done
12865 IFS=$as_save_IFS
12866
12867 fi
12868 fi
12869 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12870 if test -n "$OBJCOPY_FOR_TARGET"; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12872 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12873 else
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12876 fi
12877
12878
12879 fi
12880 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12881 done
12882 fi
12883
12884 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12885 set dummy objcopy
12886 if test $build = $target ; then
12887 OBJCOPY_FOR_TARGET="$2"
12888 else
12889 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12890 fi
12891 else
12892 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12893 fi
12894
12895 else
12896 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12897 fi
12898
12899
12900
12901
12902 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12903 if test -n "$with_build_time_tools"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12905 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12906 if test -x $with_build_time_tools/objdump; then
12907 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12908 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12910 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12911 else
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913 $as_echo "no" >&6; }
12914 fi
12915 elif test $build != $host && test $have_gcc_for_target = yes; then
12916 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12917 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12918 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12919 fi
12920 fi
12921 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12922 # Extract the first word of "objdump", so it can be a program name with args.
12923 set dummy objdump; ac_word=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 case $OBJDUMP_FOR_TARGET in
12930 [\\/]* | ?:[\\/]*)
12931 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12932 ;;
12933 *)
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $gcc_cv_tool_dirs
12936 do
12937 IFS=$as_save_IFS
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12941 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 break 2
12944 fi
12945 done
12946 done
12947 IFS=$as_save_IFS
12948
12949 ;;
12950 esac
12951 fi
12952 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12953 if test -n "$OBJDUMP_FOR_TARGET"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12955 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12959 fi
12960
12961
12962 fi
12963 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12964
12965
12966 if test -n "$OBJDUMP_FOR_TARGET"; then
12967 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12968 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12969 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12970 fi
12971
12972 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12973 for ncn_progname in objdump; do
12974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12975 set dummy ${ncn_progname}; ac_word=$2
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977 $as_echo_n "checking for $ac_word... " >&6; }
12978 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 if test -n "$OBJDUMP_FOR_TARGET"; then
12982 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12983 else
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12986 do
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12991 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12994 fi
12995 done
12996 done
12997 IFS=$as_save_IFS
12998
12999 fi
13000 fi
13001 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13002 if test -n "$OBJDUMP_FOR_TARGET"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13004 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13005 else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007 $as_echo "no" >&6; }
13008 fi
13009
13010
13011 done
13012 fi
13013
13014 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13015 for ncn_progname in objdump; do
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13017 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13018 if test -x $with_build_time_tools/${ncn_progname}; then
13019 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13021 $as_echo "yes" >&6; }
13022 break
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13026 fi
13027 done
13028 fi
13029
13030 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13031 for ncn_progname in objdump; do
13032 if test -n "$ncn_target_tool_prefix"; then
13033 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13034 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 if test -n "$OBJDUMP_FOR_TARGET"; then
13041 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13042 else
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13045 do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054 done
13055 done
13056 IFS=$as_save_IFS
13057
13058 fi
13059 fi
13060 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13061 if test -n "$OBJDUMP_FOR_TARGET"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13063 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13067 fi
13068
13069
13070 fi
13071 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13073 set dummy ${ncn_progname}; ac_word=$2
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13075 $as_echo_n "checking for $ac_word... " >&6; }
13076 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13077 $as_echo_n "(cached) " >&6
13078 else
13079 if test -n "$OBJDUMP_FOR_TARGET"; then
13080 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13081 else
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13089 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 break 2
13092 fi
13093 done
13094 done
13095 IFS=$as_save_IFS
13096
13097 fi
13098 fi
13099 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13100 if test -n "$OBJDUMP_FOR_TARGET"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13102 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13103 else
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13106 fi
13107
13108
13109 fi
13110 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13111 done
13112 fi
13113
13114 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13115 set dummy objdump
13116 if test $build = $target ; then
13117 OBJDUMP_FOR_TARGET="$2"
13118 else
13119 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13120 fi
13121 else
13122 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13123 fi
13124
13125 else
13126 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13127 fi
13128
13129
13130
13131
13132 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13133 if test -n "$with_build_time_tools"; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13135 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13136 if test -x $with_build_time_tools/ranlib; then
13137 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13138 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13140 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13144 fi
13145 elif test $build != $host && test $have_gcc_for_target = yes; then
13146 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13147 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13148 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13149 fi
13150 fi
13151 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13152 # Extract the first word of "ranlib", so it can be a program name with args.
13153 set dummy ranlib; ac_word=$2
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155 $as_echo_n "checking for $ac_word... " >&6; }
13156 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 case $RANLIB_FOR_TARGET in
13160 [\\/]* | ?:[\\/]*)
13161 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13162 ;;
13163 *)
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $gcc_cv_tool_dirs
13166 do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13171 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175 done
13176 done
13177 IFS=$as_save_IFS
13178
13179 ;;
13180 esac
13181 fi
13182 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13183 if test -n "$RANLIB_FOR_TARGET"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13185 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 fi
13190
13191
13192 fi
13193 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13194
13195
13196 if test -n "$RANLIB_FOR_TARGET"; then
13197 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13198 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13199 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13200 fi
13201
13202 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13203 for ncn_progname in ranlib; do
13204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13205 set dummy ${ncn_progname}; ac_word=$2
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13207 $as_echo_n "checking for $ac_word... " >&6; }
13208 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 if test -n "$RANLIB_FOR_TARGET"; then
13212 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13213 else
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13224 fi
13225 done
13226 done
13227 IFS=$as_save_IFS
13228
13229 fi
13230 fi
13231 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13232 if test -n "$RANLIB_FOR_TARGET"; then
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13234 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13235 else
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237 $as_echo "no" >&6; }
13238 fi
13239
13240
13241 done
13242 fi
13243
13244 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13245 for ncn_progname in ranlib; do
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13247 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13248 if test -x $with_build_time_tools/${ncn_progname}; then
13249 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13251 $as_echo "yes" >&6; }
13252 break
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257 done
13258 fi
13259
13260 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13261 for ncn_progname in ranlib; do
13262 if test -n "$ncn_target_tool_prefix"; then
13263 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13264 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 if test -n "$RANLIB_FOR_TARGET"; then
13271 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13275 do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284 done
13285 done
13286 IFS=$as_save_IFS
13287
13288 fi
13289 fi
13290 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13291 if test -n "$RANLIB_FOR_TARGET"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13293 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298
13299
13300 fi
13301 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13303 set dummy ${ncn_progname}; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 if test -n "$RANLIB_FOR_TARGET"; then
13310 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13314 do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327 fi
13328 fi
13329 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13330 if test -n "$RANLIB_FOR_TARGET"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13332 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13336 fi
13337
13338
13339 fi
13340 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13341 done
13342 fi
13343
13344 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13345 set dummy ranlib
13346 if test $build = $target ; then
13347 RANLIB_FOR_TARGET="$2"
13348 else
13349 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13350 fi
13351 else
13352 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13353 fi
13354
13355 else
13356 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13357 fi
13358
13359
13360
13361
13362 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13363 if test -n "$with_build_time_tools"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13365 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13366 if test -x $with_build_time_tools/readelf; then
13367 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13368 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13370 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13374 fi
13375 elif test $build != $host && test $have_gcc_for_target = yes; then
13376 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13377 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13378 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13379 fi
13380 fi
13381 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13382 # Extract the first word of "readelf", so it can be a program name with args.
13383 set dummy readelf; ac_word=$2
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13385 $as_echo_n "checking for $ac_word... " >&6; }
13386 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 case $READELF_FOR_TARGET in
13390 [\\/]* | ?:[\\/]*)
13391 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13392 ;;
13393 *)
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $gcc_cv_tool_dirs
13396 do
13397 IFS=$as_save_IFS
13398 test -z "$as_dir" && as_dir=.
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13401 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 break 2
13404 fi
13405 done
13406 done
13407 IFS=$as_save_IFS
13408
13409 ;;
13410 esac
13411 fi
13412 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13413 if test -n "$READELF_FOR_TARGET"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13415 $as_echo "$READELF_FOR_TARGET" >&6; }
13416 else
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418 $as_echo "no" >&6; }
13419 fi
13420
13421
13422 fi
13423 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13424
13425
13426 if test -n "$READELF_FOR_TARGET"; then
13427 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13428 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13429 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13430 fi
13431
13432 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13433 for ncn_progname in readelf; do
13434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13435 set dummy ${ncn_progname}; ac_word=$2
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437 $as_echo_n "checking for $ac_word... " >&6; }
13438 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 if test -n "$READELF_FOR_TARGET"; then
13442 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13443 else
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445 for as_dir in $PATH
13446 do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
13450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13451 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455 done
13456 done
13457 IFS=$as_save_IFS
13458
13459 fi
13460 fi
13461 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13462 if test -n "$READELF_FOR_TARGET"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13464 $as_echo "$READELF_FOR_TARGET" >&6; }
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13468 fi
13469
13470
13471 done
13472 fi
13473
13474 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13475 for ncn_progname in readelf; do
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13477 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13478 if test -x $with_build_time_tools/${ncn_progname}; then
13479 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13481 $as_echo "yes" >&6; }
13482 break
13483 else
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13486 fi
13487 done
13488 fi
13489
13490 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13491 for ncn_progname in readelf; do
13492 if test -n "$ncn_target_tool_prefix"; then
13493 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13494 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496 $as_echo_n "checking for $ac_word... " >&6; }
13497 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13498 $as_echo_n "(cached) " >&6
13499 else
13500 if test -n "$READELF_FOR_TARGET"; then
13501 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13502 else
13503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504 for as_dir in $PATH
13505 do
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
13509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13510 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 break 2
13513 fi
13514 done
13515 done
13516 IFS=$as_save_IFS
13517
13518 fi
13519 fi
13520 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13521 if test -n "$READELF_FOR_TARGET"; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13523 $as_echo "$READELF_FOR_TARGET" >&6; }
13524 else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13527 fi
13528
13529
13530 fi
13531 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13533 set dummy ${ncn_progname}; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 if test -n "$READELF_FOR_TARGET"; then
13540 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13541 else
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13544 do
13545 IFS=$as_save_IFS
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13549 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 break 2
13552 fi
13553 done
13554 done
13555 IFS=$as_save_IFS
13556
13557 fi
13558 fi
13559 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13560 if test -n "$READELF_FOR_TARGET"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13562 $as_echo "$READELF_FOR_TARGET" >&6; }
13563 else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13566 fi
13567
13568
13569 fi
13570 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13571 done
13572 fi
13573
13574 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13575 set dummy readelf
13576 if test $build = $target ; then
13577 READELF_FOR_TARGET="$2"
13578 else
13579 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13580 fi
13581 else
13582 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13583 fi
13584
13585 else
13586 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13587 fi
13588
13589
13590
13591
13592 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13593 if test -n "$with_build_time_tools"; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13595 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13596 if test -x $with_build_time_tools/strip; then
13597 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13598 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13600 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13601 else
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
13604 fi
13605 elif test $build != $host && test $have_gcc_for_target = yes; then
13606 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13607 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13608 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13609 fi
13610 fi
13611 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13612 # Extract the first word of "strip", so it can be a program name with args.
13613 set dummy strip; ac_word=$2
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13615 $as_echo_n "checking for $ac_word... " >&6; }
13616 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 case $STRIP_FOR_TARGET in
13620 [\\/]* | ?:[\\/]*)
13621 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13622 ;;
13623 *)
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $gcc_cv_tool_dirs
13626 do
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13631 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13634 fi
13635 done
13636 done
13637 IFS=$as_save_IFS
13638
13639 ;;
13640 esac
13641 fi
13642 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13643 if test -n "$STRIP_FOR_TARGET"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13645 $as_echo "$STRIP_FOR_TARGET" >&6; }
13646 else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 $as_echo "no" >&6; }
13649 fi
13650
13651
13652 fi
13653 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13654
13655
13656 if test -n "$STRIP_FOR_TARGET"; then
13657 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13658 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13659 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13660 fi
13661
13662 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13663 for ncn_progname in strip; do
13664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13665 set dummy ${ncn_progname}; ac_word=$2
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667 $as_echo_n "checking for $ac_word... " >&6; }
13668 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 if test -n "$STRIP_FOR_TARGET"; then
13672 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13673 else
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13676 do
13677 IFS=$as_save_IFS
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 break 2
13684 fi
13685 done
13686 done
13687 IFS=$as_save_IFS
13688
13689 fi
13690 fi
13691 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13692 if test -n "$STRIP_FOR_TARGET"; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13694 $as_echo "$STRIP_FOR_TARGET" >&6; }
13695 else
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13697 $as_echo "no" >&6; }
13698 fi
13699
13700
13701 done
13702 fi
13703
13704 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13705 for ncn_progname in strip; do
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13707 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13708 if test -x $with_build_time_tools/${ncn_progname}; then
13709 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13711 $as_echo "yes" >&6; }
13712 break
13713 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715 $as_echo "no" >&6; }
13716 fi
13717 done
13718 fi
13719
13720 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13721 for ncn_progname in strip; do
13722 if test -n "$ncn_target_tool_prefix"; then
13723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13726 $as_echo_n "checking for $ac_word... " >&6; }
13727 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 if test -n "$STRIP_FOR_TARGET"; then
13731 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13732 else
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13735 do
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13740 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742 break 2
13743 fi
13744 done
13745 done
13746 IFS=$as_save_IFS
13747
13748 fi
13749 fi
13750 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13751 if test -n "$STRIP_FOR_TARGET"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13753 $as_echo "$STRIP_FOR_TARGET" >&6; }
13754 else
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13757 fi
13758
13759
13760 fi
13761 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13763 set dummy ${ncn_progname}; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765 $as_echo_n "checking for $ac_word... " >&6; }
13766 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 if test -n "$STRIP_FOR_TARGET"; then
13770 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13771 else
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13774 do
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13779 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783 done
13784 done
13785 IFS=$as_save_IFS
13786
13787 fi
13788 fi
13789 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13790 if test -n "$STRIP_FOR_TARGET"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13792 $as_echo "$STRIP_FOR_TARGET" >&6; }
13793 else
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13796 fi
13797
13798
13799 fi
13800 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13801 done
13802 fi
13803
13804 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13805 set dummy strip
13806 if test $build = $target ; then
13807 STRIP_FOR_TARGET="$2"
13808 else
13809 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13810 fi
13811 else
13812 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13813 fi
13814
13815 else
13816 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13817 fi
13818
13819
13820
13821
13822 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13823 if test -n "$with_build_time_tools"; then
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13825 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13826 if test -x $with_build_time_tools/windres; then
13827 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13828 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13830 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13831 else
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833 $as_echo "no" >&6; }
13834 fi
13835 elif test $build != $host && test $have_gcc_for_target = yes; then
13836 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13837 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13838 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13839 fi
13840 fi
13841 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13842 # Extract the first word of "windres", so it can be a program name with args.
13843 set dummy windres; ac_word=$2
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13845 $as_echo_n "checking for $ac_word... " >&6; }
13846 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 case $WINDRES_FOR_TARGET in
13850 [\\/]* | ?:[\\/]*)
13851 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13852 ;;
13853 *)
13854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855 for as_dir in $gcc_cv_tool_dirs
13856 do
13857 IFS=$as_save_IFS
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
13860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13861 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 break 2
13864 fi
13865 done
13866 done
13867 IFS=$as_save_IFS
13868
13869 ;;
13870 esac
13871 fi
13872 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13873 if test -n "$WINDRES_FOR_TARGET"; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13875 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13876 else
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878 $as_echo "no" >&6; }
13879 fi
13880
13881
13882 fi
13883 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13884
13885
13886 if test -n "$WINDRES_FOR_TARGET"; then
13887 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13888 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13889 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13890 fi
13891
13892 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13893 for ncn_progname in windres; do
13894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13895 set dummy ${ncn_progname}; ac_word=$2
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13897 $as_echo_n "checking for $ac_word... " >&6; }
13898 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 if test -n "$WINDRES_FOR_TARGET"; then
13902 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13903 else
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13906 do
13907 IFS=$as_save_IFS
13908 test -z "$as_dir" && as_dir=.
13909 for ac_exec_ext in '' $ac_executable_extensions; do
13910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13911 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13913 break 2
13914 fi
13915 done
13916 done
13917 IFS=$as_save_IFS
13918
13919 fi
13920 fi
13921 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13922 if test -n "$WINDRES_FOR_TARGET"; then
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13924 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13925 else
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13927 $as_echo "no" >&6; }
13928 fi
13929
13930
13931 done
13932 fi
13933
13934 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13935 for ncn_progname in windres; do
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13937 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13938 if test -x $with_build_time_tools/${ncn_progname}; then
13939 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 $as_echo "yes" >&6; }
13942 break
13943 else
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946 fi
13947 done
13948 fi
13949
13950 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13951 for ncn_progname in windres; do
13952 if test -n "$ncn_target_tool_prefix"; then
13953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13954 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13956 $as_echo_n "checking for $ac_word... " >&6; }
13957 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 if test -n "$WINDRES_FOR_TARGET"; then
13961 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13962 else
13963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13964 for as_dir in $PATH
13965 do
13966 IFS=$as_save_IFS
13967 test -z "$as_dir" && as_dir=.
13968 for ac_exec_ext in '' $ac_executable_extensions; do
13969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13970 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13972 break 2
13973 fi
13974 done
13975 done
13976 IFS=$as_save_IFS
13977
13978 fi
13979 fi
13980 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13981 if test -n "$WINDRES_FOR_TARGET"; then
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13983 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13984 else
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986 $as_echo "no" >&6; }
13987 fi
13988
13989
13990 fi
13991 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13993 set dummy ${ncn_progname}; ac_word=$2
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13995 $as_echo_n "checking for $ac_word... " >&6; }
13996 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 if test -n "$WINDRES_FOR_TARGET"; then
14000 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14001 else
14002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003 for as_dir in $PATH
14004 do
14005 IFS=$as_save_IFS
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
14008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14009 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14011 break 2
14012 fi
14013 done
14014 done
14015 IFS=$as_save_IFS
14016
14017 fi
14018 fi
14019 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14020 if test -n "$WINDRES_FOR_TARGET"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14022 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14023 else
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025 $as_echo "no" >&6; }
14026 fi
14027
14028
14029 fi
14030 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14031 done
14032 fi
14033
14034 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14035 set dummy windres
14036 if test $build = $target ; then
14037 WINDRES_FOR_TARGET="$2"
14038 else
14039 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14040 fi
14041 else
14042 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14043 fi
14044
14045 else
14046 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14047 fi
14048
14049
14050
14051
14052 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14053 if test -n "$with_build_time_tools"; then
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14055 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14056 if test -x $with_build_time_tools/windmc; then
14057 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14058 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14060 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14061 else
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14063 $as_echo "no" >&6; }
14064 fi
14065 elif test $build != $host && test $have_gcc_for_target = yes; then
14066 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14067 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14068 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14069 fi
14070 fi
14071 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14072 # Extract the first word of "windmc", so it can be a program name with args.
14073 set dummy windmc; ac_word=$2
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14075 $as_echo_n "checking for $ac_word... " >&6; }
14076 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 case $WINDMC_FOR_TARGET in
14080 [\\/]* | ?:[\\/]*)
14081 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14082 ;;
14083 *)
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $gcc_cv_tool_dirs
14086 do
14087 IFS=$as_save_IFS
14088 test -z "$as_dir" && as_dir=.
14089 for ac_exec_ext in '' $ac_executable_extensions; do
14090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14091 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14093 break 2
14094 fi
14095 done
14096 done
14097 IFS=$as_save_IFS
14098
14099 ;;
14100 esac
14101 fi
14102 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14103 if test -n "$WINDMC_FOR_TARGET"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14105 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 $as_echo "no" >&6; }
14109 fi
14110
14111
14112 fi
14113 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14114
14115
14116 if test -n "$WINDMC_FOR_TARGET"; then
14117 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14118 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14119 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14120 fi
14121
14122 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14123 for ncn_progname in windmc; do
14124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14125 set dummy ${ncn_progname}; ac_word=$2
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14127 $as_echo_n "checking for $ac_word... " >&6; }
14128 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14129 $as_echo_n "(cached) " >&6
14130 else
14131 if test -n "$WINDMC_FOR_TARGET"; then
14132 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14133 else
14134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135 for as_dir in $PATH
14136 do
14137 IFS=$as_save_IFS
14138 test -z "$as_dir" && as_dir=.
14139 for ac_exec_ext in '' $ac_executable_extensions; do
14140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14141 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14143 break 2
14144 fi
14145 done
14146 done
14147 IFS=$as_save_IFS
14148
14149 fi
14150 fi
14151 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14152 if test -n "$WINDMC_FOR_TARGET"; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14154 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14155 else
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157 $as_echo "no" >&6; }
14158 fi
14159
14160
14161 done
14162 fi
14163
14164 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14165 for ncn_progname in windmc; do
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14167 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14168 if test -x $with_build_time_tools/${ncn_progname}; then
14169 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14171 $as_echo "yes" >&6; }
14172 break
14173 else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14176 fi
14177 done
14178 fi
14179
14180 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14181 for ncn_progname in windmc; do
14182 if test -n "$ncn_target_tool_prefix"; then
14183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186 $as_echo_n "checking for $ac_word... " >&6; }
14187 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 if test -n "$WINDMC_FOR_TARGET"; then
14191 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14192 else
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14195 do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
14199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14200 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202 break 2
14203 fi
14204 done
14205 done
14206 IFS=$as_save_IFS
14207
14208 fi
14209 fi
14210 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14211 if test -n "$WINDMC_FOR_TARGET"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14213 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14214 else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14217 fi
14218
14219
14220 fi
14221 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14223 set dummy ${ncn_progname}; ac_word=$2
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14225 $as_echo_n "checking for $ac_word... " >&6; }
14226 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14227 $as_echo_n "(cached) " >&6
14228 else
14229 if test -n "$WINDMC_FOR_TARGET"; then
14230 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14231 else
14232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14233 for as_dir in $PATH
14234 do
14235 IFS=$as_save_IFS
14236 test -z "$as_dir" && as_dir=.
14237 for ac_exec_ext in '' $ac_executable_extensions; do
14238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 break 2
14242 fi
14243 done
14244 done
14245 IFS=$as_save_IFS
14246
14247 fi
14248 fi
14249 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14250 if test -n "$WINDMC_FOR_TARGET"; then
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14252 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14253 else
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14255 $as_echo "no" >&6; }
14256 fi
14257
14258
14259 fi
14260 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14261 done
14262 fi
14263
14264 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14265 set dummy windmc
14266 if test $build = $target ; then
14267 WINDMC_FOR_TARGET="$2"
14268 else
14269 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14270 fi
14271 else
14272 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14273 fi
14274
14275 else
14276 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14277 fi
14278
14279
14280 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14281
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14283 $as_echo_n "checking where to find the target ar... " >&6; }
14284 if test "x${build}" != "x${host}" ; then
14285 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14286 # We already found the complete path
14287 ac_dir=`dirname $AR_FOR_TARGET`
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14289 $as_echo "pre-installed in $ac_dir" >&6; }
14290 else
14291 # Canadian cross, just use what we found
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14293 $as_echo "pre-installed" >&6; }
14294 fi
14295 else
14296 ok=yes
14297 case " ${configdirs} " in
14298 *" binutils "*) ;;
14299 *) ok=no ;;
14300 esac
14301
14302 if test $ok = yes; then
14303 # An in-tree tool is available and we can use it
14304 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14306 $as_echo "just compiled" >&6; }
14307 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
14309 ac_dir=`dirname $AR_FOR_TARGET`
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311 $as_echo "pre-installed in $ac_dir" >&6; }
14312 elif test "x$target" = "x$host"; then
14313 # We can use an host tool
14314 AR_FOR_TARGET='$(AR)'
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14316 $as_echo "host tool" >&6; }
14317 else
14318 # We need a cross tool
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14320 $as_echo "pre-installed" >&6; }
14321 fi
14322 fi
14323
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14325 $as_echo_n "checking where to find the target as... " >&6; }
14326 if test "x${build}" != "x${host}" ; then
14327 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14328 # We already found the complete path
14329 ac_dir=`dirname $AS_FOR_TARGET`
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14331 $as_echo "pre-installed in $ac_dir" >&6; }
14332 else
14333 # Canadian cross, just use what we found
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14335 $as_echo "pre-installed" >&6; }
14336 fi
14337 else
14338 ok=yes
14339 case " ${configdirs} " in
14340 *" gas "*) ;;
14341 *) ok=no ;;
14342 esac
14343
14344 if test $ok = yes; then
14345 # An in-tree tool is available and we can use it
14346 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14348 $as_echo "just compiled" >&6; }
14349 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14350 # We already found the complete path
14351 ac_dir=`dirname $AS_FOR_TARGET`
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14353 $as_echo "pre-installed in $ac_dir" >&6; }
14354 elif test "x$target" = "x$host"; then
14355 # We can use an host tool
14356 AS_FOR_TARGET='$(AS)'
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14358 $as_echo "host tool" >&6; }
14359 else
14360 # We need a cross tool
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14362 $as_echo "pre-installed" >&6; }
14363 fi
14364 fi
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14367 $as_echo_n "checking where to find the target cc... " >&6; }
14368 if test "x${build}" != "x${host}" ; then
14369 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14370 # We already found the complete path
14371 ac_dir=`dirname $CC_FOR_TARGET`
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14373 $as_echo "pre-installed in $ac_dir" >&6; }
14374 else
14375 # Canadian cross, just use what we found
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14377 $as_echo "pre-installed" >&6; }
14378 fi
14379 else
14380 ok=yes
14381 case " ${configdirs} " in
14382 *" gcc "*) ;;
14383 *) ok=no ;;
14384 esac
14385
14386 if test $ok = yes; then
14387 # An in-tree tool is available and we can use it
14388 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14390 $as_echo "just compiled" >&6; }
14391 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14392 # We already found the complete path
14393 ac_dir=`dirname $CC_FOR_TARGET`
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14395 $as_echo "pre-installed in $ac_dir" >&6; }
14396 elif test "x$target" = "x$host"; then
14397 # We can use an host tool
14398 CC_FOR_TARGET='$(CC)'
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14400 $as_echo "host tool" >&6; }
14401 else
14402 # We need a cross tool
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14404 $as_echo "pre-installed" >&6; }
14405 fi
14406 fi
14407
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14409 $as_echo_n "checking where to find the target c++... " >&6; }
14410 if test "x${build}" != "x${host}" ; then
14411 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14412 # We already found the complete path
14413 ac_dir=`dirname $CXX_FOR_TARGET`
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14415 $as_echo "pre-installed in $ac_dir" >&6; }
14416 else
14417 # Canadian cross, just use what we found
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14419 $as_echo "pre-installed" >&6; }
14420 fi
14421 else
14422 ok=yes
14423 case " ${configdirs} " in
14424 *" gcc "*) ;;
14425 *) ok=no ;;
14426 esac
14427 case ,${enable_languages}, in
14428 *,c++,*) ;;
14429 *) ok=no ;;
14430 esac
14431 if test $ok = yes; then
14432 # An in-tree tool is available and we can use it
14433 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'
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14435 $as_echo "just compiled" >&6; }
14436 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14437 # We already found the complete path
14438 ac_dir=`dirname $CXX_FOR_TARGET`
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14440 $as_echo "pre-installed in $ac_dir" >&6; }
14441 elif test "x$target" = "x$host"; then
14442 # We can use an host tool
14443 CXX_FOR_TARGET='$(CXX)'
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14445 $as_echo "host tool" >&6; }
14446 else
14447 # We need a cross tool
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14449 $as_echo "pre-installed" >&6; }
14450 fi
14451 fi
14452
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14454 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14455 if test "x${build}" != "x${host}" ; then
14456 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14457 # We already found the complete path
14458 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14460 $as_echo "pre-installed in $ac_dir" >&6; }
14461 else
14462 # Canadian cross, just use what we found
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14464 $as_echo "pre-installed" >&6; }
14465 fi
14466 else
14467 ok=yes
14468 case " ${configdirs} " in
14469 *" gcc "*) ;;
14470 *) ok=no ;;
14471 esac
14472 case ,${enable_languages}, in
14473 *,c++,*) ;;
14474 *) ok=no ;;
14475 esac
14476 if test $ok = yes; then
14477 # An in-tree tool is available and we can use it
14478 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'
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14480 $as_echo "just compiled" >&6; }
14481 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14482 # We already found the complete path
14483 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14485 $as_echo "pre-installed in $ac_dir" >&6; }
14486 elif test "x$target" = "x$host"; then
14487 # We can use an host tool
14488 RAW_CXX_FOR_TARGET='$(CXX)'
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14490 $as_echo "host tool" >&6; }
14491 else
14492 # We need a cross tool
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14494 $as_echo "pre-installed" >&6; }
14495 fi
14496 fi
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14499 $as_echo_n "checking where to find the target dlltool... " >&6; }
14500 if test "x${build}" != "x${host}" ; then
14501 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14502 # We already found the complete path
14503 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14505 $as_echo "pre-installed in $ac_dir" >&6; }
14506 else
14507 # Canadian cross, just use what we found
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14509 $as_echo "pre-installed" >&6; }
14510 fi
14511 else
14512 ok=yes
14513 case " ${configdirs} " in
14514 *" binutils "*) ;;
14515 *) ok=no ;;
14516 esac
14517
14518 if test $ok = yes; then
14519 # An in-tree tool is available and we can use it
14520 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14522 $as_echo "just compiled" >&6; }
14523 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14524 # We already found the complete path
14525 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14527 $as_echo "pre-installed in $ac_dir" >&6; }
14528 elif test "x$target" = "x$host"; then
14529 # We can use an host tool
14530 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14532 $as_echo "host tool" >&6; }
14533 else
14534 # We need a cross tool
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14536 $as_echo "pre-installed" >&6; }
14537 fi
14538 fi
14539
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14541 $as_echo_n "checking where to find the target gcc... " >&6; }
14542 if test "x${build}" != "x${host}" ; then
14543 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14544 # We already found the complete path
14545 ac_dir=`dirname $GCC_FOR_TARGET`
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14547 $as_echo "pre-installed in $ac_dir" >&6; }
14548 else
14549 # Canadian cross, just use what we found
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14551 $as_echo "pre-installed" >&6; }
14552 fi
14553 else
14554 ok=yes
14555 case " ${configdirs} " in
14556 *" gcc "*) ;;
14557 *) ok=no ;;
14558 esac
14559
14560 if test $ok = yes; then
14561 # An in-tree tool is available and we can use it
14562 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14564 $as_echo "just compiled" >&6; }
14565 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14566 # We already found the complete path
14567 ac_dir=`dirname $GCC_FOR_TARGET`
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14569 $as_echo "pre-installed in $ac_dir" >&6; }
14570 elif test "x$target" = "x$host"; then
14571 # We can use an host tool
14572 GCC_FOR_TARGET='$()'
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14574 $as_echo "host tool" >&6; }
14575 else
14576 # We need a cross tool
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14578 $as_echo "pre-installed" >&6; }
14579 fi
14580 fi
14581
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14583 $as_echo_n "checking where to find the target gfortran... " >&6; }
14584 if test "x${build}" != "x${host}" ; then
14585 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14586 # We already found the complete path
14587 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14589 $as_echo "pre-installed in $ac_dir" >&6; }
14590 else
14591 # Canadian cross, just use what we found
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14593 $as_echo "pre-installed" >&6; }
14594 fi
14595 else
14596 ok=yes
14597 case " ${configdirs} " in
14598 *" gcc "*) ;;
14599 *) ok=no ;;
14600 esac
14601 case ,${enable_languages}, in
14602 *,fortran,*) ;;
14603 *) ok=no ;;
14604 esac
14605 if test $ok = yes; then
14606 # An in-tree tool is available and we can use it
14607 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14609 $as_echo "just compiled" >&6; }
14610 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14611 # We already found the complete path
14612 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14614 $as_echo "pre-installed in $ac_dir" >&6; }
14615 elif test "x$target" = "x$host"; then
14616 # We can use an host tool
14617 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14619 $as_echo "host tool" >&6; }
14620 else
14621 # We need a cross tool
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14623 $as_echo "pre-installed" >&6; }
14624 fi
14625 fi
14626
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14628 $as_echo_n "checking where to find the target gccgo... " >&6; }
14629 if test "x${build}" != "x${host}" ; then
14630 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14631 # We already found the complete path
14632 ac_dir=`dirname $GOC_FOR_TARGET`
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14634 $as_echo "pre-installed in $ac_dir" >&6; }
14635 else
14636 # Canadian cross, just use what we found
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14638 $as_echo "pre-installed" >&6; }
14639 fi
14640 else
14641 ok=yes
14642 case " ${configdirs} " in
14643 *" gcc "*) ;;
14644 *) ok=no ;;
14645 esac
14646 case ,${enable_languages}, in
14647 *,go,*) ;;
14648 *) ok=no ;;
14649 esac
14650 if test $ok = yes; then
14651 # An in-tree tool is available and we can use it
14652 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14654 $as_echo "just compiled" >&6; }
14655 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14656 # We already found the complete path
14657 ac_dir=`dirname $GOC_FOR_TARGET`
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14659 $as_echo "pre-installed in $ac_dir" >&6; }
14660 elif test "x$target" = "x$host"; then
14661 # We can use an host tool
14662 GOC_FOR_TARGET='$(GOC)'
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14664 $as_echo "host tool" >&6; }
14665 else
14666 # We need a cross tool
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14668 $as_echo "pre-installed" >&6; }
14669 fi
14670 fi
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14673 $as_echo_n "checking where to find the target ld... " >&6; }
14674 if test "x${build}" != "x${host}" ; then
14675 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14676 # We already found the complete path
14677 ac_dir=`dirname $LD_FOR_TARGET`
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14679 $as_echo "pre-installed in $ac_dir" >&6; }
14680 else
14681 # Canadian cross, just use what we found
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14683 $as_echo "pre-installed" >&6; }
14684 fi
14685 else
14686 ok=yes
14687 case " ${configdirs} " in
14688 *" ld "*) ;;
14689 *) ok=no ;;
14690 esac
14691
14692 if test $ok = yes; then
14693 # An in-tree tool is available and we can use it
14694 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14696 $as_echo "just compiled" >&6; }
14697 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14698 # We already found the complete path
14699 ac_dir=`dirname $LD_FOR_TARGET`
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14701 $as_echo "pre-installed in $ac_dir" >&6; }
14702 elif test "x$target" = "x$host"; then
14703 # We can use an host tool
14704 LD_FOR_TARGET='$(LD)'
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14706 $as_echo "host tool" >&6; }
14707 else
14708 # We need a cross tool
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14710 $as_echo "pre-installed" >&6; }
14711 fi
14712 fi
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14715 $as_echo_n "checking where to find the target lipo... " >&6; }
14716 if test "x${build}" != "x${host}" ; then
14717 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14718 # We already found the complete path
14719 ac_dir=`dirname $LIPO_FOR_TARGET`
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14721 $as_echo "pre-installed in $ac_dir" >&6; }
14722 else
14723 # Canadian cross, just use what we found
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14725 $as_echo "pre-installed" >&6; }
14726 fi
14727 else
14728 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14729 # We already found the complete path
14730 ac_dir=`dirname $LIPO_FOR_TARGET`
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14732 $as_echo "pre-installed in $ac_dir" >&6; }
14733 elif test "x$target" = "x$host"; then
14734 # We can use an host tool
14735 LIPO_FOR_TARGET='$(LIPO)'
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14737 $as_echo "host tool" >&6; }
14738 else
14739 # We need a cross tool
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14741 $as_echo "pre-installed" >&6; }
14742 fi
14743 fi
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14746 $as_echo_n "checking where to find the target nm... " >&6; }
14747 if test "x${build}" != "x${host}" ; then
14748 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14749 # We already found the complete path
14750 ac_dir=`dirname $NM_FOR_TARGET`
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14752 $as_echo "pre-installed in $ac_dir" >&6; }
14753 else
14754 # Canadian cross, just use what we found
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14756 $as_echo "pre-installed" >&6; }
14757 fi
14758 else
14759 ok=yes
14760 case " ${configdirs} " in
14761 *" binutils "*) ;;
14762 *) ok=no ;;
14763 esac
14764
14765 if test $ok = yes; then
14766 # An in-tree tool is available and we can use it
14767 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14769 $as_echo "just compiled" >&6; }
14770 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14771 # We already found the complete path
14772 ac_dir=`dirname $NM_FOR_TARGET`
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14774 $as_echo "pre-installed in $ac_dir" >&6; }
14775 elif test "x$target" = "x$host"; then
14776 # We can use an host tool
14777 NM_FOR_TARGET='$(NM)'
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14779 $as_echo "host tool" >&6; }
14780 else
14781 # We need a cross tool
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14783 $as_echo "pre-installed" >&6; }
14784 fi
14785 fi
14786
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14788 $as_echo_n "checking where to find the target objcopy... " >&6; }
14789 if test "x${build}" != "x${host}" ; then
14790 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14791 # We already found the complete path
14792 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14794 $as_echo "pre-installed in $ac_dir" >&6; }
14795 else
14796 # Canadian cross, just use what we found
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14798 $as_echo "pre-installed" >&6; }
14799 fi
14800 else
14801 ok=yes
14802 case " ${configdirs} " in
14803 *" binutils "*) ;;
14804 *) ok=no ;;
14805 esac
14806
14807 if test $ok = yes; then
14808 # An in-tree tool is available and we can use it
14809 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14811 $as_echo "just compiled" >&6; }
14812 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14813 # We already found the complete path
14814 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14816 $as_echo "pre-installed in $ac_dir" >&6; }
14817 elif test "x$target" = "x$host"; then
14818 # We can use an host tool
14819 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14821 $as_echo "host tool" >&6; }
14822 else
14823 # We need a cross tool
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14825 $as_echo "pre-installed" >&6; }
14826 fi
14827 fi
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14830 $as_echo_n "checking where to find the target objdump... " >&6; }
14831 if test "x${build}" != "x${host}" ; then
14832 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14833 # We already found the complete path
14834 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14836 $as_echo "pre-installed in $ac_dir" >&6; }
14837 else
14838 # Canadian cross, just use what we found
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14840 $as_echo "pre-installed" >&6; }
14841 fi
14842 else
14843 ok=yes
14844 case " ${configdirs} " in
14845 *" binutils "*) ;;
14846 *) ok=no ;;
14847 esac
14848
14849 if test $ok = yes; then
14850 # An in-tree tool is available and we can use it
14851 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14853 $as_echo "just compiled" >&6; }
14854 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14855 # We already found the complete path
14856 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14858 $as_echo "pre-installed in $ac_dir" >&6; }
14859 elif test "x$target" = "x$host"; then
14860 # We can use an host tool
14861 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14863 $as_echo "host tool" >&6; }
14864 else
14865 # We need a cross tool
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14867 $as_echo "pre-installed" >&6; }
14868 fi
14869 fi
14870
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14872 $as_echo_n "checking where to find the target ranlib... " >&6; }
14873 if test "x${build}" != "x${host}" ; then
14874 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14875 # We already found the complete path
14876 ac_dir=`dirname $RANLIB_FOR_TARGET`
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14878 $as_echo "pre-installed in $ac_dir" >&6; }
14879 else
14880 # Canadian cross, just use what we found
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14882 $as_echo "pre-installed" >&6; }
14883 fi
14884 else
14885 ok=yes
14886 case " ${configdirs} " in
14887 *" binutils "*) ;;
14888 *) ok=no ;;
14889 esac
14890
14891 if test $ok = yes; then
14892 # An in-tree tool is available and we can use it
14893 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14895 $as_echo "just compiled" >&6; }
14896 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14897 # We already found the complete path
14898 ac_dir=`dirname $RANLIB_FOR_TARGET`
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14900 $as_echo "pre-installed in $ac_dir" >&6; }
14901 elif test "x$target" = "x$host"; then
14902 # We can use an host tool
14903 RANLIB_FOR_TARGET='$(RANLIB)'
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14905 $as_echo "host tool" >&6; }
14906 else
14907 # We need a cross tool
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14909 $as_echo "pre-installed" >&6; }
14910 fi
14911 fi
14912
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14914 $as_echo_n "checking where to find the target readelf... " >&6; }
14915 if test "x${build}" != "x${host}" ; then
14916 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14917 # We already found the complete path
14918 ac_dir=`dirname $READELF_FOR_TARGET`
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14920 $as_echo "pre-installed in $ac_dir" >&6; }
14921 else
14922 # Canadian cross, just use what we found
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14924 $as_echo "pre-installed" >&6; }
14925 fi
14926 else
14927 ok=yes
14928 case " ${configdirs} " in
14929 *" binutils "*) ;;
14930 *) ok=no ;;
14931 esac
14932
14933 if test $ok = yes; then
14934 # An in-tree tool is available and we can use it
14935 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14937 $as_echo "just compiled" >&6; }
14938 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14939 # We already found the complete path
14940 ac_dir=`dirname $READELF_FOR_TARGET`
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14942 $as_echo "pre-installed in $ac_dir" >&6; }
14943 elif test "x$target" = "x$host"; then
14944 # We can use an host tool
14945 READELF_FOR_TARGET='$(READELF)'
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14947 $as_echo "host tool" >&6; }
14948 else
14949 # We need a cross tool
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14951 $as_echo "pre-installed" >&6; }
14952 fi
14953 fi
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14956 $as_echo_n "checking where to find the target strip... " >&6; }
14957 if test "x${build}" != "x${host}" ; then
14958 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14959 # We already found the complete path
14960 ac_dir=`dirname $STRIP_FOR_TARGET`
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14962 $as_echo "pre-installed in $ac_dir" >&6; }
14963 else
14964 # Canadian cross, just use what we found
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14966 $as_echo "pre-installed" >&6; }
14967 fi
14968 else
14969 ok=yes
14970 case " ${configdirs} " in
14971 *" binutils "*) ;;
14972 *) ok=no ;;
14973 esac
14974
14975 if test $ok = yes; then
14976 # An in-tree tool is available and we can use it
14977 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14979 $as_echo "just compiled" >&6; }
14980 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14981 # We already found the complete path
14982 ac_dir=`dirname $STRIP_FOR_TARGET`
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14984 $as_echo "pre-installed in $ac_dir" >&6; }
14985 elif test "x$target" = "x$host"; then
14986 # We can use an host tool
14987 STRIP_FOR_TARGET='$(STRIP)'
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14989 $as_echo "host tool" >&6; }
14990 else
14991 # We need a cross tool
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14993 $as_echo "pre-installed" >&6; }
14994 fi
14995 fi
14996
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14998 $as_echo_n "checking where to find the target windres... " >&6; }
14999 if test "x${build}" != "x${host}" ; then
15000 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15001 # We already found the complete path
15002 ac_dir=`dirname $WINDRES_FOR_TARGET`
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15004 $as_echo "pre-installed in $ac_dir" >&6; }
15005 else
15006 # Canadian cross, just use what we found
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15008 $as_echo "pre-installed" >&6; }
15009 fi
15010 else
15011 ok=yes
15012 case " ${configdirs} " in
15013 *" binutils "*) ;;
15014 *) ok=no ;;
15015 esac
15016
15017 if test $ok = yes; then
15018 # An in-tree tool is available and we can use it
15019 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15021 $as_echo "just compiled" >&6; }
15022 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15023 # We already found the complete path
15024 ac_dir=`dirname $WINDRES_FOR_TARGET`
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15026 $as_echo "pre-installed in $ac_dir" >&6; }
15027 elif test "x$target" = "x$host"; then
15028 # We can use an host tool
15029 WINDRES_FOR_TARGET='$(WINDRES)'
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15031 $as_echo "host tool" >&6; }
15032 else
15033 # We need a cross tool
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15035 $as_echo "pre-installed" >&6; }
15036 fi
15037 fi
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15040 $as_echo_n "checking where to find the target windmc... " >&6; }
15041 if test "x${build}" != "x${host}" ; then
15042 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15043 # We already found the complete path
15044 ac_dir=`dirname $WINDMC_FOR_TARGET`
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15046 $as_echo "pre-installed in $ac_dir" >&6; }
15047 else
15048 # Canadian cross, just use what we found
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15050 $as_echo "pre-installed" >&6; }
15051 fi
15052 else
15053 ok=yes
15054 case " ${configdirs} " in
15055 *" binutils "*) ;;
15056 *) ok=no ;;
15057 esac
15058
15059 if test $ok = yes; then
15060 # An in-tree tool is available and we can use it
15061 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15063 $as_echo "just compiled" >&6; }
15064 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15065 # We already found the complete path
15066 ac_dir=`dirname $WINDMC_FOR_TARGET`
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15068 $as_echo "pre-installed in $ac_dir" >&6; }
15069 elif test "x$target" = "x$host"; then
15070 # We can use an host tool
15071 WINDMC_FOR_TARGET='$(WINDMC)'
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15073 $as_echo "host tool" >&6; }
15074 else
15075 # We need a cross tool
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15077 $as_echo "pre-installed" >&6; }
15078 fi
15079 fi
15080
15081
15082
15083
15084
15085 # Certain tools may need extra flags.
15086 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15087 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15088 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15089
15090 # When building target libraries, except in a Canadian cross, we use
15091 # the same toolchain as the compiler we just built.
15092 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15093 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15094 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15095 if test $host = $build; then
15096 case " $configdirs " in
15097 *" gcc "*)
15098 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15099 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15100 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15101 ;;
15102 esac
15103 fi
15104
15105
15106
15107
15108
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15110 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15111 # Check whether --enable-maintainer-mode was given.
15112 if test "${enable_maintainer_mode+set}" = set; then :
15113 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15114 else
15115 USE_MAINTAINER_MODE=no
15116 fi
15117
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15119 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15120
15121
15122 if test "$USE_MAINTAINER_MODE" = yes; then
15123 MAINTAINER_MODE_TRUE=
15124 MAINTAINER_MODE_FALSE='#'
15125 else
15126 MAINTAINER_MODE_TRUE='#'
15127 MAINTAINER_MODE_FALSE=
15128 fi
15129 MAINT=$MAINTAINER_MODE_TRUE
15130
15131 # ---------------------
15132 # GCC bootstrap support
15133 # ---------------------
15134
15135 # Stage specific cflags for build.
15136 stage1_cflags="-g"
15137 case $build in
15138 vax-*-*)
15139 case ${GCC} in
15140 yes) stage1_cflags="-g -Wa,-J" ;;
15141 *) stage1_cflags="-g -J" ;;
15142 esac ;;
15143 esac
15144
15145
15146
15147 # Enable --enable-checking in stage1 of the compiler.
15148 # Check whether --enable-stage1-checking was given.
15149 if test "${enable_stage1_checking+set}" = set; then :
15150 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15151 else
15152 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15153 # For --disable-checking or implicit --enable-checking=release, avoid
15154 # setting --enable-checking=gc in the default stage1 checking for LTO
15155 # bootstraps. See PR62077.
15156 case $BUILD_CONFIG in
15157 *lto*)
15158 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15159 *)
15160 stage1_checking=--enable-checking=yes,types;;
15161 esac
15162 if test "x$enable_checking" = x && \
15163 test -d ${srcdir}/gcc && \
15164 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15165 stage1_checking=--enable-checking=yes,types,extra
15166 fi
15167 else
15168 stage1_checking=--enable-checking=$enable_checking,types
15169 fi
15170 fi
15171
15172
15173
15174 # Enable -Werror in bootstrap stage2 and later.
15175 # Check whether --enable-werror was given.
15176 if test "${enable_werror+set}" = set; then :
15177 enableval=$enable_werror;
15178 case ${enable_werror} in
15179 yes) stage2_werror_flag="--enable-werror-always" ;;
15180 *) stage2_werror_flag="" ;;
15181 esac
15182
15183 else
15184
15185 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15186 case $BUILD_CONFIG in
15187 bootstrap-debug)
15188 stage2_werror_flag="--enable-werror-always" ;;
15189 "")
15190 stage2_werror_flag="--enable-werror-always" ;;
15191 esac
15192 fi
15193
15194 fi
15195
15196
15197
15198
15199 # Specify what files to not compare during bootstrap.
15200
15201 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15202 case "$target" in
15203 hppa*64*-*-hpux*) ;;
15204 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
15205 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15206 esac
15207
15208
15209 ac_config_files="$ac_config_files Makefile"
15210
15211 cat >confcache <<\_ACEOF
15212 # This file is a shell script that caches the results of configure
15213 # tests run on this system so they can be shared between configure
15214 # scripts and configure runs, see configure's option --config-cache.
15215 # It is not useful on other systems. If it contains results you don't
15216 # want to keep, you may remove or edit it.
15217 #
15218 # config.status only pays attention to the cache file if you give it
15219 # the --recheck option to rerun configure.
15220 #
15221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15223 # following values.
15224
15225 _ACEOF
15226
15227 # The following way of writing the cache mishandles newlines in values,
15228 # but we know of no workaround that is simple, portable, and efficient.
15229 # So, we kill variables containing newlines.
15230 # Ultrix sh set writes to stderr and can't be redirected directly,
15231 # and sets the high bit in the cache file unless we assign to the vars.
15232 (
15233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15234 eval ac_val=\$$ac_var
15235 case $ac_val in #(
15236 *${as_nl}*)
15237 case $ac_var in #(
15238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15240 esac
15241 case $ac_var in #(
15242 _ | IFS | as_nl) ;; #(
15243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15244 *) { eval $ac_var=; unset $ac_var;} ;;
15245 esac ;;
15246 esac
15247 done
15248
15249 (set) 2>&1 |
15250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15251 *${as_nl}ac_space=\ *)
15252 # `set' does not quote correctly, so add quotes: double-quote
15253 # substitution turns \\\\ into \\, and sed turns \\ into \.
15254 sed -n \
15255 "s/'/'\\\\''/g;
15256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15257 ;; #(
15258 *)
15259 # `set' quotes correctly as required by POSIX, so do not add quotes.
15260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15261 ;;
15262 esac |
15263 sort
15264 ) |
15265 sed '
15266 /^ac_cv_env_/b end
15267 t clear
15268 :clear
15269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15270 t end
15271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15272 :end' >>confcache
15273 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15274 if test -w "$cache_file"; then
15275 if test "x$cache_file" != "x/dev/null"; then
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15277 $as_echo "$as_me: updating cache $cache_file" >&6;}
15278 if test ! -f "$cache_file" || test -h "$cache_file"; then
15279 cat confcache >"$cache_file"
15280 else
15281 case $cache_file in #(
15282 */* | ?:*)
15283 mv -f confcache "$cache_file"$$ &&
15284 mv -f "$cache_file"$$ "$cache_file" ;; #(
15285 *)
15286 mv -f confcache "$cache_file" ;;
15287 esac
15288 fi
15289 fi
15290 else
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15292 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15293 fi
15294 fi
15295 rm -f confcache
15296
15297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15298 # Let make expand exec_prefix.
15299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15300
15301 # Transform confdefs.h into DEFS.
15302 # Protect against shell expansion while executing Makefile rules.
15303 # Protect against Makefile macro expansion.
15304 #
15305 # If the first sed substitution is executed (which looks for macros that
15306 # take arguments), then branch to the quote section. Otherwise,
15307 # look for a macro that doesn't take arguments.
15308 ac_script='
15309 :mline
15310 /\\$/{
15311 N
15312 s,\\\n,,
15313 b mline
15314 }
15315 t clear
15316 :clear
15317 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15318 t quote
15319 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15320 t quote
15321 b any
15322 :quote
15323 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15324 s/\[/\\&/g
15325 s/\]/\\&/g
15326 s/\$/$$/g
15327 H
15328 :any
15329 ${
15330 g
15331 s/^\n//
15332 s/\n/ /g
15333 p
15334 }
15335 '
15336 DEFS=`sed -n "$ac_script" confdefs.h`
15337
15338
15339 ac_libobjs=
15340 ac_ltlibobjs=
15341 U=
15342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15343 # 1. Remove the extension, and $U if already installed.
15344 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15345 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15346 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15347 # will be set to the directory where LIBOBJS objects are built.
15348 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15349 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15350 done
15351 LIBOBJS=$ac_libobjs
15352
15353 LTLIBOBJS=$ac_ltlibobjs
15354
15355
15356
15357 : "${CONFIG_STATUS=./config.status}"
15358 ac_write_fail=0
15359 ac_clean_files_save=$ac_clean_files
15360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15362 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15363 as_write_fail=0
15364 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15365 #! $SHELL
15366 # Generated by $as_me.
15367 # Run this file to recreate the current configuration.
15368 # Compiler output produced by configure, useful for debugging
15369 # configure, is in config.log if it exists.
15370
15371 debug=false
15372 ac_cs_recheck=false
15373 ac_cs_silent=false
15374
15375 SHELL=\${CONFIG_SHELL-$SHELL}
15376 export SHELL
15377 _ASEOF
15378 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15379 ## -------------------- ##
15380 ## M4sh Initialization. ##
15381 ## -------------------- ##
15382
15383 # Be more Bourne compatible
15384 DUALCASE=1; export DUALCASE # for MKS sh
15385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15386 emulate sh
15387 NULLCMD=:
15388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15389 # is contrary to our usage. Disable this feature.
15390 alias -g '${1+"$@"}'='"$@"'
15391 setopt NO_GLOB_SUBST
15392 else
15393 case `(set -o) 2>/dev/null` in #(
15394 *posix*) :
15395 set -o posix ;; #(
15396 *) :
15397 ;;
15398 esac
15399 fi
15400
15401
15402 as_nl='
15403 '
15404 export as_nl
15405 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15406 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15408 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15409 # Prefer a ksh shell builtin over an external printf program on Solaris,
15410 # but without wasting forks for bash or zsh.
15411 if test -z "$BASH_VERSION$ZSH_VERSION" \
15412 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15413 as_echo='print -r --'
15414 as_echo_n='print -rn --'
15415 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15416 as_echo='printf %s\n'
15417 as_echo_n='printf %s'
15418 else
15419 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15420 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15421 as_echo_n='/usr/ucb/echo -n'
15422 else
15423 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15424 as_echo_n_body='eval
15425 arg=$1;
15426 case $arg in #(
15427 *"$as_nl"*)
15428 expr "X$arg" : "X\\(.*\\)$as_nl";
15429 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15430 esac;
15431 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15432 '
15433 export as_echo_n_body
15434 as_echo_n='sh -c $as_echo_n_body as_echo'
15435 fi
15436 export as_echo_body
15437 as_echo='sh -c $as_echo_body as_echo'
15438 fi
15439
15440 # The user is always right.
15441 if test "${PATH_SEPARATOR+set}" != set; then
15442 PATH_SEPARATOR=:
15443 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15444 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15445 PATH_SEPARATOR=';'
15446 }
15447 fi
15448
15449
15450 # IFS
15451 # We need space, tab and new line, in precisely that order. Quoting is
15452 # there to prevent editors from complaining about space-tab.
15453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15454 # splitting by setting IFS to empty value.)
15455 IFS=" "" $as_nl"
15456
15457 # Find who we are. Look in the path if we contain no directory separator.
15458 as_myself=
15459 case $0 in #((
15460 *[\\/]* ) as_myself=$0 ;;
15461 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH
15463 do
15464 IFS=$as_save_IFS
15465 test -z "$as_dir" && as_dir=.
15466 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15467 done
15468 IFS=$as_save_IFS
15469
15470 ;;
15471 esac
15472 # We did not find ourselves, most probably we were run as `sh COMMAND'
15473 # in which case we are not to be found in the path.
15474 if test "x$as_myself" = x; then
15475 as_myself=$0
15476 fi
15477 if test ! -f "$as_myself"; then
15478 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15479 exit 1
15480 fi
15481
15482 # Unset variables that we do not need and which cause bugs (e.g. in
15483 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15484 # suppresses any "Segmentation fault" message there. '((' could
15485 # trigger a bug in pdksh 5.2.14.
15486 for as_var in BASH_ENV ENV MAIL MAILPATH
15487 do eval test x\${$as_var+set} = xset \
15488 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15489 done
15490 PS1='$ '
15491 PS2='> '
15492 PS4='+ '
15493
15494 # NLS nuisances.
15495 LC_ALL=C
15496 export LC_ALL
15497 LANGUAGE=C
15498 export LANGUAGE
15499
15500 # CDPATH.
15501 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15502
15503
15504 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15505 # ----------------------------------------
15506 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15507 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15508 # script with STATUS, using 1 if that was 0.
15509 as_fn_error ()
15510 {
15511 as_status=$1; test $as_status -eq 0 && as_status=1
15512 if test "$4"; then
15513 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15514 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15515 fi
15516 $as_echo "$as_me: error: $2" >&2
15517 as_fn_exit $as_status
15518 } # as_fn_error
15519
15520
15521 # as_fn_set_status STATUS
15522 # -----------------------
15523 # Set $? to STATUS, without forking.
15524 as_fn_set_status ()
15525 {
15526 return $1
15527 } # as_fn_set_status
15528
15529 # as_fn_exit STATUS
15530 # -----------------
15531 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15532 as_fn_exit ()
15533 {
15534 set +e
15535 as_fn_set_status $1
15536 exit $1
15537 } # as_fn_exit
15538
15539 # as_fn_unset VAR
15540 # ---------------
15541 # Portably unset VAR.
15542 as_fn_unset ()
15543 {
15544 { eval $1=; unset $1;}
15545 }
15546 as_unset=as_fn_unset
15547 # as_fn_append VAR VALUE
15548 # ----------------------
15549 # Append the text in VALUE to the end of the definition contained in VAR. Take
15550 # advantage of any shell optimizations that allow amortized linear growth over
15551 # repeated appends, instead of the typical quadratic growth present in naive
15552 # implementations.
15553 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15554 eval 'as_fn_append ()
15555 {
15556 eval $1+=\$2
15557 }'
15558 else
15559 as_fn_append ()
15560 {
15561 eval $1=\$$1\$2
15562 }
15563 fi # as_fn_append
15564
15565 # as_fn_arith ARG...
15566 # ------------------
15567 # Perform arithmetic evaluation on the ARGs, and store the result in the
15568 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15569 # must be portable across $(()) and expr.
15570 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15571 eval 'as_fn_arith ()
15572 {
15573 as_val=$(( $* ))
15574 }'
15575 else
15576 as_fn_arith ()
15577 {
15578 as_val=`expr "$@" || test $? -eq 1`
15579 }
15580 fi # as_fn_arith
15581
15582
15583 if expr a : '\(a\)' >/dev/null 2>&1 &&
15584 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15585 as_expr=expr
15586 else
15587 as_expr=false
15588 fi
15589
15590 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15591 as_basename=basename
15592 else
15593 as_basename=false
15594 fi
15595
15596 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15597 as_dirname=dirname
15598 else
15599 as_dirname=false
15600 fi
15601
15602 as_me=`$as_basename -- "$0" ||
15603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15604 X"$0" : 'X\(//\)$' \| \
15605 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15606 $as_echo X/"$0" |
15607 sed '/^.*\/\([^/][^/]*\)\/*$/{
15608 s//\1/
15609 q
15610 }
15611 /^X\/\(\/\/\)$/{
15612 s//\1/
15613 q
15614 }
15615 /^X\/\(\/\).*/{
15616 s//\1/
15617 q
15618 }
15619 s/.*/./; q'`
15620
15621 # Avoid depending upon Character Ranges.
15622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15625 as_cr_digits='0123456789'
15626 as_cr_alnum=$as_cr_Letters$as_cr_digits
15627
15628 ECHO_C= ECHO_N= ECHO_T=
15629 case `echo -n x` in #(((((
15630 -n*)
15631 case `echo 'xy\c'` in
15632 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15633 xy) ECHO_C='\c';;
15634 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15635 ECHO_T=' ';;
15636 esac;;
15637 *)
15638 ECHO_N='-n';;
15639 esac
15640
15641 rm -f conf$$ conf$$.exe conf$$.file
15642 if test -d conf$$.dir; then
15643 rm -f conf$$.dir/conf$$.file
15644 else
15645 rm -f conf$$.dir
15646 mkdir conf$$.dir 2>/dev/null
15647 fi
15648 if (echo >conf$$.file) 2>/dev/null; then
15649 if ln -s conf$$.file conf$$ 2>/dev/null; then
15650 as_ln_s='ln -s'
15651 # ... but there are two gotchas:
15652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15654 # In both cases, we have to default to `cp -pR'.
15655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15656 as_ln_s='cp -pR'
15657 elif ln conf$$.file conf$$ 2>/dev/null; then
15658 as_ln_s=ln
15659 else
15660 as_ln_s='cp -pR'
15661 fi
15662 else
15663 as_ln_s='cp -pR'
15664 fi
15665 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15666 rmdir conf$$.dir 2>/dev/null
15667
15668
15669 # as_fn_mkdir_p
15670 # -------------
15671 # Create "$as_dir" as a directory, including parents if necessary.
15672 as_fn_mkdir_p ()
15673 {
15674
15675 case $as_dir in #(
15676 -*) as_dir=./$as_dir;;
15677 esac
15678 test -d "$as_dir" || eval $as_mkdir_p || {
15679 as_dirs=
15680 while :; do
15681 case $as_dir in #(
15682 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15683 *) as_qdir=$as_dir;;
15684 esac
15685 as_dirs="'$as_qdir' $as_dirs"
15686 as_dir=`$as_dirname -- "$as_dir" ||
15687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15688 X"$as_dir" : 'X\(//\)[^/]' \| \
15689 X"$as_dir" : 'X\(//\)$' \| \
15690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15691 $as_echo X"$as_dir" |
15692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15693 s//\1/
15694 q
15695 }
15696 /^X\(\/\/\)[^/].*/{
15697 s//\1/
15698 q
15699 }
15700 /^X\(\/\/\)$/{
15701 s//\1/
15702 q
15703 }
15704 /^X\(\/\).*/{
15705 s//\1/
15706 q
15707 }
15708 s/.*/./; q'`
15709 test -d "$as_dir" && break
15710 done
15711 test -z "$as_dirs" || eval "mkdir $as_dirs"
15712 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15713
15714
15715 } # as_fn_mkdir_p
15716 if mkdir -p . 2>/dev/null; then
15717 as_mkdir_p='mkdir -p "$as_dir"'
15718 else
15719 test -d ./-p && rmdir ./-p
15720 as_mkdir_p=false
15721 fi
15722
15723
15724 # as_fn_executable_p FILE
15725 # -----------------------
15726 # Test if FILE is an executable regular file.
15727 as_fn_executable_p ()
15728 {
15729 test -f "$1" && test -x "$1"
15730 } # as_fn_executable_p
15731 as_test_x='test -x'
15732 as_executable_p=as_fn_executable_p
15733
15734 # Sed expression to map a string onto a valid CPP name.
15735 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15736
15737 # Sed expression to map a string onto a valid variable name.
15738 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15739
15740
15741 exec 6>&1
15742 ## ----------------------------------- ##
15743 ## Main body of $CONFIG_STATUS script. ##
15744 ## ----------------------------------- ##
15745 _ASEOF
15746 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15747
15748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15749 # Save the log message, to keep $0 and so on meaningful, and to
15750 # report actual input values of CONFIG_FILES etc. instead of their
15751 # values after options handling.
15752 ac_log="
15753 This file was extended by $as_me, which was
15754 generated by GNU Autoconf 2.69. Invocation command line was
15755
15756 CONFIG_FILES = $CONFIG_FILES
15757 CONFIG_HEADERS = $CONFIG_HEADERS
15758 CONFIG_LINKS = $CONFIG_LINKS
15759 CONFIG_COMMANDS = $CONFIG_COMMANDS
15760 $ $0 $@
15761
15762 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15763 "
15764
15765 _ACEOF
15766
15767 case $ac_config_files in *"
15768 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15769 esac
15770
15771
15772
15773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15774 # Files that config.status was made for.
15775 config_files="$ac_config_files"
15776
15777 _ACEOF
15778
15779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15780 ac_cs_usage="\
15781 \`$as_me' instantiates files and other configuration actions
15782 from templates according to the current configuration. Unless the files
15783 and actions are specified as TAGs, all are instantiated by default.
15784
15785 Usage: $0 [OPTION]... [TAG]...
15786
15787 -h, --help print this help, then exit
15788 -V, --version print version number and configuration settings, then exit
15789 --config print configuration, then exit
15790 -q, --quiet, --silent
15791 do not print progress messages
15792 -d, --debug don't remove temporary files
15793 --recheck update $as_me by reconfiguring in the same conditions
15794 --file=FILE[:TEMPLATE]
15795 instantiate the configuration file FILE
15796
15797 Configuration files:
15798 $config_files
15799
15800 Report bugs to the package provider."
15801
15802 _ACEOF
15803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15804 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15805 ac_cs_version="\\
15806 config.status
15807 configured by $0, generated by GNU Autoconf 2.69,
15808 with options \\"\$ac_cs_config\\"
15809
15810 Copyright (C) 2012 Free Software Foundation, Inc.
15811 This config.status script is free software; the Free Software Foundation
15812 gives unlimited permission to copy, distribute and modify it."
15813
15814 ac_pwd='$ac_pwd'
15815 srcdir='$srcdir'
15816 INSTALL='$INSTALL'
15817 AWK='$AWK'
15818 test -n "\$AWK" || AWK=awk
15819 _ACEOF
15820
15821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15822 # The default lists apply if the user does not specify any file.
15823 ac_need_defaults=:
15824 while test $# != 0
15825 do
15826 case $1 in
15827 --*=?*)
15828 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15829 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15830 ac_shift=:
15831 ;;
15832 --*=)
15833 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15834 ac_optarg=
15835 ac_shift=:
15836 ;;
15837 *)
15838 ac_option=$1
15839 ac_optarg=$2
15840 ac_shift=shift
15841 ;;
15842 esac
15843
15844 case $ac_option in
15845 # Handling of the options.
15846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15847 ac_cs_recheck=: ;;
15848 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15849 $as_echo "$ac_cs_version"; exit ;;
15850 --config | --confi | --conf | --con | --co | --c )
15851 $as_echo "$ac_cs_config"; exit ;;
15852 --debug | --debu | --deb | --de | --d | -d )
15853 debug=: ;;
15854 --file | --fil | --fi | --f )
15855 $ac_shift
15856 case $ac_optarg in
15857 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15858 '') as_fn_error $? "missing file argument" ;;
15859 esac
15860 as_fn_append CONFIG_FILES " '$ac_optarg'"
15861 ac_need_defaults=false;;
15862 --he | --h | --help | --hel | -h )
15863 $as_echo "$ac_cs_usage"; exit ;;
15864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15865 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15866 ac_cs_silent=: ;;
15867
15868 # This is an error.
15869 -*) as_fn_error $? "unrecognized option: \`$1'
15870 Try \`$0 --help' for more information." ;;
15871
15872 *) as_fn_append ac_config_targets " $1"
15873 ac_need_defaults=false ;;
15874
15875 esac
15876 shift
15877 done
15878
15879 ac_configure_extra_args=
15880
15881 if $ac_cs_silent; then
15882 exec 6>/dev/null
15883 ac_configure_extra_args="$ac_configure_extra_args --silent"
15884 fi
15885
15886 _ACEOF
15887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15888 if \$ac_cs_recheck; then
15889 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15890 shift
15891 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15892 CONFIG_SHELL='$SHELL'
15893 export CONFIG_SHELL
15894 exec "\$@"
15895 fi
15896
15897 _ACEOF
15898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15899 exec 5>>config.log
15900 {
15901 echo
15902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15903 ## Running $as_me. ##
15904 _ASBOX
15905 $as_echo "$ac_log"
15906 } >&5
15907
15908 _ACEOF
15909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15910 #
15911 # INIT-COMMANDS
15912 #
15913 extrasub_build="$extrasub_build"
15914 extrasub_host="$extrasub_host"
15915 extrasub_target="$extrasub_target"
15916
15917 _ACEOF
15918
15919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15920
15921 # Handling of arguments.
15922 for ac_config_target in $ac_config_targets
15923 do
15924 case $ac_config_target in
15925 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15926
15927 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15928 esac
15929 done
15930
15931
15932 # If the user did not use the arguments to specify the items to instantiate,
15933 # then the envvar interface is used. Set only those that are not.
15934 # We use the long form for the default assignment because of an extremely
15935 # bizarre bug on SunOS 4.1.3.
15936 if $ac_need_defaults; then
15937 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15938 fi
15939
15940 # Have a temporary directory for convenience. Make it in the build tree
15941 # simply because there is no reason against having it here, and in addition,
15942 # creating and moving files from /tmp can sometimes cause problems.
15943 # Hook for its removal unless debugging.
15944 # Note that there is a small window in which the directory will not be cleaned:
15945 # after its creation but before its name has been assigned to `$tmp'.
15946 $debug ||
15947 {
15948 tmp= ac_tmp=
15949 trap 'exit_status=$?
15950 : "${ac_tmp:=$tmp}"
15951 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15952 ' 0
15953 trap 'as_fn_exit 1' 1 2 13 15
15954 }
15955 # Create a (secure) tmp directory for tmp files.
15956
15957 {
15958 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15959 test -d "$tmp"
15960 } ||
15961 {
15962 tmp=./conf$$-$RANDOM
15963 (umask 077 && mkdir "$tmp")
15964 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15965 ac_tmp=$tmp
15966
15967 # Set up the scripts for CONFIG_FILES section.
15968 # No need to generate them if there are no CONFIG_FILES.
15969 # This happens for instance with `./config.status config.h'.
15970 if test -n "$CONFIG_FILES"; then
15971
15972 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15973 ac_cs_awk_getline=:
15974 ac_cs_awk_pipe_init=
15975 ac_cs_awk_read_file='
15976 while ((getline aline < (F[key])) > 0)
15977 print(aline)
15978 close(F[key])'
15979 ac_cs_awk_pipe_fini=
15980 else
15981 ac_cs_awk_getline=false
15982 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15983 ac_cs_awk_read_file='
15984 print "|#_!!_#|"
15985 print "cat " F[key] " &&"
15986 '$ac_cs_awk_pipe_init
15987 # The final `:' finishes the AND list.
15988 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15989 fi
15990 ac_cr=`echo X | tr X '\015'`
15991 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15992 # But we know of no other shell where ac_cr would be empty at this
15993 # point, so we can use a bashism as a fallback.
15994 if test "x$ac_cr" = x; then
15995 eval ac_cr=\$\'\\r\'
15996 fi
15997 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15998 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15999 ac_cs_awk_cr='\\r'
16000 else
16001 ac_cs_awk_cr=$ac_cr
16002 fi
16003
16004 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16005 _ACEOF
16006
16007 # Create commands to substitute file output variables.
16008 {
16009 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16010 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16011 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16012 echo "_ACAWK" &&
16013 echo "_ACEOF"
16014 } >conf$$files.sh &&
16015 . ./conf$$files.sh ||
16016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16017 rm -f conf$$files.sh
16018
16019 {
16020 echo "cat >conf$$subs.awk <<_ACEOF" &&
16021 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16022 echo "_ACEOF"
16023 } >conf$$subs.sh ||
16024 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16025 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16026 ac_delim='%!_!# '
16027 for ac_last_try in false false false false false :; do
16028 . ./conf$$subs.sh ||
16029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16030
16031 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16032 if test $ac_delim_n = $ac_delim_num; then
16033 break
16034 elif $ac_last_try; then
16035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16036 else
16037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16038 fi
16039 done
16040 rm -f conf$$subs.sh
16041
16042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16043 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16044 _ACEOF
16045 sed -n '
16046 h
16047 s/^/S["/; s/!.*/"]=/
16048 p
16049 g
16050 s/^[^!]*!//
16051 :repl
16052 t repl
16053 s/'"$ac_delim"'$//
16054 t delim
16055 :nl
16056 h
16057 s/\(.\{148\}\)..*/\1/
16058 t more1
16059 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16060 p
16061 n
16062 b repl
16063 :more1
16064 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16065 p
16066 g
16067 s/.\{148\}//
16068 t nl
16069 :delim
16070 h
16071 s/\(.\{148\}\)..*/\1/
16072 t more2
16073 s/["\\]/\\&/g; s/^/"/; s/$/"/
16074 p
16075 b
16076 :more2
16077 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16078 p
16079 g
16080 s/.\{148\}//
16081 t delim
16082 ' <conf$$subs.awk | sed '
16083 /^[^""]/{
16084 N
16085 s/\n//
16086 }
16087 ' >>$CONFIG_STATUS || ac_write_fail=1
16088 rm -f conf$$subs.awk
16089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16090 _ACAWK
16091 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16092 for (key in S) S_is_set[key] = 1
16093 FS = "\a"
16094 \$ac_cs_awk_pipe_init
16095 }
16096 {
16097 line = $ 0
16098 nfields = split(line, field, "@")
16099 substed = 0
16100 len = length(field[1])
16101 for (i = 2; i < nfields; i++) {
16102 key = field[i]
16103 keylen = length(key)
16104 if (S_is_set[key]) {
16105 value = S[key]
16106 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16107 len += length(value) + length(field[++i])
16108 substed = 1
16109 } else
16110 len += 1 + keylen
16111 }
16112 if (nfields == 3 && !substed) {
16113 key = field[2]
16114 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16115 \$ac_cs_awk_read_file
16116 next
16117 }
16118 }
16119 print line
16120 }
16121 \$ac_cs_awk_pipe_fini
16122 _ACAWK
16123 _ACEOF
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16126 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16127 else
16128 cat
16129 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16130 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16131 _ACEOF
16132
16133 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16134 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16135 # trailing colons and then remove the whole line if VPATH becomes empty
16136 # (actually we leave an empty line to preserve line numbers).
16137 if test "x$srcdir" = x.; then
16138 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16139 h
16140 s///
16141 s/^/:/
16142 s/[ ]*$/:/
16143 s/:\$(srcdir):/:/g
16144 s/:\${srcdir}:/:/g
16145 s/:@srcdir@:/:/g
16146 s/^:*//
16147 s/:*$//
16148 x
16149 s/\(=[ ]*\).*/\1/
16150 G
16151 s/\n//
16152 s/^[^=]*=[ ]*$//
16153 }'
16154 fi
16155
16156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157 fi # test -n "$CONFIG_FILES"
16158
16159
16160 eval set X " :F $CONFIG_FILES "
16161 shift
16162 for ac_tag
16163 do
16164 case $ac_tag in
16165 :[FHLC]) ac_mode=$ac_tag; continue;;
16166 esac
16167 case $ac_mode$ac_tag in
16168 :[FHL]*:*);;
16169 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16170 :[FH]-) ac_tag=-:-;;
16171 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16172 esac
16173 ac_save_IFS=$IFS
16174 IFS=:
16175 set x $ac_tag
16176 IFS=$ac_save_IFS
16177 shift
16178 ac_file=$1
16179 shift
16180
16181 case $ac_mode in
16182 :L) ac_source=$1;;
16183 :[FH])
16184 ac_file_inputs=
16185 for ac_f
16186 do
16187 case $ac_f in
16188 -) ac_f="$ac_tmp/stdin";;
16189 *) # Look for the file first in the build tree, then in the source tree
16190 # (if the path is not absolute). The absolute path cannot be DOS-style,
16191 # because $ac_f cannot contain `:'.
16192 test -f "$ac_f" ||
16193 case $ac_f in
16194 [\\/$]*) false;;
16195 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16196 esac ||
16197 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16198 esac
16199 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16200 as_fn_append ac_file_inputs " '$ac_f'"
16201 done
16202
16203 # Let's still pretend it is `configure' which instantiates (i.e., don't
16204 # use $as_me), people would be surprised to read:
16205 # /* config.h. Generated by config.status. */
16206 configure_input='Generated from '`
16207 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16208 `' by configure.'
16209 if test x"$ac_file" != x-; then
16210 configure_input="$ac_file. $configure_input"
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16212 $as_echo "$as_me: creating $ac_file" >&6;}
16213 fi
16214 # Neutralize special characters interpreted by sed in replacement strings.
16215 case $configure_input in #(
16216 *\&* | *\|* | *\\* )
16217 ac_sed_conf_input=`$as_echo "$configure_input" |
16218 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16219 *) ac_sed_conf_input=$configure_input;;
16220 esac
16221
16222 case $ac_tag in
16223 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16225 esac
16226 ;;
16227 esac
16228
16229 ac_dir=`$as_dirname -- "$ac_file" ||
16230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16231 X"$ac_file" : 'X\(//\)[^/]' \| \
16232 X"$ac_file" : 'X\(//\)$' \| \
16233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16234 $as_echo X"$ac_file" |
16235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16236 s//\1/
16237 q
16238 }
16239 /^X\(\/\/\)[^/].*/{
16240 s//\1/
16241 q
16242 }
16243 /^X\(\/\/\)$/{
16244 s//\1/
16245 q
16246 }
16247 /^X\(\/\).*/{
16248 s//\1/
16249 q
16250 }
16251 s/.*/./; q'`
16252 as_dir="$ac_dir"; as_fn_mkdir_p
16253 ac_builddir=.
16254
16255 case "$ac_dir" in
16256 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16257 *)
16258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16259 # A ".." for each directory in $ac_dir_suffix.
16260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16261 case $ac_top_builddir_sub in
16262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16264 esac ;;
16265 esac
16266 ac_abs_top_builddir=$ac_pwd
16267 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16268 # for backward compatibility:
16269 ac_top_builddir=$ac_top_build_prefix
16270
16271 case $srcdir in
16272 .) # We are building in place.
16273 ac_srcdir=.
16274 ac_top_srcdir=$ac_top_builddir_sub
16275 ac_abs_top_srcdir=$ac_pwd ;;
16276 [\\/]* | ?:[\\/]* ) # Absolute name.
16277 ac_srcdir=$srcdir$ac_dir_suffix;
16278 ac_top_srcdir=$srcdir
16279 ac_abs_top_srcdir=$srcdir ;;
16280 *) # Relative name.
16281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16282 ac_top_srcdir=$ac_top_build_prefix$srcdir
16283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16284 esac
16285 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16286
16287
16288 case $ac_mode in
16289 :F)
16290 #
16291 # CONFIG_FILE
16292 #
16293
16294 case $INSTALL in
16295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16296 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16297 esac
16298 _ACEOF
16299
16300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16301 # If the template does not know about datarootdir, expand it.
16302 # FIXME: This hack should be removed a few years after 2.60.
16303 ac_datarootdir_hack=; ac_datarootdir_seen=
16304 ac_sed_dataroot='
16305 /datarootdir/ {
16306 p
16307 q
16308 }
16309 /@datadir@/p
16310 /@docdir@/p
16311 /@infodir@/p
16312 /@localedir@/p
16313 /@mandir@/p'
16314 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16315 *datarootdir*) ac_datarootdir_seen=yes;;
16316 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16318 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16319 _ACEOF
16320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321 ac_datarootdir_hack='
16322 s&@datadir@&$datadir&g
16323 s&@docdir@&$docdir&g
16324 s&@infodir@&$infodir&g
16325 s&@localedir@&$localedir&g
16326 s&@mandir@&$mandir&g
16327 s&\\\${datarootdir}&$datarootdir&g' ;;
16328 esac
16329 _ACEOF
16330
16331 # Neutralize VPATH when `$srcdir' = `.'.
16332 # Shell code in configure.ac might set extrasub.
16333 # FIXME: do we really want to maintain this feature?
16334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16335 ac_sed_extra="$ac_vpsub
16336 $extrasub
16337 _ACEOF
16338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16339 :t
16340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16341 s|@configure_input@|$ac_sed_conf_input|;t t
16342 s&@top_builddir@&$ac_top_builddir_sub&;t t
16343 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16344 s&@srcdir@&$ac_srcdir&;t t
16345 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16346 s&@top_srcdir@&$ac_top_srcdir&;t t
16347 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16348 s&@builddir@&$ac_builddir&;t t
16349 s&@abs_builddir@&$ac_abs_builddir&;t t
16350 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16351 s&@INSTALL@&$ac_INSTALL&;t t
16352 $ac_datarootdir_hack
16353 "
16354 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16355 if $ac_cs_awk_getline; then
16356 $AWK -f "$ac_tmp/subs.awk"
16357 else
16358 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16359 fi \
16360 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16361
16362 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16363 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16365 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16367 which seems to be undefined. Please make sure it is defined" >&5
16368 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16369 which seems to be undefined. Please make sure it is defined" >&2;}
16370
16371 rm -f "$ac_tmp/stdin"
16372 case $ac_file in
16373 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16374 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16375 esac \
16376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16377 ;;
16378
16379
16380
16381 esac
16382
16383
16384 case $ac_file$ac_mode in
16385 "Makefile":F) sed "$extrasub_build" Makefile |
16386 sed "$extrasub_host" |
16387 sed "$extrasub_target" > mf$$
16388 mv -f mf$$ Makefile ;;
16389
16390 esac
16391 done # for ac_tag
16392
16393
16394 as_fn_exit 0
16395 _ACEOF
16396 ac_clean_files=$ac_clean_files_save
16397
16398 test $ac_write_fail = 0 ||
16399 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16400
16401
16402 # configure is writing to config.log, and then calls config.status.
16403 # config.status does its own redirection, appending to config.log.
16404 # Unfortunately, on DOS this fails, as config.log is still kept open
16405 # by configure, so config.status won't be able to write to it; its
16406 # output is simply discarded. So we exec the FD to /dev/null,
16407 # effectively closing config.log, so it can be properly (re)opened and
16408 # appended to by config.status. When coming back to configure, we
16409 # need to make the FD available again.
16410 if test "$no_create" != yes; then
16411 ac_cs_success=:
16412 ac_config_status_args=
16413 test "$silent" = yes &&
16414 ac_config_status_args="$ac_config_status_args --quiet"
16415 exec 5>/dev/null
16416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16417 exec 5>>config.log
16418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16419 # would make configure fail if this is the last instruction.
16420 $ac_cs_success || as_fn_exit 1
16421 fi
16422 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16424 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16425 fi
16426