]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
[PATCH 1/7] OpenMP 4.0 offloading infrastructure: configure and make
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
596 NM
597 LIPO
598 LD
599 DLLTOOL
600 AS
601 AR
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
606 LEX
607 M4
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 extra_host_libiberty_configure_flags
646 stage1_languages
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 islinc
650 isllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_ldflags
654 stage1_libs
655 extra_isl_gmp_configure_flags
656 extra_mpc_mpfr_configure_flags
657 extra_mpc_gmp_configure_flags
658 extra_mpfr_configure_flags
659 gmpinc
660 gmplibs
661 do_compare
662 GNATMAKE
663 GNATBIND
664 ac_ct_CXX
665 CXXFLAGS
666 CXX
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
673 CC
674 EXTRA_CONFIGARGS_LIBJAVA
675 target_subdir
676 host_subdir
677 build_subdir
678 build_libsubdir
679 AWK
680 SED
681 LN_S
682 LN
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 target_noncanonical
695 host_noncanonical
696 build_noncanonical
697 build_os
698 build_vendor
699 build_cpu
700 build
701 TOPLEVEL_CONFIGURE_ARGUMENTS
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files='serialization_dependencies
741 host_makefile_frag
742 target_makefile_frag
743 alphaieee_frag
744 ospace_frag'
745 ac_user_opts='
746 enable_option_checking
747 with_build_libsubdir
748 enable_as_accelerator_for
749 enable_offload_targets
750 enable_gold
751 enable_ld
752 enable_libquadmath
753 enable_libquadmath_support
754 enable_libada
755 enable_libssp
756 enable_libstdcxx
757 enable_static_libjava
758 enable_bootstrap
759 with_mpc
760 with_mpc_include
761 with_mpc_lib
762 with_mpfr_dir
763 with_mpfr
764 with_mpfr_include
765 with_mpfr_lib
766 with_gmp_dir
767 with_gmp
768 with_gmp_include
769 with_gmp_lib
770 with_host_libstdcxx
771 with_stage1_libs
772 with_stage1_ldflags
773 with_boot_libs
774 with_boot_ldflags
775 with_isl
776 with_isl_include
777 with_isl_lib
778 enable_isl_version_check
779 enable_lto
780 enable_linker_plugin_configure_flags
781 enable_linker_plugin_flags
782 enable_stage1_languages
783 enable_objc_gc
784 with_build_sysroot
785 with_debug_prefix_map
786 with_build_config
787 enable_vtable_verify
788 enable_serial_configure
789 with_build_time_tools
790 enable_maintainer_mode
791 enable_stage1_checking
792 enable_werror
793 enable_host_shared
794 '
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 CXX
804 CXXFLAGS
805 CCC
806 build_configargs
807 host_configargs
808 target_configargs
809 AR
810 AS
811 DLLTOOL
812 LD
813 LIPO
814 NM
815 RANLIB
816 STRIP
817 WINDRES
818 WINDMC
819 OBJCOPY
820 OBJDUMP
821 READELF
822 CC_FOR_TARGET
823 CXX_FOR_TARGET
824 GCC_FOR_TARGET
825 GCJ_FOR_TARGET
826 GFORTRAN_FOR_TARGET
827 GOC_FOR_TARGET
828 AR_FOR_TARGET
829 AS_FOR_TARGET
830 DLLTOOL_FOR_TARGET
831 LD_FOR_TARGET
832 LIPO_FOR_TARGET
833 NM_FOR_TARGET
834 OBJDUMP_FOR_TARGET
835 RANLIB_FOR_TARGET
836 READELF_FOR_TARGET
837 STRIP_FOR_TARGET
838 WINDRES_FOR_TARGET
839 WINDMC_FOR_TARGET'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 # Accept the important Cygnus configure options, so we can diagnose typos.
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1173
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1189
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1205
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1209
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1216
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1223
1224 -*) as_fn_error "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information."
1226 ;;
1227
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1237
1238 *)
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 ;;
1245
1246 esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1267 do
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1295 If a cross compiler is detected then cross compile mode will be used." >&2
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299 fi
1300
1301 ac_tool_prefix=
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304 test "$silent" = yes && exec 6>/dev/null
1305
1306
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error "pwd does not report name of working directory"
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346 else
1347 ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1352 fi
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 case $srcdir in
1368 *" "*)
1369 as_fn_error "path to source, $srcdir, contains spaces"
1370 ;;
1371 esac
1372 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1373
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1380
1381 #
1382 # Report the --help message.
1383 #
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1387 cat <<_ACEOF
1388 \`configure' configures this package to adapt to many kinds of systems.
1389
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1391
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1394
1395 Defaults for the options are specified in brackets.
1396
1397 Configuration:
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print \`checking...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for \`--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 [PREFIX]
1413
1414 By default, \`make install' will install all the files in
1415 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417 for instance \`--prefix=\$HOME'.
1418
1419 For better control, use the options below.
1420
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1442
1443 cat <<\_ACEOF
1444
1445 Program names:
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 --target=TARGET configure for building compilers for TARGET [HOST]
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458
1459 cat <<\_ACEOF
1460
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-as-accelerator-for=ARG
1466 build as offload target compiler. Specify offload
1467 host triple by ARG
1468 --enable-offload-targets=LIST
1469 enable offloading to devices from comma-separated
1470 LIST of TARGET[=DIR]. Use optional path to find
1471 offload target compiler during the build
1472 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1473 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1474 --disable-libquadmath do not build libquadmath directory
1475 --disable-libquadmath-support
1476 disable libquadmath support for Fortran
1477 --enable-libada build libada directory
1478 --enable-libssp build libssp directory
1479 --disable-libstdcxx do not build libstdc++-v3 directory
1480 --enable-static-libjava[=ARG]
1481 build static libjava [default=no]
1482 --enable-bootstrap enable bootstrapping [yes if native build]
1483 --disable-isl-version-check
1484 disable check for ISL version
1485 --enable-lto enable link time optimization support
1486 --enable-linker-plugin-configure-flags=FLAGS
1487 additional flags for configuring linker plugins
1488 [none]
1489 --enable-linker-plugin-flags=FLAGS
1490 additional flags for configuring and building linker
1491 plugins [none]
1492 --enable-stage1-languages[=all]
1493 choose additional languages to build during stage1.
1494 Mostly useful for compiler development
1495 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1496 Objective-C runtime
1497 --enable-vtable-verify Enable vtable verification feature
1498 --enable-serial-[{host,target,build}-]configure
1499 force sequential configuration of sub-packages for
1500 the host, target or build machine, or all
1501 sub-packages
1502 --enable-maintainer-mode
1503 enable make rules and dependencies not useful (and
1504 sometimes confusing) to the casual installer
1505 --enable-stage1-checking[=all]
1506 choose additional checking for stage1 of the
1507 compiler
1508 --enable-werror enable -Werror in bootstrap stage2 and later
1509 --enable-host-shared build host code as shared libraries
1510
1511 Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-build-libsubdir=DIR Directory where to find libraries for build system
1515 --with-mpc=PATH specify prefix directory for installed MPC package.
1516 Equivalent to --with-mpc-include=PATH/include plus
1517 --with-mpc-lib=PATH/lib
1518 --with-mpc-include=PATH specify directory for installed MPC include files
1519 --with-mpc-lib=PATH specify directory for the installed MPC library
1520 --with-mpfr-dir=PATH this option has been REMOVED
1521 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1522 Equivalent to --with-mpfr-include=PATH/include plus
1523 --with-mpfr-lib=PATH/lib
1524 --with-mpfr-include=PATH
1525 specify directory for installed MPFR include files
1526 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1527 --with-gmp-dir=PATH this option has been REMOVED
1528 --with-gmp=PATH specify prefix directory for the installed GMP
1529 package. Equivalent to
1530 --with-gmp-include=PATH/include plus
1531 --with-gmp-lib=PATH/lib
1532 --with-gmp-include=PATH specify directory for installed GMP include files
1533 --with-gmp-lib=PATH specify directory for the installed GMP library
1534 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1535 linking with PPL
1536 --with-stage1-libs=LIBS libraries for stage1
1537 --with-stage1-ldflags=FLAGS
1538 linker flags for stage1
1539 --with-boot-libs=LIBS libraries for stage2 and later
1540 --with-boot-ldflags=FLAGS
1541 linker flags for stage2 and later
1542 --with-isl=PATH Specify prefix directory for the installed ISL
1543 package. Equivalent to
1544 --with-isl-include=PATH/include plus
1545 --with-isl-lib=PATH/lib
1546 --with-isl-include=PATH Specify directory for installed ISL include files
1547 --with-isl-lib=PATH Specify the directory for the installed ISL library
1548 --with-build-sysroot=SYSROOT
1549 use sysroot as the system root during the build
1550 --with-debug-prefix-map='A=B C=D ...'
1551 map A to B, C to D ... in debug information
1552 --with-build-config='NAME NAME2...'
1553 use config/NAME.mk build configuration
1554 --with-build-time-tools=PATH
1555 use given path to find target tools during the build
1556
1557 Some influential environment variables:
1558 CC C compiler command
1559 CFLAGS C compiler flags
1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1561 nonstandard directory <lib dir>
1562 LIBS libraries to pass to the linker, e.g. -l<library>
1563 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
1565 CXX C++ compiler command
1566 CXXFLAGS C++ compiler flags
1567 build_configargs
1568 additional configure arguments for build directories
1569 host_configargs
1570 additional configure arguments for host directories
1571 target_configargs
1572 additional configure arguments for target directories
1573 AR AR for the host
1574 AS AS for the host
1575 DLLTOOL DLLTOOL for the host
1576 LD LD for the host
1577 LIPO LIPO for the host
1578 NM NM for the host
1579 RANLIB RANLIB for the host
1580 STRIP STRIP for the host
1581 WINDRES WINDRES for the host
1582 WINDMC WINDMC for the host
1583 OBJCOPY OBJCOPY for the host
1584 OBJDUMP OBJDUMP for the host
1585 READELF READELF for the host
1586 CC_FOR_TARGET
1587 CC for the target
1588 CXX_FOR_TARGET
1589 CXX for the target
1590 GCC_FOR_TARGET
1591 GCC for the target
1592 GCJ_FOR_TARGET
1593 GCJ for the target
1594 GFORTRAN_FOR_TARGET
1595 GFORTRAN for the target
1596 GOC_FOR_TARGET
1597 GOC for the target
1598 AR_FOR_TARGET
1599 AR for the target
1600 AS_FOR_TARGET
1601 AS for the target
1602 DLLTOOL_FOR_TARGET
1603 DLLTOOL for the target
1604 LD_FOR_TARGET
1605 LD for the target
1606 LIPO_FOR_TARGET
1607 LIPO for the target
1608 NM_FOR_TARGET
1609 NM for the target
1610 OBJDUMP_FOR_TARGET
1611 OBJDUMP for the target
1612 RANLIB_FOR_TARGET
1613 RANLIB for the target
1614 READELF_FOR_TARGET
1615 READELF for the target
1616 STRIP_FOR_TARGET
1617 STRIP for the target
1618 WINDRES_FOR_TARGET
1619 WINDRES for the target
1620 WINDMC_FOR_TARGET
1621 WINDMC for the target
1622
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1625
1626 Report bugs to the package provider.
1627 _ACEOF
1628 ac_status=$?
1629 fi
1630
1631 if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 continue
1637 ac_builddir=.
1638
1639 case "$ac_dir" in
1640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *)
1642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 esac ;;
1649 esac
1650 ac_abs_top_builddir=$ac_pwd
1651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652 # for backward compatibility:
1653 ac_top_builddir=$ac_top_build_prefix
1654
1655 case $srcdir in
1656 .) # We are building in place.
1657 ac_srcdir=.
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
1661 ac_srcdir=$srcdir$ac_dir_suffix;
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1664 *) # Relative name.
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 esac
1669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for guested configure.
1673 if test -f "$ac_srcdir/configure.gnu"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676 elif test -f "$ac_srcdir/configure"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure" --help=recursive
1679 else
1680 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 fi || ac_status=$?
1682 cd "$ac_pwd" || { ac_status=$?; break; }
1683 done
1684 fi
1685
1686 test -n "$ac_init_help" && exit $ac_status
1687 if $ac_init_version; then
1688 cat <<\_ACEOF
1689 configure
1690 generated by GNU Autoconf 2.64
1691
1692 Copyright (C) 2009 Free Software Foundation, Inc.
1693 This configure script is free software; the Free Software Foundation
1694 gives unlimited permission to copy, distribute and modify it.
1695 _ACEOF
1696 exit
1697 fi
1698
1699 ## ------------------------ ##
1700 ## Autoconf initialization. ##
1701 ## ------------------------ ##
1702
1703 # ac_fn_c_try_compile LINENO
1704 # --------------------------
1705 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_compile ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1
1735 fi
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 return $ac_retval
1738
1739 } # ac_fn_c_try_compile
1740
1741 # ac_fn_cxx_try_compile LINENO
1742 # ----------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_cxx_try_compile ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_cxx_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773 fi
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777 } # ac_fn_cxx_try_compile
1778
1779 # ac_fn_cxx_try_link LINENO
1780 # -------------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_cxx_try_link ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_cxx_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 $as_test_x conftest$ac_exeext
1807 }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814 fi
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1822
1823 } # ac_fn_cxx_try_link
1824
1825 # ac_fn_c_try_link LINENO
1826 # -----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_link ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 $as_test_x conftest$ac_exeext
1853 }; then :
1854 ac_retval=0
1855 else
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859 ac_retval=1
1860 fi
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1868
1869 } # ac_fn_c_try_link
1870 cat >config.log <<_ACEOF
1871 This file contains any messages produced by compilers while
1872 running configure, to aid debugging if configure makes a mistake.
1873
1874 It was created by $as_me, which was
1875 generated by GNU Autoconf 2.64. Invocation command line was
1876
1877 $ $0 $@
1878
1879 _ACEOF
1880 exec 5>>config.log
1881 {
1882 cat <<_ASUNAME
1883 ## --------- ##
1884 ## Platform. ##
1885 ## --------- ##
1886
1887 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1892
1893 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1895
1896 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1897 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1898 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1900 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1901 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1902 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1903
1904 _ASUNAME
1905
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 $as_echo "PATH: $as_dir"
1912 done
1913 IFS=$as_save_IFS
1914
1915 } >&5
1916
1917 cat >&5 <<_ACEOF
1918
1919
1920 ## ----------- ##
1921 ## Core tests. ##
1922 ## ----------- ##
1923
1924 _ACEOF
1925
1926
1927 # Keep a trace of the command line.
1928 # Strip out --no-create and --no-recursion so they do not pile up.
1929 # Strip out --silent because we don't want to record it for future runs.
1930 # Also quote any args containing shell meta-characters.
1931 # Make two passes to allow for proper duplicate-argument suppression.
1932 ac_configure_args=
1933 ac_configure_args0=
1934 ac_configure_args1=
1935 ac_must_keep_next=false
1936 for ac_pass in 1 2
1937 do
1938 for ac_arg
1939 do
1940 case $ac_arg in
1941 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943 | -silent | --silent | --silen | --sile | --sil)
1944 continue ;;
1945 *\'*)
1946 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947 esac
1948 case $ac_pass in
1949 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1950 2)
1951 as_fn_append ac_configure_args1 " '$ac_arg'"
1952 if test $ac_must_keep_next = true; then
1953 ac_must_keep_next=false # Got value, back to normal.
1954 else
1955 case $ac_arg in
1956 *=* | --config-cache | -C | -disable-* | --disable-* \
1957 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959 | -with-* | --with-* | -without-* | --without-* | --x)
1960 case "$ac_configure_args0 " in
1961 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962 esac
1963 ;;
1964 -* ) ac_must_keep_next=true ;;
1965 esac
1966 fi
1967 as_fn_append ac_configure_args " '$ac_arg'"
1968 ;;
1969 esac
1970 done
1971 done
1972 { ac_configure_args0=; unset ac_configure_args0;}
1973 { ac_configure_args1=; unset ac_configure_args1;}
1974
1975 # When interrupted or exit'd, cleanup temporary files, and complete
1976 # config.log. We remove comments because anyway the quotes in there
1977 # would cause problems or look ugly.
1978 # WARNING: Use '\'' to represent an apostrophe within the trap.
1979 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980 trap 'exit_status=$?
1981 # Save into config.log some information that might help in debugging.
1982 {
1983 echo
1984
1985 cat <<\_ASBOX
1986 ## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##
1989 _ASBOX
1990 echo
1991 # The following way of writing the cache mishandles newlines in values,
1992 (
1993 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1994 eval ac_val=\$$ac_var
1995 case $ac_val in #(
1996 *${as_nl}*)
1997 case $ac_var in #(
1998 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1999 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2000 esac
2001 case $ac_var in #(
2002 _ | IFS | as_nl) ;; #(
2003 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2004 *) { eval $ac_var=; unset $ac_var;} ;;
2005 esac ;;
2006 esac
2007 done
2008 (set) 2>&1 |
2009 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2010 *${as_nl}ac_space=\ *)
2011 sed -n \
2012 "s/'\''/'\''\\\\'\'''\''/g;
2013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2014 ;; #(
2015 *)
2016 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2017 ;;
2018 esac |
2019 sort
2020 )
2021 echo
2022
2023 cat <<\_ASBOX
2024 ## ----------------- ##
2025 ## Output variables. ##
2026 ## ----------------- ##
2027 _ASBOX
2028 echo
2029 for ac_var in $ac_subst_vars
2030 do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in
2033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034 esac
2035 $as_echo "$ac_var='\''$ac_val'\''"
2036 done | sort
2037 echo
2038
2039 if test -n "$ac_subst_files"; then
2040 cat <<\_ASBOX
2041 ## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##
2044 _ASBOX
2045 echo
2046 for ac_var in $ac_subst_files
2047 do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2055 fi
2056
2057 if test -s confdefs.h; then
2058 cat <<\_ASBOX
2059 ## ----------- ##
2060 ## confdefs.h. ##
2061 ## ----------- ##
2062 _ASBOX
2063 echo
2064 cat confdefs.h
2065 echo
2066 fi
2067 test "$ac_signal" != 0 &&
2068 $as_echo "$as_me: caught signal $ac_signal"
2069 $as_echo "$as_me: exit $exit_status"
2070 } >&5
2071 rm -f core *.core core.conftest.* &&
2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073 exit $exit_status
2074 ' 0
2075 for ac_signal in 1 2 13 15; do
2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077 done
2078 ac_signal=0
2079
2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2081 rm -f -r conftest* confdefs.h
2082
2083 $as_echo "/* confdefs.h */" > confdefs.h
2084
2085 # Predefined preprocessor variables.
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_URL "$PACKAGE_URL"
2109 _ACEOF
2110
2111
2112 # Let the site file select an alternate cache file if it wants to.
2113 # Prefer an explicitly selected file to automatically selected ones.
2114 ac_site_file1=NONE
2115 ac_site_file2=NONE
2116 if test -n "$CONFIG_SITE"; then
2117 ac_site_file1=$CONFIG_SITE
2118 elif test "x$prefix" != xNONE; then
2119 ac_site_file1=$prefix/share/config.site
2120 ac_site_file2=$prefix/etc/config.site
2121 else
2122 ac_site_file1=$ac_default_prefix/share/config.site
2123 ac_site_file2=$ac_default_prefix/etc/config.site
2124 fi
2125 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2126 do
2127 test "x$ac_site_file" = xNONE && continue
2128 if test -r "$ac_site_file"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2130 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2131 sed 's/^/| /' "$ac_site_file" >&5
2132 . "$ac_site_file"
2133 fi
2134 done
2135
2136 if test -r "$cache_file"; then
2137 # Some versions of bash will fail to source /dev/null (special
2138 # files actually), so we avoid doing that.
2139 if test -f "$cache_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2141 $as_echo "$as_me: loading cache $cache_file" >&6;}
2142 case $cache_file in
2143 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2144 *) . "./$cache_file";;
2145 esac
2146 fi
2147 else
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2149 $as_echo "$as_me: creating cache $cache_file" >&6;}
2150 >$cache_file
2151 fi
2152
2153 # Check that the precious variables saved in the cache have kept the same
2154 # value.
2155 ac_cache_corrupted=false
2156 for ac_var in $ac_precious_vars; do
2157 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2158 eval ac_new_set=\$ac_env_${ac_var}_set
2159 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2160 eval ac_new_val=\$ac_env_${ac_var}_value
2161 case $ac_old_set,$ac_new_set in
2162 set,)
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2164 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2165 ac_cache_corrupted=: ;;
2166 ,set)
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2168 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2169 ac_cache_corrupted=: ;;
2170 ,);;
2171 *)
2172 if test "x$ac_old_val" != "x$ac_new_val"; then
2173 # differences in whitespace do not lead to failure.
2174 ac_old_val_w=`echo x $ac_old_val`
2175 ac_new_val_w=`echo x $ac_new_val`
2176 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2178 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2179 ac_cache_corrupted=:
2180 else
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2182 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2183 eval $ac_var=\$ac_old_val
2184 fi
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2186 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2188 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2189 fi;;
2190 esac
2191 # Pass precious variables to config.status.
2192 if test "$ac_new_set" = set; then
2193 case $ac_new_val in
2194 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2195 *) ac_arg=$ac_var=$ac_new_val ;;
2196 esac
2197 case " $ac_configure_args " in
2198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2199 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2200 esac
2201 fi
2202 done
2203 if $ac_cache_corrupted; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2207 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2208 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2209 fi
2210 ## -------------------- ##
2211 ## Main body of script. ##
2212 ## -------------------- ##
2213
2214 ac_ext=c
2215 ac_cpp='$CPP $CPPFLAGS'
2216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228 progname=$0
2229 # if PWD already has a value, it is probably wrong.
2230 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2231
2232 # Export original configure arguments for use by sub-configures.
2233 # Quote arguments with shell meta charatcers.
2234 TOPLEVEL_CONFIGURE_ARGUMENTS=
2235 set -- "$progname" "$@"
2236 for ac_arg
2237 do
2238 case "$ac_arg" in
2239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2240 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2241 # if the argument is of the form -foo=baz, quote the baz part only
2242 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2243 *) ;;
2244 esac
2245 # Add the quoted argument to the list.
2246 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2247 done
2248 if test "$silent" = yes; then
2249 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2250 fi
2251 # Remove the initial space we just introduced and, as these will be
2252 # expanded by make, quote '$'.
2253 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2254
2255
2256 # Find the build, host, and target systems.
2257 ac_aux_dir=
2258 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2259 for ac_t in install-sh install.sh shtool; do
2260 if test -f "$ac_dir/$ac_t"; then
2261 ac_aux_dir=$ac_dir
2262 ac_install_sh="$ac_aux_dir/$ac_t -c"
2263 break 2
2264 fi
2265 done
2266 done
2267 if test -z "$ac_aux_dir"; then
2268 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2269 fi
2270
2271 # These three variables are undocumented and unsupported,
2272 # and are intended to be withdrawn in a future Autoconf release.
2273 # They can cause serious problems if a builder's source tree is in a directory
2274 # whose full name contains unusual characters.
2275 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2276 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2277 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2278
2279
2280 # Make sure we can run config.sub.
2281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2282 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2283
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2285 $as_echo_n "checking build system type... " >&6; }
2286 if test "${ac_cv_build+set}" = set; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 ac_build_alias=$build_alias
2290 test "x$ac_build_alias" = x &&
2291 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2292 test "x$ac_build_alias" = x &&
2293 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2295 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2296
2297 fi
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2299 $as_echo "$ac_cv_build" >&6; }
2300 case $ac_cv_build in
2301 *-*-*) ;;
2302 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2303 esac
2304 build=$ac_cv_build
2305 ac_save_IFS=$IFS; IFS='-'
2306 set x $ac_cv_build
2307 shift
2308 build_cpu=$1
2309 build_vendor=$2
2310 shift; shift
2311 # Remember, the first character of IFS is used to create $*,
2312 # except with old shells:
2313 build_os=$*
2314 IFS=$ac_save_IFS
2315 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2316
2317
2318 case ${build_alias} in
2319 "") build_noncanonical=${build} ;;
2320 *) build_noncanonical=${build_alias} ;;
2321 esac
2322
2323
2324
2325 case ${host_alias} in
2326 "") host_noncanonical=${build_noncanonical} ;;
2327 *) host_noncanonical=${host_alias} ;;
2328 esac
2329
2330
2331
2332 case ${target_alias} in
2333 "") target_noncanonical=${host_noncanonical} ;;
2334 *) target_noncanonical=${target_alias} ;;
2335 esac
2336
2337
2338
2339
2340 test "$host_noncanonical" = "$target_noncanonical" &&
2341 test "$program_prefix$program_suffix$program_transform_name" = \
2342 NONENONEs,x,x, &&
2343 program_transform_name=s,y,y,
2344
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2346 $as_echo_n "checking host system type... " >&6; }
2347 if test "${ac_cv_host+set}" = set; then :
2348 $as_echo_n "(cached) " >&6
2349 else
2350 if test "x$host_alias" = x; then
2351 ac_cv_host=$ac_cv_build
2352 else
2353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2354 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2355 fi
2356
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2359 $as_echo "$ac_cv_host" >&6; }
2360 case $ac_cv_host in
2361 *-*-*) ;;
2362 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2363 esac
2364 host=$ac_cv_host
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_host
2367 shift
2368 host_cpu=$1
2369 host_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 host_os=$*
2374 IFS=$ac_save_IFS
2375 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2376
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2379 $as_echo_n "checking target system type... " >&6; }
2380 if test "${ac_cv_target+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test "x$target_alias" = x; then
2384 ac_cv_target=$ac_cv_host
2385 else
2386 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2388 fi
2389
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2392 $as_echo "$ac_cv_target" >&6; }
2393 case $ac_cv_target in
2394 *-*-*) ;;
2395 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2396 esac
2397 target=$ac_cv_target
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_target
2400 shift
2401 target_cpu=$1
2402 target_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 target_os=$*
2407 IFS=$ac_save_IFS
2408 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2409
2410
2411 # The aliases save the names the user supplied, while $host etc.
2412 # will get canonicalized.
2413 test -n "$target_alias" &&
2414 test "$program_prefix$program_suffix$program_transform_name" = \
2415 NONENONEs,x,x, &&
2416 program_prefix=${target_alias}-
2417
2418 test "$program_prefix" != NONE &&
2419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2420 # Use a double $ so make ignores it.
2421 test "$program_suffix" != NONE &&
2422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2423 # Double any \ or $.
2424 # By default was `s,x,x', remove it if useless.
2425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2427
2428
2429
2430 # Get 'install' or 'install-sh' and its variants.
2431 # Find a good install program. We prefer a C program (faster),
2432 # so one script is as good as another. But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2437 # AIX /bin/install
2438 # AmigaOS /C/install, which installs bootblocks on floppy discs
2439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442 # OS/2's system install, which has a completely different semantic
2443 # ./install, which can be erroneously created by make from ./install.sh.
2444 # Reject install programs that cannot install multiple files.
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2446 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2447 if test -z "$INSTALL"; then
2448 if test "${ac_cv_path_install+set}" = set; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 # Account for people who put trailing slashes in PATH elements.
2457 case $as_dir/ in #((
2458 ./ | .// | /[cC]/* | \
2459 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2460 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2461 /usr/ucb/* ) ;;
2462 *)
2463 # OSF1 and SCO ODT 3.0 have their own names for install.
2464 # Don't use installbsd from OSF since it installs stuff as root
2465 # by default.
2466 for ac_prog in ginstall scoinst install; do
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2469 if test $ac_prog = install &&
2470 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471 # AIX install. It has an incompatible calling convention.
2472 :
2473 elif test $ac_prog = install &&
2474 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # program-specific install script used by HP pwplus--don't use.
2476 :
2477 else
2478 rm -rf conftest.one conftest.two conftest.dir
2479 echo one > conftest.one
2480 echo two > conftest.two
2481 mkdir conftest.dir
2482 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2483 test -s conftest.one && test -s conftest.two &&
2484 test -s conftest.dir/conftest.one &&
2485 test -s conftest.dir/conftest.two
2486 then
2487 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2488 break 3
2489 fi
2490 fi
2491 fi
2492 done
2493 done
2494 ;;
2495 esac
2496
2497 done
2498 IFS=$as_save_IFS
2499
2500 rm -rf conftest.one conftest.two conftest.dir
2501
2502 fi
2503 if test "${ac_cv_path_install+set}" = set; then
2504 INSTALL=$ac_cv_path_install
2505 else
2506 # As a last resort, use the slow shell script. Don't cache a
2507 # value for INSTALL within a source directory, because that will
2508 # break other packages using the cache if that directory is
2509 # removed, or if the value is a relative name.
2510 INSTALL=$ac_install_sh
2511 fi
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2514 $as_echo "$INSTALL" >&6; }
2515
2516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517 # It thinks the first close brace ends the variable substitution.
2518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2519
2520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2521
2522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2523
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2525 $as_echo_n "checking whether ln works... " >&6; }
2526 if test "${acx_cv_prog_LN+set}" = set; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 rm -f conftestdata_t
2530 echo >conftestdata_f
2531 if ln conftestdata_f conftestdata_t 2>/dev/null
2532 then
2533 acx_cv_prog_LN=ln
2534 else
2535 acx_cv_prog_LN=no
2536 fi
2537 rm -f conftestdata_f conftestdata_t
2538
2539 fi
2540 if test $acx_cv_prog_LN = no; then
2541 LN="cp"
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2543 $as_echo "no, using $LN" >&6; }
2544 else
2545 LN="$acx_cv_prog_LN"
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2547 $as_echo "yes" >&6; }
2548 fi
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2551 $as_echo_n "checking whether ln -s works... " >&6; }
2552 LN_S=$as_ln_s
2553 if test "$LN_S" = "ln -s"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555 $as_echo "yes" >&6; }
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2558 $as_echo "no, using $LN_S" >&6; }
2559 fi
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2562 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2563 if test "${ac_cv_path_SED+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2567 for ac_i in 1 2 3 4 5 6 7; do
2568 ac_script="$ac_script$as_nl$ac_script"
2569 done
2570 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2571 { ac_script=; unset ac_script;}
2572 if test -z "$SED"; then
2573 ac_path_SED_found=false
2574 # Loop through the user's path and test for each of PROGNAME-LIST
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_prog in sed gsed; do
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2583 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2584 # Check for GNU ac_path_SED and select it if it is found.
2585 # Check for GNU $ac_path_SED
2586 case `"$ac_path_SED" --version 2>&1` in
2587 *GNU*)
2588 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2589 *)
2590 ac_count=0
2591 $as_echo_n 0123456789 >"conftest.in"
2592 while :
2593 do
2594 cat "conftest.in" "conftest.in" >"conftest.tmp"
2595 mv "conftest.tmp" "conftest.in"
2596 cp "conftest.in" "conftest.nl"
2597 $as_echo '' >> "conftest.nl"
2598 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2600 as_fn_arith $ac_count + 1 && ac_count=$as_val
2601 if test $ac_count -gt ${ac_path_SED_max-0}; then
2602 # Best one so far, save it but keep looking for a better one
2603 ac_cv_path_SED="$ac_path_SED"
2604 ac_path_SED_max=$ac_count
2605 fi
2606 # 10*(2^10) chars as input seems more than enough
2607 test $ac_count -gt 10 && break
2608 done
2609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2610 esac
2611
2612 $ac_path_SED_found && break 3
2613 done
2614 done
2615 done
2616 IFS=$as_save_IFS
2617 if test -z "$ac_cv_path_SED"; then
2618 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2619 fi
2620 else
2621 ac_cv_path_SED=$SED
2622 fi
2623
2624 fi
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2626 $as_echo "$ac_cv_path_SED" >&6; }
2627 SED="$ac_cv_path_SED"
2628 rm -f conftest.sed
2629
2630 for ac_prog in gawk mawk nawk awk
2631 do
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_AWK+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 if test -n "$AWK"; then
2640 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_AWK="$ac_prog"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 AWK=$ac_cv_prog_AWK
2660 if test -n "$AWK"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2662 $as_echo "$AWK" >&6; }
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669 test -n "$AWK" && break
2670 done
2671
2672
2673 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2674
2675 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2676 # a relative path.
2677 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2678 INSTALL="${srcpwd}/install-sh -c"
2679 fi
2680
2681 # Set srcdir to "." if that's what it is.
2682 # This is important for multilib support.
2683 pwd=`${PWDCMD-pwd}`
2684 if test "${pwd}" = "${srcpwd}" ; then
2685 srcdir=.
2686 fi
2687
2688 topsrcdir=$srcpwd
2689
2690 extra_host_args=
2691
2692 ### To add a new directory to the tree, first choose whether it is a target
2693 ### or a host dependent tool. Then put it into the appropriate list
2694 ### (library or tools, host or target), doing a dependency sort.
2695
2696 # Subdirs will be configured in the order listed in build_configdirs,
2697 # configdirs, or target_configdirs; see the serialization section below.
2698
2699 # Dependency sorting is only needed when *configuration* must be done in
2700 # a particular order. In all cases a dependency should be specified in
2701 # the Makefile, whether or not it's implicitly specified here.
2702
2703 # Double entries in build_configdirs, configdirs, or target_configdirs may
2704 # cause circular dependencies and break everything horribly.
2705
2706 # these library is used by various programs built for the build
2707 # environment
2708 #
2709 build_libs="build-libiberty build-libcpp"
2710
2711 # these tools are built for the build environment
2712 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2713
2714 # these libraries are used by various programs built for the host environment
2715 #f
2716 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2717
2718 # these tools are built for the host environment
2719 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2720 # know that we are building the simulator.
2721 # binutils, gas and ld appear in that order because it makes sense to run
2722 # "make check" in that particular order.
2723 # If --enable-gold is used, "gold" may replace "ld".
2724 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
2725
2726 # libgcj represents the runtime libraries only used by gcj.
2727 libgcj="target-libffi \
2728 target-zlib \
2729 target-libjava"
2730
2731 # these libraries are built for the target environment, and are built after
2732 # the host libraries and the host tools (which may be a cross compiler)
2733 # Note that libiberty is not a target library.
2734 target_libraries="target-libgcc \
2735 target-libbacktrace \
2736 target-libgloss \
2737 target-newlib \
2738 target-libgomp \
2739 target-libcilkrts \
2740 target-libatomic \
2741 target-libitm \
2742 target-libstdc++-v3 \
2743 target-libsanitizer \
2744 target-libvtv \
2745 target-libssp \
2746 target-libquadmath \
2747 target-libgfortran \
2748 target-boehm-gc \
2749 ${libgcj} \
2750 target-libobjc \
2751 target-libada \
2752 target-libgo"
2753
2754 # these tools are built using the target libraries, and are intended to
2755 # run only in the target environment
2756 #
2757 # note: any program that *uses* libraries that are in the "target_libraries"
2758 # list belongs in this list.
2759 #
2760 target_tools="target-rda"
2761
2762 ################################################################################
2763
2764 ## All tools belong in one of the four categories, and are assigned above
2765 ## We assign ${configdirs} this way to remove all embedded newlines. This
2766 ## is important because configure will choke if they ever get through.
2767 ## ${configdirs} is directories we build using the host tools.
2768 ## ${target_configdirs} is directories we build using the target tools.
2769 configdirs=`echo ${host_libs} ${host_tools}`
2770 target_configdirs=`echo ${target_libraries} ${target_tools}`
2771 build_configdirs=`echo ${build_libs} ${build_tools}`
2772
2773
2774
2775 ################################################################################
2776
2777 srcname="gnu development package"
2778
2779 # This gets set non-empty for some net releases of packages.
2780 appdirs=""
2781
2782 # Define is_cross_compiler to save on calls to 'test'.
2783 is_cross_compiler=
2784 if test x"${host}" = x"${target}" ; then
2785 is_cross_compiler=no
2786 else
2787 is_cross_compiler=yes
2788 fi
2789
2790 # Find the build and target subdir names.
2791
2792 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2793 # have matching libraries, they should use host libraries: Makefile.tpl
2794 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2795 # However, they still use the build modules, because the corresponding
2796 # host modules (e.g. bison) are only built for the host when bootstrap
2797 # finishes. So:
2798 # - build_subdir is where we find build modules, and never changes.
2799 # - build_libsubdir is where we find build libraries, and can be overridden.
2800
2801 # Prefix 'build-' so this never conflicts with target_subdir.
2802 build_subdir="build-${build_noncanonical}"
2803
2804 # Check whether --with-build-libsubdir was given.
2805 if test "${with_build_libsubdir+set}" = set; then :
2806 withval=$with_build_libsubdir; build_libsubdir="$withval"
2807 else
2808 build_libsubdir="$build_subdir"
2809 fi
2810
2811 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2812 if ( test $srcdir = . && test -d gcc ) \
2813 || test -d $srcdir/../host-${host_noncanonical}; then
2814 host_subdir="host-${host_noncanonical}"
2815 else
2816 host_subdir=.
2817 fi
2818 # No prefix.
2819 target_subdir=${target_noncanonical}
2820
2821 # Be sure to cover against remnants of an in-tree build.
2822 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2823 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2824 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2825 fi
2826
2827 # Skipdirs are removed silently.
2828 skipdirs=
2829 # Noconfigdirs are removed loudly.
2830 noconfigdirs=""
2831
2832 use_gnu_ld=
2833 # Make sure we don't let GNU ld be added if we didn't want it.
2834 if test x$with_gnu_ld = xno ; then
2835 use_gnu_ld=no
2836 noconfigdirs="$noconfigdirs ld gold"
2837 fi
2838
2839 use_gnu_as=
2840 # Make sure we don't let GNU as be added if we didn't want it.
2841 if test x$with_gnu_as = xno ; then
2842 use_gnu_as=no
2843 noconfigdirs="$noconfigdirs gas"
2844 fi
2845
2846 use_included_zlib=
2847 # Make sure we don't let ZLIB be added if we didn't want it.
2848 if test x$with_system_zlib = xyes ; then
2849 use_included_zlib=no
2850 noconfigdirs="$noconfigdirs zlib"
2851 fi
2852
2853 # some tools are so dependent upon X11 that if we're not building with X,
2854 # it's not even worth trying to configure, much less build, that tool.
2855
2856 case ${with_x} in
2857 yes | "") ;; # the default value for this tree is that X11 is available
2858 no)
2859 skipdirs="${skipdirs} tk itcl libgui"
2860 # We won't be able to build gdbtk without X.
2861 enable_gdbtk=no
2862 ;;
2863 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2864 esac
2865
2866 # Some are only suitable for cross toolchains.
2867 # Remove these if host=target.
2868 cross_only="target-libgloss target-newlib target-opcodes"
2869
2870 case $is_cross_compiler in
2871 no) skipdirs="${skipdirs} ${cross_only}" ;;
2872 esac
2873
2874 # If both --with-headers and --with-libs are specified, default to
2875 # --without-newlib.
2876 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2877 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2878 if test x"${with_newlib}" = x ; then
2879 with_newlib=no
2880 fi
2881 fi
2882
2883 # Recognize --with-newlib/--without-newlib.
2884 case ${with_newlib} in
2885 no) skipdirs="${skipdirs} target-newlib" ;;
2886 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2887 esac
2888
2889 # Check whether --enable-as-accelerator-for was given.
2890 if test "${enable_as_accelerator_for+set}" = set; then :
2891 enableval=$enable_as_accelerator_for; ENABLE_AS_ACCELERATOR_FOR=$enableval
2892 else
2893 ENABLE_AS_ACCELERATOR_FOR=no
2894 fi
2895
2896
2897 # Check whether --enable-offload-targets was given.
2898 if test "${enable_offload_targets+set}" = set; then :
2899 enableval=$enable_offload_targets;
2900 if test x"$enable_offload_targets" = x; then
2901 as_fn_error "no offload targets specified" "$LINENO" 5
2902 fi
2903
2904 else
2905 enable_offload_targets=
2906 fi
2907
2908
2909 # Handle --enable-gold, --enable-ld.
2910 # --disable-gold [--enable-ld]
2911 # Build only ld. Default option.
2912 # --enable-gold [--enable-ld]
2913 # Build both gold and ld. Install gold as "ld.gold", install ld
2914 # as "ld.bfd" and "ld".
2915 # --enable-gold=default [--enable-ld]
2916 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2917 # install ld as "ld.bfd".
2918 # --enable-gold[=default] --disable-ld
2919 # Build only gold, which is then installed as both "ld.gold" and "ld".
2920 # --enable-gold --enable-ld=default
2921 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2922 # and ld.bfd).
2923 # In other words, ld is default
2924 # --enable-gold=default --enable-ld=default
2925 # Error.
2926
2927 default_ld=
2928 # Check whether --enable-gold was given.
2929 if test "${enable_gold+set}" = set; then :
2930 enableval=$enable_gold; ENABLE_GOLD=$enableval
2931 else
2932 ENABLE_GOLD=no
2933 fi
2934
2935 case "${ENABLE_GOLD}" in
2936 yes|default)
2937 # Check for ELF target.
2938 is_elf=no
2939 case "${target}" in
2940 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2941 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2942 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2943 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2944 case "${target}" in
2945 *-*-linux*aout* | *-*-linux*oldld*)
2946 ;;
2947 *)
2948 is_elf=yes
2949 ;;
2950 esac
2951 esac
2952
2953 if test "$is_elf" = "yes"; then
2954 # Check for target supported by gold.
2955 case "${target}" in
2956 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2957 | aarch64*-*-* | tilegx*-*-*)
2958 configdirs="$configdirs gold"
2959 if test x${ENABLE_GOLD} = xdefault; then
2960 default_ld=gold
2961 fi
2962 ENABLE_GOLD=yes
2963 ;;
2964 esac
2965 fi
2966 ;;
2967 no)
2968 ;;
2969 *)
2970 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2971 ;;
2972 esac
2973
2974 # Check whether --enable-ld was given.
2975 if test "${enable_ld+set}" = set; then :
2976 enableval=$enable_ld; ENABLE_LD=$enableval
2977 else
2978 ENABLE_LD=yes
2979 fi
2980
2981
2982 case "${ENABLE_LD}" in
2983 default)
2984 if test x${default_ld} != x; then
2985 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2986 fi
2987 ;;
2988 yes)
2989 ;;
2990 no)
2991 if test x${ENABLE_GOLD} != xyes; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2993 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2994 fi
2995 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2996 ;;
2997 *)
2998 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2999 ;;
3000 esac
3001
3002 # Configure extra directories which are host specific
3003
3004 case "${host}" in
3005 *-cygwin*)
3006 configdirs="$configdirs libtermcap" ;;
3007 esac
3008
3009 # A target can indicate whether a language isn't supported for some reason.
3010 # Only spaces may be used in this macro; not newlines or tabs.
3011 unsupported_languages=
3012
3013 # Remove more programs from consideration, based on the host or
3014 # target this usually means that a port of the program doesn't
3015 # exist yet.
3016
3017 case "${host}" in
3018 i[3456789]86-*-msdosdjgpp*)
3019 noconfigdirs="$noconfigdirs tcl tk itcl"
3020 ;;
3021 esac
3022
3023
3024 # Check whether --enable-libquadmath was given.
3025 if test "${enable_libquadmath+set}" = set; then :
3026 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3027 else
3028 ENABLE_LIBQUADMATH=yes
3029 fi
3030
3031 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3032 noconfigdirs="$noconfigdirs target-libquadmath"
3033 fi
3034
3035
3036 # Check whether --enable-libquadmath-support was given.
3037 if test "${enable_libquadmath_support+set}" = set; then :
3038 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3039 else
3040 ENABLE_LIBQUADMATH_SUPPORT=yes
3041 fi
3042
3043 enable_libquadmath_support=
3044 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3045 enable_libquadmath_support=no
3046 fi
3047
3048
3049 # Check whether --enable-libada was given.
3050 if test "${enable_libada+set}" = set; then :
3051 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3052 else
3053 ENABLE_LIBADA=yes
3054 fi
3055
3056 if test "${ENABLE_LIBADA}" != "yes" ; then
3057 noconfigdirs="$noconfigdirs gnattools"
3058 fi
3059
3060 # Check whether --enable-libssp was given.
3061 if test "${enable_libssp+set}" = set; then :
3062 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3063 else
3064 ENABLE_LIBSSP=yes
3065 fi
3066
3067
3068 # Check whether --enable-libstdcxx was given.
3069 if test "${enable_libstdcxx+set}" = set; then :
3070 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3071 else
3072 ENABLE_LIBSTDCXX=default
3073 fi
3074
3075 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3076 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3077 fi
3078
3079 # Save it here so that, even in case of --enable-libgcj, if the Java
3080 # front-end isn't enabled, we still get libgcj disabled.
3081 libgcj_saved=$libgcj
3082 case $enable_libgcj in
3083 yes)
3084 # If we reset it here, it won't get added to noconfigdirs in the
3085 # target-specific build rules, so it will be forcibly enabled
3086 # (unless the Java language itself isn't enabled).
3087 libgcj=
3088 ;;
3089 no)
3090 # Make sure we get it printed in the list of not supported target libs.
3091 # Don't disable libffi, though, other languages use it.
3092 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3093 # Clear libgcj_saved so that even if java is enabled libffi won't be
3094 # built.
3095 libgcj_saved=
3096 ;;
3097 esac
3098
3099 # Check whether --enable-static-libjava was given.
3100 if test "${enable_static_libjava+set}" = set; then :
3101 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3102 else
3103 ENABLE_STATIC_LIBJAVA=no
3104 fi
3105
3106 enable_static_libjava=
3107 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3108 enable_static_libjava=yes
3109 fi
3110
3111 if test x$enable_static_libjava != xyes ; then
3112 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3113 fi
3114
3115
3116 # Disable libgomp on non POSIX hosted systems.
3117 if test x$enable_libgomp = x ; then
3118 # Enable libgomp by default on hosted POSIX systems.
3119 case "${target}" in
3120 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3121 ;;
3122 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3123 ;;
3124 *-*-solaris2* | *-*-hpux11*)
3125 ;;
3126 *-*-darwin* | *-*-aix*)
3127 ;;
3128 *)
3129 noconfigdirs="$noconfigdirs target-libgomp"
3130 ;;
3131 esac
3132 fi
3133
3134 # Disable libatomic on unsupported systems.
3135 if test -d ${srcdir}/libatomic; then
3136 if test x$enable_libatomic = x; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3138 $as_echo_n "checking for libatomic support... " >&6; }
3139 if (srcdir=${srcdir}/libatomic; \
3140 . ${srcdir}/configure.tgt; \
3141 test -n "$UNSUPPORTED")
3142 then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 noconfigdirs="$noconfigdirs target-libatomic"
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3148 $as_echo "yes" >&6; }
3149 fi
3150 fi
3151 fi
3152
3153 # Disable libcilkrts on unsupported systems.
3154 if test -d ${srcdir}/libcilkrts; then
3155 if test x$enable_libcilkrts = x; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3157 $as_echo_n "checking for libcilkrts support... " >&6; }
3158 if (srcdir=${srcdir}/libcilkrts; \
3159 . ${srcdir}/configure.tgt; \
3160 test -n "$UNSUPPORTED")
3161 then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 noconfigdirs="$noconfigdirs target-libcilkrts"
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3168 fi
3169 fi
3170 fi
3171
3172 # Disable libitm on unsupported systems.
3173 if test -d ${srcdir}/libitm; then
3174 if test x$enable_libitm = x; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3176 $as_echo_n "checking for libitm support... " >&6; }
3177 if (srcdir=${srcdir}/libitm; \
3178 . ${srcdir}/configure.tgt; \
3179 test -n "$UNSUPPORTED")
3180 then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 noconfigdirs="$noconfigdirs target-libitm"
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186 $as_echo "yes" >&6; }
3187 fi
3188 fi
3189 fi
3190
3191 # Disable libsanitizer on unsupported systems.
3192 if test -d ${srcdir}/libsanitizer; then
3193 if test x$enable_libsanitizer = x; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3195 $as_echo_n "checking for libsanitizer support... " >&6; }
3196 if (srcdir=${srcdir}/libsanitizer; \
3197 . ${srcdir}/configure.tgt; \
3198 test -n "$UNSUPPORTED")
3199 then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 noconfigdirs="$noconfigdirs target-libsanitizer"
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3206 fi
3207 fi
3208 fi
3209
3210 # Disable libvtv on unsupported systems.
3211 if test -d ${srcdir}/libvtv; then
3212 if test x$enable_libvtv = x; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3214 $as_echo_n "checking for libvtv support... " >&6; }
3215 if (srcdir=${srcdir}/libvtv; \
3216 . ${srcdir}/configure.tgt; \
3217 test "$VTV_SUPPORTED" != "yes")
3218 then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 noconfigdirs="$noconfigdirs target-libvtv"
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224 $as_echo "yes" >&6; }
3225 fi
3226 fi
3227 fi
3228
3229 # Disable libquadmath for some systems.
3230 case "${target}" in
3231 avr-*-*)
3232 noconfigdirs="$noconfigdirs target-libquadmath"
3233 ;;
3234 # libquadmath is unused on AIX and libquadmath build process use of
3235 # LD_LIBRARY_PATH can break AIX bootstrap.
3236 powerpc-*-aix* | rs6000-*-aix*)
3237 noconfigdirs="$noconfigdirs target-libquadmath"
3238 ;;
3239 esac
3240
3241 # Disable libssp for some systems.
3242 case "${target}" in
3243 avr-*-*)
3244 # No hosted I/O support.
3245 noconfigdirs="$noconfigdirs target-libssp"
3246 ;;
3247 powerpc-*-aix* | rs6000-*-aix*)
3248 noconfigdirs="$noconfigdirs target-libssp"
3249 ;;
3250 rl78-*-*)
3251 # libssp uses a misaligned load to trigger a fault, but the RL78
3252 # doesn't fault for those - instead, it gives a build-time error
3253 # for explicit misaligned loads.
3254 noconfigdirs="$noconfigdirs target-libssp"
3255 ;;
3256 esac
3257
3258 # Disable libstdc++-v3 for some systems.
3259 # Allow user to override this if they pass --enable-libstdc++-v3
3260 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3261 case "${target}" in
3262 *-*-vxworks*)
3263 # VxWorks uses the Dinkumware C++ library.
3264 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3265 ;;
3266 arm*-wince-pe*)
3267 # the C++ libraries don't build on top of CE's C libraries
3268 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3269 ;;
3270 avr-*-*)
3271 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3272 ;;
3273 esac
3274 fi
3275
3276 # Disable Fortran for some systems.
3277 case "${target}" in
3278 mmix-*-*)
3279 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3280 unsupported_languages="$unsupported_languages fortran"
3281 ;;
3282 esac
3283
3284 # Disable Java if libffi is not supported.
3285 case "${target}" in
3286 aarch64-*-*)
3287 ;;
3288 alpha*-*-*)
3289 ;;
3290 arm*-*-*)
3291 ;;
3292 cris-*-*)
3293 ;;
3294 frv-*-*)
3295 ;;
3296 hppa*-*-linux*)
3297 ;;
3298 hppa*-*-hpux*)
3299 ;;
3300 i?86-*-*)
3301 ;;
3302 ia64*-*-*)
3303 ;;
3304 m32r*-*-*)
3305 ;;
3306 m68k-*-*)
3307 ;;
3308 mips*-*-rtems*)
3309 ;;
3310 mips*-*-linux*)
3311 ;;
3312 powerpc*-*-linux*)
3313 ;;
3314 powerpc-*-darwin*)
3315 ;;
3316 powerpc-*-aix* | rs6000-*-aix*)
3317 ;;
3318 powerpc-*-freebsd*)
3319 ;;
3320 powerpc64-*-freebsd*)
3321 ;;
3322 powerpc*-*-rtems*)
3323 ;;
3324 s390-*-* | s390x-*-*)
3325 ;;
3326 sh-*-* | sh[34]*-*-*)
3327 ;;
3328 sh64-*-* | sh5*-*-*)
3329 ;;
3330 sparc*-*-*)
3331 ;;
3332 x86_64-*-*)
3333 ;;
3334 *-*-*)
3335 unsupported_languages="$unsupported_languages java"
3336 ;;
3337 esac
3338
3339 # Disable Java, libgcj or related libraries for some systems.
3340 case "${target}" in
3341 powerpc-*-darwin*)
3342 ;;
3343 i[3456789]86-*-darwin*)
3344 ;;
3345 x86_64-*-darwin[912]*)
3346 ;;
3347 *-*-darwin*)
3348 noconfigdirs="$noconfigdirs ${libgcj}"
3349 ;;
3350 *-*-netware*)
3351 noconfigdirs="$noconfigdirs ${libgcj}"
3352 ;;
3353 *-*-rtems*)
3354 noconfigdirs="$noconfigdirs ${libgcj}"
3355 ;;
3356 *-*-tpf*)
3357 noconfigdirs="$noconfigdirs ${libgcj}"
3358 ;;
3359 *-*-uclinux*)
3360 noconfigdirs="$noconfigdirs ${libgcj}"
3361 ;;
3362 *-*-vxworks*)
3363 noconfigdirs="$noconfigdirs ${libgcj}"
3364 ;;
3365 alpha*-*-*vms*)
3366 noconfigdirs="$noconfigdirs ${libgcj}"
3367 ;;
3368 arm-wince-pe)
3369 noconfigdirs="$noconfigdirs ${libgcj}"
3370 ;;
3371 arm*-*-symbianelf*)
3372 noconfigdirs="$noconfigdirs ${libgcj}"
3373 ;;
3374 bfin-*-*)
3375 noconfigdirs="$noconfigdirs target-boehm-gc"
3376 ;;
3377 cris-*-* | crisv32-*-*)
3378 unsupported_languages="$unsupported_languages java"
3379 case "${target}" in
3380 *-*-linux*)
3381 ;;
3382 *) # See PR46792 regarding target-libffi.
3383 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3384 esac
3385 ;;
3386 hppa*64*-*-linux*)
3387 # In this case, it's because the hppa64-linux target is for
3388 # the kernel only at this point and has no libc, and thus no
3389 # headers, crt*.o, etc., all of which are needed by these.
3390 unsupported_languages="$unsupported_languages java"
3391 ;;
3392 hppa*64*-*-hpux*)
3393 noconfigdirs="$noconfigdirs ${libgcj}"
3394 ;;
3395 hppa*-hp-hpux11*)
3396 ;;
3397 hppa*-*-hpux*)
3398 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3399 # build on HP-UX 10.20.
3400 noconfigdirs="$noconfigdirs ${libgcj}"
3401 ;;
3402 ia64*-*-*vms*)
3403 noconfigdirs="$noconfigdirs ${libgcj}"
3404 ;;
3405 i[3456789]86-w64-mingw*)
3406 noconfigdirs="$noconfigdirs ${libgcj}"
3407 ;;
3408 i[3456789]86-*-mingw*)
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3410 ;;
3411 x86_64-*-mingw*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3413 ;;
3414 mmix-*-*)
3415 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3416 ;;
3417 powerpc-*-aix*)
3418 # copied from rs6000-*-* entry
3419 noconfigdirs="$noconfigdirs ${libgcj}"
3420 ;;
3421 rs6000-*-aix*)
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3423 ;;
3424 *-*-lynxos*)
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3426 ;;
3427 esac
3428
3429 # Disable the go frontend on systems where it is known to not work. Please keep
3430 # this in sync with contrib/config-list.mk.
3431 case "${target}" in
3432 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3433 unsupported_languages="$unsupported_languages go"
3434 ;;
3435 esac
3436
3437 # Disable libgo for some systems where it is known to not work.
3438 # For testing, you can easily override this with --enable-libgo.
3439 if test x$enable_libgo = x; then
3440 case "${target}" in
3441 *-*-darwin*)
3442 # PR 46986
3443 noconfigdirs="$noconfigdirs target-libgo"
3444 ;;
3445 *-*-cygwin* | *-*-mingw*)
3446 noconfigdirs="$noconfigdirs target-libgo"
3447 ;;
3448 *-*-aix*)
3449 noconfigdirs="$noconfigdirs target-libgo"
3450 ;;
3451 esac
3452 fi
3453
3454 # Default libgloss CPU subdirectory.
3455 libgloss_dir="$target_cpu"
3456
3457 case "${target}" in
3458 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3459 libgloss_dir=wince
3460 ;;
3461 aarch64*-*-* )
3462 libgloss_dir=aarch64
3463 ;;
3464 arm*-*-*)
3465 libgloss_dir=arm
3466 ;;
3467 cris-*-* | crisv32-*-*)
3468 libgloss_dir=cris
3469 ;;
3470 hppa*-*-*)
3471 libgloss_dir=pa
3472 ;;
3473 i[3456789]86-*-*)
3474 libgloss_dir=i386
3475 ;;
3476 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3477 libgloss_dir=m68hc11
3478 ;;
3479 m68*-*-* | fido-*-*)
3480 libgloss_dir=m68k
3481 ;;
3482 mips*-*-*)
3483 libgloss_dir=mips
3484 ;;
3485 powerpc*-*-*)
3486 libgloss_dir=rs6000
3487 ;;
3488 sparc*-*-*)
3489 libgloss_dir=sparc
3490 ;;
3491 esac
3492
3493 # Disable newlib and libgloss for various target OSes.
3494 case "${target}" in
3495 alpha*-dec-osf*)
3496 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3497 ;;
3498 i[3456789]86-*-linux*)
3499 # This section makes it possible to build newlib natively on linux.
3500 # If we are using a cross compiler then don't configure newlib.
3501 if test x${is_cross_compiler} != xno ; then
3502 noconfigdirs="$noconfigdirs target-newlib"
3503 fi
3504 noconfigdirs="$noconfigdirs target-libgloss"
3505 # If we are not using a cross compiler, do configure newlib.
3506 # Note however, that newlib will only be configured in this situation
3507 # if the --with-newlib option has been given, because otherwise
3508 # 'target-newlib' will appear in skipdirs.
3509 ;;
3510 i[3456789]86-*-rdos*)
3511 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3512 ;;
3513 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3514 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3515 ;;
3516 sparc-*-sunos4*)
3517 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 ;;
3519 *-*-aix*)
3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 ;;
3522 *-*-beos*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 *-*-chorusos)
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 ;;
3528 *-*-dragonfly*)
3529 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 ;;
3531 *-*-freebsd*)
3532 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 ;;
3534 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3535 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 ;;
3537 *-*-lynxos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 *-*-mingw*)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 *-*-netbsd*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-netware*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-tpf*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
3552 *-*-uclinux*)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 ;;
3555 *-*-vxworks*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 esac
3559
3560 case "${target}" in
3561 *-*-chorusos)
3562 ;;
3563 powerpc-*-darwin*)
3564 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3565 noconfigdirs="$noconfigdirs sim target-rda"
3566 ;;
3567 i[3456789]86-*-darwin*)
3568 noconfigdirs="$noconfigdirs ld gprof"
3569 noconfigdirs="$noconfigdirs sim target-rda"
3570 ;;
3571 x86_64-*-darwin[912]*)
3572 noconfigdirs="$noconfigdirs ld gas gprof"
3573 noconfigdirs="$noconfigdirs sim target-rda"
3574 ;;
3575 *-*-darwin*)
3576 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3577 noconfigdirs="$noconfigdirs sim target-rda"
3578 ;;
3579 *-*-dragonfly*)
3580 ;;
3581 *-*-freebsd*)
3582 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3583 && test -f /usr/local/include/gmp.h; then
3584 with_gmp=/usr/local
3585 fi
3586 ;;
3587 *-*-kaos*)
3588 # Remove unsupported stuff on all kaOS configurations.
3589 noconfigdirs="$noconfigdirs target-libgloss"
3590 ;;
3591 *-*-netbsd*)
3592 ;;
3593 *-*-netware*)
3594 ;;
3595 *-*-rtems*)
3596 noconfigdirs="$noconfigdirs target-libgloss"
3597 ;;
3598 # The tpf target doesn't support gdb yet.
3599 *-*-tpf*)
3600 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3601 ;;
3602 *-*-uclinux*)
3603 noconfigdirs="$noconfigdirs target-rda"
3604 ;;
3605 *-*-vxworks*)
3606 ;;
3607 alpha*-dec-osf*)
3608 # ld works, but does not support shared libraries.
3609 # gas doesn't generate exception information.
3610 noconfigdirs="$noconfigdirs gas ld"
3611 ;;
3612 alpha*-*-*vms*)
3613 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3614 ;;
3615 alpha*-*-*)
3616 # newlib is not 64 bit ready
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 ;;
3619 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3620 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3621 ;;
3622 arc-*-*|arceb-*-*)
3623 noconfigdirs="$noconfigdirs target-libgloss"
3624 ;;
3625 arm-*-pe*)
3626 noconfigdirs="$noconfigdirs target-libgloss"
3627 ;;
3628 arm-*-riscix*)
3629 noconfigdirs="$noconfigdirs ld target-libgloss"
3630 ;;
3631 avr-*-rtems*)
3632 ;;
3633 avr-*-*)
3634 if test x${with_avrlibc} != xno; then
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 fi
3637 ;;
3638 c4x-*-* | tic4x-*-*)
3639 noconfigdirs="$noconfigdirs target-libgloss"
3640 ;;
3641 tic54x-*-*)
3642 noconfigdirs="$noconfigdirs target-libgloss gdb"
3643 ;;
3644 d10v-*-*)
3645 noconfigdirs="$noconfigdirs target-libgloss"
3646 ;;
3647 d30v-*-*)
3648 noconfigdirs="$noconfigdirs gdb"
3649 ;;
3650 fr30-*-elf*)
3651 noconfigdirs="$noconfigdirs gdb"
3652 ;;
3653 moxie-*-*)
3654 noconfigdirs="$noconfigdirs gprof"
3655 ;;
3656 h8300*-*-*)
3657 noconfigdirs="$noconfigdirs target-libgloss"
3658 ;;
3659 h8500-*-*)
3660 noconfigdirs="$noconfigdirs target-libgloss"
3661 ;;
3662 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3663 ;;
3664 hppa*64*-*-linux*)
3665 ;;
3666 hppa*-*-linux*)
3667 ;;
3668 hppa*-*-*elf* | \
3669 hppa*-*-lites* | \
3670 hppa*-*-openbsd* | \
3671 hppa*64*-*-*)
3672 ;;
3673 hppa*-hp-hpux11*)
3674 noconfigdirs="$noconfigdirs ld"
3675 ;;
3676 hppa*-*-pro*)
3677 ;;
3678 hppa*-*-*)
3679 noconfigdirs="$noconfigdirs ld"
3680 ;;
3681 i960-*-*)
3682 noconfigdirs="$noconfigdirs gdb"
3683 ;;
3684 ia64*-*-elf*)
3685 # No gdb support yet.
3686 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3687 ;;
3688 ia64*-**-hpux*)
3689 # No ld support yet.
3690 noconfigdirs="$noconfigdirs libgui itcl ld"
3691 ;;
3692 ia64*-*-*vms*)
3693 # No ld support yet.
3694 noconfigdirs="$noconfigdirs libgui itcl ld"
3695 ;;
3696 i[3456789]86-w64-mingw*)
3697 ;;
3698 i[3456789]86-*-mingw*)
3699 target_configdirs="$target_configdirs target-winsup"
3700 ;;
3701 *-*-cygwin*)
3702 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3703 noconfigdirs="$noconfigdirs target-libgloss"
3704 # always build newlib if winsup directory is present.
3705 if test -d "$srcdir/winsup/cygwin"; then
3706 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3707 elif test -d "$srcdir/newlib"; then
3708 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3709 fi
3710 ;;
3711 i[3456789]86-*-pe)
3712 noconfigdirs="$noconfigdirs target-libgloss"
3713 ;;
3714 i[3456789]86-*-sco3.2v5*)
3715 # The linker does not yet know about weak symbols in COFF,
3716 # and is not configured to handle mixed ELF and COFF.
3717 noconfigdirs="$noconfigdirs ld target-libgloss"
3718 ;;
3719 i[3456789]86-*-sco*)
3720 noconfigdirs="$noconfigdirs gprof target-libgloss"
3721 ;;
3722 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3723 noconfigdirs="$noconfigdirs target-libgloss"
3724 ;;
3725 i[3456789]86-*-sysv4*)
3726 noconfigdirs="$noconfigdirs target-libgloss"
3727 ;;
3728 i[3456789]86-*-beos*)
3729 noconfigdirs="$noconfigdirs gdb"
3730 ;;
3731 i[3456789]86-*-rdos*)
3732 noconfigdirs="$noconfigdirs gdb"
3733 ;;
3734 mmix-*-*)
3735 noconfigdirs="$noconfigdirs gdb"
3736 ;;
3737 mt-*-*)
3738 noconfigdirs="$noconfigdirs sim"
3739 ;;
3740 powerpc-*-aix*)
3741 # copied from rs6000-*-* entry
3742 noconfigdirs="$noconfigdirs gprof"
3743 ;;
3744 powerpc*-*-winnt* | powerpc*-*-pe*)
3745 target_configdirs="$target_configdirs target-winsup"
3746 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3747 # always build newlib.
3748 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3749 ;;
3750 # This is temporary until we can link against shared libraries
3751 powerpcle-*-solaris*)
3752 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3753 ;;
3754 powerpc-*-beos*)
3755 noconfigdirs="$noconfigdirs gdb"
3756 ;;
3757 rs6000-*-lynxos*)
3758 noconfigdirs="$noconfigdirs gprof"
3759 ;;
3760 rs6000-*-aix*)
3761 noconfigdirs="$noconfigdirs gprof"
3762 ;;
3763 rs6000-*-*)
3764 noconfigdirs="$noconfigdirs gprof"
3765 ;;
3766 m68k-apollo-*)
3767 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3768 ;;
3769 microblaze*)
3770 noconfigdirs="$noconfigdirs gprof"
3771 ;;
3772 mips*-sde-elf* | mips*-mti-elf*)
3773 if test x$with_newlib = xyes; then
3774 noconfigdirs="$noconfigdirs gprof"
3775 fi
3776 ;;
3777 mips*-*-irix5*)
3778 noconfigdirs="$noconfigdirs gprof target-libgloss"
3779 ;;
3780 mips*-*-irix6*)
3781 noconfigdirs="$noconfigdirs gprof target-libgloss"
3782 ;;
3783 mips*-*-bsd*)
3784 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3785 ;;
3786 mips*-*-linux*)
3787 ;;
3788 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3789 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3790 noconfigdirs="$noconfigdirs ld gas gprof"
3791 ;;
3792 mips*-*-*)
3793 noconfigdirs="$noconfigdirs gprof"
3794 ;;
3795 nvptx*-*-*)
3796 # nvptx is just a compiler
3797 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3798 ;;
3799 sh-*-* | sh64-*-*)
3800 case "${target}" in
3801 sh*-*-elf)
3802 ;;
3803 *)
3804 noconfigdirs="$noconfigdirs target-libgloss" ;;
3805 esac
3806 ;;
3807 sparc-*-sunos4*)
3808 if test x${is_cross_compiler} = xno ; then
3809 use_gnu_ld=no
3810 fi
3811 ;;
3812 tic6x-*-*)
3813 noconfigdirs="$noconfigdirs sim"
3814 ;;
3815 tilepro*-*-* | tilegx*-*-*)
3816 noconfigdirs="$noconfigdirs sim"
3817 ;;
3818 v810-*-*)
3819 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3820 ;;
3821 vax-*-*)
3822 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3823 ;;
3824 esac
3825
3826 # If we aren't building newlib, then don't build libgloss, since libgloss
3827 # depends upon some newlib header files.
3828 case "${noconfigdirs}" in
3829 *target-libgloss*) ;;
3830 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3831 esac
3832
3833 # Work in distributions that contain no compiler tools, like Autoconf.
3834 host_makefile_frag=/dev/null
3835 if test -d ${srcdir}/config ; then
3836 case "${host}" in
3837 i[3456789]86-*-msdosdjgpp*)
3838 host_makefile_frag="config/mh-djgpp"
3839 ;;
3840 *-cygwin*)
3841
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3843 $as_echo_n "checking to see if cat works as expected... " >&6; }
3844 echo a >cygwin-cat-check
3845 if test `cat cygwin-cat-check` = a ; then
3846 rm cygwin-cat-check
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3848 $as_echo "yes" >&6; }
3849 else
3850 rm cygwin-cat-check
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3853 as_fn_error "The cat command does not ignore carriage return characters.
3854 Please either mount the build directory in binary mode or run the following
3855 commands before running any configure script:
3856 set -o igncr
3857 export SHELLOPTS
3858 " "$LINENO" 5
3859 fi
3860
3861 host_makefile_frag="config/mh-cygwin"
3862 ;;
3863 *-mingw*)
3864 host_makefile_frag="config/mh-mingw"
3865 ;;
3866 alpha*-*-linux*)
3867 host_makefile_frag="config/mh-alpha-linux"
3868 ;;
3869 hppa*-hp-hpux10*)
3870 host_makefile_frag="config/mh-pa-hpux10"
3871 ;;
3872 hppa*-hp-hpux*)
3873 host_makefile_frag="config/mh-pa"
3874 ;;
3875 hppa*-*)
3876 host_makefile_frag="config/mh-pa"
3877 ;;
3878 *-*-darwin*)
3879 host_makefile_frag="config/mh-darwin"
3880 ;;
3881 powerpc-*-aix*)
3882 host_makefile_frag="config/mh-ppc-aix"
3883 ;;
3884 rs6000-*-aix*)
3885 host_makefile_frag="config/mh-ppc-aix"
3886 ;;
3887 esac
3888 fi
3889
3890 if test "${build}" != "${host}" ; then
3891 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3892 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3893 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3894 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3895 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3896 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3897 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3898 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3899 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3900 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3901 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3902 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3903 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3904 else
3905 AR_FOR_BUILD="\$(AR)"
3906 AS_FOR_BUILD="\$(AS)"
3907 CC_FOR_BUILD="\$(CC)"
3908 CXX_FOR_BUILD="\$(CXX)"
3909 GCJ_FOR_BUILD="\$(GCJ)"
3910 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3911 GOC_FOR_BUILD="\$(GOC)"
3912 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3913 LD_FOR_BUILD="\$(LD)"
3914 NM_FOR_BUILD="\$(NM)"
3915 RANLIB_FOR_BUILD="\$(RANLIB)"
3916 WINDRES_FOR_BUILD="\$(WINDRES)"
3917 WINDMC_FOR_BUILD="\$(WINDMC)"
3918 fi
3919
3920 ac_ext=c
3921 ac_cpp='$CPP $CPPFLAGS'
3922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 if test -n "$ac_tool_prefix"; then
3926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if test "${ac_cv_prog_CC+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -n "$CC"; then
3934 ac_cv_prog_CC="$CC" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947 done
3948 done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 CC=$ac_cv_prog_CC
3954 if test -n "$CC"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3956 $as_echo "$CC" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 fi
3961
3962
3963 fi
3964 if test -z "$ac_cv_prog_CC"; then
3965 ac_ct_CC=$CC
3966 # Extract the first word of "gcc", so it can be a program name with args.
3967 set dummy gcc; ac_word=$2
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969 $as_echo_n "checking for $ac_word... " >&6; }
3970 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 if test -n "$ac_ct_CC"; then
3974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3975 else
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3978 do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3983 ac_cv_prog_ac_ct_CC="gcc"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 break 2
3986 fi
3987 done
3988 done
3989 IFS=$as_save_IFS
3990
3991 fi
3992 fi
3993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3994 if test -n "$ac_ct_CC"; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3996 $as_echo "$ac_ct_CC" >&6; }
3997 else
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 $as_echo "no" >&6; }
4000 fi
4001
4002 if test "x$ac_ct_CC" = x; then
4003 CC=""
4004 else
4005 case $cross_compiling:$ac_tool_warned in
4006 yes:)
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4009 ac_tool_warned=yes ;;
4010 esac
4011 CC=$ac_ct_CC
4012 fi
4013 else
4014 CC="$ac_cv_prog_CC"
4015 fi
4016
4017 if test -z "$CC"; then
4018 if test -n "$ac_tool_prefix"; then
4019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4020 set dummy ${ac_tool_prefix}cc; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_CC+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 if test -n "$CC"; then
4027 ac_cv_prog_CC="$CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036 ac_cv_prog_CC="${ac_tool_prefix}cc"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 CC=$ac_cv_prog_CC
4047 if test -n "$CC"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4049 $as_echo "$CC" >&6; }
4050 else
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055
4056 fi
4057 fi
4058 if test -z "$CC"; then
4059 # Extract the first word of "cc", so it can be a program name with args.
4060 set dummy cc; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if test "${ac_cv_prog_CC+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4068 else
4069 ac_prog_rejected=no
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4078 ac_prog_rejected=yes
4079 continue
4080 fi
4081 ac_cv_prog_CC="cc"
4082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 break 2
4084 fi
4085 done
4086 done
4087 IFS=$as_save_IFS
4088
4089 if test $ac_prog_rejected = yes; then
4090 # We found a bogon in the path, so make sure we never use it.
4091 set dummy $ac_cv_prog_CC
4092 shift
4093 if test $# != 0; then
4094 # We chose a different compiler from the bogus one.
4095 # However, it has the same basename, so the bogon will be chosen
4096 # first if we set CC to just the basename; use the full file name.
4097 shift
4098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4099 fi
4100 fi
4101 fi
4102 fi
4103 CC=$ac_cv_prog_CC
4104 if test -n "$CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106 $as_echo "$CC" >&6; }
4107 else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110 fi
4111
4112
4113 fi
4114 if test -z "$CC"; then
4115 if test -n "$ac_tool_prefix"; then
4116 for ac_prog in cl.exe
4117 do
4118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if test "${ac_cv_prog_CC+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$CC"; then
4126 ac_cv_prog_CC="$CC" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139 done
4140 done
4141 IFS=$as_save_IFS
4142
4143 fi
4144 fi
4145 CC=$ac_cv_prog_CC
4146 if test -n "$CC"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4148 $as_echo "$CC" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152 fi
4153
4154
4155 test -n "$CC" && break
4156 done
4157 fi
4158 if test -z "$CC"; then
4159 ac_ct_CC=$CC
4160 for ac_prog in cl.exe
4161 do
4162 # Extract the first word of "$ac_prog", so it can be a program name with args.
4163 set dummy $ac_prog; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$ac_ct_CC"; then
4170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_ac_ct_CC="$ac_prog"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4182 fi
4183 done
4184 done
4185 IFS=$as_save_IFS
4186
4187 fi
4188 fi
4189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4190 if test -n "$ac_ct_CC"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4192 $as_echo "$ac_ct_CC" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 fi
4197
4198
4199 test -n "$ac_ct_CC" && break
4200 done
4201
4202 if test "x$ac_ct_CC" = x; then
4203 CC=""
4204 else
4205 case $cross_compiling:$ac_tool_warned in
4206 yes:)
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4209 ac_tool_warned=yes ;;
4210 esac
4211 CC=$ac_ct_CC
4212 fi
4213 fi
4214
4215 fi
4216
4217
4218 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220 as_fn_error "no acceptable C compiler found in \$PATH
4221 See \`config.log' for more details." "$LINENO" 5; }
4222
4223 # Provide some information about the compiler.
4224 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4225 set X $ac_compile
4226 ac_compiler=$2
4227 for ac_option in --version -v -V -qversion; do
4228 { { ac_try="$ac_compiler $ac_option >&5"
4229 case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232 esac
4233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4234 $as_echo "$ac_try_echo"; } >&5
4235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4236 ac_status=$?
4237 if test -s conftest.err; then
4238 sed '10a\
4239 ... rest of stderr output deleted ...
4240 10q' conftest.err >conftest.er1
4241 cat conftest.er1 >&5
4242 rm -f conftest.er1 conftest.err
4243 fi
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }
4246 done
4247
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250
4251 int
4252 main ()
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 ac_clean_files_save=$ac_clean_files
4260 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4261 # Try to create an executable without -o first, disregard a.out.
4262 # It will help us diagnose broken compilers, and finding out an intuition
4263 # of exeext.
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4265 $as_echo_n "checking for C compiler default output file name... " >&6; }
4266 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4267
4268 # The possible output files:
4269 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4270
4271 ac_rmfiles=
4272 for ac_file in $ac_files
4273 do
4274 case $ac_file in
4275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4276 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4277 esac
4278 done
4279 rm -f $ac_rmfiles
4280
4281 if { { ac_try="$ac_link_default"
4282 case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_link_default") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }; then :
4292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4294 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4295 # so that the user can short-circuit this test for compilers unknown to
4296 # Autoconf.
4297 for ac_file in $ac_files ''
4298 do
4299 test -f "$ac_file" || continue
4300 case $ac_file in
4301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4302 ;;
4303 [ab].out )
4304 # We found the default executable, but exeext='' is most
4305 # certainly right.
4306 break;;
4307 *.* )
4308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4309 then :; else
4310 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4311 fi
4312 # We set ac_cv_exeext here because the later test for it is not
4313 # safe: cross compilers may not add the suffix if given an `-o'
4314 # argument, so we may need to know it at that point already.
4315 # Even if this section looks crufty: it has the advantage of
4316 # actually working.
4317 break;;
4318 * )
4319 break;;
4320 esac
4321 done
4322 test "$ac_cv_exeext" = no && ac_cv_exeext=
4323
4324 else
4325 ac_file=''
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4328 $as_echo "$ac_file" >&6; }
4329 if test -z "$ac_file"; then :
4330 $as_echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 { { $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_set_status 77
4336 as_fn_error "C compiler cannot create executables
4337 See \`config.log' for more details." "$LINENO" 5; }; }
4338 fi
4339 ac_exeext=$ac_cv_exeext
4340
4341 # Check that the compiler produces executables we can run. If not, either
4342 # the compiler is broken, or we cross compile.
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4344 $as_echo_n "checking whether the C compiler works... " >&6; }
4345 # If not cross compiling, check that we can run a simple program.
4346 if test "$cross_compiling" != yes; then
4347 if { ac_try='./$ac_file'
4348 { { case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_try") 2>&5
4355 ac_status=$?
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; }; then
4358 cross_compiling=no
4359 else
4360 if test "$cross_compiling" = maybe; then
4361 cross_compiling=yes
4362 else
4363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error "cannot run C compiled programs.
4366 If you meant to cross compile, use \`--host'.
4367 See \`config.log' for more details." "$LINENO" 5; }
4368 fi
4369 fi
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4373
4374 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4375 ac_clean_files=$ac_clean_files_save
4376 # Check that the compiler produces executables we can run. If not, either
4377 # the compiler is broken, or we cross compile.
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4379 $as_echo_n "checking whether we are cross compiling... " >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4381 $as_echo "$cross_compiling" >&6; }
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4384 $as_echo_n "checking for suffix of executables... " >&6; }
4385 if { { ac_try="$ac_link"
4386 case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389 esac
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 $as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_link") 2>&5
4393 ac_status=$?
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }; then :
4396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4397 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4398 # work properly (i.e., refer to `conftest.exe'), while it won't with
4399 # `rm'.
4400 for ac_file in conftest.exe conftest conftest.*; do
4401 test -f "$ac_file" || continue
4402 case $ac_file in
4403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4405 break;;
4406 * ) break;;
4407 esac
4408 done
4409 else
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error "cannot compute suffix of executables: cannot compile and link
4413 See \`config.log' for more details." "$LINENO" 5; }
4414 fi
4415 rm -f conftest$ac_cv_exeext
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4417 $as_echo "$ac_cv_exeext" >&6; }
4418
4419 rm -f conftest.$ac_ext
4420 EXEEXT=$ac_cv_exeext
4421 ac_exeext=$EXEEXT
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4423 $as_echo_n "checking for suffix of object files... " >&6; }
4424 if test "${ac_cv_objext+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429
4430 int
4431 main ()
4432 {
4433
4434 ;
4435 return 0;
4436 }
4437 _ACEOF
4438 rm -f conftest.o conftest.obj
4439 if { { ac_try="$ac_compile"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_compile") 2>&5
4447 ac_status=$?
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; then :
4450 for ac_file in conftest.o conftest.obj conftest.*; do
4451 test -f "$ac_file" || continue;
4452 case $ac_file in
4453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4455 break;;
4456 esac
4457 done
4458 else
4459 $as_echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464 as_fn_error "cannot compute suffix of object files: cannot compile
4465 See \`config.log' for more details." "$LINENO" 5; }
4466 fi
4467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4470 $as_echo "$ac_cv_objext" >&6; }
4471 OBJEXT=$ac_cv_objext
4472 ac_objext=$OBJEXT
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4474 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4475 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4480
4481 int
4482 main ()
4483 {
4484 #ifndef __GNUC__
4485 choke me
4486 #endif
4487
4488 ;
4489 return 0;
4490 }
4491 _ACEOF
4492 if ac_fn_c_try_compile "$LINENO"; then :
4493 ac_compiler_gnu=yes
4494 else
4495 ac_compiler_gnu=no
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4499
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4502 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4503 if test $ac_compiler_gnu = yes; then
4504 GCC=yes
4505 else
4506 GCC=
4507 fi
4508 ac_test_CFLAGS=${CFLAGS+set}
4509 ac_save_CFLAGS=$CFLAGS
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4511 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4512 if test "${ac_cv_prog_cc_g+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 ac_save_c_werror_flag=$ac_c_werror_flag
4516 ac_c_werror_flag=yes
4517 ac_cv_prog_cc_g=no
4518 CFLAGS="-g"
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521
4522 int
4523 main ()
4524 {
4525
4526 ;
4527 return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 ac_cv_prog_cc_g=yes
4532 else
4533 CFLAGS=""
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main ()
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546
4547 else
4548 ac_c_werror_flag=$ac_save_c_werror_flag
4549 CFLAGS="-g"
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552
4553 int
4554 main ()
4555 {
4556
4557 ;
4558 return 0;
4559 }
4560 _ACEOF
4561 if ac_fn_c_try_compile "$LINENO"; then :
4562 ac_cv_prog_cc_g=yes
4563 fi
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 ac_c_werror_flag=$ac_save_c_werror_flag
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4572 $as_echo "$ac_cv_prog_cc_g" >&6; }
4573 if test "$ac_test_CFLAGS" = set; then
4574 CFLAGS=$ac_save_CFLAGS
4575 elif test $ac_cv_prog_cc_g = yes; then
4576 if test "$GCC" = yes; then
4577 CFLAGS="-g -O2"
4578 else
4579 CFLAGS="-g"
4580 fi
4581 else
4582 if test "$GCC" = yes; then
4583 CFLAGS="-O2"
4584 else
4585 CFLAGS=
4586 fi
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4589 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4590 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 ac_cv_prog_cc_c89=no
4594 ac_save_CC=$CC
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597 #include <stdarg.h>
4598 #include <stdio.h>
4599 #include <sys/types.h>
4600 #include <sys/stat.h>
4601 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4602 struct buf { int x; };
4603 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4604 static char *e (p, i)
4605 char **p;
4606 int i;
4607 {
4608 return p[i];
4609 }
4610 static char *f (char * (*g) (char **, int), char **p, ...)
4611 {
4612 char *s;
4613 va_list v;
4614 va_start (v,p);
4615 s = g (p, va_arg (v,int));
4616 va_end (v);
4617 return s;
4618 }
4619
4620 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4621 function prototypes and stuff, but not '\xHH' hex character constants.
4622 These don't provoke an error unfortunately, instead are silently treated
4623 as 'x'. The following induces an error, until -std is added to get
4624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4625 array size at least. It's necessary to write '\x00'==0 to get something
4626 that's true only with -std. */
4627 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4628
4629 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4630 inside strings and character constants. */
4631 #define FOO(x) 'x'
4632 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4633
4634 int test (int i, double x);
4635 struct s1 {int (*f) (int a);};
4636 struct s2 {int (*f) (double a);};
4637 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4638 int argc;
4639 char **argv;
4640 int
4641 main ()
4642 {
4643 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4650 do
4651 CC="$ac_save_CC $ac_arg"
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_prog_cc_c89=$ac_arg
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext
4656 test "x$ac_cv_prog_cc_c89" != "xno" && break
4657 done
4658 rm -f conftest.$ac_ext
4659 CC=$ac_save_CC
4660
4661 fi
4662 # AC_CACHE_VAL
4663 case "x$ac_cv_prog_cc_c89" in
4664 x)
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4666 $as_echo "none needed" >&6; } ;;
4667 xno)
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669 $as_echo "unsupported" >&6; } ;;
4670 *)
4671 CC="$CC $ac_cv_prog_cc_c89"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4673 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4674 esac
4675 if test "x$ac_cv_prog_cc_c89" != xno; then :
4676
4677 fi
4678
4679 ac_ext=c
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
4685 ac_ext=cpp
4686 ac_cpp='$CXXCPP $CPPFLAGS'
4687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4690 if test -z "$CXX"; then
4691 if test -n "$CCC"; then
4692 CXX=$CCC
4693 else
4694 if test -n "$ac_tool_prefix"; then
4695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4696 do
4697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_CXX+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$CXX"; then
4705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 CXX=$ac_cv_prog_CXX
4725 if test -n "$CXX"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4727 $as_echo "$CXX" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733
4734 test -n "$CXX" && break
4735 done
4736 fi
4737 if test -z "$CXX"; then
4738 ac_ct_CXX=$CXX
4739 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4740 do
4741 # Extract the first word of "$ac_prog", so it can be a program name with args.
4742 set dummy $ac_prog; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test -n "$ac_ct_CXX"; then
4749 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758 ac_cv_prog_ac_ct_CXX="$ac_prog"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766 fi
4767 fi
4768 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4769 if test -n "$ac_ct_CXX"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4771 $as_echo "$ac_ct_CXX" >&6; }
4772 else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777
4778 test -n "$ac_ct_CXX" && break
4779 done
4780
4781 if test "x$ac_ct_CXX" = x; then
4782 CXX="g++"
4783 else
4784 case $cross_compiling:$ac_tool_warned in
4785 yes:)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4788 ac_tool_warned=yes ;;
4789 esac
4790 CXX=$ac_ct_CXX
4791 fi
4792 fi
4793
4794 fi
4795 fi
4796 # Provide some information about the compiler.
4797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4798 set X $ac_compile
4799 ac_compiler=$2
4800 for ac_option in --version -v -V -qversion; do
4801 { { ac_try="$ac_compiler $ac_option >&5"
4802 case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4805 esac
4806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4807 $as_echo "$ac_try_echo"; } >&5
4808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4809 ac_status=$?
4810 if test -s conftest.err; then
4811 sed '10a\
4812 ... rest of stderr output deleted ...
4813 10q' conftest.err >conftest.er1
4814 cat conftest.er1 >&5
4815 rm -f conftest.er1 conftest.err
4816 fi
4817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4818 test $ac_status = 0; }
4819 done
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4822 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4823 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828
4829 int
4830 main ()
4831 {
4832 #ifndef __GNUC__
4833 choke me
4834 #endif
4835
4836 ;
4837 return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_cxx_try_compile "$LINENO"; then :
4841 ac_compiler_gnu=yes
4842 else
4843 ac_compiler_gnu=no
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4847
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4850 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4851 if test $ac_compiler_gnu = yes; then
4852 GXX=yes
4853 else
4854 GXX=
4855 fi
4856 ac_test_CXXFLAGS=${CXXFLAGS+set}
4857 ac_save_CXXFLAGS=$CXXFLAGS
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4859 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4860 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4864 ac_cxx_werror_flag=yes
4865 ac_cv_prog_cxx_g=no
4866 CXXFLAGS="-g"
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869
4870 int
4871 main ()
4872 {
4873
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_cxx_try_compile "$LINENO"; then :
4879 ac_cv_prog_cxx_g=yes
4880 else
4881 CXXFLAGS=""
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884
4885 int
4886 main ()
4887 {
4888
4889 ;
4890 return 0;
4891 }
4892 _ACEOF
4893 if ac_fn_cxx_try_compile "$LINENO"; then :
4894
4895 else
4896 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4897 CXXFLAGS="-g"
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900
4901 int
4902 main ()
4903 {
4904
4905 ;
4906 return 0;
4907 }
4908 _ACEOF
4909 if ac_fn_cxx_try_compile "$LINENO"; then :
4910 ac_cv_prog_cxx_g=yes
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4920 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4921 if test "$ac_test_CXXFLAGS" = set; then
4922 CXXFLAGS=$ac_save_CXXFLAGS
4923 elif test $ac_cv_prog_cxx_g = yes; then
4924 if test "$GXX" = yes; then
4925 CXXFLAGS="-g -O2"
4926 else
4927 CXXFLAGS="-g"
4928 fi
4929 else
4930 if test "$GXX" = yes; then
4931 CXXFLAGS="-O2"
4932 else
4933 CXXFLAGS=
4934 fi
4935 fi
4936 ac_ext=c
4937 ac_cpp='$CPP $CPPFLAGS'
4938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4941
4942
4943 # We must set the default linker to the linker used by gcc for the correct
4944 # operation of libtool. If LD is not defined and we are using gcc, try to
4945 # set the LD default to the ld used by gcc.
4946 if test -z "$LD"; then
4947 if test "$GCC" = yes; then
4948 case $build in
4949 *-*-mingw*)
4950 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4951 *)
4952 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4953 esac
4954 case $gcc_prog_ld in
4955 # Accept absolute paths.
4956 [\\/]* | [A-Za-z]:[\\/]*)
4957 LD="$gcc_prog_ld" ;;
4958 esac
4959 fi
4960 fi
4961
4962 # Check whether -static-libstdc++ -static-libgcc is supported.
4963 have_static_libs=no
4964 if test "$GCC" = yes; then
4965 saved_LDFLAGS="$LDFLAGS"
4966
4967 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4969 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4970 ac_ext=cpp
4971 ac_cpp='$CXXCPP $CPPFLAGS'
4972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4975
4976
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979
4980 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4981 #error -static-libstdc++ not implemented
4982 #endif
4983 int main() {}
4984 _ACEOF
4985 if ac_fn_cxx_try_link "$LINENO"; then :
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4987 $as_echo "yes" >&6; }; have_static_libs=yes
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext \
4993 conftest$ac_exeext conftest.$ac_ext
4994 ac_ext=c
4995 ac_cpp='$CPP $CPPFLAGS'
4996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4999
5000
5001 LDFLAGS="$saved_LDFLAGS"
5002 fi
5003
5004
5005
5006
5007 if test -n "$ac_tool_prefix"; then
5008 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5009 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$GNATBIND"; then
5016 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 GNATBIND=$ac_cv_prog_GNATBIND
5036 if test -n "$GNATBIND"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5038 $as_echo "$GNATBIND" >&6; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044
5045 fi
5046 if test -z "$ac_cv_prog_GNATBIND"; then
5047 ac_ct_GNATBIND=$GNATBIND
5048 # Extract the first word of "gnatbind", so it can be a program name with args.
5049 set dummy gnatbind; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 if test -n "$ac_ct_GNATBIND"; then
5056 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069 done
5070 done
5071 IFS=$as_save_IFS
5072
5073 fi
5074 fi
5075 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5076 if test -n "$ac_ct_GNATBIND"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5078 $as_echo "$ac_ct_GNATBIND" >&6; }
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083
5084 if test "x$ac_ct_GNATBIND" = x; then
5085 GNATBIND="no"
5086 else
5087 case $cross_compiling:$ac_tool_warned in
5088 yes:)
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5091 ac_tool_warned=yes ;;
5092 esac
5093 GNATBIND=$ac_ct_GNATBIND
5094 fi
5095 else
5096 GNATBIND="$ac_cv_prog_GNATBIND"
5097 fi
5098
5099 if test -n "$ac_tool_prefix"; then
5100 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5101 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -n "$GNATMAKE"; then
5108 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121 done
5122 done
5123 IFS=$as_save_IFS
5124
5125 fi
5126 fi
5127 GNATMAKE=$ac_cv_prog_GNATMAKE
5128 if test -n "$GNATMAKE"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5130 $as_echo "$GNATMAKE" >&6; }
5131 else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5134 fi
5135
5136
5137 fi
5138 if test -z "$ac_cv_prog_GNATMAKE"; then
5139 ac_ct_GNATMAKE=$GNATMAKE
5140 # Extract the first word of "gnatmake", so it can be a program name with args.
5141 set dummy gnatmake; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$ac_ct_GNATMAKE"; then
5148 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 fi
5166 fi
5167 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5168 if test -n "$ac_ct_GNATMAKE"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5170 $as_echo "$ac_ct_GNATMAKE" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5175
5176 if test "x$ac_ct_GNATMAKE" = x; then
5177 GNATMAKE="no"
5178 else
5179 case $cross_compiling:$ac_tool_warned in
5180 yes:)
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5183 ac_tool_warned=yes ;;
5184 esac
5185 GNATMAKE=$ac_ct_GNATMAKE
5186 fi
5187 else
5188 GNATMAKE="$ac_cv_prog_GNATMAKE"
5189 fi
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5192 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5193 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat >conftest.adb <<EOF
5197 procedure conftest is begin null; end conftest;
5198 EOF
5199 acx_cv_cc_gcc_supports_ada=no
5200 # There is a bug in old released versions of GCC which causes the
5201 # driver to exit successfully when the appropriate language module
5202 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5203 # Therefore we must check for the error message as well as an
5204 # unsuccessful exit.
5205 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5206 # given a .adb file, but produce no object file. So we must check
5207 # if an object file was really produced to guard against this.
5208 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5209 if test x"$errors" = x && test -f conftest.$ac_objext; then
5210 acx_cv_cc_gcc_supports_ada=yes
5211 fi
5212 rm -f conftest.*
5213 fi
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5215 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5216
5217 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5218 have_gnat=yes
5219 else
5220 have_gnat=no
5221 fi
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5224 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5225 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 echo abfoo >t1
5229 echo cdfoo >t2
5230 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5231 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5232 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5233 :
5234 else
5235 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5236 fi
5237 fi
5238 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5239 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5240 :
5241 else
5242 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5243 fi
5244 fi
5245 rm t1 t2
5246
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5249 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5250 do_compare="$gcc_cv_prog_cmp_skip"
5251
5252
5253
5254 # Check whether --enable-bootstrap was given.
5255 if test "${enable_bootstrap+set}" = set; then :
5256 enableval=$enable_bootstrap;
5257 else
5258 enable_bootstrap=default
5259 fi
5260
5261
5262 # Issue errors and warnings for invalid/strange bootstrap combinations.
5263 if test -r $srcdir/gcc/configure; then
5264 have_compiler=yes
5265 else
5266 have_compiler=no
5267 fi
5268
5269 case "$have_compiler:$host:$target:$enable_bootstrap" in
5270 *:*:*:no) ;;
5271
5272 # Default behavior. Enable bootstrap if we have a compiler
5273 # and we are in a native configuration.
5274 yes:$build:$build:default)
5275 enable_bootstrap=yes ;;
5276
5277 *:*:*:default)
5278 enable_bootstrap=no ;;
5279
5280 # We have a compiler and we are in a native configuration, bootstrap is ok
5281 yes:$build:$build:yes)
5282 ;;
5283
5284 # Other configurations, but we have a compiler. Assume the user knows
5285 # what he's doing.
5286 yes:*:*:yes)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5288 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5289 ;;
5290
5291 # No compiler: if they passed --enable-bootstrap explicitly, fail
5292 no:*:*:yes)
5293 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5294
5295 # Fail if wrong command line
5296 *)
5297 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5298 ;;
5299 esac
5300
5301 # Used for setting $lt_cv_objdir
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5303 $as_echo_n "checking for objdir... " >&6; }
5304 if test "${lt_cv_objdir+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 rm -f .libs 2>/dev/null
5308 mkdir .libs 2>/dev/null
5309 if test -d .libs; then
5310 lt_cv_objdir=.libs
5311 else
5312 # MS-DOS does not allow filenames that begin with a dot.
5313 lt_cv_objdir=_libs
5314 fi
5315 rmdir .libs 2>/dev/null
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5318 $as_echo "$lt_cv_objdir" >&6; }
5319 objdir=$lt_cv_objdir
5320
5321
5322
5323
5324
5325 cat >>confdefs.h <<_ACEOF
5326 #define LT_OBJDIR "$lt_cv_objdir/"
5327 _ACEOF
5328
5329
5330
5331 # Check for GMP, MPFR and MPC
5332 gmplibs="-lmpc -lmpfr -lgmp"
5333 gmpinc=
5334 have_gmp=no
5335
5336 # Specify a location for mpc
5337 # check for this first so it ends up on the link line before mpfr.
5338
5339 # Check whether --with-mpc was given.
5340 if test "${with_mpc+set}" = set; then :
5341 withval=$with_mpc;
5342 fi
5343
5344
5345 # Check whether --with-mpc-include was given.
5346 if test "${with_mpc_include+set}" = set; then :
5347 withval=$with_mpc_include;
5348 fi
5349
5350
5351 # Check whether --with-mpc-lib was given.
5352 if test "${with_mpc_lib+set}" = set; then :
5353 withval=$with_mpc_lib;
5354 fi
5355
5356
5357 if test "x$with_mpc" != x; then
5358 gmplibs="-L$with_mpc/lib $gmplibs"
5359 gmpinc="-I$with_mpc/include $gmpinc"
5360 fi
5361 if test "x$with_mpc_include" != x; then
5362 gmpinc="-I$with_mpc_include $gmpinc"
5363 fi
5364 if test "x$with_mpc_lib" != x; then
5365 gmplibs="-L$with_mpc_lib $gmplibs"
5366 fi
5367 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5368 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5369 gmpinc='-I$$s/mpc/src '"$gmpinc"
5370 # Do not test the mpc version. Assume that it is sufficient, since
5371 # it is in the source tree, and the library has not been built yet
5372 # but it would be included on the link line in the version check below
5373 # hence making the test fail.
5374 have_gmp=yes
5375 fi
5376
5377 # Specify a location for mpfr
5378 # check for this first so it ends up on the link line before gmp.
5379
5380 # Check whether --with-mpfr-dir was given.
5381 if test "${with_mpfr_dir+set}" = set; then :
5382 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5383 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5384 fi
5385
5386
5387
5388 # Check whether --with-mpfr was given.
5389 if test "${with_mpfr+set}" = set; then :
5390 withval=$with_mpfr;
5391 fi
5392
5393
5394 # Check whether --with-mpfr-include was given.
5395 if test "${with_mpfr_include+set}" = set; then :
5396 withval=$with_mpfr_include;
5397 fi
5398
5399
5400 # Check whether --with-mpfr-lib was given.
5401 if test "${with_mpfr_lib+set}" = set; then :
5402 withval=$with_mpfr_lib;
5403 fi
5404
5405
5406 if test "x$with_mpfr" != x; then
5407 gmplibs="-L$with_mpfr/lib $gmplibs"
5408 gmpinc="-I$with_mpfr/include $gmpinc"
5409 fi
5410 if test "x$with_mpfr_include" != x; then
5411 gmpinc="-I$with_mpfr_include $gmpinc"
5412 fi
5413 if test "x$with_mpfr_lib" != x; then
5414 gmplibs="-L$with_mpfr_lib $gmplibs"
5415 fi
5416 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5417 # MPFR v3.1.0 moved the sources into a src sub-directory.
5418 if test -d ${srcdir}/mpfr/src; then
5419 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5420 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5421 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5422 else
5423 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5424 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5425 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5426 fi
5427 # Do not test the mpfr version. Assume that it is sufficient, since
5428 # it is in the source tree, and the library has not been built yet
5429 # but it would be included on the link line in the version check below
5430 # hence making the test fail.
5431 have_gmp=yes
5432 fi
5433
5434 # Specify a location for gmp
5435
5436 # Check whether --with-gmp-dir was given.
5437 if test "${with_gmp_dir+set}" = set; then :
5438 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5439 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5440 fi
5441
5442
5443
5444 # Check whether --with-gmp was given.
5445 if test "${with_gmp+set}" = set; then :
5446 withval=$with_gmp;
5447 fi
5448
5449
5450 # Check whether --with-gmp-include was given.
5451 if test "${with_gmp_include+set}" = set; then :
5452 withval=$with_gmp_include;
5453 fi
5454
5455
5456 # Check whether --with-gmp-lib was given.
5457 if test "${with_gmp_lib+set}" = set; then :
5458 withval=$with_gmp_lib;
5459 fi
5460
5461
5462
5463 if test "x$with_gmp" != x; then
5464 gmplibs="-L$with_gmp/lib $gmplibs"
5465 gmpinc="-I$with_gmp/include $gmpinc"
5466 fi
5467 if test "x$with_gmp_include" != x; then
5468 gmpinc="-I$with_gmp_include $gmpinc"
5469 fi
5470 if test "x$with_gmp_lib" != x; then
5471 gmplibs="-L$with_gmp_lib $gmplibs"
5472 fi
5473 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5474 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5475 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5476 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5477 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5478 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5479 # Do not test the gmp version. Assume that it is sufficient, since
5480 # it is in the source tree, and the library has not been built yet
5481 # but it would be included on the link line in the version check below
5482 # hence making the test fail.
5483 have_gmp=yes
5484 fi
5485
5486 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5487 have_gmp=yes
5488 saved_CFLAGS="$CFLAGS"
5489 CFLAGS="$CFLAGS $gmpinc"
5490 # Check for the recommended and required versions of GMP.
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5492 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5493
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496 #include "gmp.h"
5497 int
5498 main ()
5499 {
5500
5501 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5502 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5503 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5504 choke me
5505 #endif
5506
5507 ;
5508 return 0;
5509 }
5510 _ACEOF
5511 if ac_fn_c_try_compile "$LINENO"; then :
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <gmp.h>
5515 int
5516 main ()
5517 {
5518
5519 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5520 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5521 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5522 choke me
5523 #endif
5524
5525 ;
5526 return 0;
5527 }
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531 $as_echo "yes" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5534 $as_echo "buggy but acceptable" >&6; }
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }; have_gmp=no
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542
5543 # If we have GMP, check the MPFR version.
5544 if test x"$have_gmp" = xyes; then
5545 # Check for the recommended and required versions of MPFR.
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5547 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550 #include <gmp.h>
5551 #include <mpfr.h>
5552 int
5553 main ()
5554 {
5555
5556 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5557 choke me
5558 #endif
5559
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #include <gmp.h>
5568 #include <mpfr.h>
5569 int
5570 main ()
5571 {
5572
5573 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5574 choke me
5575 #endif
5576
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5583 $as_echo "yes" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5586 $as_echo "buggy but acceptable" >&6; }
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }; have_gmp=no
5592 fi
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 fi
5595
5596 # Check for the MPC header version.
5597 if test x"$have_gmp" = xyes ; then
5598 # Check for the recommended and required versions of MPC.
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5600 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <mpc.h>
5604 int
5605 main ()
5606 {
5607
5608 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5609 choke me
5610 #endif
5611
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <mpc.h>
5620 int
5621 main ()
5622 {
5623
5624 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5625 choke me
5626 #endif
5627
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"; then :
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5634 $as_echo "yes" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5637 $as_echo "buggy but acceptable" >&6; }
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }; have_gmp=no
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 fi
5646
5647 # Now check the MPFR library.
5648 if test x"$have_gmp" = xyes; then
5649 saved_LIBS="$LIBS"
5650 LIBS="$LIBS $gmplibs"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5652 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <mpc.h>
5656 int
5657 main ()
5658 {
5659
5660 mpfr_t n;
5661 mpfr_t x;
5662 mpc_t c;
5663 int t;
5664 mpfr_init (n);
5665 mpfr_init (x);
5666 mpfr_atan2 (n, n, x, GMP_RNDN);
5667 mpfr_erfc (n, x, GMP_RNDN);
5668 mpfr_subnormalize (x, t, GMP_RNDN);
5669 mpfr_clear(n);
5670 mpfr_clear(x);
5671 mpc_init2 (c, 53);
5672 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5673 mpc_cosh (c, c, MPC_RNDNN);
5674 mpc_pow (c, c, c, MPC_RNDNN);
5675 mpc_acosh (c, c, MPC_RNDNN);
5676 mpc_clear (c);
5677
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_link "$LINENO"; then :
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684 $as_echo "yes" >&6; }
5685 else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }; have_gmp=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691 LIBS="$saved_LIBS"
5692 fi
5693
5694 CFLAGS="$saved_CFLAGS"
5695
5696 # The library versions listed in the error message below should match
5697 # the HARD-minimums enforced above.
5698 if test x$have_gmp != xyes; then
5699 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5700 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5701 their locations. Source code for these libraries can be found at
5702 their respective hosting sites as well as at
5703 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5704 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5705 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5706 make sure that you have installed both the libraries and the header
5707 files. They may be located in separate packages." "$LINENO" 5
5708 fi
5709 fi
5710
5711 # Flags needed for both GMP, MPFR and/or MPC.
5712
5713
5714
5715
5716
5717
5718
5719 # Allow host libstdc++ to be specified for static linking with PPL.
5720
5721 # Check whether --with-host-libstdcxx was given.
5722 if test "${with_host_libstdcxx+set}" = set; then :
5723 withval=$with_host_libstdcxx;
5724 fi
5725
5726
5727 case $with_host_libstdcxx in
5728 no|yes)
5729 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5730 ;;
5731 esac
5732
5733 # Libraries to use for stage1 or when not bootstrapping.
5734
5735 # Check whether --with-stage1-libs was given.
5736 if test "${with_stage1_libs+set}" = set; then :
5737 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5738 stage1_libs=
5739 else
5740 stage1_libs=$withval
5741 fi
5742 else
5743 stage1_libs=$with_host_libstdcxx
5744 fi
5745
5746
5747
5748 # Linker flags to use for stage1 or when not bootstrapping.
5749
5750 # Check whether --with-stage1-ldflags was given.
5751 if test "${with_stage1_ldflags+set}" = set; then :
5752 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5753 stage1_ldflags=
5754 else
5755 stage1_ldflags=$withval
5756 fi
5757 else
5758 stage1_ldflags=
5759 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5760 # if supported. But if the user explicitly specified the libraries to use,
5761 # trust that they are doing what they want.
5762 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5763 stage1_ldflags="-static-libstdc++ -static-libgcc"
5764 fi
5765 fi
5766
5767
5768
5769 # Libraries to use for stage2 and later builds. This defaults to the
5770 # argument passed to --with-host-libstdcxx.
5771
5772 # Check whether --with-boot-libs was given.
5773 if test "${with_boot_libs+set}" = set; then :
5774 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5775 poststage1_libs=
5776 else
5777 poststage1_libs=$withval
5778 fi
5779 else
5780 poststage1_libs=$with_host_libstdcxx
5781 fi
5782
5783
5784
5785 # Linker flags to use for stage2 and later builds.
5786
5787 # Check whether --with-boot-ldflags was given.
5788 if test "${with_boot_ldflags+set}" = set; then :
5789 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5790 poststage1_ldflags=
5791 else
5792 poststage1_ldflags=$withval
5793 fi
5794 else
5795 poststage1_ldflags=
5796 # In stages 2 and 3, default to linking libstdc++ and libgcc
5797 # statically. But if the user explicitly specified the libraries to
5798 # use, trust that they are doing what they want.
5799 if test "$poststage1_libs" = ""; then
5800 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5801 fi
5802 fi
5803
5804
5805
5806 # GCC GRAPHITE dependency ISL.
5807 # Basic setup is inlined here, actual checks are in config/isl.m4
5808
5809
5810 # Check whether --with-isl was given.
5811 if test "${with_isl+set}" = set; then :
5812 withval=$with_isl;
5813 fi
5814
5815
5816 # Treat --without-isl as a request to disable
5817 # GRAPHITE support and skip all following checks.
5818 if test "x$with_isl" != "xno"; then
5819 # Check for ISL
5820
5821
5822 # Check whether --with-isl-include was given.
5823 if test "${with_isl_include+set}" = set; then :
5824 withval=$with_isl_include;
5825 fi
5826
5827
5828 # Check whether --with-isl-lib was given.
5829 if test "${with_isl_lib+set}" = set; then :
5830 withval=$with_isl_lib;
5831 fi
5832
5833
5834 # Check whether --enable-isl-version-check was given.
5835 if test "${enable_isl_version_check+set}" = set; then :
5836 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5837 else
5838 ENABLE_ISL_CHECK=yes
5839 fi
5840
5841
5842 # Initialize isllibs and islinc.
5843 case $with_isl in
5844 no)
5845 isllibs=
5846 islinc=
5847 ;;
5848 "" | yes)
5849 ;;
5850 *)
5851 isllibs="-L$with_isl/lib"
5852 islinc="-I$with_isl/include"
5853 ;;
5854 esac
5855 if test "x${with_isl_include}" != x ; then
5856 islinc="-I$with_isl_include"
5857 fi
5858 if test "x${with_isl_lib}" != x; then
5859 isllibs="-L$with_isl_lib"
5860 fi
5861 if test "x${islinc}" = x && test "x${isllibs}" = x \
5862 && test -d ${srcdir}/isl; then
5863 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5864 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5865 ENABLE_ISL_CHECK=no
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5867 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5868 fi
5869
5870 islinc="-DCLOOG_INT_GMP ${islinc}"
5871 isllibs="${isllibs} -lisl"
5872
5873
5874
5875 if test "${ENABLE_ISL_CHECK}" = yes ; then
5876 _isl_saved_CFLAGS=$CFLAGS
5877 _isl_saved_LDFLAGS=$LDFLAGS
5878 _isl_saved_LIBS=$LIBS
5879
5880 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5881 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5882 LIBS="${_isl_saved_LIBS} -lisl"
5883
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5885 $as_echo_n "checking for compatible ISL... " >&6; }
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 #include <isl/val.h>
5889 int
5890 main ()
5891 {
5892 ;
5893 ;
5894 return 0;
5895 }
5896 _ACEOF
5897 if ac_fn_c_try_link "$LINENO"; then :
5898 gcc_cv_isl=yes
5899 else
5900 gcc_cv_isl=no
5901 fi
5902 rm -f core conftest.err conftest.$ac_objext \
5903 conftest$ac_exeext conftest.$ac_ext
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5905 $as_echo "$gcc_cv_isl" >&6; }
5906
5907 CFLAGS=$_isl_saved_CFLAGS
5908 LDFLAGS=$_isl_saved_LDFLAGS
5909 LIBS=$_isl_saved_LIBS
5910 fi
5911
5912
5913
5914
5915
5916
5917 if test "x${with_isl}" = xno; then
5918 graphite_requested=no
5919 elif test "x${with_isl}" != x \
5920 || test "x${with_isl_include}" != x \
5921 || test "x${with_isl_lib}" != x ; then
5922 graphite_requested=yes
5923 else
5924 graphite_requested=no
5925 fi
5926
5927
5928
5929 if test "${gcc_cv_isl}" = no ; then
5930 isllibs=
5931 islinc=
5932 fi
5933
5934 if test "${graphite_requested}" = yes \
5935 && test "x${isllibs}" = x \
5936 && test "x${islinc}" = x ; then
5937
5938 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5939 fi
5940
5941
5942 fi
5943
5944 # If the ISL check failed, disable builds of in-tree variant of ISL
5945 if test "x$with_isl" = xno ||
5946 test "x$gcc_cv_isl" = xno; then
5947 noconfigdirs="$noconfigdirs isl"
5948 islinc=
5949 fi
5950
5951
5952
5953
5954 # Check for LTO support.
5955 # Check whether --enable-lto was given.
5956 if test "${enable_lto+set}" = set; then :
5957 enableval=$enable_lto; enable_lto=$enableval
5958 else
5959 enable_lto=yes; default_enable_lto=yes
5960 fi
5961
5962
5963
5964
5965
5966 target_elf=no
5967 case $target in
5968 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5969 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5970 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5971 target_elf=no
5972 ;;
5973 *)
5974 target_elf=yes
5975 ;;
5976 esac
5977
5978 if test $target_elf = yes; then :
5979 # ELF platforms build the lto-plugin always.
5980 build_lto_plugin=yes
5981
5982 else
5983 if test x"$default_enable_lto" = x"yes" ; then
5984 case $target in
5985 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5986 # On other non-ELF platforms, LTO has yet to be validated.
5987 *) enable_lto=no ;;
5988 esac
5989 else
5990 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5991 # It would also be nice to check the binutils support, but we don't
5992 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5993 # warn during gcc/ subconfigure; unless you're bootstrapping with
5994 # -flto it won't be needed until after installation anyway.
5995 case $target in
5996 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5997 *) if test x"$enable_lto" = x"yes"; then
5998 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5999 fi
6000 ;;
6001 esac
6002 fi
6003 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6004 # Build it unless LTO was explicitly disabled.
6005 case $target in
6006 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6007 *) ;;
6008 esac
6009
6010 fi
6011
6012
6013 # Check whether --enable-linker-plugin-configure-flags was given.
6014 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6015 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6016 else
6017 extra_linker_plugin_configure_flags=
6018 fi
6019
6020
6021 # Check whether --enable-linker-plugin-flags was given.
6022 if test "${enable_linker_plugin_flags+set}" = set; then :
6023 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6024 else
6025 extra_linker_plugin_flags=
6026 fi
6027
6028
6029
6030
6031 # By default, C and C++ are the only stage 1 languages.
6032 stage1_languages=,c,
6033
6034 # Target libraries that we bootstrap.
6035 bootstrap_target_libs=,target-libgcc,
6036
6037 # Figure out what language subdirectories are present.
6038 # Look if the user specified --enable-languages="..."; if not, use
6039 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6040 # go away some day.
6041 # NB: embedded tabs in this IF block -- do not untabify
6042 if test -d ${srcdir}/gcc; then
6043 if test x"${enable_languages+set}" != xset; then
6044 if test x"${LANGUAGES+set}" = xset; then
6045 enable_languages="${LANGUAGES}"
6046 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6047 else
6048 enable_languages=all
6049 fi
6050 else
6051 if test x"${enable_languages}" = x ||
6052 test x"${enable_languages}" = xyes;
6053 then
6054 echo configure.in: --enable-languages needs at least one language argument 1>&2
6055 exit 1
6056 fi
6057 fi
6058 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6059
6060 # 'f95' is the old name for the 'fortran' language. We issue a warning
6061 # and make the substitution.
6062 case ,${enable_languages}, in
6063 *,f95,*)
6064 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6065 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6066 ;;
6067 esac
6068
6069 # If bootstrapping, C++ must be enabled.
6070 case ",$enable_languages,:$enable_bootstrap" in
6071 *,c++,*:*) ;;
6072 *:yes)
6073 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6074 enable_languages="${enable_languages},c++"
6075 else
6076 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6077 fi
6078 ;;
6079 esac
6080
6081 # First scan to see if an enabled language requires some other language.
6082 # We assume that a given config-lang.in will list all the language
6083 # front ends it requires, even if some are required indirectly.
6084 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6085 case ${lang_frag} in
6086 ..) ;;
6087 # The odd quoting in the next line works around
6088 # an apparent bug in bash 1.12 on linux.
6089 ${srcdir}/gcc/[*]/config-lang.in) ;;
6090 *)
6091 # From the config-lang.in, get $language, $lang_requires, and
6092 # $lang_requires_boot_languages.
6093 language=
6094 lang_requires=
6095 lang_requires_boot_languages=
6096 . ${lang_frag}
6097 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6098 case ,${enable_languages}, in
6099 *,$other,*) ;;
6100 *,all,*) ;;
6101 *,$language,*)
6102 echo " \`$other' language required by \`$language'; enabling" 1>&2
6103 enable_languages="${enable_languages},${other}"
6104 ;;
6105 esac
6106 done
6107 for other in ${lang_requires_boot_languages} ; do
6108 if test "$other" != "c"; then
6109 case ,${enable_stage1_languages}, in
6110 *,$other,*) ;;
6111 *,all,*) ;;
6112 *)
6113 case ,${enable_languages}, in
6114 *,$language,*)
6115 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6116 enable_stage1_languages="$enable_stage1_languages,${other}"
6117 ;;
6118 esac
6119 ;;
6120 esac
6121 fi
6122 done
6123 ;;
6124 esac
6125 done
6126
6127 new_enable_languages=,c,
6128
6129 # If LTO is enabled, add the LTO front end.
6130 if test "$enable_lto" = "yes" ; then
6131 case ,${enable_languages}, in
6132 *,lto,*) ;;
6133 *) enable_languages="${enable_languages},lto" ;;
6134 esac
6135 if test "${build_lto_plugin}" = "yes" ; then
6136 configdirs="$configdirs lto-plugin"
6137 fi
6138 fi
6139
6140 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6141 potential_languages=,c,
6142
6143 enabled_target_libs=
6144 disabled_target_libs=
6145
6146 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6147 case ${lang_frag} in
6148 ..) ;;
6149 # The odd quoting in the next line works around
6150 # an apparent bug in bash 1.12 on linux.
6151 ${srcdir}/gcc/[*]/config-lang.in) ;;
6152 *)
6153 # From the config-lang.in, get $language, $target_libs,
6154 # $lang_dirs, $boot_language, and $build_by_default
6155 language=
6156 target_libs=
6157 lang_dirs=
6158 subdir_requires=
6159 boot_language=no
6160 build_by_default=yes
6161 . ${lang_frag}
6162 if test x${language} = x; then
6163 echo "${lang_frag} doesn't set \$language." 1>&2
6164 exit 1
6165 fi
6166
6167 if test "$language" = "c++"; then
6168 boot_language=yes
6169 fi
6170
6171 add_this_lang=no
6172 case ,${enable_languages}, in
6173 *,${language},*)
6174 # Language was explicitly selected; include it
6175 # unless it is C, which is enabled by default.
6176 if test "$language" != "c"; then
6177 add_this_lang=yes
6178 fi
6179 ;;
6180 *,all,*)
6181 # 'all' was selected, select it if it is a default language
6182 if test "$language" != "c"; then
6183 add_this_lang=${build_by_default}
6184 fi
6185 ;;
6186 esac
6187
6188 # Disable languages that need other directories if these aren't available.
6189 for i in $subdir_requires; do
6190 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6191 case ,${enable_languages}, in
6192 *,${language},*)
6193 # Specifically requested language; tell them.
6194 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6195 ;;
6196 *)
6197 # Silently disable.
6198 add_this_lang=unsupported
6199 ;;
6200 esac
6201 done
6202
6203 # Disable Ada if no preexisting GNAT is available.
6204 case ,${enable_languages},:${language}:${have_gnat} in
6205 *,${language},*:ada:no)
6206 # Specifically requested language; tell them.
6207 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6208 ;;
6209 *:ada:no)
6210 # Silently disable.
6211 add_this_lang=unsupported
6212 ;;
6213 esac
6214
6215 # Disable a language that is unsupported by the target.
6216 case " $unsupported_languages " in
6217 *" $language "*)
6218 add_this_lang=unsupported
6219 ;;
6220 esac
6221
6222 case $add_this_lang in
6223 unsupported)
6224 # Remove language-dependent dirs.
6225 disabled_target_libs="$disabled_target_libs $target_libs"
6226 noconfigdirs="$noconfigdirs $lang_dirs"
6227 ;;
6228 no)
6229 # Remove language-dependent dirs; still show language as supported.
6230 disabled_target_libs="$disabled_target_libs $target_libs"
6231 noconfigdirs="$noconfigdirs $lang_dirs"
6232 potential_languages="${potential_languages}${language},"
6233 ;;
6234 yes)
6235 new_enable_languages="${new_enable_languages}${language},"
6236 potential_languages="${potential_languages}${language},"
6237 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6238 enabled_target_libs="$enabled_target_libs $target_libs"
6239 case "${boot_language}:,$enable_stage1_languages," in
6240 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6241 # Add to (comma-separated) list of stage 1 languages.
6242 case ",$stage1_languages," in
6243 *,$language,* | ,yes, | ,all,) ;;
6244 *) stage1_languages="${stage1_languages}${language}," ;;
6245 esac
6246 # We need to bootstrap any supporting libraries.
6247 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6248 ;;
6249 esac
6250 ;;
6251 esac
6252 ;;
6253 esac
6254 done
6255
6256 # Add target libraries which are only needed for disabled languages
6257 # to noconfigdirs.
6258 if test -n "$disabled_target_libs"; then
6259 for dir in $disabled_target_libs; do
6260 case " $enabled_target_libs " in
6261 *" ${dir} "*) ;;
6262 *) noconfigdirs="$noconfigdirs $dir" ;;
6263 esac
6264 done
6265 fi
6266
6267 # Check whether --enable-stage1-languages was given.
6268 if test "${enable_stage1_languages+set}" = set; then :
6269 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6270 ,no,|,,)
6271 # Set it to something that will have no effect in the loop below
6272 enable_stage1_languages=c ;;
6273 ,yes,)
6274 enable_stage1_languages=`echo $new_enable_languages | \
6275 sed -e "s/^,//" -e "s/,$//" ` ;;
6276 *,all,*)
6277 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6278 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6279 esac
6280
6281 # Add "good" languages from enable_stage1_languages to stage1_languages,
6282 # while "bad" languages go in missing_languages. Leave no duplicates.
6283 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6284 case $potential_languages in
6285 *,$i,*)
6286 case $stage1_languages in
6287 *,$i,*) ;;
6288 *) stage1_languages="$stage1_languages$i," ;;
6289 esac ;;
6290 *)
6291 case $missing_languages in
6292 *,$i,*) ;;
6293 *) missing_languages="$missing_languages$i," ;;
6294 esac ;;
6295 esac
6296 done
6297 fi
6298
6299
6300 # Remove leading/trailing commas that were added for simplicity
6301 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6302 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6303 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6304 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6305
6306 if test "x$missing_languages" != x; then
6307 as_fn_error "
6308 The following requested languages could not be built: ${missing_languages}
6309 Supported languages are: ${potential_languages}" "$LINENO" 5
6310 fi
6311 if test "x$new_enable_languages" != "x$enable_languages"; then
6312 echo The following languages will be built: ${new_enable_languages}
6313 enable_languages="$new_enable_languages"
6314 fi
6315
6316
6317 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6318 fi
6319
6320 # Handle --disable-<component> generically.
6321 for dir in $configdirs $build_configdirs $target_configdirs ; do
6322 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6323 varname=`echo $dirname | sed -e s/+/_/g`
6324 if eval test x\${enable_${varname}} "=" xno ; then
6325 noconfigdirs="$noconfigdirs $dir"
6326 fi
6327 done
6328
6329 # Check for Boehm's garbage collector
6330 # Check whether --enable-objc-gc was given.
6331 if test "${enable_objc_gc+set}" = set; then :
6332 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6333 *,objc,*:*:yes:*target-boehm-gc*)
6334 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6335 ;;
6336 esac
6337 fi
6338
6339
6340 # Make sure we only build Boehm's garbage collector if required.
6341 case ,${enable_languages},:${enable_objc_gc} in
6342 *,objc,*:yes)
6343 # Keep target-boehm-gc if requested for Objective-C.
6344 ;;
6345 *)
6346 # Otherwise remove target-boehm-gc depending on target-libjava.
6347 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6348 noconfigdirs="$noconfigdirs target-boehm-gc"
6349 fi
6350 ;;
6351 esac
6352
6353 # Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
6354 case ,${enable_languages}, in
6355 *,c++,*)
6356 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6357 case "${noconfigdirs}" in
6358 *target-libstdc++-v3*)
6359 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6360 ;;
6361 *) ;;
6362 esac
6363 ;;
6364 *)
6365 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6366 ;;
6367 esac
6368
6369 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6370 # $build_configdirs and $target_configdirs.
6371 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6372
6373 notsupp=""
6374 for dir in . $skipdirs $noconfigdirs ; do
6375 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6376 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6377 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6378 if test -r $srcdir/$dirname/configure ; then
6379 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6380 true
6381 else
6382 notsupp="$notsupp $dir"
6383 fi
6384 fi
6385 fi
6386 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6387 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6388 if test -r $srcdir/$dirname/configure ; then
6389 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6390 true
6391 else
6392 notsupp="$notsupp $dir"
6393 fi
6394 fi
6395 fi
6396 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6397 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6398 if test -r $srcdir/$dirname/configure ; then
6399 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6400 true
6401 else
6402 notsupp="$notsupp $dir"
6403 fi
6404 fi
6405 fi
6406 done
6407
6408 # Quietly strip out all directories which aren't configurable in this tree.
6409 # This relies on all configurable subdirectories being autoconfiscated, which
6410 # is now the case.
6411 build_configdirs_all="$build_configdirs"
6412 build_configdirs=
6413 for i in ${build_configdirs_all} ; do
6414 j=`echo $i | sed -e s/build-//g`
6415 if test -f ${srcdir}/$j/configure ; then
6416 build_configdirs="${build_configdirs} $i"
6417 fi
6418 done
6419
6420 configdirs_all="$configdirs"
6421 configdirs=
6422 for i in ${configdirs_all} ; do
6423 if test -f ${srcdir}/$i/configure ; then
6424 configdirs="${configdirs} $i"
6425 fi
6426 done
6427
6428 target_configdirs_all="$target_configdirs"
6429 target_configdirs=
6430 for i in ${target_configdirs_all} ; do
6431 j=`echo $i | sed -e s/target-//g`
6432 if test -f ${srcdir}/$j/configure ; then
6433 target_configdirs="${target_configdirs} $i"
6434 fi
6435 done
6436
6437 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6438 # so we have to add it after the preceding checks.
6439 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6440 then
6441 case " $configdirs " in
6442 *" libiberty "*)
6443 # If we can build libiberty, we can also build libiberty-linker-plugin.
6444 configdirs="$configdirs libiberty-linker-plugin"
6445 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6446 --with-libiberty=../libiberty-linker-plugin";;
6447 *)
6448 as_fn_error "libiberty missing" "$LINENO" 5;;
6449 esac
6450 fi
6451
6452 # Sometimes we have special requirements for the host libiberty.
6453 extra_host_libiberty_configure_flags=
6454 case " $configdirs " in
6455 *" lto-plugin "* | *" libcc1 "*)
6456 # When these are to be built as shared libraries, the same applies to
6457 # libiberty.
6458 extra_host_libiberty_configure_flags=--enable-shared
6459 ;;
6460 esac
6461
6462
6463 # Produce a warning message for the subdirs we can't configure.
6464 # This isn't especially interesting in the Cygnus tree, but in the individual
6465 # FSF releases, it's important to let people know when their machine isn't
6466 # supported by the one or two programs in a package.
6467
6468 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6469 # If $appdirs is non-empty, at least one of those directories must still
6470 # be configured, or we error out. (E.g., if the gas release supports a
6471 # specified target in some subdirs but not the gas subdir, we shouldn't
6472 # pretend that all is well.)
6473 if test -n "$appdirs" ; then
6474 for dir in $appdirs ; do
6475 if test -r $dir/Makefile.in ; then
6476 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6477 appdirs=""
6478 break
6479 fi
6480 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6481 appdirs=""
6482 break
6483 fi
6484 fi
6485 done
6486 if test -n "$appdirs" ; then
6487 echo "*** This configuration is not supported by this package." 1>&2
6488 exit 1
6489 fi
6490 fi
6491 # Okay, some application will build, or we don't care to check. Still
6492 # notify of subdirs not getting built.
6493 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6494 echo " ${notsupp}" 1>&2
6495 echo " (Any other directories should still work fine.)" 1>&2
6496 fi
6497
6498 case "$host" in
6499 *msdosdjgpp*)
6500 enable_gdbtk=no ;;
6501 esac
6502
6503 # To find our prefix, in gcc_cv_tool_prefix.
6504
6505 # The user is always right.
6506 if test "${PATH_SEPARATOR+set}" != set; then
6507 echo "#! /bin/sh" >conf$$.sh
6508 echo "exit 0" >>conf$$.sh
6509 chmod +x conf$$.sh
6510 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6511 PATH_SEPARATOR=';'
6512 else
6513 PATH_SEPARATOR=:
6514 fi
6515 rm -f conf$$.sh
6516 fi
6517
6518
6519
6520 if test "x$exec_prefix" = xNONE; then
6521 if test "x$prefix" = xNONE; then
6522 gcc_cv_tool_prefix=$ac_default_prefix
6523 else
6524 gcc_cv_tool_prefix=$prefix
6525 fi
6526 else
6527 gcc_cv_tool_prefix=$exec_prefix
6528 fi
6529
6530 # If there is no compiler in the tree, use the PATH only. In any
6531 # case, if there is no compiler in the tree nobody should use
6532 # AS_FOR_TARGET and LD_FOR_TARGET.
6533 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6534 gcc_version=`cat $srcdir/gcc/BASE-VER`
6535 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6536 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6537 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6538 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6539 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6540 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6541 else
6542 gcc_cv_tool_dirs=
6543 fi
6544
6545 if test x$build = x$target && test -n "$md_exec_prefix"; then
6546 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6547 fi
6548
6549
6550
6551 copy_dirs=
6552
6553
6554 # Check whether --with-build-sysroot was given.
6555 if test "${with_build_sysroot+set}" = set; then :
6556 withval=$with_build_sysroot; if test x"$withval" != x ; then
6557 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6558 fi
6559 else
6560 SYSROOT_CFLAGS_FOR_TARGET=
6561 fi
6562
6563
6564
6565
6566 # Check whether --with-debug-prefix-map was given.
6567 if test "${with_debug_prefix_map+set}" = set; then :
6568 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6569 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6570 for debug_map in $withval; do
6571 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6572 done
6573 fi
6574 else
6575 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6576 fi
6577
6578
6579
6580 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6581 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6582 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6583 # We want to ensure that TARGET libraries (which we know are built with
6584 # gcc) are built with "-O2 -g", so include those options when setting
6585 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6586 if test "x$CFLAGS_FOR_TARGET" = x; then
6587 CFLAGS_FOR_TARGET=$CFLAGS
6588 case " $CFLAGS " in
6589 *" -O2 "*) ;;
6590 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6591 esac
6592 case " $CFLAGS " in
6593 *" -g "* | *" -g3 "*) ;;
6594 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6595 esac
6596 fi
6597
6598
6599 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6600 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6601 case " $CXXFLAGS " in
6602 *" -O2 "*) ;;
6603 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6604 esac
6605 case " $CXXFLAGS " in
6606 *" -g "* | *" -g3 "*) ;;
6607 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6608 esac
6609 fi
6610
6611
6612
6613
6614 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6615 # the named directory are copied to $(tooldir)/sys-include.
6616 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6617 if test x${is_cross_compiler} = xno ; then
6618 echo 1>&2 '***' --with-headers is only supported when cross compiling
6619 exit 1
6620 fi
6621 if test x"${with_headers}" != xyes ; then
6622 x=${gcc_cv_tool_prefix}
6623 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6624 fi
6625 fi
6626
6627 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6628 # the name directories are copied to $(tooldir)/lib. Multiple directories
6629 # are permitted.
6630 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6631 if test x${is_cross_compiler} = xno ; then
6632 echo 1>&2 '***' --with-libs is only supported when cross compiling
6633 exit 1
6634 fi
6635 if test x"${with_libs}" != xyes ; then
6636 # Copy the libraries in reverse order, so that files in the first named
6637 # library override files in subsequent libraries.
6638 x=${gcc_cv_tool_prefix}
6639 for l in ${with_libs}; do
6640 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6641 done
6642 fi
6643 fi
6644
6645 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6646 #
6647 # This is done by determining whether or not the appropriate directory
6648 # is available, and by checking whether or not specific configurations
6649 # have requested that this magic not happen.
6650 #
6651 # The command line options always override the explicit settings in
6652 # configure.in, and the settings in configure.in override this magic.
6653 #
6654 # If the default for a toolchain is to use GNU as and ld, and you don't
6655 # want to do that, then you should use the --without-gnu-as and
6656 # --without-gnu-ld options for the configure script. Similarly, if
6657 # the default is to use the included zlib and you don't want to do that,
6658 # you should use the --with-system-zlib option for the configure script.
6659
6660 if test x${use_gnu_as} = x &&
6661 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6662 with_gnu_as=yes
6663 extra_host_args="$extra_host_args --with-gnu-as"
6664 fi
6665
6666 if test x${use_gnu_ld} = x &&
6667 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6668 with_gnu_ld=yes
6669 extra_host_args="$extra_host_args --with-gnu-ld"
6670 fi
6671
6672 if test x${use_included_zlib} = x &&
6673 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6674 :
6675 else
6676 with_system_zlib=yes
6677 extra_host_args="$extra_host_args --with-system-zlib"
6678 fi
6679
6680 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6681 # can detect this case.
6682
6683 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6684 with_newlib=yes
6685 extra_host_args="$extra_host_args --with-newlib"
6686 fi
6687
6688 # Handle ${copy_dirs}
6689 set fnord ${copy_dirs}
6690 shift
6691 while test $# != 0 ; do
6692 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6693 :
6694 else
6695 echo Copying $1 to $2
6696
6697 # Use the install script to create the directory and all required
6698 # parent directories.
6699 if test -d $2 ; then
6700 :
6701 else
6702 echo >config.temp
6703 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6704 fi
6705
6706 # Copy the directory, assuming we have tar.
6707 # FIXME: Should we use B in the second tar? Not all systems support it.
6708 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6709
6710 # It is the responsibility of the user to correctly adjust all
6711 # symlinks. If somebody can figure out how to handle them correctly
6712 # here, feel free to add the code.
6713
6714 echo $1 > $2/COPIED
6715 fi
6716 shift; shift
6717 done
6718
6719 # Determine a target-dependent exec_prefix that the installed
6720 # gcc will search in. Keep this list sorted by triplet, with
6721 # the *-*-osname triplets last.
6722 md_exec_prefix=
6723 case "${target}" in
6724 i[34567]86-pc-msdosdjgpp*)
6725 md_exec_prefix=/dev/env/DJDIR/bin
6726 ;;
6727 *-*-hpux* | \
6728 *-*-nto-qnx* | \
6729 *-*-solaris2*)
6730 md_exec_prefix=/usr/ccs/bin
6731 ;;
6732 esac
6733
6734 extra_arflags_for_target=
6735 extra_nmflags_for_target=
6736 extra_ranlibflags_for_target=
6737 target_makefile_frag=/dev/null
6738 case "${target}" in
6739 spu-*-*)
6740 target_makefile_frag="config/mt-spu"
6741 ;;
6742 mips*-sde-elf* | mips*-mti-elf*)
6743 target_makefile_frag="config/mt-sde"
6744 ;;
6745 mipsisa*-*-elfoabi*)
6746 target_makefile_frag="config/mt-mips-elfoabi"
6747 ;;
6748 mips*-*-*linux* | mips*-*-gnu*)
6749 target_makefile_frag="config/mt-mips-gnu"
6750 ;;
6751 nios2-*-elf*)
6752 target_makefile_frag="config/mt-nios2-elf"
6753 ;;
6754 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6755 target_makefile_frag="config/mt-gnu"
6756 ;;
6757 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6758 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6759 # commands to handle both 32-bit and 64-bit objects. These flags are
6760 # harmless if we're using GNU nm or ar.
6761 extra_arflags_for_target=" -X32_64"
6762 extra_nmflags_for_target=" -B -X32_64"
6763 ;;
6764 esac
6765
6766 alphaieee_frag=/dev/null
6767 case $target in
6768 alpha*-*-*)
6769 # This just makes sure to use the -mieee option to build target libs.
6770 # This should probably be set individually by each library.
6771 alphaieee_frag="config/mt-alphaieee"
6772 ;;
6773 esac
6774
6775 # If --enable-target-optspace always use -Os instead of -O2 to build
6776 # the target libraries, similarly if it is not specified, use -Os
6777 # on selected platforms.
6778 ospace_frag=/dev/null
6779 case "${enable_target_optspace}:${target}" in
6780 yes:*)
6781 ospace_frag="config/mt-ospace"
6782 ;;
6783 :d30v-*)
6784 ospace_frag="config/mt-d30v"
6785 ;;
6786 :m32r-* | :d10v-* | :fr30-*)
6787 ospace_frag="config/mt-ospace"
6788 ;;
6789 no:* | :*)
6790 ;;
6791 *)
6792 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6793 ;;
6794 esac
6795
6796 # Some systems (e.g., one of the i386-aix systems the gas testers are
6797 # using) don't handle "\$" correctly, so don't use it here.
6798 tooldir='${exec_prefix}'/${target_noncanonical}
6799 build_tooldir=${tooldir}
6800
6801 # Create a .gdbinit file which runs the one in srcdir
6802 # and tells GDB to look there for source files.
6803
6804 if test -r ${srcdir}/.gdbinit ; then
6805 case ${srcdir} in
6806 .) ;;
6807 *) cat > ./.gdbinit <<EOF
6808 # ${NO_EDIT}
6809 dir ${srcdir}
6810 dir .
6811 source ${srcdir}/.gdbinit
6812 EOF
6813 ;;
6814 esac
6815 fi
6816
6817 # Make sure that the compiler is able to generate an executable. If it
6818 # can't, we are probably in trouble. We don't care whether we can run the
6819 # executable--we might be using a cross compiler--we only care whether it
6820 # can be created. At this point the main configure script has set CC.
6821 we_are_ok=no
6822 echo "int main () { return 0; }" > conftest.c
6823 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6824 if test $? = 0 ; then
6825 if test -s conftest || test -s conftest.exe ; then
6826 we_are_ok=yes
6827 fi
6828 fi
6829 case $we_are_ok in
6830 no)
6831 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6832 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6833 rm -f conftest*
6834 exit 1
6835 ;;
6836 esac
6837 rm -f conftest*
6838
6839 # Decide which environment variable is used to find dynamic libraries.
6840 case "${host}" in
6841 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6842 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6843 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6844 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6845 esac
6846
6847 # On systems where the dynamic library environment variable is PATH,
6848 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6849 # built executables to PATH.
6850 if test "$RPATH_ENVVAR" = PATH; then
6851 GCC_SHLIB_SUBDIR=/shlib
6852 else
6853 GCC_SHLIB_SUBDIR=
6854 fi
6855
6856 # Adjust the toplevel makefile according to whether bootstrap was selected.
6857 case $enable_bootstrap in
6858 yes)
6859 bootstrap_suffix=bootstrap
6860 BUILD_CONFIG=bootstrap-debug
6861 ;;
6862 no)
6863 bootstrap_suffix=no-bootstrap
6864 BUILD_CONFIG=
6865 ;;
6866 esac
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6869 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6870
6871
6872 # Check whether --with-build-config was given.
6873 if test "${with_build_config+set}" = set; then :
6874 withval=$with_build_config; case $with_build_config in
6875 yes) with_build_config= ;;
6876 no) with_build_config= BUILD_CONFIG= ;;
6877 esac
6878 fi
6879
6880
6881 if test "x${with_build_config}" != x; then
6882 BUILD_CONFIG=$with_build_config
6883 else
6884 case $BUILD_CONFIG in
6885 bootstrap-debug)
6886 if echo "int f (void) { return 0; }" > conftest.c &&
6887 ${CC} -c conftest.c &&
6888 mv conftest.o conftest.o.g0 &&
6889 ${CC} -c -g conftest.c &&
6890 mv conftest.o conftest.o.g &&
6891 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6892 :
6893 else
6894 BUILD_CONFIG=
6895 fi
6896 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6897 ;;
6898 esac
6899 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6901 $as_echo "$BUILD_CONFIG" >&6; }
6902
6903
6904 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6906 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
6907 # Check whether --enable-vtable-verify was given.
6908 if test "${enable_vtable_verify+set}" = set; then :
6909 enableval=$enable_vtable_verify; case "$enableval" in
6910 yes) enable_vtable_verify=yes ;;
6911 no) enable_vtable_verify=no ;;
6912 *) enable_vtable_verify=no;;
6913 esac
6914 else
6915 enable_vtable_verify=no
6916 fi
6917
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6919 $as_echo "$enable_vtable_verify" >&6; }
6920
6921 # Record target_configdirs and the configure arguments for target and
6922 # build configuration in Makefile.
6923 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6924 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6925 bootstrap_fixincludes=no
6926
6927 # If we are building libgomp, bootstrap it.
6928 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6929 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6930 fi
6931
6932 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
6933 # or bootstrap-ubsan, bootstrap it.
6934 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
6935 case "$BUILD_CONFIG" in
6936 *bootstrap-asan* | *bootstrap-ubsan* )
6937 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
6938 bootstrap_fixincludes=yes
6939 ;;
6940 esac
6941 fi
6942
6943 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
6944 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
6945 test "$enable_vtable_verify" != no; then
6946 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
6947 fi
6948
6949 # Determine whether gdb needs tk/tcl or not.
6950 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6951 # and in that case we want gdb to be built without tk. Ugh!
6952 # In fact I believe gdb is the *only* package directly dependent on tk,
6953 # so we should be able to put the 'maybe's in unconditionally and
6954 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6955 # 100% sure that that's safe though.
6956
6957 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6958 case "$enable_gdbtk" in
6959 no)
6960 GDB_TK="" ;;
6961 yes)
6962 GDB_TK="${gdb_tk}" ;;
6963 *)
6964 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6965 # distro. Eventually someone will fix this and move Insight, nee
6966 # gdbtk to a separate directory.
6967 if test -d ${srcdir}/gdb/gdbtk ; then
6968 GDB_TK="${gdb_tk}"
6969 else
6970 GDB_TK=""
6971 fi
6972 ;;
6973 esac
6974 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6975 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6976
6977 # Strip out unwanted targets.
6978
6979 # While at that, we remove Makefiles if we were started for recursive
6980 # configuration, so that the top-level Makefile reconfigures them,
6981 # like we used to do when configure itself was recursive.
6982
6983 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6984 # but now we're fixing up the Makefile ourselves with the additional
6985 # commands passed to AC_CONFIG_FILES. Use separate variables
6986 # extrasub-{build,host,target} not because there is any reason to split
6987 # the substitutions up that way, but only to remain below the limit of
6988 # 99 commands in a script, for HP-UX sed.
6989 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6990
6991 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6992 yes:yes:*\ gold\ *:*,c++,*) ;;
6993 yes:yes:*\ gold\ *:*)
6994 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6995 ;;
6996 esac
6997
6998 extrasub_build=
6999 for module in ${build_configdirs} ; do
7000 if test -z "${no_recursion}" \
7001 && test -f ${build_subdir}/${module}/Makefile; then
7002 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7003 rm -f ${build_subdir}/${module}/Makefile
7004 fi
7005 extrasub_build="$extrasub_build
7006 /^@if build-$module\$/d
7007 /^@endif build-$module\$/d
7008 /^@if build-$module-$bootstrap_suffix\$/d
7009 /^@endif build-$module-$bootstrap_suffix\$/d"
7010 done
7011 extrasub_host=
7012 for module in ${configdirs} ; do
7013 if test -z "${no_recursion}"; then
7014 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7015 if test -f ${file}; then
7016 echo 1>&2 "*** removing ${file} to force reconfigure"
7017 rm -f ${file}
7018 fi
7019 done
7020 fi
7021 case ${module},${bootstrap_fixincludes} in
7022 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7023 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7024 esac
7025 extrasub_host="$extrasub_host
7026 /^@if $module\$/d
7027 /^@endif $module\$/d
7028 /^@if $module-$host_bootstrap_suffix\$/d
7029 /^@endif $module-$host_bootstrap_suffix\$/d"
7030 done
7031 extrasub_target=
7032 for module in ${target_configdirs} ; do
7033 if test -z "${no_recursion}" \
7034 && test -f ${target_subdir}/${module}/Makefile; then
7035 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7036 rm -f ${target_subdir}/${module}/Makefile
7037 fi
7038
7039 # We only bootstrap target libraries listed in bootstrap_target_libs.
7040 case $bootstrap_target_libs in
7041 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7042 *) target_bootstrap_suffix=no-bootstrap ;;
7043 esac
7044
7045 extrasub_target="$extrasub_target
7046 /^@if target-$module\$/d
7047 /^@endif target-$module\$/d
7048 /^@if target-$module-$target_bootstrap_suffix\$/d
7049 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7050 done
7051
7052 # Do the final fixup along with target modules.
7053 extrasub_target="$extrasub_target
7054 /^@if /,/^@endif /d"
7055
7056 # Create the serialization dependencies. This uses a temporary file.
7057
7058 # Check whether --enable-serial-configure was given.
7059 if test "${enable_serial_configure+set}" = set; then :
7060 enableval=$enable_serial_configure;
7061 fi
7062
7063
7064 case ${enable_serial_configure} in
7065 yes)
7066 enable_serial_build_configure=yes
7067 enable_serial_host_configure=yes
7068 enable_serial_target_configure=yes
7069 ;;
7070 esac
7071
7072 # These force 'configure's to be done one at a time, to avoid problems
7073 # with contention over a shared config.cache.
7074 rm -f serdep.tmp
7075 echo '# serdep.tmp' > serdep.tmp
7076 olditem=
7077 test "x${enable_serial_build_configure}" = xyes &&
7078 for item in ${build_configdirs} ; do
7079 case ${olditem} in
7080 "") ;;
7081 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7082 esac
7083 olditem=${item}
7084 done
7085 olditem=
7086 test "x${enable_serial_host_configure}" = xyes &&
7087 for item in ${configdirs} ; do
7088 case ${olditem} in
7089 "") ;;
7090 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7091 esac
7092 olditem=${item}
7093 done
7094 olditem=
7095 test "x${enable_serial_target_configure}" = xyes &&
7096 for item in ${target_configdirs} ; do
7097 case ${olditem} in
7098 "") ;;
7099 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7100 esac
7101 olditem=${item}
7102 done
7103 serialization_dependencies=serdep.tmp
7104
7105
7106 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7107 # target, nonopt, and variable assignments. These are the ones we
7108 # might not want to pass down to subconfigures. The exception being
7109 # --cache-file=/dev/null, which is used to turn off the use of cache
7110 # files altogether, and which should be passed on to subconfigures.
7111 # Also strip program-prefix, program-suffix, and program-transform-name,
7112 # so that we can pass down a consistent program-transform-name.
7113 baseargs=
7114 tbaseargs=
7115 keep_next=no
7116 skip_next=no
7117 eval "set -- $ac_configure_args"
7118 for ac_arg
7119 do
7120 if test X"$skip_next" = X"yes"; then
7121 skip_next=no
7122 continue
7123 fi
7124 if test X"$keep_next" = X"yes"; then
7125 case $ac_arg in
7126 *\'*)
7127 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7128 esac
7129 baseargs="$baseargs '$ac_arg'"
7130 tbaseargs="$tbaseargs '$ac_arg'"
7131 keep_next=no
7132 continue
7133 fi
7134
7135 # Handle separated arguments. Based on the logic generated by
7136 # autoconf 2.59.
7137 case $ac_arg in
7138 *=* | --config-cache | -C | -disable-* | --disable-* \
7139 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7140 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7141 | -with-* | --with-* | -without-* | --without-* | --x)
7142 separate_arg=no
7143 ;;
7144 -*)
7145 separate_arg=yes
7146 ;;
7147 *)
7148 separate_arg=no
7149 ;;
7150 esac
7151
7152 skip_targ=no
7153 case $ac_arg in
7154
7155 --with-* | --without-*)
7156 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7157
7158 case $libopt in
7159 *[-_]include)
7160 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7161 ;;
7162 *[-_]lib)
7163 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7164 ;;
7165 *)
7166 lib=$libopt
7167 ;;
7168 esac
7169
7170
7171 case $lib in
7172 mpc | mpfr | gmp | isl)
7173 # If we're processing --with-$lib, --with-$lib-include or
7174 # --with-$lib-lib, for one of the libs above, and target is
7175 # different from host, don't pass the current argument to any
7176 # target library's configure.
7177 if test x$is_cross_compiler = xyes; then
7178 skip_targ=yes
7179 fi
7180 ;;
7181 esac
7182 ;;
7183 esac
7184
7185 case "$ac_arg" in
7186 --cache-file=/dev/null | \
7187 -cache-file=/dev/null )
7188 # Handled here to avoid the test to skip args below.
7189 baseargs="$baseargs '$ac_arg'"
7190 tbaseargs="$tbaseargs '$ac_arg'"
7191 # Assert: $separate_arg should always be no.
7192 keep_next=$separate_arg
7193 ;;
7194 --no*)
7195 continue
7196 ;;
7197 --c* | \
7198 --sr* | \
7199 --ho* | \
7200 --bu* | \
7201 --t* | \
7202 --program-* | \
7203 -cache_file* | \
7204 -srcdir* | \
7205 -host* | \
7206 -build* | \
7207 -target* | \
7208 -program-prefix* | \
7209 -program-suffix* | \
7210 -program-transform-name* )
7211 skip_next=$separate_arg
7212 continue
7213 ;;
7214 -*)
7215 # An option. Add it.
7216 case $ac_arg in
7217 *\'*)
7218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7219 esac
7220 baseargs="$baseargs '$ac_arg'"
7221 if test X"$skip_targ" = Xno; then
7222 tbaseargs="$tbaseargs '$ac_arg'"
7223 fi
7224 keep_next=$separate_arg
7225 ;;
7226 *)
7227 # Either a variable assignment, or a nonopt (triplet). Don't
7228 # pass it down; let the Makefile handle this.
7229 continue
7230 ;;
7231 esac
7232 done
7233 # Remove the initial space we just introduced and, as these will be
7234 # expanded by make, quote '$'.
7235 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7236
7237 # Add in --program-transform-name, after --program-prefix and
7238 # --program-suffix have been applied to it. Autoconf has already
7239 # doubled dollar signs and backslashes in program_transform_name; we want
7240 # the backslashes un-doubled, and then the entire thing wrapped in single
7241 # quotes, because this will be expanded first by make and then by the shell.
7242 # Also, because we want to override the logic in subdir configure scripts to
7243 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7244 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7245 ${program_transform_name}
7246 EOF_SED
7247 gcc_transform_name=`cat conftestsed.out`
7248 rm -f conftestsed.out
7249 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7250 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7251 if test "$silent" = yes; then
7252 baseargs="$baseargs --silent"
7253 tbaseargs="$tbaseargs --silent"
7254 fi
7255 baseargs="$baseargs --disable-option-checking"
7256 tbaseargs="$tbaseargs --disable-option-checking"
7257
7258 # Record and document user additions to sub configure arguments.
7259
7260
7261
7262
7263 # For the build-side libraries, we just need to pretend we're native,
7264 # and not use the same cache file. Multilibs are neither needed nor
7265 # desired. We can't even use the same cache file for all build-side
7266 # libraries, as they're compiled differently; some with C, some with
7267 # C++ or with different feature-enabling options.
7268 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7269
7270 # For host modules, accept cache file option, or specification as blank.
7271 case "${cache_file}" in
7272 "") # empty
7273 cache_file_option="" ;;
7274 /* | [A-Za-z]:[\\/]* ) # absolute path
7275 cache_file_option="--cache-file=${cache_file}" ;;
7276 *) # relative path
7277 cache_file_option="--cache-file=../${cache_file}" ;;
7278 esac
7279
7280 # Host dirs don't like to share a cache file either, horribly enough.
7281 # This seems to be due to autoconf 2.5x stupidity.
7282 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7283
7284 target_configargs="$target_configargs ${tbaseargs}"
7285
7286 # Passing a --with-cross-host argument lets the target libraries know
7287 # whether they are being built with a cross-compiler or being built
7288 # native. However, it would be better to use other mechanisms to make the
7289 # sorts of decisions they want to make on this basis. Please consider
7290 # this option to be deprecated. FIXME.
7291 if test x${is_cross_compiler} = xyes ; then
7292 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7293 fi
7294
7295 # Special user-friendly check for native x86_64-linux build, if
7296 # multilib is not explicitly enabled.
7297 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7298 x86_64-*linux*:yes:$build:$build:)
7299 # Make sure we have a developement environment that handles 32-bit
7300 dev64=no
7301 echo "int main () { return 0; }" > conftest.c
7302 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7303 if test $? = 0 ; then
7304 if test -s conftest || test -s conftest.exe ; then
7305 dev64=yes
7306 fi
7307 fi
7308 rm -f conftest*
7309 if test x${dev64} != xyes ; then
7310 as_fn_error "I suspect your system does not have 32-bit developement 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
7311 fi
7312 ;;
7313 esac
7314
7315 # Default to --enable-multilib.
7316 if test x${enable_multilib} = x ; then
7317 target_configargs="--enable-multilib ${target_configargs}"
7318 fi
7319
7320 # Pass --with-newlib if appropriate. Note that target_configdirs has
7321 # changed from the earlier setting of with_newlib.
7322 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7323 target_configargs="--with-newlib ${target_configargs}"
7324 fi
7325
7326 # Different target subdirs use different values of certain variables
7327 # (notably CXX). Worse, multilibs use *lots* of different values.
7328 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7329 # it doesn't automatically accept command-line overrides of them.
7330 # This means it's not safe for target subdirs to share a cache file,
7331 # which is disgusting, but there you have it. Hopefully this can be
7332 # fixed in future. It's still worthwhile to use a cache file for each
7333 # directory. I think.
7334
7335 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7336 # We need to pass --target, as newer autoconf's requires consistency
7337 # for target_alias and gcc doesn't manage it consistently.
7338 target_configargs="--cache-file=./config.cache ${target_configargs}"
7339
7340 FLAGS_FOR_TARGET=
7341 case " $target_configdirs " in
7342 *" newlib "*)
7343 case " $target_configargs " in
7344 *" --with-newlib "*)
7345 case "$target" in
7346 *-cygwin*)
7347 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7348 ;;
7349 esac
7350
7351 # If we're not building GCC, don't discard standard headers.
7352 if test -d ${srcdir}/gcc; then
7353 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7354
7355 if test "${build}" != "${host}"; then
7356 # On Canadian crosses, CC_FOR_TARGET will have already been set
7357 # by `configure', so we won't have an opportunity to add -Bgcc/
7358 # to it. This is right: we don't want to search that directory
7359 # for binaries, but we want the header files in there, so add
7360 # them explicitly.
7361 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7362
7363 # Someone might think of using the pre-installed headers on
7364 # Canadian crosses, in case the installed compiler is not fully
7365 # compatible with the compiler being built. In this case, it
7366 # would be better to flag an error than risking having
7367 # incompatible object files being constructed. We can't
7368 # guarantee that an error will be flagged, but let's hope the
7369 # compiler will do it, when presented with incompatible header
7370 # files.
7371 fi
7372 fi
7373
7374 case "${target}-${is_cross_compiler}" in
7375 i[3456789]86-*-linux*-no)
7376 # Here host == target, so we don't need to build gcc,
7377 # so we don't want to discard standard headers.
7378 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7379 ;;
7380 *)
7381 # If we're building newlib, use its generic headers last, but search
7382 # for any libc-related directories first (so make it the last -B
7383 # switch).
7384 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7385
7386 # If we're building libgloss, find the startup file, simulator library
7387 # and linker script.
7388 case " $target_configdirs " in
7389 *" libgloss "*)
7390 # Look for startup file, simulator library and maybe linker script.
7391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7392 # Look for libnosys.a in case the target needs it.
7393 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7394 # Most targets have the linker script in the source directory.
7395 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7396 ;;
7397 esac
7398 ;;
7399 esac
7400 ;;
7401 esac
7402 ;;
7403 esac
7404
7405 case "$target" in
7406 x86_64-*mingw* | *-w64-mingw*)
7407 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7408 # however, use a symlink named 'mingw' in ${prefix} .
7409 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7410 ;;
7411 *-mingw*)
7412 # MinGW can't be handled as Cygwin above since it does not use newlib.
7413 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'
7414 ;;
7415 esac
7416
7417 # Allow the user to override the flags for
7418 # our build compiler if desired.
7419 if test x"${build}" = x"${host}" ; then
7420 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7421 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7422 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7423 fi
7424
7425 # On Canadian crosses, we'll be searching the right directories for
7426 # the previously-installed cross compiler, so don't bother to add
7427 # flags for directories within the install tree of the compiler
7428 # being built; programs in there won't even run.
7429 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7430 # Search for pre-installed headers if nothing else fits.
7431 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7432 fi
7433
7434 if test "x${use_gnu_ld}" = x &&
7435 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7436 # Arrange for us to find uninstalled linker scripts.
7437 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7438 fi
7439
7440 # Search for other target-specific linker scripts and such.
7441 case "${target}" in
7442 mep*)
7443 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7444 ;;
7445 esac
7446
7447 # Makefile fragments.
7448 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7449 do
7450 eval fragval=\$$frag
7451 if test $fragval != /dev/null; then
7452 eval $frag=${srcdir}/$fragval
7453 fi
7454 done
7455
7456
7457
7458
7459
7460 # Miscellanea: directories, flags, etc.
7461
7462
7463
7464
7465
7466
7467
7468
7469 # Build module lists & subconfigure args.
7470
7471
7472
7473 # Host module lists & subconfigure args.
7474
7475
7476
7477
7478 # Target module lists & subconfigure args.
7479
7480
7481
7482 # Build tools.
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500 # Generate default definitions for YACC, M4, LEX and other programs that run
7501 # on the build machine. These are used if the Makefile can't locate these
7502 # programs in objdir.
7503 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7504
7505 for ac_prog in 'bison -y' byacc yacc
7506 do
7507 # Extract the first word of "$ac_prog", so it can be a program name with args.
7508 set dummy $ac_prog; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if test "${ac_cv_prog_YACC+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 if test -n "$YACC"; then
7515 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_prog_YACC="$ac_prog"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528 done
7529 done
7530 IFS=$as_save_IFS
7531
7532 fi
7533 fi
7534 YACC=$ac_cv_prog_YACC
7535 if test -n "$YACC"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7537 $as_echo "$YACC" >&6; }
7538 else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 fi
7542
7543
7544 test -n "$YACC" && break
7545 done
7546 test -n "$YACC" || YACC="$MISSING bison -y"
7547
7548 case " $build_configdirs " in
7549 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7550 esac
7551
7552 for ac_prog in bison
7553 do
7554 # Extract the first word of "$ac_prog", so it can be a program name with args.
7555 set dummy $ac_prog; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_BISON+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$BISON"; then
7562 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_BISON="$ac_prog"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 BISON=$ac_cv_prog_BISON
7582 if test -n "$BISON"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7584 $as_echo "$BISON" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590
7591 test -n "$BISON" && break
7592 done
7593 test -n "$BISON" || BISON="$MISSING bison"
7594
7595 case " $build_configdirs " in
7596 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7597 esac
7598
7599 for ac_prog in gm4 gnum4 m4
7600 do
7601 # Extract the first word of "$ac_prog", so it can be a program name with args.
7602 set dummy $ac_prog; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_M4+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$M4"; then
7609 ac_cv_prog_M4="$M4" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_M4="$ac_prog"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7621 fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 M4=$ac_cv_prog_M4
7629 if test -n "$M4"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7631 $as_echo "$M4" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 test -n "$M4" && break
7639 done
7640 test -n "$M4" || M4="$MISSING m4"
7641
7642 case " $build_configdirs " in
7643 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7644 esac
7645
7646 for ac_prog in flex lex
7647 do
7648 # Extract the first word of "$ac_prog", so it can be a program name with args.
7649 set dummy $ac_prog; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if test "${ac_cv_prog_LEX+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if test -n "$LEX"; then
7656 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665 ac_cv_prog_LEX="$ac_prog"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7668 fi
7669 done
7670 done
7671 IFS=$as_save_IFS
7672
7673 fi
7674 fi
7675 LEX=$ac_cv_prog_LEX
7676 if test -n "$LEX"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7678 $as_echo "$LEX" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683
7684
7685 test -n "$LEX" && break
7686 done
7687 test -n "$LEX" || LEX="$MISSING flex"
7688
7689 case " $build_configdirs " in
7690 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7691 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7692 esac
7693
7694 for ac_prog in flex
7695 do
7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
7697 set dummy $ac_prog; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if test "${ac_cv_prog_FLEX+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$FLEX"; then
7704 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_FLEX="$ac_prog"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717 done
7718 done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 FLEX=$ac_cv_prog_FLEX
7724 if test -n "$FLEX"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7726 $as_echo "$FLEX" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733 test -n "$FLEX" && break
7734 done
7735 test -n "$FLEX" || FLEX="$MISSING flex"
7736
7737 case " $build_configdirs " in
7738 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7739 esac
7740
7741 for ac_prog in makeinfo
7742 do
7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
7744 set dummy $ac_prog; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$MAKEINFO"; then
7751 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_MAKEINFO="$ac_prog"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768 fi
7769 fi
7770 MAKEINFO=$ac_cv_prog_MAKEINFO
7771 if test -n "$MAKEINFO"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7773 $as_echo "$MAKEINFO" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7777 fi
7778
7779
7780 test -n "$MAKEINFO" && break
7781 done
7782 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7783
7784 case " $build_configdirs " in
7785 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7786 *)
7787
7788 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7789 # higher, else we use the "missing" dummy.
7790 if ${MAKEINFO} --version \
7791 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7792 :
7793 else
7794 MAKEINFO="$MISSING makeinfo"
7795 fi
7796 ;;
7797
7798 esac
7799
7800 # FIXME: expect and dejagnu may become build tools?
7801
7802 for ac_prog in expect
7803 do
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$EXPECT"; then
7812 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_EXPECT="$ac_prog"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 EXPECT=$ac_cv_prog_EXPECT
7832 if test -n "$EXPECT"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7834 $as_echo "$EXPECT" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840
7841 test -n "$EXPECT" && break
7842 done
7843 test -n "$EXPECT" || EXPECT="expect"
7844
7845 case " $configdirs " in
7846 *" expect "*)
7847 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7848 ;;
7849 esac
7850
7851 for ac_prog in runtest
7852 do
7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 if test -n "$RUNTEST"; then
7861 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_RUNTEST="$ac_prog"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 RUNTEST=$ac_cv_prog_RUNTEST
7881 if test -n "$RUNTEST"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7883 $as_echo "$RUNTEST" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889
7890 test -n "$RUNTEST" && break
7891 done
7892 test -n "$RUNTEST" || RUNTEST="runtest"
7893
7894 case " $configdirs " in
7895 *" dejagnu "*)
7896 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7897 ;;
7898 esac
7899
7900
7901 # Host tools.
7902 ncn_tool_prefix=
7903 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7904 ncn_target_tool_prefix=
7905 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7906
7907
7908
7909 if test -n "$AR"; then
7910 ac_cv_prog_AR=$AR
7911 elif test -n "$ac_cv_prog_AR"; then
7912 AR=$ac_cv_prog_AR
7913 fi
7914
7915 if test -n "$ac_cv_prog_AR"; then
7916 for ncn_progname in ar; do
7917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7918 set dummy ${ncn_progname}; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if test "${ac_cv_prog_AR+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 if test -n "$AR"; then
7925 ac_cv_prog_AR="$AR" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7934 ac_cv_prog_AR="${ncn_progname}"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938 done
7939 done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 AR=$ac_cv_prog_AR
7945 if test -n "$AR"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7947 $as_echo "$AR" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952
7953
7954 done
7955 fi
7956
7957 for ncn_progname in ar; do
7958 if test -n "$ncn_tool_prefix"; then
7959 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7960 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_AR+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 if test -n "$AR"; then
7967 ac_cv_prog_AR="$AR" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 fi
7985 fi
7986 AR=$ac_cv_prog_AR
7987 if test -n "$AR"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7989 $as_echo "$AR" >&6; }
7990 else
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993 fi
7994
7995
7996 fi
7997 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7999 set dummy ${ncn_progname}; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_AR+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$AR"; then
8006 ac_cv_prog_AR="$AR" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_AR="${ncn_progname}"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019 done
8020 done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 AR=$ac_cv_prog_AR
8026 if test -n "$AR"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8028 $as_echo "$AR" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 fi
8036 test -n "$ac_cv_prog_AR" && break
8037 done
8038
8039 if test -z "$ac_cv_prog_AR" ; then
8040 set dummy ar
8041 if test $build = $host ; then
8042 AR="$2"
8043 else
8044 AR="${ncn_tool_prefix}$2"
8045 fi
8046 fi
8047
8048
8049
8050 if test -n "$AS"; then
8051 ac_cv_prog_AS=$AS
8052 elif test -n "$ac_cv_prog_AS"; then
8053 AS=$ac_cv_prog_AS
8054 fi
8055
8056 if test -n "$ac_cv_prog_AS"; then
8057 for ncn_progname in as; do
8058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8059 set dummy ${ncn_progname}; ac_word=$2
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if test "${ac_cv_prog_AS+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 if test -n "$AS"; then
8066 ac_cv_prog_AS="$AS" # Let the user override the test.
8067 else
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8070 do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_prog_AS="${ncn_progname}"
8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
8079 done
8080 done
8081 IFS=$as_save_IFS
8082
8083 fi
8084 fi
8085 AS=$ac_cv_prog_AS
8086 if test -n "$AS"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8088 $as_echo "$AS" >&6; }
8089 else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8092 fi
8093
8094
8095 done
8096 fi
8097
8098 for ncn_progname in as; do
8099 if test -n "$ncn_tool_prefix"; then
8100 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8101 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if test "${ac_cv_prog_AS+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 if test -n "$AS"; then
8108 ac_cv_prog_AS="$AS" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8120 fi
8121 done
8122 done
8123 IFS=$as_save_IFS
8124
8125 fi
8126 fi
8127 AS=$ac_cv_prog_AS
8128 if test -n "$AS"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8130 $as_echo "$AS" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135
8136
8137 fi
8138 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8140 set dummy ${ncn_progname}; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if test "${ac_cv_prog_AS+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 if test -n "$AS"; then
8147 ac_cv_prog_AS="$AS" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_prog_AS="${ncn_progname}"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164 fi
8165 fi
8166 AS=$ac_cv_prog_AS
8167 if test -n "$AS"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8169 $as_echo "$AS" >&6; }
8170 else
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 fi
8174
8175
8176 fi
8177 test -n "$ac_cv_prog_AS" && break
8178 done
8179
8180 if test -z "$ac_cv_prog_AS" ; then
8181 set dummy as
8182 if test $build = $host ; then
8183 AS="$2"
8184 else
8185 AS="${ncn_tool_prefix}$2"
8186 fi
8187 fi
8188
8189
8190
8191 if test -n "$DLLTOOL"; then
8192 ac_cv_prog_DLLTOOL=$DLLTOOL
8193 elif test -n "$ac_cv_prog_DLLTOOL"; then
8194 DLLTOOL=$ac_cv_prog_DLLTOOL
8195 fi
8196
8197 if test -n "$ac_cv_prog_DLLTOOL"; then
8198 for ncn_progname in dlltool; do
8199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8200 set dummy ${ncn_progname}; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$DLLTOOL"; then
8207 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_DLLTOOL="${ncn_progname}"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 DLLTOOL=$ac_cv_prog_DLLTOOL
8227 if test -n "$DLLTOOL"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8229 $as_echo "$DLLTOOL" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236 done
8237 fi
8238
8239 for ncn_progname in dlltool; do
8240 if test -n "$ncn_tool_prefix"; then
8241 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8242 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 if test -n "$DLLTOOL"; then
8249 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8250 else
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254 IFS=$as_save_IFS
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 break 2
8261 fi
8262 done
8263 done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 DLLTOOL=$ac_cv_prog_DLLTOOL
8269 if test -n "$DLLTOOL"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8271 $as_echo "$DLLTOOL" >&6; }
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276
8277
8278 fi
8279 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8281 set dummy ${ncn_progname}; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 if test -n "$DLLTOOL"; then
8288 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_prog_DLLTOOL="${ncn_progname}"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8300 fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305 fi
8306 fi
8307 DLLTOOL=$ac_cv_prog_DLLTOOL
8308 if test -n "$DLLTOOL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8310 $as_echo "$DLLTOOL" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316
8317 fi
8318 test -n "$ac_cv_prog_DLLTOOL" && break
8319 done
8320
8321 if test -z "$ac_cv_prog_DLLTOOL" ; then
8322 set dummy dlltool
8323 if test $build = $host ; then
8324 DLLTOOL="$2"
8325 else
8326 DLLTOOL="${ncn_tool_prefix}$2"
8327 fi
8328 fi
8329
8330
8331
8332 if test -n "$LD"; then
8333 ac_cv_prog_LD=$LD
8334 elif test -n "$ac_cv_prog_LD"; then
8335 LD=$ac_cv_prog_LD
8336 fi
8337
8338 if test -n "$ac_cv_prog_LD"; then
8339 for ncn_progname in ld; do
8340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8341 set dummy ${ncn_progname}; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if test "${ac_cv_prog_LD+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 if test -n "$LD"; then
8348 ac_cv_prog_LD="$LD" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8352 do
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8357 ac_cv_prog_LD="${ncn_progname}"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8360 fi
8361 done
8362 done
8363 IFS=$as_save_IFS
8364
8365 fi
8366 fi
8367 LD=$ac_cv_prog_LD
8368 if test -n "$LD"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8370 $as_echo "$LD" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8374 fi
8375
8376
8377 done
8378 fi
8379
8380 for ncn_progname in ld; do
8381 if test -n "$ncn_tool_prefix"; then
8382 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8383 set dummy ${ncn_tool_prefix}${ncn_progname}; 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 test "${ac_cv_prog_LD+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 if test -n "$LD"; then
8390 ac_cv_prog_LD="$LD" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
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 LD=$ac_cv_prog_LD
8410 if test -n "$LD"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8412 $as_echo "$LD" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 fi
8417
8418
8419 fi
8420 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8422 set dummy ${ncn_progname}; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if test "${ac_cv_prog_LD+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 if test -n "$LD"; then
8429 ac_cv_prog_LD="$LD" # Let the user override the test.
8430 else
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 for as_dir in $PATH
8433 do
8434 IFS=$as_save_IFS
8435 test -z "$as_dir" && as_dir=.
8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8438 ac_cv_prog_LD="${ncn_progname}"
8439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 break 2
8441 fi
8442 done
8443 done
8444 IFS=$as_save_IFS
8445
8446 fi
8447 fi
8448 LD=$ac_cv_prog_LD
8449 if test -n "$LD"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8451 $as_echo "$LD" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8455 fi
8456
8457
8458 fi
8459 test -n "$ac_cv_prog_LD" && break
8460 done
8461
8462 if test -z "$ac_cv_prog_LD" ; then
8463 set dummy ld
8464 if test $build = $host ; then
8465 LD="$2"
8466 else
8467 LD="${ncn_tool_prefix}$2"
8468 fi
8469 fi
8470
8471
8472
8473 if test -n "$LIPO"; then
8474 ac_cv_prog_LIPO=$LIPO
8475 elif test -n "$ac_cv_prog_LIPO"; then
8476 LIPO=$ac_cv_prog_LIPO
8477 fi
8478
8479 if test -n "$ac_cv_prog_LIPO"; then
8480 for ncn_progname in lipo; do
8481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8482 set dummy ${ncn_progname}; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if test "${ac_cv_prog_LIPO+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 if test -n "$LIPO"; then
8489 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_prog_LIPO="${ncn_progname}"
8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502 done
8503 done
8504 IFS=$as_save_IFS
8505
8506 fi
8507 fi
8508 LIPO=$ac_cv_prog_LIPO
8509 if test -n "$LIPO"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8511 $as_echo "$LIPO" >&6; }
8512 else
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8515 fi
8516
8517
8518 done
8519 fi
8520
8521 for ncn_progname in lipo; do
8522 if test -n "$ncn_tool_prefix"; then
8523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8524 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if test "${ac_cv_prog_LIPO+set}" = set; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 if test -n "$LIPO"; then
8531 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 break 2
8543 fi
8544 done
8545 done
8546 IFS=$as_save_IFS
8547
8548 fi
8549 fi
8550 LIPO=$ac_cv_prog_LIPO
8551 if test -n "$LIPO"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8553 $as_echo "$LIPO" >&6; }
8554 else
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558
8559
8560 fi
8561 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8563 set dummy ${ncn_progname}; ac_word=$2
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565 $as_echo_n "checking for $ac_word... " >&6; }
8566 if test "${ac_cv_prog_LIPO+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 if test -n "$LIPO"; then
8570 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8571 else
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8574 do
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8579 ac_cv_prog_LIPO="${ncn_progname}"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8582 fi
8583 done
8584 done
8585 IFS=$as_save_IFS
8586
8587 fi
8588 fi
8589 LIPO=$ac_cv_prog_LIPO
8590 if test -n "$LIPO"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8592 $as_echo "$LIPO" >&6; }
8593 else
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8596 fi
8597
8598
8599 fi
8600 test -n "$ac_cv_prog_LIPO" && break
8601 done
8602
8603 if test -z "$ac_cv_prog_LIPO" ; then
8604 set dummy lipo
8605 if test $build = $host ; then
8606 LIPO="$2"
8607 else
8608 LIPO="${ncn_tool_prefix}$2"
8609 fi
8610 fi
8611
8612
8613
8614 if test -n "$NM"; then
8615 ac_cv_prog_NM=$NM
8616 elif test -n "$ac_cv_prog_NM"; then
8617 NM=$ac_cv_prog_NM
8618 fi
8619
8620 if test -n "$ac_cv_prog_NM"; then
8621 for ncn_progname in nm; do
8622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8623 set dummy ${ncn_progname}; ac_word=$2
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625 $as_echo_n "checking for $ac_word... " >&6; }
8626 if test "${ac_cv_prog_NM+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 if test -n "$NM"; then
8630 ac_cv_prog_NM="$NM" # Let the user override the test.
8631 else
8632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 for as_dir in $PATH
8634 do
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8639 ac_cv_prog_NM="${ncn_progname}"
8640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 break 2
8642 fi
8643 done
8644 done
8645 IFS=$as_save_IFS
8646
8647 fi
8648 fi
8649 NM=$ac_cv_prog_NM
8650 if test -n "$NM"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8652 $as_echo "$NM" >&6; }
8653 else
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8656 fi
8657
8658
8659 done
8660 fi
8661
8662 for ncn_progname in nm; do
8663 if test -n "$ncn_tool_prefix"; then
8664 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8665 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667 $as_echo_n "checking for $ac_word... " >&6; }
8668 if test "${ac_cv_prog_NM+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 if test -n "$NM"; then
8672 ac_cv_prog_NM="$NM" # Let the user override the test.
8673 else
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8676 do
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8684 fi
8685 done
8686 done
8687 IFS=$as_save_IFS
8688
8689 fi
8690 fi
8691 NM=$ac_cv_prog_NM
8692 if test -n "$NM"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8694 $as_echo "$NM" >&6; }
8695 else
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8698 fi
8699
8700
8701 fi
8702 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8704 set dummy ${ncn_progname}; ac_word=$2
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706 $as_echo_n "checking for $ac_word... " >&6; }
8707 if test "${ac_cv_prog_NM+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 if test -n "$NM"; then
8711 ac_cv_prog_NM="$NM" # Let the user override the test.
8712 else
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8715 do
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8720 ac_cv_prog_NM="${ncn_progname}"
8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 break 2
8723 fi
8724 done
8725 done
8726 IFS=$as_save_IFS
8727
8728 fi
8729 fi
8730 NM=$ac_cv_prog_NM
8731 if test -n "$NM"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8733 $as_echo "$NM" >&6; }
8734 else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8737 fi
8738
8739
8740 fi
8741 test -n "$ac_cv_prog_NM" && break
8742 done
8743
8744 if test -z "$ac_cv_prog_NM" ; then
8745 set dummy nm
8746 if test $build = $host ; then
8747 NM="$2"
8748 else
8749 NM="${ncn_tool_prefix}$2"
8750 fi
8751 fi
8752
8753
8754
8755 if test -n "$RANLIB"; then
8756 ac_cv_prog_RANLIB=$RANLIB
8757 elif test -n "$ac_cv_prog_RANLIB"; then
8758 RANLIB=$ac_cv_prog_RANLIB
8759 fi
8760
8761 if test -n "$ac_cv_prog_RANLIB"; then
8762 for ncn_progname in ranlib; do
8763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8764 set dummy ${ncn_progname}; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 if test -n "$RANLIB"; then
8771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8775 do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8780 ac_cv_prog_RANLIB="${ncn_progname}"
8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8783 fi
8784 done
8785 done
8786 IFS=$as_save_IFS
8787
8788 fi
8789 fi
8790 RANLIB=$ac_cv_prog_RANLIB
8791 if test -n "$RANLIB"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8793 $as_echo "$RANLIB" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8797 fi
8798
8799
8800 done
8801 fi
8802
8803 for ncn_progname in ranlib; do
8804 if test -n "$ncn_tool_prefix"; then
8805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8806 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 if test -n "$RANLIB"; then
8813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8814 else
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8817 do
8818 IFS=$as_save_IFS
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824 break 2
8825 fi
8826 done
8827 done
8828 IFS=$as_save_IFS
8829
8830 fi
8831 fi
8832 RANLIB=$ac_cv_prog_RANLIB
8833 if test -n "$RANLIB"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8835 $as_echo "$RANLIB" >&6; }
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841
8842 fi
8843 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8845 set dummy ${ncn_progname}; ac_word=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 if test -n "$RANLIB"; then
8852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8853 else
8854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 for as_dir in $PATH
8856 do
8857 IFS=$as_save_IFS
8858 test -z "$as_dir" && as_dir=.
8859 for ac_exec_ext in '' $ac_executable_extensions; do
8860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8861 ac_cv_prog_RANLIB="${ncn_progname}"
8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8863 break 2
8864 fi
8865 done
8866 done
8867 IFS=$as_save_IFS
8868
8869 fi
8870 fi
8871 RANLIB=$ac_cv_prog_RANLIB
8872 if test -n "$RANLIB"; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8874 $as_echo "$RANLIB" >&6; }
8875 else
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877 $as_echo "no" >&6; }
8878 fi
8879
8880
8881 fi
8882 test -n "$ac_cv_prog_RANLIB" && break
8883 done
8884
8885 if test -z "$ac_cv_prog_RANLIB" ; then
8886 RANLIB="true"
8887 fi
8888
8889
8890
8891 if test -n "$STRIP"; then
8892 ac_cv_prog_STRIP=$STRIP
8893 elif test -n "$ac_cv_prog_STRIP"; then
8894 STRIP=$ac_cv_prog_STRIP
8895 fi
8896
8897 if test -n "$ac_cv_prog_STRIP"; then
8898 for ncn_progname in strip; do
8899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8900 set dummy ${ncn_progname}; ac_word=$2
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902 $as_echo_n "checking for $ac_word... " >&6; }
8903 if test "${ac_cv_prog_STRIP+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 if test -n "$STRIP"; then
8907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8908 else
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8911 do
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8916 ac_cv_prog_STRIP="${ncn_progname}"
8917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8919 fi
8920 done
8921 done
8922 IFS=$as_save_IFS
8923
8924 fi
8925 fi
8926 STRIP=$ac_cv_prog_STRIP
8927 if test -n "$STRIP"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8929 $as_echo "$STRIP" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8933 fi
8934
8935
8936 done
8937 fi
8938
8939 for ncn_progname in strip; do
8940 if test -n "$ncn_tool_prefix"; then
8941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if test "${ac_cv_prog_STRIP+set}" = set; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 if test -n "$STRIP"; then
8949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8950 else
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 for as_dir in $PATH
8953 do
8954 IFS=$as_save_IFS
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8958 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 break 2
8961 fi
8962 done
8963 done
8964 IFS=$as_save_IFS
8965
8966 fi
8967 fi
8968 STRIP=$ac_cv_prog_STRIP
8969 if test -n "$STRIP"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8971 $as_echo "$STRIP" >&6; }
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8975 fi
8976
8977
8978 fi
8979 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8981 set dummy ${ncn_progname}; ac_word=$2
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983 $as_echo_n "checking for $ac_word... " >&6; }
8984 if test "${ac_cv_prog_STRIP+set}" = set; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 if test -n "$STRIP"; then
8988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8989 else
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 for as_dir in $PATH
8992 do
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8997 ac_cv_prog_STRIP="${ncn_progname}"
8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9000 fi
9001 done
9002 done
9003 IFS=$as_save_IFS
9004
9005 fi
9006 fi
9007 STRIP=$ac_cv_prog_STRIP
9008 if test -n "$STRIP"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9010 $as_echo "$STRIP" >&6; }
9011 else
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9014 fi
9015
9016
9017 fi
9018 test -n "$ac_cv_prog_STRIP" && break
9019 done
9020
9021 if test -z "$ac_cv_prog_STRIP" ; then
9022 STRIP="true"
9023 fi
9024
9025
9026
9027 if test -n "$WINDRES"; then
9028 ac_cv_prog_WINDRES=$WINDRES
9029 elif test -n "$ac_cv_prog_WINDRES"; then
9030 WINDRES=$ac_cv_prog_WINDRES
9031 fi
9032
9033 if test -n "$ac_cv_prog_WINDRES"; then
9034 for ncn_progname in windres; do
9035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9036 set dummy ${ncn_progname}; ac_word=$2
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038 $as_echo_n "checking for $ac_word... " >&6; }
9039 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 if test -n "$WINDRES"; then
9043 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9044 else
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9047 do
9048 IFS=$as_save_IFS
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9052 ac_cv_prog_WINDRES="${ncn_progname}"
9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 break 2
9055 fi
9056 done
9057 done
9058 IFS=$as_save_IFS
9059
9060 fi
9061 fi
9062 WINDRES=$ac_cv_prog_WINDRES
9063 if test -n "$WINDRES"; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9065 $as_echo "$WINDRES" >&6; }
9066 else
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068 $as_echo "no" >&6; }
9069 fi
9070
9071
9072 done
9073 fi
9074
9075 for ncn_progname in windres; do
9076 if test -n "$ncn_tool_prefix"; then
9077 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9078 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 if test -n "$WINDRES"; then
9085 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9086 else
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $PATH
9089 do
9090 IFS=$as_save_IFS
9091 test -z "$as_dir" && as_dir=.
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9094 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 break 2
9097 fi
9098 done
9099 done
9100 IFS=$as_save_IFS
9101
9102 fi
9103 fi
9104 WINDRES=$ac_cv_prog_WINDRES
9105 if test -n "$WINDRES"; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9107 $as_echo "$WINDRES" >&6; }
9108 else
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9111 fi
9112
9113
9114 fi
9115 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9117 set dummy ${ncn_progname}; ac_word=$2
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 if test -n "$WINDRES"; then
9124 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9125 else
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9128 do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9133 ac_cv_prog_WINDRES="${ncn_progname}"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137 done
9138 done
9139 IFS=$as_save_IFS
9140
9141 fi
9142 fi
9143 WINDRES=$ac_cv_prog_WINDRES
9144 if test -n "$WINDRES"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9146 $as_echo "$WINDRES" >&6; }
9147 else
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149 $as_echo "no" >&6; }
9150 fi
9151
9152
9153 fi
9154 test -n "$ac_cv_prog_WINDRES" && break
9155 done
9156
9157 if test -z "$ac_cv_prog_WINDRES" ; then
9158 set dummy windres
9159 if test $build = $host ; then
9160 WINDRES="$2"
9161 else
9162 WINDRES="${ncn_tool_prefix}$2"
9163 fi
9164 fi
9165
9166
9167
9168 if test -n "$WINDMC"; then
9169 ac_cv_prog_WINDMC=$WINDMC
9170 elif test -n "$ac_cv_prog_WINDMC"; then
9171 WINDMC=$ac_cv_prog_WINDMC
9172 fi
9173
9174 if test -n "$ac_cv_prog_WINDMC"; then
9175 for ncn_progname in windmc; do
9176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9177 set dummy ${ncn_progname}; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 if test -n "$WINDMC"; then
9184 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9185 else
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9188 do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9193 ac_cv_prog_WINDMC="${ncn_progname}"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9196 fi
9197 done
9198 done
9199 IFS=$as_save_IFS
9200
9201 fi
9202 fi
9203 WINDMC=$ac_cv_prog_WINDMC
9204 if test -n "$WINDMC"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9206 $as_echo "$WINDMC" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9210 fi
9211
9212
9213 done
9214 fi
9215
9216 for ncn_progname in windmc; do
9217 if test -n "$ncn_tool_prefix"; then
9218 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9219 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 if test -n "$WINDMC"; then
9226 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9227 else
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9230 do
9231 IFS=$as_save_IFS
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 break 2
9238 fi
9239 done
9240 done
9241 IFS=$as_save_IFS
9242
9243 fi
9244 fi
9245 WINDMC=$ac_cv_prog_WINDMC
9246 if test -n "$WINDMC"; then
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9248 $as_echo "$WINDMC" >&6; }
9249 else
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9252 fi
9253
9254
9255 fi
9256 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9258 set dummy ${ncn_progname}; ac_word=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 if test -n "$WINDMC"; then
9265 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9266 else
9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 for as_dir in $PATH
9269 do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9274 ac_cv_prog_WINDMC="${ncn_progname}"
9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9277 fi
9278 done
9279 done
9280 IFS=$as_save_IFS
9281
9282 fi
9283 fi
9284 WINDMC=$ac_cv_prog_WINDMC
9285 if test -n "$WINDMC"; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9287 $as_echo "$WINDMC" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9291 fi
9292
9293
9294 fi
9295 test -n "$ac_cv_prog_WINDMC" && break
9296 done
9297
9298 if test -z "$ac_cv_prog_WINDMC" ; then
9299 set dummy windmc
9300 if test $build = $host ; then
9301 WINDMC="$2"
9302 else
9303 WINDMC="${ncn_tool_prefix}$2"
9304 fi
9305 fi
9306
9307
9308
9309 if test -n "$OBJCOPY"; then
9310 ac_cv_prog_OBJCOPY=$OBJCOPY
9311 elif test -n "$ac_cv_prog_OBJCOPY"; then
9312 OBJCOPY=$ac_cv_prog_OBJCOPY
9313 fi
9314
9315 if test -n "$ac_cv_prog_OBJCOPY"; then
9316 for ncn_progname in objcopy; do
9317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9318 set dummy ${ncn_progname}; ac_word=$2
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320 $as_echo_n "checking for $ac_word... " >&6; }
9321 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 if test -n "$OBJCOPY"; then
9325 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9326 else
9327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328 for as_dir in $PATH
9329 do
9330 IFS=$as_save_IFS
9331 test -z "$as_dir" && as_dir=.
9332 for ac_exec_ext in '' $ac_executable_extensions; do
9333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9334 ac_cv_prog_OBJCOPY="${ncn_progname}"
9335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9336 break 2
9337 fi
9338 done
9339 done
9340 IFS=$as_save_IFS
9341
9342 fi
9343 fi
9344 OBJCOPY=$ac_cv_prog_OBJCOPY
9345 if test -n "$OBJCOPY"; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9347 $as_echo "$OBJCOPY" >&6; }
9348 else
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9351 fi
9352
9353
9354 done
9355 fi
9356
9357 for ncn_progname in objcopy; do
9358 if test -n "$ncn_tool_prefix"; then
9359 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9360 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 if test -n "$OBJCOPY"; then
9367 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9368 else
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370 for as_dir in $PATH
9371 do
9372 IFS=$as_save_IFS
9373 test -z "$as_dir" && as_dir=.
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378 break 2
9379 fi
9380 done
9381 done
9382 IFS=$as_save_IFS
9383
9384 fi
9385 fi
9386 OBJCOPY=$ac_cv_prog_OBJCOPY
9387 if test -n "$OBJCOPY"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9389 $as_echo "$OBJCOPY" >&6; }
9390 else
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9393 fi
9394
9395
9396 fi
9397 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9399 set dummy ${ncn_progname}; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 if test -n "$OBJCOPY"; then
9406 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9407 else
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9410 do
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9415 ac_cv_prog_OBJCOPY="${ncn_progname}"
9416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9418 fi
9419 done
9420 done
9421 IFS=$as_save_IFS
9422
9423 fi
9424 fi
9425 OBJCOPY=$ac_cv_prog_OBJCOPY
9426 if test -n "$OBJCOPY"; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9428 $as_echo "$OBJCOPY" >&6; }
9429 else
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9432 fi
9433
9434
9435 fi
9436 test -n "$ac_cv_prog_OBJCOPY" && break
9437 done
9438
9439 if test -z "$ac_cv_prog_OBJCOPY" ; then
9440 set dummy objcopy
9441 if test $build = $host ; then
9442 OBJCOPY="$2"
9443 else
9444 OBJCOPY="${ncn_tool_prefix}$2"
9445 fi
9446 fi
9447
9448
9449
9450 if test -n "$OBJDUMP"; then
9451 ac_cv_prog_OBJDUMP=$OBJDUMP
9452 elif test -n "$ac_cv_prog_OBJDUMP"; then
9453 OBJDUMP=$ac_cv_prog_OBJDUMP
9454 fi
9455
9456 if test -n "$ac_cv_prog_OBJDUMP"; then
9457 for ncn_progname in objdump; do
9458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9459 set dummy ${ncn_progname}; ac_word=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 if test -n "$OBJDUMP"; then
9466 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9467 else
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 for as_dir in $PATH
9470 do
9471 IFS=$as_save_IFS
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475 ac_cv_prog_OBJDUMP="${ncn_progname}"
9476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9477 break 2
9478 fi
9479 done
9480 done
9481 IFS=$as_save_IFS
9482
9483 fi
9484 fi
9485 OBJDUMP=$ac_cv_prog_OBJDUMP
9486 if test -n "$OBJDUMP"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9488 $as_echo "$OBJDUMP" >&6; }
9489 else
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 $as_echo "no" >&6; }
9492 fi
9493
9494
9495 done
9496 fi
9497
9498 for ncn_progname in objdump; do
9499 if test -n "$ncn_tool_prefix"; then
9500 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9501 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9503 $as_echo_n "checking for $ac_word... " >&6; }
9504 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 if test -n "$OBJDUMP"; then
9508 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9509 else
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511 for as_dir in $PATH
9512 do
9513 IFS=$as_save_IFS
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9517 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9519 break 2
9520 fi
9521 done
9522 done
9523 IFS=$as_save_IFS
9524
9525 fi
9526 fi
9527 OBJDUMP=$ac_cv_prog_OBJDUMP
9528 if test -n "$OBJDUMP"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9530 $as_echo "$OBJDUMP" >&6; }
9531 else
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 $as_echo "no" >&6; }
9534 fi
9535
9536
9537 fi
9538 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9540 set dummy ${ncn_progname}; ac_word=$2
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542 $as_echo_n "checking for $ac_word... " >&6; }
9543 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 if test -n "$OBJDUMP"; then
9547 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9548 else
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 for as_dir in $PATH
9551 do
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556 ac_cv_prog_OBJDUMP="${ncn_progname}"
9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 break 2
9559 fi
9560 done
9561 done
9562 IFS=$as_save_IFS
9563
9564 fi
9565 fi
9566 OBJDUMP=$ac_cv_prog_OBJDUMP
9567 if test -n "$OBJDUMP"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9569 $as_echo "$OBJDUMP" >&6; }
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9573 fi
9574
9575
9576 fi
9577 test -n "$ac_cv_prog_OBJDUMP" && break
9578 done
9579
9580 if test -z "$ac_cv_prog_OBJDUMP" ; then
9581 set dummy objdump
9582 if test $build = $host ; then
9583 OBJDUMP="$2"
9584 else
9585 OBJDUMP="${ncn_tool_prefix}$2"
9586 fi
9587 fi
9588
9589
9590
9591 if test -n "$READELF"; then
9592 ac_cv_prog_READELF=$READELF
9593 elif test -n "$ac_cv_prog_READELF"; then
9594 READELF=$ac_cv_prog_READELF
9595 fi
9596
9597 if test -n "$ac_cv_prog_READELF"; then
9598 for ncn_progname in readelf; do
9599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9600 set dummy ${ncn_progname}; ac_word=$2
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602 $as_echo_n "checking for $ac_word... " >&6; }
9603 if test "${ac_cv_prog_READELF+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 if test -n "$READELF"; then
9607 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9608 else
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9611 do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_prog_READELF="${ncn_progname}"
9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9619 fi
9620 done
9621 done
9622 IFS=$as_save_IFS
9623
9624 fi
9625 fi
9626 READELF=$ac_cv_prog_READELF
9627 if test -n "$READELF"; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9629 $as_echo "$READELF" >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9633 fi
9634
9635
9636 done
9637 fi
9638
9639 for ncn_progname in readelf; do
9640 if test -n "$ncn_tool_prefix"; then
9641 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9642 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if test "${ac_cv_prog_READELF+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 if test -n "$READELF"; then
9649 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9650 else
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9653 do
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 break 2
9661 fi
9662 done
9663 done
9664 IFS=$as_save_IFS
9665
9666 fi
9667 fi
9668 READELF=$ac_cv_prog_READELF
9669 if test -n "$READELF"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9671 $as_echo "$READELF" >&6; }
9672 else
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9675 fi
9676
9677
9678 fi
9679 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9681 set dummy ${ncn_progname}; ac_word=$2
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9683 $as_echo_n "checking for $ac_word... " >&6; }
9684 if test "${ac_cv_prog_READELF+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 if test -n "$READELF"; then
9688 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9689 else
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 for as_dir in $PATH
9692 do
9693 IFS=$as_save_IFS
9694 test -z "$as_dir" && as_dir=.
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9697 ac_cv_prog_READELF="${ncn_progname}"
9698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9699 break 2
9700 fi
9701 done
9702 done
9703 IFS=$as_save_IFS
9704
9705 fi
9706 fi
9707 READELF=$ac_cv_prog_READELF
9708 if test -n "$READELF"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9710 $as_echo "$READELF" >&6; }
9711 else
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9714 fi
9715
9716
9717 fi
9718 test -n "$ac_cv_prog_READELF" && break
9719 done
9720
9721 if test -z "$ac_cv_prog_READELF" ; then
9722 set dummy readelf
9723 if test $build = $host ; then
9724 READELF="$2"
9725 else
9726 READELF="${ncn_tool_prefix}$2"
9727 fi
9728 fi
9729
9730
9731
9732
9733
9734
9735 # Target tools.
9736
9737 # Check whether --with-build-time-tools was given.
9738 if test "${with_build_time_tools+set}" = set; then :
9739 withval=$with_build_time_tools; case x"$withval" in
9740 x/*) ;;
9741 *)
9742 with_build_time_tools=
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9744 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9745 ;;
9746 esac
9747 else
9748 with_build_time_tools=
9749 fi
9750
9751
9752
9753
9754 if test -n "$CC_FOR_TARGET"; then
9755 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9756 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9757 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9758 fi
9759
9760 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9761 for ncn_progname in cc gcc; do
9762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9763 set dummy ${ncn_progname}; ac_word=$2
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 if test -n "$CC_FOR_TARGET"; then
9770 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9771 else
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9782 fi
9783 done
9784 done
9785 IFS=$as_save_IFS
9786
9787 fi
9788 fi
9789 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9790 if test -n "$CC_FOR_TARGET"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9792 $as_echo "$CC_FOR_TARGET" >&6; }
9793 else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9796 fi
9797
9798
9799 done
9800 fi
9801
9802 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9803 for ncn_progname in cc gcc; do
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9805 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9806 if test -x $with_build_time_tools/${ncn_progname}; then
9807 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9809 $as_echo "yes" >&6; }
9810 break
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9814 fi
9815 done
9816 fi
9817
9818 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9819 for ncn_progname in cc gcc; do
9820 if test -n "$ncn_target_tool_prefix"; then
9821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9822 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 $as_echo_n "checking for $ac_word... " >&6; }
9825 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 if test -n "$CC_FOR_TARGET"; then
9829 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9830 else
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9833 do
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 break 2
9841 fi
9842 done
9843 done
9844 IFS=$as_save_IFS
9845
9846 fi
9847 fi
9848 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9849 if test -n "$CC_FOR_TARGET"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9851 $as_echo "$CC_FOR_TARGET" >&6; }
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9855 fi
9856
9857
9858 fi
9859 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9861 set dummy ${ncn_progname}; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 if test -n "$CC_FOR_TARGET"; then
9868 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9869 else
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9877 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9880 fi
9881 done
9882 done
9883 IFS=$as_save_IFS
9884
9885 fi
9886 fi
9887 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9888 if test -n "$CC_FOR_TARGET"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9890 $as_echo "$CC_FOR_TARGET" >&6; }
9891 else
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894 fi
9895
9896
9897 fi
9898 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9899 done
9900 fi
9901
9902 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9903 set dummy cc gcc
9904 if test $build = $target ; then
9905 CC_FOR_TARGET="$2"
9906 else
9907 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9908 fi
9909 else
9910 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9911 fi
9912
9913
9914
9915 if test -n "$CXX_FOR_TARGET"; then
9916 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9917 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9918 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9919 fi
9920
9921 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9922 for ncn_progname in c++ g++ cxx gxx; do
9923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9924 set dummy ${ncn_progname}; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930 if test -n "$CXX_FOR_TARGET"; then
9931 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9932 else
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934 for as_dir in $PATH
9935 do
9936 IFS=$as_save_IFS
9937 test -z "$as_dir" && as_dir=.
9938 for ac_exec_ext in '' $ac_executable_extensions; do
9939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9940 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942 break 2
9943 fi
9944 done
9945 done
9946 IFS=$as_save_IFS
9947
9948 fi
9949 fi
9950 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9951 if test -n "$CXX_FOR_TARGET"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9953 $as_echo "$CXX_FOR_TARGET" >&6; }
9954 else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9957 fi
9958
9959
9960 done
9961 fi
9962
9963 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9964 for ncn_progname in c++ g++ cxx gxx; do
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9966 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9967 if test -x $with_build_time_tools/${ncn_progname}; then
9968 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9970 $as_echo "yes" >&6; }
9971 break
9972 else
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974 $as_echo "no" >&6; }
9975 fi
9976 done
9977 fi
9978
9979 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9980 for ncn_progname in c++ g++ cxx gxx; do
9981 if test -n "$ncn_target_tool_prefix"; then
9982 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9983 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 if test -n "$CXX_FOR_TARGET"; then
9990 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9991 else
9992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 for as_dir in $PATH
9994 do
9995 IFS=$as_save_IFS
9996 test -z "$as_dir" && as_dir=.
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9999 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001 break 2
10002 fi
10003 done
10004 done
10005 IFS=$as_save_IFS
10006
10007 fi
10008 fi
10009 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10010 if test -n "$CXX_FOR_TARGET"; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10012 $as_echo "$CXX_FOR_TARGET" >&6; }
10013 else
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10015 $as_echo "no" >&6; }
10016 fi
10017
10018
10019 fi
10020 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10022 set dummy ${ncn_progname}; ac_word=$2
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10024 $as_echo_n "checking for $ac_word... " >&6; }
10025 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 if test -n "$CXX_FOR_TARGET"; then
10029 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10030 else
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10033 do
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042 done
10043 done
10044 IFS=$as_save_IFS
10045
10046 fi
10047 fi
10048 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10049 if test -n "$CXX_FOR_TARGET"; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10051 $as_echo "$CXX_FOR_TARGET" >&6; }
10052 else
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; }
10055 fi
10056
10057
10058 fi
10059 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10060 done
10061 fi
10062
10063 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10064 set dummy c++ g++ cxx gxx
10065 if test $build = $target ; then
10066 CXX_FOR_TARGET="$2"
10067 else
10068 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10069 fi
10070 else
10071 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10072 fi
10073
10074
10075
10076 if test -n "$GCC_FOR_TARGET"; then
10077 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10078 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10079 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10080 fi
10081
10082 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10083 for ncn_progname in gcc; do
10084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10085 set dummy ${ncn_progname}; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 if test -n "$GCC_FOR_TARGET"; then
10092 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10093 else
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10096 do
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10104 fi
10105 done
10106 done
10107 IFS=$as_save_IFS
10108
10109 fi
10110 fi
10111 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10112 if test -n "$GCC_FOR_TARGET"; then
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10114 $as_echo "$GCC_FOR_TARGET" >&6; }
10115 else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10118 fi
10119
10120
10121 done
10122 fi
10123
10124 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10125 for ncn_progname in gcc; do
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10127 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10128 if test -x $with_build_time_tools/${ncn_progname}; then
10129 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10131 $as_echo "yes" >&6; }
10132 break
10133 else
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10136 fi
10137 done
10138 fi
10139
10140 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10141 for ncn_progname in gcc; do
10142 if test -n "$ncn_target_tool_prefix"; then
10143 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10144 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 if test -n "$GCC_FOR_TARGET"; then
10151 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10152 else
10153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154 for as_dir in $PATH
10155 do
10156 IFS=$as_save_IFS
10157 test -z "$as_dir" && as_dir=.
10158 for ac_exec_ext in '' $ac_executable_extensions; do
10159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10160 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 break 2
10163 fi
10164 done
10165 done
10166 IFS=$as_save_IFS
10167
10168 fi
10169 fi
10170 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10171 if test -n "$GCC_FOR_TARGET"; then
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10173 $as_echo "$GCC_FOR_TARGET" >&6; }
10174 else
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176 $as_echo "no" >&6; }
10177 fi
10178
10179
10180 fi
10181 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10183 set dummy ${ncn_progname}; ac_word=$2
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185 $as_echo_n "checking for $ac_word... " >&6; }
10186 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 if test -n "$GCC_FOR_TARGET"; then
10190 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10191 else
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10194 do
10195 IFS=$as_save_IFS
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10199 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 break 2
10202 fi
10203 done
10204 done
10205 IFS=$as_save_IFS
10206
10207 fi
10208 fi
10209 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10210 if test -n "$GCC_FOR_TARGET"; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10212 $as_echo "$GCC_FOR_TARGET" >&6; }
10213 else
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215 $as_echo "no" >&6; }
10216 fi
10217
10218
10219 fi
10220 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10221 done
10222 fi
10223
10224 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10225 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10226 else
10227 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10228 fi
10229
10230
10231
10232 if test -n "$GCJ_FOR_TARGET"; then
10233 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10234 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10235 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10236 fi
10237
10238 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10239 for ncn_progname in gcj; do
10240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10241 set dummy ${ncn_progname}; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 if test -n "$GCJ_FOR_TARGET"; then
10248 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10249 else
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10252 do
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10257 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10260 fi
10261 done
10262 done
10263 IFS=$as_save_IFS
10264
10265 fi
10266 fi
10267 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10268 if test -n "$GCJ_FOR_TARGET"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10270 $as_echo "$GCJ_FOR_TARGET" >&6; }
10271 else
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10274 fi
10275
10276
10277 done
10278 fi
10279
10280 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10281 for ncn_progname in gcj; do
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10283 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10284 if test -x $with_build_time_tools/${ncn_progname}; then
10285 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10287 $as_echo "yes" >&6; }
10288 break
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10292 fi
10293 done
10294 fi
10295
10296 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10297 for ncn_progname in gcj; do
10298 if test -n "$ncn_target_tool_prefix"; then
10299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 if test -n "$GCJ_FOR_TARGET"; then
10307 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10308 else
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10311 do
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 break 2
10319 fi
10320 done
10321 done
10322 IFS=$as_save_IFS
10323
10324 fi
10325 fi
10326 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10327 if test -n "$GCJ_FOR_TARGET"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10329 $as_echo "$GCJ_FOR_TARGET" >&6; }
10330 else
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10333 fi
10334
10335
10336 fi
10337 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10339 set dummy ${ncn_progname}; ac_word=$2
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10341 $as_echo_n "checking for $ac_word... " >&6; }
10342 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 if test -n "$GCJ_FOR_TARGET"; then
10346 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10347 else
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10350 do
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10355 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 break 2
10358 fi
10359 done
10360 done
10361 IFS=$as_save_IFS
10362
10363 fi
10364 fi
10365 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10366 if test -n "$GCJ_FOR_TARGET"; then
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10368 $as_echo "$GCJ_FOR_TARGET" >&6; }
10369 else
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10372 fi
10373
10374
10375 fi
10376 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10377 done
10378 fi
10379
10380 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10381 set dummy gcj
10382 if test $build = $target ; then
10383 GCJ_FOR_TARGET="$2"
10384 else
10385 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10386 fi
10387 else
10388 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10389 fi
10390
10391
10392
10393 if test -n "$GFORTRAN_FOR_TARGET"; then
10394 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10395 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10396 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10397 fi
10398
10399 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10400 for ncn_progname in gfortran; do
10401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10402 set dummy ${ncn_progname}; ac_word=$2
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404 $as_echo_n "checking for $ac_word... " >&6; }
10405 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 if test -n "$GFORTRAN_FOR_TARGET"; then
10409 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10410 else
10411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10413 do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10418 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10421 fi
10422 done
10423 done
10424 IFS=$as_save_IFS
10425
10426 fi
10427 fi
10428 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10429 if test -n "$GFORTRAN_FOR_TARGET"; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10431 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10432 else
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10435 fi
10436
10437
10438 done
10439 fi
10440
10441 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10442 for ncn_progname in gfortran; do
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10444 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10445 if test -x $with_build_time_tools/${ncn_progname}; then
10446 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10448 $as_echo "yes" >&6; }
10449 break
10450 else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10453 fi
10454 done
10455 fi
10456
10457 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10458 for ncn_progname in gfortran; do
10459 if test -n "$ncn_target_tool_prefix"; then
10460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 if test -n "$GFORTRAN_FOR_TARGET"; then
10468 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10469 else
10470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471 for as_dir in $PATH
10472 do
10473 IFS=$as_save_IFS
10474 test -z "$as_dir" && as_dir=.
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10477 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10479 break 2
10480 fi
10481 done
10482 done
10483 IFS=$as_save_IFS
10484
10485 fi
10486 fi
10487 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10488 if test -n "$GFORTRAN_FOR_TARGET"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10490 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10494 fi
10495
10496
10497 fi
10498 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10500 set dummy ${ncn_progname}; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 if test -n "$GFORTRAN_FOR_TARGET"; then
10507 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10508 else
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10511 do
10512 IFS=$as_save_IFS
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10516 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10518 break 2
10519 fi
10520 done
10521 done
10522 IFS=$as_save_IFS
10523
10524 fi
10525 fi
10526 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10527 if test -n "$GFORTRAN_FOR_TARGET"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10529 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10533 fi
10534
10535
10536 fi
10537 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10538 done
10539 fi
10540
10541 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10542 set dummy gfortran
10543 if test $build = $target ; then
10544 GFORTRAN_FOR_TARGET="$2"
10545 else
10546 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10547 fi
10548 else
10549 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10550 fi
10551
10552
10553
10554 if test -n "$GOC_FOR_TARGET"; then
10555 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10556 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10557 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10558 fi
10559
10560 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10561 for ncn_progname in gccgo; do
10562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10563 set dummy ${ncn_progname}; ac_word=$2
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565 $as_echo_n "checking for $ac_word... " >&6; }
10566 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 if test -n "$GOC_FOR_TARGET"; then
10570 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10571 else
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10574 do
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10579 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10582 fi
10583 done
10584 done
10585 IFS=$as_save_IFS
10586
10587 fi
10588 fi
10589 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10590 if test -n "$GOC_FOR_TARGET"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10592 $as_echo "$GOC_FOR_TARGET" >&6; }
10593 else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10596 fi
10597
10598
10599 done
10600 fi
10601
10602 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10603 for ncn_progname in gccgo; do
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10605 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10606 if test -x $with_build_time_tools/${ncn_progname}; then
10607 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10609 $as_echo "yes" >&6; }
10610 break
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614 fi
10615 done
10616 fi
10617
10618 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10619 for ncn_progname in gccgo; do
10620 if test -n "$ncn_target_tool_prefix"; then
10621 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10622 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10624 $as_echo_n "checking for $ac_word... " >&6; }
10625 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 if test -n "$GOC_FOR_TARGET"; then
10629 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10630 else
10631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10633 do
10634 IFS=$as_save_IFS
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10638 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 break 2
10641 fi
10642 done
10643 done
10644 IFS=$as_save_IFS
10645
10646 fi
10647 fi
10648 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10649 if test -n "$GOC_FOR_TARGET"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10651 $as_echo "$GOC_FOR_TARGET" >&6; }
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10655 fi
10656
10657
10658 fi
10659 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10661 set dummy ${ncn_progname}; ac_word=$2
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10663 $as_echo_n "checking for $ac_word... " >&6; }
10664 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 if test -n "$GOC_FOR_TARGET"; then
10668 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10669 else
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10672 do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10677 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10680 fi
10681 done
10682 done
10683 IFS=$as_save_IFS
10684
10685 fi
10686 fi
10687 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10688 if test -n "$GOC_FOR_TARGET"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10690 $as_echo "$GOC_FOR_TARGET" >&6; }
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10694 fi
10695
10696
10697 fi
10698 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10699 done
10700 fi
10701
10702 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10703 set dummy gccgo
10704 if test $build = $target ; then
10705 GOC_FOR_TARGET="$2"
10706 else
10707 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10708 fi
10709 else
10710 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10711 fi
10712
10713
10714
10715 cat > conftest.c << \EOF
10716 #ifdef __GNUC__
10717 gcc_yay;
10718 #endif
10719 EOF
10720 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10721 have_gcc_for_target=yes
10722 else
10723 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10724 have_gcc_for_target=no
10725 fi
10726 rm conftest.c
10727
10728
10729
10730
10731 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10732 if test -n "$with_build_time_tools"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10734 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10735 if test -x $with_build_time_tools/ar; then
10736 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10737 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10739 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10743 fi
10744 elif test $build != $host && test $have_gcc_for_target = yes; then
10745 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10746 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10747 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10748 fi
10749 fi
10750 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10751 # Extract the first word of "ar", so it can be a program name with args.
10752 set dummy ar; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 case $AR_FOR_TARGET in
10759 [\\/]* | ?:[\\/]*)
10760 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10761 ;;
10762 *)
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $gcc_cv_tool_dirs
10765 do
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 break 2
10773 fi
10774 done
10775 done
10776 IFS=$as_save_IFS
10777
10778 ;;
10779 esac
10780 fi
10781 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10782 if test -n "$AR_FOR_TARGET"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10784 $as_echo "$AR_FOR_TARGET" >&6; }
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10788 fi
10789
10790
10791 fi
10792 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10793
10794
10795 if test -n "$AR_FOR_TARGET"; then
10796 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10797 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10798 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10799 fi
10800
10801 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10802 for ncn_progname in ar; do
10803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10804 set dummy ${ncn_progname}; ac_word=$2
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 $as_echo_n "checking for $ac_word... " >&6; }
10807 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 if test -n "$AR_FOR_TARGET"; then
10811 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10812 else
10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814 for as_dir in $PATH
10815 do
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10820 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10823 fi
10824 done
10825 done
10826 IFS=$as_save_IFS
10827
10828 fi
10829 fi
10830 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10831 if test -n "$AR_FOR_TARGET"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10833 $as_echo "$AR_FOR_TARGET" >&6; }
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10837 fi
10838
10839
10840 done
10841 fi
10842
10843 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10844 for ncn_progname in ar; do
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10846 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10847 if test -x $with_build_time_tools/${ncn_progname}; then
10848 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10850 $as_echo "yes" >&6; }
10851 break
10852 else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10855 fi
10856 done
10857 fi
10858
10859 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10860 for ncn_progname in ar; do
10861 if test -n "$ncn_target_tool_prefix"; then
10862 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10863 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 if test -n "$AR_FOR_TARGET"; then
10870 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10871 else
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10874 do
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10879 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10881 break 2
10882 fi
10883 done
10884 done
10885 IFS=$as_save_IFS
10886
10887 fi
10888 fi
10889 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10890 if test -n "$AR_FOR_TARGET"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10892 $as_echo "$AR_FOR_TARGET" >&6; }
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 fi
10897
10898
10899 fi
10900 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10902 set dummy ${ncn_progname}; ac_word=$2
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904 $as_echo_n "checking for $ac_word... " >&6; }
10905 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10906 $as_echo_n "(cached) " >&6
10907 else
10908 if test -n "$AR_FOR_TARGET"; then
10909 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10910 else
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10913 do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10918 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 break 2
10921 fi
10922 done
10923 done
10924 IFS=$as_save_IFS
10925
10926 fi
10927 fi
10928 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10929 if test -n "$AR_FOR_TARGET"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10931 $as_echo "$AR_FOR_TARGET" >&6; }
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934 $as_echo "no" >&6; }
10935 fi
10936
10937
10938 fi
10939 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10940 done
10941 fi
10942
10943 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10944 set dummy ar
10945 if test $build = $target ; then
10946 AR_FOR_TARGET="$2"
10947 else
10948 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10949 fi
10950 else
10951 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10952 fi
10953
10954 else
10955 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10956 fi
10957
10958
10959
10960
10961 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10962 if test -n "$with_build_time_tools"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10964 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10965 if test -x $with_build_time_tools/as; then
10966 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10967 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10969 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10973 fi
10974 elif test $build != $host && test $have_gcc_for_target = yes; then
10975 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10976 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10977 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10978 fi
10979 fi
10980 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10981 # Extract the first word of "as", so it can be a program name with args.
10982 set dummy as; ac_word=$2
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10984 $as_echo_n "checking for $ac_word... " >&6; }
10985 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 case $AS_FOR_TARGET in
10989 [\\/]* | ?:[\\/]*)
10990 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10991 ;;
10992 *)
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $gcc_cv_tool_dirs
10995 do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11000 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004 done
11005 done
11006 IFS=$as_save_IFS
11007
11008 ;;
11009 esac
11010 fi
11011 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11012 if test -n "$AS_FOR_TARGET"; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11014 $as_echo "$AS_FOR_TARGET" >&6; }
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11018 fi
11019
11020
11021 fi
11022 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11023
11024
11025 if test -n "$AS_FOR_TARGET"; then
11026 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11027 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11028 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11029 fi
11030
11031 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11032 for ncn_progname in as; do
11033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11034 set dummy ${ncn_progname}; ac_word=$2
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 $as_echo_n "checking for $ac_word... " >&6; }
11037 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 if test -n "$AS_FOR_TARGET"; then
11041 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11042 else
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11045 do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11053 fi
11054 done
11055 done
11056 IFS=$as_save_IFS
11057
11058 fi
11059 fi
11060 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11061 if test -n "$AS_FOR_TARGET"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11063 $as_echo "$AS_FOR_TARGET" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067 fi
11068
11069
11070 done
11071 fi
11072
11073 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11074 for ncn_progname in as; do
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11076 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11077 if test -x $with_build_time_tools/${ncn_progname}; then
11078 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11080 $as_echo "yes" >&6; }
11081 break
11082 else
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11085 fi
11086 done
11087 fi
11088
11089 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11090 for ncn_progname in as; do
11091 if test -n "$ncn_target_tool_prefix"; then
11092 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11093 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 if test -n "$AS_FOR_TARGET"; then
11100 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11101 else
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103 for as_dir in $PATH
11104 do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11109 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 break 2
11112 fi
11113 done
11114 done
11115 IFS=$as_save_IFS
11116
11117 fi
11118 fi
11119 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11120 if test -n "$AS_FOR_TARGET"; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11122 $as_echo "$AS_FOR_TARGET" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 $as_echo "no" >&6; }
11126 fi
11127
11128
11129 fi
11130 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11132 set dummy ${ncn_progname}; ac_word=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11136 $as_echo_n "(cached) " >&6
11137 else
11138 if test -n "$AS_FOR_TARGET"; then
11139 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11140 else
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11143 do
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11151 fi
11152 done
11153 done
11154 IFS=$as_save_IFS
11155
11156 fi
11157 fi
11158 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11159 if test -n "$AS_FOR_TARGET"; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11161 $as_echo "$AS_FOR_TARGET" >&6; }
11162 else
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 $as_echo "no" >&6; }
11165 fi
11166
11167
11168 fi
11169 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11170 done
11171 fi
11172
11173 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11174 set dummy as
11175 if test $build = $target ; then
11176 AS_FOR_TARGET="$2"
11177 else
11178 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11179 fi
11180 else
11181 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11182 fi
11183
11184 else
11185 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11186 fi
11187
11188
11189
11190
11191 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11192 if test -n "$with_build_time_tools"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11194 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11195 if test -x $with_build_time_tools/dlltool; then
11196 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11197 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11199 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11200 else
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202 $as_echo "no" >&6; }
11203 fi
11204 elif test $build != $host && test $have_gcc_for_target = yes; then
11205 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11206 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11207 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11208 fi
11209 fi
11210 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11211 # Extract the first word of "dlltool", so it can be a program name with args.
11212 set dummy dlltool; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 case $DLLTOOL_FOR_TARGET in
11219 [\\/]* | ?:[\\/]*)
11220 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11221 ;;
11222 *)
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $gcc_cv_tool_dirs
11225 do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 break 2
11233 fi
11234 done
11235 done
11236 IFS=$as_save_IFS
11237
11238 ;;
11239 esac
11240 fi
11241 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11242 if test -n "$DLLTOOL_FOR_TARGET"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11244 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11248 fi
11249
11250
11251 fi
11252 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11253
11254
11255 if test -n "$DLLTOOL_FOR_TARGET"; then
11256 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11257 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11258 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11259 fi
11260
11261 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11262 for ncn_progname in dlltool; do
11263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11264 set dummy ${ncn_progname}; ac_word=$2
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11266 $as_echo_n "checking for $ac_word... " >&6; }
11267 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 if test -n "$DLLTOOL_FOR_TARGET"; then
11271 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11272 else
11273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274 for as_dir in $PATH
11275 do
11276 IFS=$as_save_IFS
11277 test -z "$as_dir" && as_dir=.
11278 for ac_exec_ext in '' $ac_executable_extensions; do
11279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11280 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 break 2
11283 fi
11284 done
11285 done
11286 IFS=$as_save_IFS
11287
11288 fi
11289 fi
11290 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11291 if test -n "$DLLTOOL_FOR_TARGET"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11293 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11297 fi
11298
11299
11300 done
11301 fi
11302
11303 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11304 for ncn_progname in dlltool; do
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11306 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11307 if test -x $with_build_time_tools/${ncn_progname}; then
11308 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11310 $as_echo "yes" >&6; }
11311 break
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11315 fi
11316 done
11317 fi
11318
11319 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11320 for ncn_progname in dlltool; do
11321 if test -n "$ncn_target_tool_prefix"; then
11322 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11323 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 $as_echo_n "checking for $ac_word... " >&6; }
11326 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 if test -n "$DLLTOOL_FOR_TARGET"; then
11330 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11331 else
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11334 do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11339 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11342 fi
11343 done
11344 done
11345 IFS=$as_save_IFS
11346
11347 fi
11348 fi
11349 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11350 if test -n "$DLLTOOL_FOR_TARGET"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11352 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11356 fi
11357
11358
11359 fi
11360 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11362 set dummy ${ncn_progname}; ac_word=$2
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11364 $as_echo_n "checking for $ac_word... " >&6; }
11365 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 if test -n "$DLLTOOL_FOR_TARGET"; then
11369 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11370 else
11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372 for as_dir in $PATH
11373 do
11374 IFS=$as_save_IFS
11375 test -z "$as_dir" && as_dir=.
11376 for ac_exec_ext in '' $ac_executable_extensions; do
11377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11378 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 break 2
11381 fi
11382 done
11383 done
11384 IFS=$as_save_IFS
11385
11386 fi
11387 fi
11388 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11389 if test -n "$DLLTOOL_FOR_TARGET"; then
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11391 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11392 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11395 fi
11396
11397
11398 fi
11399 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11400 done
11401 fi
11402
11403 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11404 set dummy dlltool
11405 if test $build = $target ; then
11406 DLLTOOL_FOR_TARGET="$2"
11407 else
11408 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11409 fi
11410 else
11411 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11412 fi
11413
11414 else
11415 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11416 fi
11417
11418
11419
11420
11421 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11422 if test -n "$with_build_time_tools"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11424 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11425 if test -x $with_build_time_tools/ld; then
11426 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11427 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11429 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433 fi
11434 elif test $build != $host && test $have_gcc_for_target = yes; then
11435 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11436 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11437 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11438 fi
11439 fi
11440 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11441 # Extract the first word of "ld", so it can be a program name with args.
11442 set dummy ld; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 case $LD_FOR_TARGET in
11449 [\\/]* | ?:[\\/]*)
11450 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11451 ;;
11452 *)
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $gcc_cv_tool_dirs
11455 do
11456 IFS=$as_save_IFS
11457 test -z "$as_dir" && as_dir=.
11458 for ac_exec_ext in '' $ac_executable_extensions; do
11459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11460 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462 break 2
11463 fi
11464 done
11465 done
11466 IFS=$as_save_IFS
11467
11468 ;;
11469 esac
11470 fi
11471 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11472 if test -n "$LD_FOR_TARGET"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11474 $as_echo "$LD_FOR_TARGET" >&6; }
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11478 fi
11479
11480
11481 fi
11482 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11483
11484
11485 if test -n "$LD_FOR_TARGET"; then
11486 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11487 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11488 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11489 fi
11490
11491 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11492 for ncn_progname in ld; do
11493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11494 set dummy ${ncn_progname}; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test -n "$LD_FOR_TARGET"; then
11501 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi
11519 fi
11520 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11521 if test -n "$LD_FOR_TARGET"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11523 $as_echo "$LD_FOR_TARGET" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528
11529
11530 done
11531 fi
11532
11533 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11534 for ncn_progname in ld; do
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11536 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11537 if test -x $with_build_time_tools/${ncn_progname}; then
11538 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11540 $as_echo "yes" >&6; }
11541 break
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545 fi
11546 done
11547 fi
11548
11549 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11550 for ncn_progname in ld; do
11551 if test -n "$ncn_target_tool_prefix"; then
11552 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11553 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 if test -n "$LD_FOR_TARGET"; then
11560 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11561 else
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11564 do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11572 fi
11573 done
11574 done
11575 IFS=$as_save_IFS
11576
11577 fi
11578 fi
11579 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11580 if test -n "$LD_FOR_TARGET"; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11582 $as_echo "$LD_FOR_TARGET" >&6; }
11583 else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11586 fi
11587
11588
11589 fi
11590 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11592 set dummy ${ncn_progname}; ac_word=$2
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11594 $as_echo_n "checking for $ac_word... " >&6; }
11595 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 if test -n "$LD_FOR_TARGET"; then
11599 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11600 else
11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602 for as_dir in $PATH
11603 do
11604 IFS=$as_save_IFS
11605 test -z "$as_dir" && as_dir=.
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11608 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11610 break 2
11611 fi
11612 done
11613 done
11614 IFS=$as_save_IFS
11615
11616 fi
11617 fi
11618 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11619 if test -n "$LD_FOR_TARGET"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11621 $as_echo "$LD_FOR_TARGET" >&6; }
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11625 fi
11626
11627
11628 fi
11629 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11630 done
11631 fi
11632
11633 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11634 set dummy ld
11635 if test $build = $target ; then
11636 LD_FOR_TARGET="$2"
11637 else
11638 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11639 fi
11640 else
11641 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11642 fi
11643
11644 else
11645 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11646 fi
11647
11648
11649
11650
11651 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11652 if test -n "$with_build_time_tools"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11654 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11655 if test -x $with_build_time_tools/lipo; then
11656 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11657 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11659 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11660 else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11663 fi
11664 elif test $build != $host && test $have_gcc_for_target = yes; then
11665 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11666 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11667 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11668 fi
11669 fi
11670 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11671 # Extract the first word of "lipo", so it can be a program name with args.
11672 set dummy lipo; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 case $LIPO_FOR_TARGET in
11679 [\\/]* | ?:[\\/]*)
11680 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11681 ;;
11682 *)
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $gcc_cv_tool_dirs
11685 do
11686 IFS=$as_save_IFS
11687 test -z "$as_dir" && as_dir=.
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11690 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11692 break 2
11693 fi
11694 done
11695 done
11696 IFS=$as_save_IFS
11697
11698 ;;
11699 esac
11700 fi
11701 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11702 if test -n "$LIPO_FOR_TARGET"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11704 $as_echo "$LIPO_FOR_TARGET" >&6; }
11705 else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11708 fi
11709
11710
11711 fi
11712 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11713
11714
11715 if test -n "$LIPO_FOR_TARGET"; then
11716 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11717 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11718 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11719 fi
11720
11721 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11722 for ncn_progname in lipo; do
11723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11724 set dummy ${ncn_progname}; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726 $as_echo_n "checking for $ac_word... " >&6; }
11727 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 if test -n "$LIPO_FOR_TARGET"; then
11731 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11732 else
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11735 do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744 done
11745 done
11746 IFS=$as_save_IFS
11747
11748 fi
11749 fi
11750 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11751 if test -n "$LIPO_FOR_TARGET"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11753 $as_echo "$LIPO_FOR_TARGET" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11757 fi
11758
11759
11760 done
11761 fi
11762
11763 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11764 for ncn_progname in lipo; do
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11766 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11767 if test -x $with_build_time_tools/${ncn_progname}; then
11768 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11770 $as_echo "yes" >&6; }
11771 break
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775 fi
11776 done
11777 fi
11778
11779 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11780 for ncn_progname in lipo; do
11781 if test -n "$ncn_target_tool_prefix"; then
11782 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11783 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 if test -n "$LIPO_FOR_TARGET"; then
11790 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11791 else
11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11794 do
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11799 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11801 break 2
11802 fi
11803 done
11804 done
11805 IFS=$as_save_IFS
11806
11807 fi
11808 fi
11809 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11810 if test -n "$LIPO_FOR_TARGET"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11812 $as_echo "$LIPO_FOR_TARGET" >&6; }
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817
11818
11819 fi
11820 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11822 set dummy ${ncn_progname}; ac_word=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 if test -n "$LIPO_FOR_TARGET"; then
11829 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11830 else
11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11833 do
11834 IFS=$as_save_IFS
11835 test -z "$as_dir" && as_dir=.
11836 for ac_exec_ext in '' $ac_executable_extensions; do
11837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11838 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840 break 2
11841 fi
11842 done
11843 done
11844 IFS=$as_save_IFS
11845
11846 fi
11847 fi
11848 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11849 if test -n "$LIPO_FOR_TARGET"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11851 $as_echo "$LIPO_FOR_TARGET" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 fi
11856
11857
11858 fi
11859 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11860 done
11861 fi
11862
11863 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11864 set dummy lipo
11865 if test $build = $target ; then
11866 LIPO_FOR_TARGET="$2"
11867 else
11868 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11869 fi
11870 else
11871 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11872 fi
11873
11874 else
11875 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11876 fi
11877
11878
11879
11880
11881 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11882 if test -n "$with_build_time_tools"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11884 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11885 if test -x $with_build_time_tools/nm; then
11886 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11887 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11889 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11890 else
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11893 fi
11894 elif test $build != $host && test $have_gcc_for_target = yes; then
11895 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11896 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11897 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11898 fi
11899 fi
11900 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11901 # Extract the first word of "nm", so it can be a program name with args.
11902 set dummy nm; ac_word=$2
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904 $as_echo_n "checking for $ac_word... " >&6; }
11905 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 case $NM_FOR_TARGET in
11909 [\\/]* | ?:[\\/]*)
11910 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11911 ;;
11912 *)
11913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914 for as_dir in $gcc_cv_tool_dirs
11915 do
11916 IFS=$as_save_IFS
11917 test -z "$as_dir" && as_dir=.
11918 for ac_exec_ext in '' $ac_executable_extensions; do
11919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11920 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11922 break 2
11923 fi
11924 done
11925 done
11926 IFS=$as_save_IFS
11927
11928 ;;
11929 esac
11930 fi
11931 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11932 if test -n "$NM_FOR_TARGET"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11934 $as_echo "$NM_FOR_TARGET" >&6; }
11935 else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11938 fi
11939
11940
11941 fi
11942 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11943
11944
11945 if test -n "$NM_FOR_TARGET"; then
11946 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11947 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11948 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11949 fi
11950
11951 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11952 for ncn_progname in nm; do
11953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11954 set dummy ${ncn_progname}; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 if test -n "$NM_FOR_TARGET"; then
11961 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11962 else
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11965 do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11973 fi
11974 done
11975 done
11976 IFS=$as_save_IFS
11977
11978 fi
11979 fi
11980 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11981 if test -n "$NM_FOR_TARGET"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11983 $as_echo "$NM_FOR_TARGET" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988
11989
11990 done
11991 fi
11992
11993 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11994 for ncn_progname in nm; do
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11996 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11997 if test -x $with_build_time_tools/${ncn_progname}; then
11998 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12000 $as_echo "yes" >&6; }
12001 break
12002 else
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12005 fi
12006 done
12007 fi
12008
12009 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12010 for ncn_progname in nm; do
12011 if test -n "$ncn_target_tool_prefix"; then
12012 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12013 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12015 $as_echo_n "checking for $ac_word... " >&6; }
12016 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 if test -n "$NM_FOR_TARGET"; then
12020 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12021 else
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12024 do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 break 2
12032 fi
12033 done
12034 done
12035 IFS=$as_save_IFS
12036
12037 fi
12038 fi
12039 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12040 if test -n "$NM_FOR_TARGET"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12042 $as_echo "$NM_FOR_TARGET" >&6; }
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 $as_echo "no" >&6; }
12046 fi
12047
12048
12049 fi
12050 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12052 set dummy ${ncn_progname}; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 if test -n "$NM_FOR_TARGET"; then
12059 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12060 else
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12068 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12071 fi
12072 done
12073 done
12074 IFS=$as_save_IFS
12075
12076 fi
12077 fi
12078 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12079 if test -n "$NM_FOR_TARGET"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12081 $as_echo "$NM_FOR_TARGET" >&6; }
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086
12087
12088 fi
12089 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12090 done
12091 fi
12092
12093 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12094 set dummy nm
12095 if test $build = $target ; then
12096 NM_FOR_TARGET="$2"
12097 else
12098 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12099 fi
12100 else
12101 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12102 fi
12103
12104 else
12105 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12106 fi
12107
12108
12109
12110
12111 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12112 if test -n "$with_build_time_tools"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12114 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12115 if test -x $with_build_time_tools/objdump; then
12116 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12117 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12119 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12123 fi
12124 elif test $build != $host && test $have_gcc_for_target = yes; then
12125 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12126 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12127 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12128 fi
12129 fi
12130 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12131 # Extract the first word of "objdump", so it can be a program name with args.
12132 set dummy objdump; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 case $OBJDUMP_FOR_TARGET in
12139 [\\/]* | ?:[\\/]*)
12140 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12141 ;;
12142 *)
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $gcc_cv_tool_dirs
12145 do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12150 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152 break 2
12153 fi
12154 done
12155 done
12156 IFS=$as_save_IFS
12157
12158 ;;
12159 esac
12160 fi
12161 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12162 if test -n "$OBJDUMP_FOR_TARGET"; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12164 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12168 fi
12169
12170
12171 fi
12172 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12173
12174
12175 if test -n "$OBJDUMP_FOR_TARGET"; then
12176 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12177 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12178 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12179 fi
12180
12181 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12182 for ncn_progname in objdump; do
12183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12184 set dummy ${ncn_progname}; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 if test -n "$OBJDUMP_FOR_TARGET"; then
12191 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12195 do
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12200 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
12203 fi
12204 done
12205 done
12206 IFS=$as_save_IFS
12207
12208 fi
12209 fi
12210 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12211 if test -n "$OBJDUMP_FOR_TARGET"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12213 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 fi
12218
12219
12220 done
12221 fi
12222
12223 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12224 for ncn_progname in objdump; do
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12226 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12227 if test -x $with_build_time_tools/${ncn_progname}; then
12228 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12230 $as_echo "yes" >&6; }
12231 break
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236 done
12237 fi
12238
12239 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12240 for ncn_progname in objdump; do
12241 if test -n "$ncn_target_tool_prefix"; then
12242 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12243 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 if test -n "$OBJDUMP_FOR_TARGET"; then
12250 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12251 else
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12254 do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12259 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12262 fi
12263 done
12264 done
12265 IFS=$as_save_IFS
12266
12267 fi
12268 fi
12269 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12270 if test -n "$OBJDUMP_FOR_TARGET"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12272 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12276 fi
12277
12278
12279 fi
12280 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12282 set dummy ${ncn_progname}; ac_word=$2
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284 $as_echo_n "checking for $ac_word... " >&6; }
12285 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 if test -n "$OBJDUMP_FOR_TARGET"; then
12289 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12290 else
12291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in $PATH
12293 do
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12298 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12301 fi
12302 done
12303 done
12304 IFS=$as_save_IFS
12305
12306 fi
12307 fi
12308 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12309 if test -n "$OBJDUMP_FOR_TARGET"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12311 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12315 fi
12316
12317
12318 fi
12319 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12320 done
12321 fi
12322
12323 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12324 set dummy objdump
12325 if test $build = $target ; then
12326 OBJDUMP_FOR_TARGET="$2"
12327 else
12328 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12329 fi
12330 else
12331 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12332 fi
12333
12334 else
12335 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12336 fi
12337
12338
12339
12340
12341 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12342 if test -n "$with_build_time_tools"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12344 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12345 if test -x $with_build_time_tools/ranlib; then
12346 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12347 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12349 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353 fi
12354 elif test $build != $host && test $have_gcc_for_target = yes; then
12355 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12356 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12357 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12358 fi
12359 fi
12360 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12361 # Extract the first word of "ranlib", so it can be a program name with args.
12362 set dummy ranlib; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 case $RANLIB_FOR_TARGET in
12369 [\\/]* | ?:[\\/]*)
12370 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12371 ;;
12372 *)
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $gcc_cv_tool_dirs
12375 do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12383 fi
12384 done
12385 done
12386 IFS=$as_save_IFS
12387
12388 ;;
12389 esac
12390 fi
12391 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12392 if test -n "$RANLIB_FOR_TARGET"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12394 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12395 else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 fi
12399
12400
12401 fi
12402 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12403
12404
12405 if test -n "$RANLIB_FOR_TARGET"; then
12406 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12407 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12408 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12409 fi
12410
12411 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12412 for ncn_progname in ranlib; do
12413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12414 set dummy ${ncn_progname}; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test -n "$RANLIB_FOR_TARGET"; then
12421 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12422 else
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12433 fi
12434 done
12435 done
12436 IFS=$as_save_IFS
12437
12438 fi
12439 fi
12440 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12441 if test -n "$RANLIB_FOR_TARGET"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12443 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12447 fi
12448
12449
12450 done
12451 fi
12452
12453 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12454 for ncn_progname in ranlib; do
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12456 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12457 if test -x $with_build_time_tools/${ncn_progname}; then
12458 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12460 $as_echo "yes" >&6; }
12461 break
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12465 fi
12466 done
12467 fi
12468
12469 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12470 for ncn_progname in ranlib; do
12471 if test -n "$ncn_target_tool_prefix"; then
12472 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12473 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475 $as_echo_n "checking for $ac_word... " >&6; }
12476 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 if test -n "$RANLIB_FOR_TARGET"; then
12480 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12481 else
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12484 do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12492 fi
12493 done
12494 done
12495 IFS=$as_save_IFS
12496
12497 fi
12498 fi
12499 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12500 if test -n "$RANLIB_FOR_TARGET"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12502 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12503 else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12506 fi
12507
12508
12509 fi
12510 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12512 set dummy ${ncn_progname}; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 if test -n "$RANLIB_FOR_TARGET"; then
12519 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12520 else
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12523 do
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12528 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12531 fi
12532 done
12533 done
12534 IFS=$as_save_IFS
12535
12536 fi
12537 fi
12538 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12539 if test -n "$RANLIB_FOR_TARGET"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12541 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546
12547
12548 fi
12549 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12550 done
12551 fi
12552
12553 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12554 set dummy ranlib
12555 if test $build = $target ; then
12556 RANLIB_FOR_TARGET="$2"
12557 else
12558 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12559 fi
12560 else
12561 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12562 fi
12563
12564 else
12565 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12566 fi
12567
12568
12569
12570
12571 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12572 if test -n "$with_build_time_tools"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12574 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12575 if test -x $with_build_time_tools/readelf; then
12576 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12577 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12579 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12580 else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583 fi
12584 elif test $build != $host && test $have_gcc_for_target = yes; then
12585 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12586 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12587 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12588 fi
12589 fi
12590 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12591 # Extract the first word of "readelf", so it can be a program name with args.
12592 set dummy readelf; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 case $READELF_FOR_TARGET in
12599 [\\/]* | ?:[\\/]*)
12600 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12601 ;;
12602 *)
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $gcc_cv_tool_dirs
12605 do
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 for ac_exec_ext in '' $ac_executable_extensions; do
12609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12610 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 break 2
12613 fi
12614 done
12615 done
12616 IFS=$as_save_IFS
12617
12618 ;;
12619 esac
12620 fi
12621 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12622 if test -n "$READELF_FOR_TARGET"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12624 $as_echo "$READELF_FOR_TARGET" >&6; }
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12628 fi
12629
12630
12631 fi
12632 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12633
12634
12635 if test -n "$READELF_FOR_TARGET"; then
12636 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12637 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12638 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12639 fi
12640
12641 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12642 for ncn_progname in readelf; do
12643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12644 set dummy ${ncn_progname}; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$READELF_FOR_TARGET"; then
12651 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12655 do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664 done
12665 done
12666 IFS=$as_save_IFS
12667
12668 fi
12669 fi
12670 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12671 if test -n "$READELF_FOR_TARGET"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12673 $as_echo "$READELF_FOR_TARGET" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 fi
12678
12679
12680 done
12681 fi
12682
12683 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12684 for ncn_progname in readelf; do
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12686 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12687 if test -x $with_build_time_tools/${ncn_progname}; then
12688 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12690 $as_echo "yes" >&6; }
12691 break
12692 else
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12695 fi
12696 done
12697 fi
12698
12699 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12700 for ncn_progname in readelf; do
12701 if test -n "$ncn_target_tool_prefix"; then
12702 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12703 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 $as_echo_n "checking for $ac_word... " >&6; }
12706 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 if test -n "$READELF_FOR_TARGET"; then
12710 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12711 else
12712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713 for as_dir in $PATH
12714 do
12715 IFS=$as_save_IFS
12716 test -z "$as_dir" && as_dir=.
12717 for ac_exec_ext in '' $ac_executable_extensions; do
12718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12719 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12721 break 2
12722 fi
12723 done
12724 done
12725 IFS=$as_save_IFS
12726
12727 fi
12728 fi
12729 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12730 if test -n "$READELF_FOR_TARGET"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12732 $as_echo "$READELF_FOR_TARGET" >&6; }
12733 else
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12736 fi
12737
12738
12739 fi
12740 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12742 set dummy ${ncn_progname}; ac_word=$2
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12744 $as_echo_n "checking for $ac_word... " >&6; }
12745 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12746 $as_echo_n "(cached) " >&6
12747 else
12748 if test -n "$READELF_FOR_TARGET"; then
12749 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12750 else
12751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12752 for as_dir in $PATH
12753 do
12754 IFS=$as_save_IFS
12755 test -z "$as_dir" && as_dir=.
12756 for ac_exec_ext in '' $ac_executable_extensions; do
12757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12758 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12760 break 2
12761 fi
12762 done
12763 done
12764 IFS=$as_save_IFS
12765
12766 fi
12767 fi
12768 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12769 if test -n "$READELF_FOR_TARGET"; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12771 $as_echo "$READELF_FOR_TARGET" >&6; }
12772 else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 $as_echo "no" >&6; }
12775 fi
12776
12777
12778 fi
12779 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12780 done
12781 fi
12782
12783 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12784 set dummy readelf
12785 if test $build = $target ; then
12786 READELF_FOR_TARGET="$2"
12787 else
12788 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12789 fi
12790 else
12791 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12792 fi
12793
12794 else
12795 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12796 fi
12797
12798
12799
12800
12801 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12802 if test -n "$with_build_time_tools"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12804 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12805 if test -x $with_build_time_tools/strip; then
12806 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12807 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12809 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12810 else
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12813 fi
12814 elif test $build != $host && test $have_gcc_for_target = yes; then
12815 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12816 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12817 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12818 fi
12819 fi
12820 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12821 # Extract the first word of "strip", so it can be a program name with args.
12822 set dummy strip; ac_word=$2
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 $as_echo_n "checking for $ac_word... " >&6; }
12825 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12826 $as_echo_n "(cached) " >&6
12827 else
12828 case $STRIP_FOR_TARGET in
12829 [\\/]* | ?:[\\/]*)
12830 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12831 ;;
12832 *)
12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $gcc_cv_tool_dirs
12835 do
12836 IFS=$as_save_IFS
12837 test -z "$as_dir" && as_dir=.
12838 for ac_exec_ext in '' $ac_executable_extensions; do
12839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12840 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842 break 2
12843 fi
12844 done
12845 done
12846 IFS=$as_save_IFS
12847
12848 ;;
12849 esac
12850 fi
12851 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12852 if test -n "$STRIP_FOR_TARGET"; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12854 $as_echo "$STRIP_FOR_TARGET" >&6; }
12855 else
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12858 fi
12859
12860
12861 fi
12862 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12863
12864
12865 if test -n "$STRIP_FOR_TARGET"; then
12866 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12867 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12868 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12869 fi
12870
12871 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12872 for ncn_progname in strip; do
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$STRIP_FOR_TARGET"; then
12881 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12885 do
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12890 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12893 fi
12894 done
12895 done
12896 IFS=$as_save_IFS
12897
12898 fi
12899 fi
12900 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12901 if test -n "$STRIP_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12903 $as_echo "$STRIP_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909
12910 done
12911 fi
12912
12913 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12914 for ncn_progname in strip; do
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12916 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12917 if test -x $with_build_time_tools/${ncn_progname}; then
12918 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12920 $as_echo "yes" >&6; }
12921 break
12922 else
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924 $as_echo "no" >&6; }
12925 fi
12926 done
12927 fi
12928
12929 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12930 for ncn_progname in strip; do
12931 if test -n "$ncn_target_tool_prefix"; then
12932 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12933 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 if test -n "$STRIP_FOR_TARGET"; then
12940 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12941 else
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12944 do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12949 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 break 2
12952 fi
12953 done
12954 done
12955 IFS=$as_save_IFS
12956
12957 fi
12958 fi
12959 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12960 if test -n "$STRIP_FOR_TARGET"; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12962 $as_echo "$STRIP_FOR_TARGET" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967
12968
12969 fi
12970 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12972 set dummy ${ncn_progname}; ac_word=$2
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12974 $as_echo_n "checking for $ac_word... " >&6; }
12975 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12976 $as_echo_n "(cached) " >&6
12977 else
12978 if test -n "$STRIP_FOR_TARGET"; then
12979 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12980 else
12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12982 for as_dir in $PATH
12983 do
12984 IFS=$as_save_IFS
12985 test -z "$as_dir" && as_dir=.
12986 for ac_exec_ext in '' $ac_executable_extensions; do
12987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12988 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12990 break 2
12991 fi
12992 done
12993 done
12994 IFS=$as_save_IFS
12995
12996 fi
12997 fi
12998 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12999 if test -n "$STRIP_FOR_TARGET"; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13001 $as_echo "$STRIP_FOR_TARGET" >&6; }
13002 else
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13005 fi
13006
13007
13008 fi
13009 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13010 done
13011 fi
13012
13013 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13014 set dummy strip
13015 if test $build = $target ; then
13016 STRIP_FOR_TARGET="$2"
13017 else
13018 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13019 fi
13020 else
13021 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13022 fi
13023
13024 else
13025 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13026 fi
13027
13028
13029
13030
13031 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13032 if test -n "$with_build_time_tools"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13034 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13035 if test -x $with_build_time_tools/windres; then
13036 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13037 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13039 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13040 else
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042 $as_echo "no" >&6; }
13043 fi
13044 elif test $build != $host && test $have_gcc_for_target = yes; then
13045 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13046 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13047 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13048 fi
13049 fi
13050 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13051 # Extract the first word of "windres", so it can be a program name with args.
13052 set dummy windres; ac_word=$2
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054 $as_echo_n "checking for $ac_word... " >&6; }
13055 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 case $WINDRES_FOR_TARGET in
13059 [\\/]* | ?:[\\/]*)
13060 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13061 ;;
13062 *)
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $gcc_cv_tool_dirs
13065 do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13070 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074 done
13075 done
13076 IFS=$as_save_IFS
13077
13078 ;;
13079 esac
13080 fi
13081 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13082 if test -n "$WINDRES_FOR_TARGET"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13084 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13085 else
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13088 fi
13089
13090
13091 fi
13092 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13093
13094
13095 if test -n "$WINDRES_FOR_TARGET"; then
13096 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13097 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13098 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13099 fi
13100
13101 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13102 for ncn_progname in windres; do
13103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13104 set dummy ${ncn_progname}; ac_word=$2
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106 $as_echo_n "checking for $ac_word... " >&6; }
13107 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 if test -n "$WINDRES_FOR_TARGET"; then
13111 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13112 else
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13115 do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13123 fi
13124 done
13125 done
13126 IFS=$as_save_IFS
13127
13128 fi
13129 fi
13130 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13131 if test -n "$WINDRES_FOR_TARGET"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13133 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137 fi
13138
13139
13140 done
13141 fi
13142
13143 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13144 for ncn_progname in windres; do
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13146 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13147 if test -x $with_build_time_tools/${ncn_progname}; then
13148 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13150 $as_echo "yes" >&6; }
13151 break
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156 done
13157 fi
13158
13159 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13160 for ncn_progname in windres; do
13161 if test -n "$ncn_target_tool_prefix"; then
13162 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13163 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13165 $as_echo_n "checking for $ac_word... " >&6; }
13166 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13169 if test -n "$WINDRES_FOR_TARGET"; then
13170 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13171 else
13172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173 for as_dir in $PATH
13174 do
13175 IFS=$as_save_IFS
13176 test -z "$as_dir" && as_dir=.
13177 for ac_exec_ext in '' $ac_executable_extensions; do
13178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13179 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13181 break 2
13182 fi
13183 done
13184 done
13185 IFS=$as_save_IFS
13186
13187 fi
13188 fi
13189 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13190 if test -n "$WINDRES_FOR_TARGET"; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13192 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13193 else
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 $as_echo "no" >&6; }
13196 fi
13197
13198
13199 fi
13200 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13202 set dummy ${ncn_progname}; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 if test -n "$WINDRES_FOR_TARGET"; then
13209 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214 IFS=$as_save_IFS
13215 test -z "$as_dir" && as_dir=.
13216 for ac_exec_ext in '' $ac_executable_extensions; do
13217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13218 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220 break 2
13221 fi
13222 done
13223 done
13224 IFS=$as_save_IFS
13225
13226 fi
13227 fi
13228 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13229 if test -n "$WINDRES_FOR_TARGET"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13231 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13235 fi
13236
13237
13238 fi
13239 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13240 done
13241 fi
13242
13243 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13244 set dummy windres
13245 if test $build = $target ; then
13246 WINDRES_FOR_TARGET="$2"
13247 else
13248 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13249 fi
13250 else
13251 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13252 fi
13253
13254 else
13255 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13256 fi
13257
13258
13259
13260
13261 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13262 if test -n "$with_build_time_tools"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13264 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13265 if test -x $with_build_time_tools/windmc; then
13266 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13267 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13269 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13270 else
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13273 fi
13274 elif test $build != $host && test $have_gcc_for_target = yes; then
13275 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13276 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13277 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13278 fi
13279 fi
13280 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13281 # Extract the first word of "windmc", so it can be a program name with args.
13282 set dummy windmc; ac_word=$2
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13284 $as_echo_n "checking for $ac_word... " >&6; }
13285 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13288 case $WINDMC_FOR_TARGET in
13289 [\\/]* | ?:[\\/]*)
13290 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13291 ;;
13292 *)
13293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294 for as_dir in $gcc_cv_tool_dirs
13295 do
13296 IFS=$as_save_IFS
13297 test -z "$as_dir" && as_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
13299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13300 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 break 2
13303 fi
13304 done
13305 done
13306 IFS=$as_save_IFS
13307
13308 ;;
13309 esac
13310 fi
13311 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13312 if test -n "$WINDMC_FOR_TARGET"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13314 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13315 else
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13318 fi
13319
13320
13321 fi
13322 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13323
13324
13325 if test -n "$WINDMC_FOR_TARGET"; then
13326 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13327 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13328 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13329 fi
13330
13331 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13332 for ncn_progname in windmc; do
13333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13334 set dummy ${ncn_progname}; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 if test -n "$WINDMC_FOR_TARGET"; then
13341 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13342 else
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13345 do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13350 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13353 fi
13354 done
13355 done
13356 IFS=$as_save_IFS
13357
13358 fi
13359 fi
13360 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13361 if test -n "$WINDMC_FOR_TARGET"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13363 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13367 fi
13368
13369
13370 done
13371 fi
13372
13373 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13374 for ncn_progname in windmc; do
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13376 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13377 if test -x $with_build_time_tools/${ncn_progname}; then
13378 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13380 $as_echo "yes" >&6; }
13381 break
13382 else
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13385 fi
13386 done
13387 fi
13388
13389 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13390 for ncn_progname in windmc; do
13391 if test -n "$ncn_target_tool_prefix"; then
13392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13393 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13395 $as_echo_n "checking for $ac_word... " >&6; }
13396 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13397 $as_echo_n "(cached) " >&6
13398 else
13399 if test -n "$WINDMC_FOR_TARGET"; then
13400 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13401 else
13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $PATH
13404 do
13405 IFS=$as_save_IFS
13406 test -z "$as_dir" && as_dir=.
13407 for ac_exec_ext in '' $ac_executable_extensions; do
13408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13409 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13411 break 2
13412 fi
13413 done
13414 done
13415 IFS=$as_save_IFS
13416
13417 fi
13418 fi
13419 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13420 if test -n "$WINDMC_FOR_TARGET"; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13422 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13423 else
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13426 fi
13427
13428
13429 fi
13430 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13432 set dummy ${ncn_progname}; ac_word=$2
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434 $as_echo_n "checking for $ac_word... " >&6; }
13435 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13438 if test -n "$WINDMC_FOR_TARGET"; then
13439 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13440 else
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13443 do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13448 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13451 fi
13452 done
13453 done
13454 IFS=$as_save_IFS
13455
13456 fi
13457 fi
13458 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13459 if test -n "$WINDMC_FOR_TARGET"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13461 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13465 fi
13466
13467
13468 fi
13469 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13470 done
13471 fi
13472
13473 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13474 set dummy windmc
13475 if test $build = $target ; then
13476 WINDMC_FOR_TARGET="$2"
13477 else
13478 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13479 fi
13480 else
13481 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13482 fi
13483
13484 else
13485 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13486 fi
13487
13488
13489 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13490
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13492 $as_echo_n "checking where to find the target ar... " >&6; }
13493 if test "x${build}" != "x${host}" ; then
13494 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13495 # We already found the complete path
13496 ac_dir=`dirname $AR_FOR_TARGET`
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13498 $as_echo "pre-installed in $ac_dir" >&6; }
13499 else
13500 # Canadian cross, just use what we found
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13502 $as_echo "pre-installed" >&6; }
13503 fi
13504 else
13505 ok=yes
13506 case " ${configdirs} " in
13507 *" binutils "*) ;;
13508 *) ok=no ;;
13509 esac
13510
13511 if test $ok = yes; then
13512 # An in-tree tool is available and we can use it
13513 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13515 $as_echo "just compiled" >&6; }
13516 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13517 # We already found the complete path
13518 ac_dir=`dirname $AR_FOR_TARGET`
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13520 $as_echo "pre-installed in $ac_dir" >&6; }
13521 elif test "x$target" = "x$host"; then
13522 # We can use an host tool
13523 AR_FOR_TARGET='$(AR)'
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13525 $as_echo "host tool" >&6; }
13526 else
13527 # We need a cross tool
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13529 $as_echo "pre-installed" >&6; }
13530 fi
13531 fi
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13534 $as_echo_n "checking where to find the target as... " >&6; }
13535 if test "x${build}" != "x${host}" ; then
13536 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13537 # We already found the complete path
13538 ac_dir=`dirname $AS_FOR_TARGET`
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13540 $as_echo "pre-installed in $ac_dir" >&6; }
13541 else
13542 # Canadian cross, just use what we found
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13544 $as_echo "pre-installed" >&6; }
13545 fi
13546 else
13547 ok=yes
13548 case " ${configdirs} " in
13549 *" gas "*) ;;
13550 *) ok=no ;;
13551 esac
13552
13553 if test $ok = yes; then
13554 # An in-tree tool is available and we can use it
13555 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13557 $as_echo "just compiled" >&6; }
13558 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13559 # We already found the complete path
13560 ac_dir=`dirname $AS_FOR_TARGET`
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13562 $as_echo "pre-installed in $ac_dir" >&6; }
13563 elif test "x$target" = "x$host"; then
13564 # We can use an host tool
13565 AS_FOR_TARGET='$(AS)'
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13567 $as_echo "host tool" >&6; }
13568 else
13569 # We need a cross tool
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571 $as_echo "pre-installed" >&6; }
13572 fi
13573 fi
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13576 $as_echo_n "checking where to find the target cc... " >&6; }
13577 if test "x${build}" != "x${host}" ; then
13578 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13579 # We already found the complete path
13580 ac_dir=`dirname $CC_FOR_TARGET`
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582 $as_echo "pre-installed in $ac_dir" >&6; }
13583 else
13584 # Canadian cross, just use what we found
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13586 $as_echo "pre-installed" >&6; }
13587 fi
13588 else
13589 ok=yes
13590 case " ${configdirs} " in
13591 *" gcc "*) ;;
13592 *) ok=no ;;
13593 esac
13594
13595 if test $ok = yes; then
13596 # An in-tree tool is available and we can use it
13597 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13599 $as_echo "just compiled" >&6; }
13600 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13601 # We already found the complete path
13602 ac_dir=`dirname $CC_FOR_TARGET`
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13604 $as_echo "pre-installed in $ac_dir" >&6; }
13605 elif test "x$target" = "x$host"; then
13606 # We can use an host tool
13607 CC_FOR_TARGET='$(CC)'
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13609 $as_echo "host tool" >&6; }
13610 else
13611 # We need a cross tool
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13613 $as_echo "pre-installed" >&6; }
13614 fi
13615 fi
13616
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13618 $as_echo_n "checking where to find the target c++... " >&6; }
13619 if test "x${build}" != "x${host}" ; then
13620 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13621 # We already found the complete path
13622 ac_dir=`dirname $CXX_FOR_TARGET`
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13624 $as_echo "pre-installed in $ac_dir" >&6; }
13625 else
13626 # Canadian cross, just use what we found
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13628 $as_echo "pre-installed" >&6; }
13629 fi
13630 else
13631 ok=yes
13632 case " ${configdirs} " in
13633 *" gcc "*) ;;
13634 *) ok=no ;;
13635 esac
13636 case ,${enable_languages}, in
13637 *,c++,*) ;;
13638 *) ok=no ;;
13639 esac
13640 if test $ok = yes; then
13641 # An in-tree tool is available and we can use it
13642 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'
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13644 $as_echo "just compiled" >&6; }
13645 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13646 # We already found the complete path
13647 ac_dir=`dirname $CXX_FOR_TARGET`
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13649 $as_echo "pre-installed in $ac_dir" >&6; }
13650 elif test "x$target" = "x$host"; then
13651 # We can use an host tool
13652 CXX_FOR_TARGET='$(CXX)'
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13654 $as_echo "host tool" >&6; }
13655 else
13656 # We need a cross tool
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13658 $as_echo "pre-installed" >&6; }
13659 fi
13660 fi
13661
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13663 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13664 if test "x${build}" != "x${host}" ; then
13665 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13666 # We already found the complete path
13667 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13669 $as_echo "pre-installed in $ac_dir" >&6; }
13670 else
13671 # Canadian cross, just use what we found
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13673 $as_echo "pre-installed" >&6; }
13674 fi
13675 else
13676 ok=yes
13677 case " ${configdirs} " in
13678 *" gcc "*) ;;
13679 *) ok=no ;;
13680 esac
13681 case ,${enable_languages}, in
13682 *,c++,*) ;;
13683 *) ok=no ;;
13684 esac
13685 if test $ok = yes; then
13686 # An in-tree tool is available and we can use it
13687 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'
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13689 $as_echo "just compiled" >&6; }
13690 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13691 # We already found the complete path
13692 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13694 $as_echo "pre-installed in $ac_dir" >&6; }
13695 elif test "x$target" = "x$host"; then
13696 # We can use an host tool
13697 RAW_CXX_FOR_TARGET='$(CXX)'
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13699 $as_echo "host tool" >&6; }
13700 else
13701 # We need a cross tool
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13703 $as_echo "pre-installed" >&6; }
13704 fi
13705 fi
13706
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13708 $as_echo_n "checking where to find the target dlltool... " >&6; }
13709 if test "x${build}" != "x${host}" ; then
13710 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13711 # We already found the complete path
13712 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13714 $as_echo "pre-installed in $ac_dir" >&6; }
13715 else
13716 # Canadian cross, just use what we found
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13718 $as_echo "pre-installed" >&6; }
13719 fi
13720 else
13721 ok=yes
13722 case " ${configdirs} " in
13723 *" binutils "*) ;;
13724 *) ok=no ;;
13725 esac
13726
13727 if test $ok = yes; then
13728 # An in-tree tool is available and we can use it
13729 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13731 $as_echo "just compiled" >&6; }
13732 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13733 # We already found the complete path
13734 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13736 $as_echo "pre-installed in $ac_dir" >&6; }
13737 elif test "x$target" = "x$host"; then
13738 # We can use an host tool
13739 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13741 $as_echo "host tool" >&6; }
13742 else
13743 # We need a cross tool
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13745 $as_echo "pre-installed" >&6; }
13746 fi
13747 fi
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13750 $as_echo_n "checking where to find the target gcc... " >&6; }
13751 if test "x${build}" != "x${host}" ; then
13752 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13753 # We already found the complete path
13754 ac_dir=`dirname $GCC_FOR_TARGET`
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13756 $as_echo "pre-installed in $ac_dir" >&6; }
13757 else
13758 # Canadian cross, just use what we found
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13760 $as_echo "pre-installed" >&6; }
13761 fi
13762 else
13763 ok=yes
13764 case " ${configdirs} " in
13765 *" gcc "*) ;;
13766 *) ok=no ;;
13767 esac
13768
13769 if test $ok = yes; then
13770 # An in-tree tool is available and we can use it
13771 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13773 $as_echo "just compiled" >&6; }
13774 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13775 # We already found the complete path
13776 ac_dir=`dirname $GCC_FOR_TARGET`
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13778 $as_echo "pre-installed in $ac_dir" >&6; }
13779 elif test "x$target" = "x$host"; then
13780 # We can use an host tool
13781 GCC_FOR_TARGET='$()'
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13783 $as_echo "host tool" >&6; }
13784 else
13785 # We need a cross tool
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787 $as_echo "pre-installed" >&6; }
13788 fi
13789 fi
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13792 $as_echo_n "checking where to find the target gcj... " >&6; }
13793 if test "x${build}" != "x${host}" ; then
13794 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
13796 ac_dir=`dirname $GCJ_FOR_TARGET`
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798 $as_echo "pre-installed in $ac_dir" >&6; }
13799 else
13800 # Canadian cross, just use what we found
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802 $as_echo "pre-installed" >&6; }
13803 fi
13804 else
13805 ok=yes
13806 case " ${configdirs} " in
13807 *" gcc "*) ;;
13808 *) ok=no ;;
13809 esac
13810 case ,${enable_languages}, in
13811 *,java,*) ;;
13812 *) ok=no ;;
13813 esac
13814 if test $ok = yes; then
13815 # An in-tree tool is available and we can use it
13816 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13818 $as_echo "just compiled" >&6; }
13819 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
13821 ac_dir=`dirname $GCJ_FOR_TARGET`
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823 $as_echo "pre-installed in $ac_dir" >&6; }
13824 elif test "x$target" = "x$host"; then
13825 # We can use an host tool
13826 GCJ_FOR_TARGET='$(GCJ)'
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13828 $as_echo "host tool" >&6; }
13829 else
13830 # We need a cross tool
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832 $as_echo "pre-installed" >&6; }
13833 fi
13834 fi
13835
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13837 $as_echo_n "checking where to find the target gfortran... " >&6; }
13838 if test "x${build}" != "x${host}" ; then
13839 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13840 # We already found the complete path
13841 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13843 $as_echo "pre-installed in $ac_dir" >&6; }
13844 else
13845 # Canadian cross, just use what we found
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847 $as_echo "pre-installed" >&6; }
13848 fi
13849 else
13850 ok=yes
13851 case " ${configdirs} " in
13852 *" gcc "*) ;;
13853 *) ok=no ;;
13854 esac
13855 case ,${enable_languages}, in
13856 *,fortran,*) ;;
13857 *) ok=no ;;
13858 esac
13859 if test $ok = yes; then
13860 # An in-tree tool is available and we can use it
13861 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13863 $as_echo "just compiled" >&6; }
13864 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13865 # We already found the complete path
13866 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13868 $as_echo "pre-installed in $ac_dir" >&6; }
13869 elif test "x$target" = "x$host"; then
13870 # We can use an host tool
13871 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13873 $as_echo "host tool" >&6; }
13874 else
13875 # We need a cross tool
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13877 $as_echo "pre-installed" >&6; }
13878 fi
13879 fi
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13882 $as_echo_n "checking where to find the target gccgo... " >&6; }
13883 if test "x${build}" != "x${host}" ; then
13884 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13885 # We already found the complete path
13886 ac_dir=`dirname $GOC_FOR_TARGET`
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13888 $as_echo "pre-installed in $ac_dir" >&6; }
13889 else
13890 # Canadian cross, just use what we found
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13892 $as_echo "pre-installed" >&6; }
13893 fi
13894 else
13895 ok=yes
13896 case " ${configdirs} " in
13897 *" gcc "*) ;;
13898 *) ok=no ;;
13899 esac
13900 case ,${enable_languages}, in
13901 *,go,*) ;;
13902 *) ok=no ;;
13903 esac
13904 if test $ok = yes; then
13905 # An in-tree tool is available and we can use it
13906 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13908 $as_echo "just compiled" >&6; }
13909 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13910 # We already found the complete path
13911 ac_dir=`dirname $GOC_FOR_TARGET`
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13913 $as_echo "pre-installed in $ac_dir" >&6; }
13914 elif test "x$target" = "x$host"; then
13915 # We can use an host tool
13916 GOC_FOR_TARGET='$(GOC)'
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13918 $as_echo "host tool" >&6; }
13919 else
13920 # We need a cross tool
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13922 $as_echo "pre-installed" >&6; }
13923 fi
13924 fi
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13927 $as_echo_n "checking where to find the target ld... " >&6; }
13928 if test "x${build}" != "x${host}" ; then
13929 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13930 # We already found the complete path
13931 ac_dir=`dirname $LD_FOR_TARGET`
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13933 $as_echo "pre-installed in $ac_dir" >&6; }
13934 else
13935 # Canadian cross, just use what we found
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13937 $as_echo "pre-installed" >&6; }
13938 fi
13939 else
13940 ok=yes
13941 case " ${configdirs} " in
13942 *" ld "*) ;;
13943 *) ok=no ;;
13944 esac
13945
13946 if test $ok = yes; then
13947 # An in-tree tool is available and we can use it
13948 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13950 $as_echo "just compiled" >&6; }
13951 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13952 # We already found the complete path
13953 ac_dir=`dirname $LD_FOR_TARGET`
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13955 $as_echo "pre-installed in $ac_dir" >&6; }
13956 elif test "x$target" = "x$host"; then
13957 # We can use an host tool
13958 LD_FOR_TARGET='$(LD)'
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13960 $as_echo "host tool" >&6; }
13961 else
13962 # We need a cross tool
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964 $as_echo "pre-installed" >&6; }
13965 fi
13966 fi
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13969 $as_echo_n "checking where to find the target lipo... " >&6; }
13970 if test "x${build}" != "x${host}" ; then
13971 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13972 # We already found the complete path
13973 ac_dir=`dirname $LIPO_FOR_TARGET`
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13975 $as_echo "pre-installed in $ac_dir" >&6; }
13976 else
13977 # Canadian cross, just use what we found
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13979 $as_echo "pre-installed" >&6; }
13980 fi
13981 else
13982 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
13984 ac_dir=`dirname $LIPO_FOR_TARGET`
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986 $as_echo "pre-installed in $ac_dir" >&6; }
13987 elif test "x$target" = "x$host"; then
13988 # We can use an host tool
13989 LIPO_FOR_TARGET='$(LIPO)'
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13991 $as_echo "host tool" >&6; }
13992 else
13993 # We need a cross tool
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13995 $as_echo "pre-installed" >&6; }
13996 fi
13997 fi
13998
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14000 $as_echo_n "checking where to find the target nm... " >&6; }
14001 if test "x${build}" != "x${host}" ; then
14002 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14003 # We already found the complete path
14004 ac_dir=`dirname $NM_FOR_TARGET`
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14006 $as_echo "pre-installed in $ac_dir" >&6; }
14007 else
14008 # Canadian cross, just use what we found
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14010 $as_echo "pre-installed" >&6; }
14011 fi
14012 else
14013 ok=yes
14014 case " ${configdirs} " in
14015 *" binutils "*) ;;
14016 *) ok=no ;;
14017 esac
14018
14019 if test $ok = yes; then
14020 # An in-tree tool is available and we can use it
14021 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14023 $as_echo "just compiled" >&6; }
14024 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14025 # We already found the complete path
14026 ac_dir=`dirname $NM_FOR_TARGET`
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14028 $as_echo "pre-installed in $ac_dir" >&6; }
14029 elif test "x$target" = "x$host"; then
14030 # We can use an host tool
14031 NM_FOR_TARGET='$(NM)'
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14033 $as_echo "host tool" >&6; }
14034 else
14035 # We need a cross tool
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14037 $as_echo "pre-installed" >&6; }
14038 fi
14039 fi
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14042 $as_echo_n "checking where to find the target objdump... " >&6; }
14043 if test "x${build}" != "x${host}" ; then
14044 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14045 # We already found the complete path
14046 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048 $as_echo "pre-installed in $ac_dir" >&6; }
14049 else
14050 # Canadian cross, just use what we found
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14052 $as_echo "pre-installed" >&6; }
14053 fi
14054 else
14055 ok=yes
14056 case " ${configdirs} " in
14057 *" binutils "*) ;;
14058 *) ok=no ;;
14059 esac
14060
14061 if test $ok = yes; then
14062 # An in-tree tool is available and we can use it
14063 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14065 $as_echo "just compiled" >&6; }
14066 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
14068 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070 $as_echo "pre-installed in $ac_dir" >&6; }
14071 elif test "x$target" = "x$host"; then
14072 # We can use an host tool
14073 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14075 $as_echo "host tool" >&6; }
14076 else
14077 # We need a cross tool
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079 $as_echo "pre-installed" >&6; }
14080 fi
14081 fi
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14084 $as_echo_n "checking where to find the target ranlib... " >&6; }
14085 if test "x${build}" != "x${host}" ; then
14086 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
14088 ac_dir=`dirname $RANLIB_FOR_TARGET`
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090 $as_echo "pre-installed in $ac_dir" >&6; }
14091 else
14092 # Canadian cross, just use what we found
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094 $as_echo "pre-installed" >&6; }
14095 fi
14096 else
14097 ok=yes
14098 case " ${configdirs} " in
14099 *" binutils "*) ;;
14100 *) ok=no ;;
14101 esac
14102
14103 if test $ok = yes; then
14104 # An in-tree tool is available and we can use it
14105 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14107 $as_echo "just compiled" >&6; }
14108 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
14110 ac_dir=`dirname $RANLIB_FOR_TARGET`
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112 $as_echo "pre-installed in $ac_dir" >&6; }
14113 elif test "x$target" = "x$host"; then
14114 # We can use an host tool
14115 RANLIB_FOR_TARGET='$(RANLIB)'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14117 $as_echo "host tool" >&6; }
14118 else
14119 # We need a cross tool
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121 $as_echo "pre-installed" >&6; }
14122 fi
14123 fi
14124
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14126 $as_echo_n "checking where to find the target readelf... " >&6; }
14127 if test "x${build}" != "x${host}" ; then
14128 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14129 # We already found the complete path
14130 ac_dir=`dirname $READELF_FOR_TARGET`
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14132 $as_echo "pre-installed in $ac_dir" >&6; }
14133 else
14134 # Canadian cross, just use what we found
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136 $as_echo "pre-installed" >&6; }
14137 fi
14138 else
14139 ok=yes
14140 case " ${configdirs} " in
14141 *" binutils "*) ;;
14142 *) ok=no ;;
14143 esac
14144
14145 if test $ok = yes; then
14146 # An in-tree tool is available and we can use it
14147 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14149 $as_echo "just compiled" >&6; }
14150 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
14152 ac_dir=`dirname $READELF_FOR_TARGET`
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154 $as_echo "pre-installed in $ac_dir" >&6; }
14155 elif test "x$target" = "x$host"; then
14156 # We can use an host tool
14157 READELF_FOR_TARGET='$(READELF)'
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14159 $as_echo "host tool" >&6; }
14160 else
14161 # We need a cross tool
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163 $as_echo "pre-installed" >&6; }
14164 fi
14165 fi
14166
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14168 $as_echo_n "checking where to find the target strip... " >&6; }
14169 if test "x${build}" != "x${host}" ; then
14170 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
14172 ac_dir=`dirname $STRIP_FOR_TARGET`
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174 $as_echo "pre-installed in $ac_dir" >&6; }
14175 else
14176 # Canadian cross, just use what we found
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178 $as_echo "pre-installed" >&6; }
14179 fi
14180 else
14181 ok=yes
14182 case " ${configdirs} " in
14183 *" binutils "*) ;;
14184 *) ok=no ;;
14185 esac
14186
14187 if test $ok = yes; then
14188 # An in-tree tool is available and we can use it
14189 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14191 $as_echo "just compiled" >&6; }
14192 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
14194 ac_dir=`dirname $STRIP_FOR_TARGET`
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14196 $as_echo "pre-installed in $ac_dir" >&6; }
14197 elif test "x$target" = "x$host"; then
14198 # We can use an host tool
14199 STRIP_FOR_TARGET='$(STRIP)'
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14201 $as_echo "host tool" >&6; }
14202 else
14203 # We need a cross tool
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205 $as_echo "pre-installed" >&6; }
14206 fi
14207 fi
14208
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14210 $as_echo_n "checking where to find the target windres... " >&6; }
14211 if test "x${build}" != "x${host}" ; then
14212 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
14214 ac_dir=`dirname $WINDRES_FOR_TARGET`
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216 $as_echo "pre-installed in $ac_dir" >&6; }
14217 else
14218 # Canadian cross, just use what we found
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220 $as_echo "pre-installed" >&6; }
14221 fi
14222 else
14223 ok=yes
14224 case " ${configdirs} " in
14225 *" binutils "*) ;;
14226 *) ok=no ;;
14227 esac
14228
14229 if test $ok = yes; then
14230 # An in-tree tool is available and we can use it
14231 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14233 $as_echo "just compiled" >&6; }
14234 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
14236 ac_dir=`dirname $WINDRES_FOR_TARGET`
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238 $as_echo "pre-installed in $ac_dir" >&6; }
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 WINDRES_FOR_TARGET='$(WINDRES)'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243 $as_echo "host tool" >&6; }
14244 else
14245 # We need a cross tool
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247 $as_echo "pre-installed" >&6; }
14248 fi
14249 fi
14250
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14252 $as_echo_n "checking where to find the target windmc... " >&6; }
14253 if test "x${build}" != "x${host}" ; then
14254 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $WINDMC_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258 $as_echo "pre-installed in $ac_dir" >&6; }
14259 else
14260 # Canadian cross, just use what we found
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262 $as_echo "pre-installed" >&6; }
14263 fi
14264 else
14265 ok=yes
14266 case " ${configdirs} " in
14267 *" binutils "*) ;;
14268 *) ok=no ;;
14269 esac
14270
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275 $as_echo "just compiled" >&6; }
14276 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
14278 ac_dir=`dirname $WINDMC_FOR_TARGET`
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280 $as_echo "pre-installed in $ac_dir" >&6; }
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 WINDMC_FOR_TARGET='$(WINDMC)'
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285 $as_echo "host tool" >&6; }
14286 else
14287 # We need a cross tool
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14290 fi
14291 fi
14292
14293
14294
14295
14296
14297 # Certain tools may need extra flags.
14298 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14299 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14300 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14301
14302 # When building target libraries, except in a Canadian cross, we use
14303 # the same toolchain as the compiler we just built.
14304 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14305 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14306 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14307 if test $host = $build; then
14308 case " $configdirs " in
14309 *" gcc "*)
14310 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14311 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14312 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14313 ;;
14314 esac
14315 fi
14316
14317
14318
14319
14320
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14322 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14323 # Check whether --enable-maintainer-mode was given.
14324 if test "${enable_maintainer_mode+set}" = set; then :
14325 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14326 else
14327 USE_MAINTAINER_MODE=no
14328 fi
14329
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14331 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14332
14333
14334 if test "$USE_MAINTAINER_MODE" = yes; then
14335 MAINTAINER_MODE_TRUE=
14336 MAINTAINER_MODE_FALSE='#'
14337 else
14338 MAINTAINER_MODE_TRUE='#'
14339 MAINTAINER_MODE_FALSE=
14340 fi
14341 MAINT=$MAINTAINER_MODE_TRUE
14342
14343 # ---------------------
14344 # GCC bootstrap support
14345 # ---------------------
14346
14347 # Stage specific cflags for build.
14348 stage1_cflags="-g"
14349 case $build in
14350 vax-*-*)
14351 case ${GCC} in
14352 yes) stage1_cflags="-g -Wa,-J" ;;
14353 *) stage1_cflags="-g -J" ;;
14354 esac ;;
14355 esac
14356
14357
14358
14359 # Enable --enable-checking in stage1 of the compiler.
14360 # Check whether --enable-stage1-checking was given.
14361 if test "${enable_stage1_checking+set}" = set; then :
14362 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14363 else
14364 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14365 stage1_checking=--enable-checking=yes,types
14366 else
14367 stage1_checking=--enable-checking=$enable_checking,types
14368 fi
14369 fi
14370
14371
14372
14373 # Enable -Werror in bootstrap stage2 and later.
14374 # Check whether --enable-werror was given.
14375 if test "${enable_werror+set}" = set; then :
14376 enableval=$enable_werror;
14377 else
14378 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14379 enable_werror=yes
14380 else
14381 enable_werror=no
14382 fi
14383 fi
14384
14385 case ${enable_werror} in
14386 yes) stage2_werror_flag="--enable-werror-always" ;;
14387 *) stage2_werror_flag="" ;;
14388 esac
14389
14390
14391 # Enable --enable-host-shared.
14392 # Check whether --enable-host-shared was given.
14393 if test "${enable_host_shared+set}" = set; then :
14394 enableval=$enable_host_shared; host_shared=$enableval
14395 else
14396 host_shared=no
14397 fi
14398
14399
14400
14401 # Specify what files to not compare during bootstrap.
14402
14403 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14404 case "$target" in
14405 hppa*64*-*-hpux*) ;;
14406 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14407 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14408 esac
14409
14410
14411 ac_config_files="$ac_config_files Makefile"
14412
14413 cat >confcache <<\_ACEOF
14414 # This file is a shell script that caches the results of configure
14415 # tests run on this system so they can be shared between configure
14416 # scripts and configure runs, see configure's option --config-cache.
14417 # It is not useful on other systems. If it contains results you don't
14418 # want to keep, you may remove or edit it.
14419 #
14420 # config.status only pays attention to the cache file if you give it
14421 # the --recheck option to rerun configure.
14422 #
14423 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14424 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14425 # following values.
14426
14427 _ACEOF
14428
14429 # The following way of writing the cache mishandles newlines in values,
14430 # but we know of no workaround that is simple, portable, and efficient.
14431 # So, we kill variables containing newlines.
14432 # Ultrix sh set writes to stderr and can't be redirected directly,
14433 # and sets the high bit in the cache file unless we assign to the vars.
14434 (
14435 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14436 eval ac_val=\$$ac_var
14437 case $ac_val in #(
14438 *${as_nl}*)
14439 case $ac_var in #(
14440 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14441 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14442 esac
14443 case $ac_var in #(
14444 _ | IFS | as_nl) ;; #(
14445 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14446 *) { eval $ac_var=; unset $ac_var;} ;;
14447 esac ;;
14448 esac
14449 done
14450
14451 (set) 2>&1 |
14452 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14453 *${as_nl}ac_space=\ *)
14454 # `set' does not quote correctly, so add quotes: double-quote
14455 # substitution turns \\\\ into \\, and sed turns \\ into \.
14456 sed -n \
14457 "s/'/'\\\\''/g;
14458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14459 ;; #(
14460 *)
14461 # `set' quotes correctly as required by POSIX, so do not add quotes.
14462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14463 ;;
14464 esac |
14465 sort
14466 ) |
14467 sed '
14468 /^ac_cv_env_/b end
14469 t clear
14470 :clear
14471 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14472 t end
14473 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14474 :end' >>confcache
14475 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14476 if test -w "$cache_file"; then
14477 test "x$cache_file" != "x/dev/null" &&
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14479 $as_echo "$as_me: updating cache $cache_file" >&6;}
14480 cat confcache >$cache_file
14481 else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14483 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14484 fi
14485 fi
14486 rm -f confcache
14487
14488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14489 # Let make expand exec_prefix.
14490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14491
14492 # Transform confdefs.h into DEFS.
14493 # Protect against shell expansion while executing Makefile rules.
14494 # Protect against Makefile macro expansion.
14495 #
14496 # If the first sed substitution is executed (which looks for macros that
14497 # take arguments), then branch to the quote section. Otherwise,
14498 # look for a macro that doesn't take arguments.
14499 ac_script='
14500 :mline
14501 /\\$/{
14502 N
14503 s,\\\n,,
14504 b mline
14505 }
14506 t clear
14507 :clear
14508 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14509 t quote
14510 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14511 t quote
14512 b any
14513 :quote
14514 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14515 s/\[/\\&/g
14516 s/\]/\\&/g
14517 s/\$/$$/g
14518 H
14519 :any
14520 ${
14521 g
14522 s/^\n//
14523 s/\n/ /g
14524 p
14525 }
14526 '
14527 DEFS=`sed -n "$ac_script" confdefs.h`
14528
14529
14530 ac_libobjs=
14531 ac_ltlibobjs=
14532 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14533 # 1. Remove the extension, and $U if already installed.
14534 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14535 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14536 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14537 # will be set to the directory where LIBOBJS objects are built.
14538 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14539 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14540 done
14541 LIBOBJS=$ac_libobjs
14542
14543 LTLIBOBJS=$ac_ltlibobjs
14544
14545
14546
14547 : ${CONFIG_STATUS=./config.status}
14548 ac_write_fail=0
14549 ac_clean_files_save=$ac_clean_files
14550 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14552 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14553 as_write_fail=0
14554 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14555 #! $SHELL
14556 # Generated by $as_me.
14557 # Run this file to recreate the current configuration.
14558 # Compiler output produced by configure, useful for debugging
14559 # configure, is in config.log if it exists.
14560
14561 debug=false
14562 ac_cs_recheck=false
14563 ac_cs_silent=false
14564
14565 SHELL=\${CONFIG_SHELL-$SHELL}
14566 export SHELL
14567 _ASEOF
14568 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14569 ## -------------------- ##
14570 ## M4sh Initialization. ##
14571 ## -------------------- ##
14572
14573 # Be more Bourne compatible
14574 DUALCASE=1; export DUALCASE # for MKS sh
14575 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14576 emulate sh
14577 NULLCMD=:
14578 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14579 # is contrary to our usage. Disable this feature.
14580 alias -g '${1+"$@"}'='"$@"'
14581 setopt NO_GLOB_SUBST
14582 else
14583 case `(set -o) 2>/dev/null` in #(
14584 *posix*) :
14585 set -o posix ;; #(
14586 *) :
14587 ;;
14588 esac
14589 fi
14590
14591
14592 as_nl='
14593 '
14594 export as_nl
14595 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14596 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14597 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14598 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14599 # Prefer a ksh shell builtin over an external printf program on Solaris,
14600 # but without wasting forks for bash or zsh.
14601 if test -z "$BASH_VERSION$ZSH_VERSION" \
14602 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14603 as_echo='print -r --'
14604 as_echo_n='print -rn --'
14605 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14606 as_echo='printf %s\n'
14607 as_echo_n='printf %s'
14608 else
14609 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14610 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14611 as_echo_n='/usr/ucb/echo -n'
14612 else
14613 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14614 as_echo_n_body='eval
14615 arg=$1;
14616 case $arg in #(
14617 *"$as_nl"*)
14618 expr "X$arg" : "X\\(.*\\)$as_nl";
14619 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14620 esac;
14621 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14622 '
14623 export as_echo_n_body
14624 as_echo_n='sh -c $as_echo_n_body as_echo'
14625 fi
14626 export as_echo_body
14627 as_echo='sh -c $as_echo_body as_echo'
14628 fi
14629
14630 # The user is always right.
14631 if test "${PATH_SEPARATOR+set}" != set; then
14632 PATH_SEPARATOR=:
14633 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14634 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14635 PATH_SEPARATOR=';'
14636 }
14637 fi
14638
14639
14640 # IFS
14641 # We need space, tab and new line, in precisely that order. Quoting is
14642 # there to prevent editors from complaining about space-tab.
14643 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14644 # splitting by setting IFS to empty value.)
14645 IFS=" "" $as_nl"
14646
14647 # Find who we are. Look in the path if we contain no directory separator.
14648 case $0 in #((
14649 *[\\/]* ) as_myself=$0 ;;
14650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14652 do
14653 IFS=$as_save_IFS
14654 test -z "$as_dir" && as_dir=.
14655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14656 done
14657 IFS=$as_save_IFS
14658
14659 ;;
14660 esac
14661 # We did not find ourselves, most probably we were run as `sh COMMAND'
14662 # in which case we are not to be found in the path.
14663 if test "x$as_myself" = x; then
14664 as_myself=$0
14665 fi
14666 if test ! -f "$as_myself"; then
14667 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14668 exit 1
14669 fi
14670
14671 # Unset variables that we do not need and which cause bugs (e.g. in
14672 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14673 # suppresses any "Segmentation fault" message there. '((' could
14674 # trigger a bug in pdksh 5.2.14.
14675 for as_var in BASH_ENV ENV MAIL MAILPATH
14676 do eval test x\${$as_var+set} = xset \
14677 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14678 done
14679 PS1='$ '
14680 PS2='> '
14681 PS4='+ '
14682
14683 # NLS nuisances.
14684 LC_ALL=C
14685 export LC_ALL
14686 LANGUAGE=C
14687 export LANGUAGE
14688
14689 # CDPATH.
14690 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14691
14692
14693 # as_fn_error ERROR [LINENO LOG_FD]
14694 # ---------------------------------
14695 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14696 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14697 # script with status $?, using 1 if that was 0.
14698 as_fn_error ()
14699 {
14700 as_status=$?; test $as_status -eq 0 && as_status=1
14701 if test "$3"; then
14702 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14703 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14704 fi
14705 $as_echo "$as_me: error: $1" >&2
14706 as_fn_exit $as_status
14707 } # as_fn_error
14708
14709
14710 # as_fn_set_status STATUS
14711 # -----------------------
14712 # Set $? to STATUS, without forking.
14713 as_fn_set_status ()
14714 {
14715 return $1
14716 } # as_fn_set_status
14717
14718 # as_fn_exit STATUS
14719 # -----------------
14720 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14721 as_fn_exit ()
14722 {
14723 set +e
14724 as_fn_set_status $1
14725 exit $1
14726 } # as_fn_exit
14727
14728 # as_fn_unset VAR
14729 # ---------------
14730 # Portably unset VAR.
14731 as_fn_unset ()
14732 {
14733 { eval $1=; unset $1;}
14734 }
14735 as_unset=as_fn_unset
14736 # as_fn_append VAR VALUE
14737 # ----------------------
14738 # Append the text in VALUE to the end of the definition contained in VAR. Take
14739 # advantage of any shell optimizations that allow amortized linear growth over
14740 # repeated appends, instead of the typical quadratic growth present in naive
14741 # implementations.
14742 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14743 eval 'as_fn_append ()
14744 {
14745 eval $1+=\$2
14746 }'
14747 else
14748 as_fn_append ()
14749 {
14750 eval $1=\$$1\$2
14751 }
14752 fi # as_fn_append
14753
14754 # as_fn_arith ARG...
14755 # ------------------
14756 # Perform arithmetic evaluation on the ARGs, and store the result in the
14757 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14758 # must be portable across $(()) and expr.
14759 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14760 eval 'as_fn_arith ()
14761 {
14762 as_val=$(( $* ))
14763 }'
14764 else
14765 as_fn_arith ()
14766 {
14767 as_val=`expr "$@" || test $? -eq 1`
14768 }
14769 fi # as_fn_arith
14770
14771
14772 if expr a : '\(a\)' >/dev/null 2>&1 &&
14773 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14774 as_expr=expr
14775 else
14776 as_expr=false
14777 fi
14778
14779 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14780 as_basename=basename
14781 else
14782 as_basename=false
14783 fi
14784
14785 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14786 as_dirname=dirname
14787 else
14788 as_dirname=false
14789 fi
14790
14791 as_me=`$as_basename -- "$0" ||
14792 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14793 X"$0" : 'X\(//\)$' \| \
14794 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14795 $as_echo X/"$0" |
14796 sed '/^.*\/\([^/][^/]*\)\/*$/{
14797 s//\1/
14798 q
14799 }
14800 /^X\/\(\/\/\)$/{
14801 s//\1/
14802 q
14803 }
14804 /^X\/\(\/\).*/{
14805 s//\1/
14806 q
14807 }
14808 s/.*/./; q'`
14809
14810 # Avoid depending upon Character Ranges.
14811 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14812 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14813 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14814 as_cr_digits='0123456789'
14815 as_cr_alnum=$as_cr_Letters$as_cr_digits
14816
14817 ECHO_C= ECHO_N= ECHO_T=
14818 case `echo -n x` in #(((((
14819 -n*)
14820 case `echo 'xy\c'` in
14821 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14822 xy) ECHO_C='\c';;
14823 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14824 ECHO_T=' ';;
14825 esac;;
14826 *)
14827 ECHO_N='-n';;
14828 esac
14829
14830 rm -f conf$$ conf$$.exe conf$$.file
14831 if test -d conf$$.dir; then
14832 rm -f conf$$.dir/conf$$.file
14833 else
14834 rm -f conf$$.dir
14835 mkdir conf$$.dir 2>/dev/null
14836 fi
14837 if (echo >conf$$.file) 2>/dev/null; then
14838 if ln -s conf$$.file conf$$ 2>/dev/null; then
14839 as_ln_s='ln -s'
14840 # ... but there are two gotchas:
14841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14843 # In both cases, we have to default to `cp -p'.
14844 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14845 as_ln_s='cp -p'
14846 elif ln conf$$.file conf$$ 2>/dev/null; then
14847 as_ln_s=ln
14848 else
14849 as_ln_s='cp -p'
14850 fi
14851 else
14852 as_ln_s='cp -p'
14853 fi
14854 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14855 rmdir conf$$.dir 2>/dev/null
14856
14857
14858 # as_fn_mkdir_p
14859 # -------------
14860 # Create "$as_dir" as a directory, including parents if necessary.
14861 as_fn_mkdir_p ()
14862 {
14863
14864 case $as_dir in #(
14865 -*) as_dir=./$as_dir;;
14866 esac
14867 test -d "$as_dir" || eval $as_mkdir_p || {
14868 as_dirs=
14869 while :; do
14870 case $as_dir in #(
14871 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14872 *) as_qdir=$as_dir;;
14873 esac
14874 as_dirs="'$as_qdir' $as_dirs"
14875 as_dir=`$as_dirname -- "$as_dir" ||
14876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14877 X"$as_dir" : 'X\(//\)[^/]' \| \
14878 X"$as_dir" : 'X\(//\)$' \| \
14879 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14880 $as_echo X"$as_dir" |
14881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14882 s//\1/
14883 q
14884 }
14885 /^X\(\/\/\)[^/].*/{
14886 s//\1/
14887 q
14888 }
14889 /^X\(\/\/\)$/{
14890 s//\1/
14891 q
14892 }
14893 /^X\(\/\).*/{
14894 s//\1/
14895 q
14896 }
14897 s/.*/./; q'`
14898 test -d "$as_dir" && break
14899 done
14900 test -z "$as_dirs" || eval "mkdir $as_dirs"
14901 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14902
14903
14904 } # as_fn_mkdir_p
14905 if mkdir -p . 2>/dev/null; then
14906 as_mkdir_p='mkdir -p "$as_dir"'
14907 else
14908 test -d ./-p && rmdir ./-p
14909 as_mkdir_p=false
14910 fi
14911
14912 if test -x / >/dev/null 2>&1; then
14913 as_test_x='test -x'
14914 else
14915 if ls -dL / >/dev/null 2>&1; then
14916 as_ls_L_option=L
14917 else
14918 as_ls_L_option=
14919 fi
14920 as_test_x='
14921 eval sh -c '\''
14922 if test -d "$1"; then
14923 test -d "$1/.";
14924 else
14925 case $1 in #(
14926 -*)set "./$1";;
14927 esac;
14928 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14929 ???[sx]*):;;*)false;;esac;fi
14930 '\'' sh
14931 '
14932 fi
14933 as_executable_p=$as_test_x
14934
14935 # Sed expression to map a string onto a valid CPP name.
14936 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14937
14938 # Sed expression to map a string onto a valid variable name.
14939 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14940
14941
14942 exec 6>&1
14943 ## ----------------------------------- ##
14944 ## Main body of $CONFIG_STATUS script. ##
14945 ## ----------------------------------- ##
14946 _ASEOF
14947 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14948
14949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14950 # Save the log message, to keep $0 and so on meaningful, and to
14951 # report actual input values of CONFIG_FILES etc. instead of their
14952 # values after options handling.
14953 ac_log="
14954 This file was extended by $as_me, which was
14955 generated by GNU Autoconf 2.64. Invocation command line was
14956
14957 CONFIG_FILES = $CONFIG_FILES
14958 CONFIG_HEADERS = $CONFIG_HEADERS
14959 CONFIG_LINKS = $CONFIG_LINKS
14960 CONFIG_COMMANDS = $CONFIG_COMMANDS
14961 $ $0 $@
14962
14963 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14964 "
14965
14966 _ACEOF
14967
14968 case $ac_config_files in *"
14969 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14970 esac
14971
14972
14973
14974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14975 # Files that config.status was made for.
14976 config_files="$ac_config_files"
14977
14978 _ACEOF
14979
14980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14981 ac_cs_usage="\
14982 \`$as_me' instantiates files and other configuration actions
14983 from templates according to the current configuration. Unless the files
14984 and actions are specified as TAGs, all are instantiated by default.
14985
14986 Usage: $0 [OPTION]... [TAG]...
14987
14988 -h, --help print this help, then exit
14989 -V, --version print version number and configuration settings, then exit
14990 -q, --quiet, --silent
14991 do not print progress messages
14992 -d, --debug don't remove temporary files
14993 --recheck update $as_me by reconfiguring in the same conditions
14994 --file=FILE[:TEMPLATE]
14995 instantiate the configuration file FILE
14996
14997 Configuration files:
14998 $config_files
14999
15000 Report bugs to the package provider."
15001
15002 _ACEOF
15003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15004 ac_cs_version="\\
15005 config.status
15006 configured by $0, generated by GNU Autoconf 2.64,
15007 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15008
15009 Copyright (C) 2009 Free Software Foundation, Inc.
15010 This config.status script is free software; the Free Software Foundation
15011 gives unlimited permission to copy, distribute and modify it."
15012
15013 ac_pwd='$ac_pwd'
15014 srcdir='$srcdir'
15015 INSTALL='$INSTALL'
15016 AWK='$AWK'
15017 test -n "\$AWK" || AWK=awk
15018 _ACEOF
15019
15020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021 # The default lists apply if the user does not specify any file.
15022 ac_need_defaults=:
15023 while test $# != 0
15024 do
15025 case $1 in
15026 --*=*)
15027 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15028 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15029 ac_shift=:
15030 ;;
15031 *)
15032 ac_option=$1
15033 ac_optarg=$2
15034 ac_shift=shift
15035 ;;
15036 esac
15037
15038 case $ac_option in
15039 # Handling of the options.
15040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15041 ac_cs_recheck=: ;;
15042 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15043 $as_echo "$ac_cs_version"; exit ;;
15044 --debug | --debu | --deb | --de | --d | -d )
15045 debug=: ;;
15046 --file | --fil | --fi | --f )
15047 $ac_shift
15048 case $ac_optarg in
15049 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15050 esac
15051 as_fn_append CONFIG_FILES " '$ac_optarg'"
15052 ac_need_defaults=false;;
15053 --he | --h | --help | --hel | -h )
15054 $as_echo "$ac_cs_usage"; exit ;;
15055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15056 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15057 ac_cs_silent=: ;;
15058
15059 # This is an error.
15060 -*) as_fn_error "unrecognized option: \`$1'
15061 Try \`$0 --help' for more information." ;;
15062
15063 *) as_fn_append ac_config_targets " $1"
15064 ac_need_defaults=false ;;
15065
15066 esac
15067 shift
15068 done
15069
15070 ac_configure_extra_args=
15071
15072 if $ac_cs_silent; then
15073 exec 6>/dev/null
15074 ac_configure_extra_args="$ac_configure_extra_args --silent"
15075 fi
15076
15077 _ACEOF
15078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15079 if \$ac_cs_recheck; then
15080 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15081 shift
15082 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15083 CONFIG_SHELL='$SHELL'
15084 export CONFIG_SHELL
15085 exec "\$@"
15086 fi
15087
15088 _ACEOF
15089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090 exec 5>>config.log
15091 {
15092 echo
15093 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15094 ## Running $as_me. ##
15095 _ASBOX
15096 $as_echo "$ac_log"
15097 } >&5
15098
15099 _ACEOF
15100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15101 #
15102 # INIT-COMMANDS
15103 #
15104 extrasub_build="$extrasub_build"
15105 extrasub_host="$extrasub_host"
15106 extrasub_target="$extrasub_target"
15107
15108 _ACEOF
15109
15110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15111
15112 # Handling of arguments.
15113 for ac_config_target in $ac_config_targets
15114 do
15115 case $ac_config_target in
15116 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15117
15118 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15119 esac
15120 done
15121
15122
15123 # If the user did not use the arguments to specify the items to instantiate,
15124 # then the envvar interface is used. Set only those that are not.
15125 # We use the long form for the default assignment because of an extremely
15126 # bizarre bug on SunOS 4.1.3.
15127 if $ac_need_defaults; then
15128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15129 fi
15130
15131 # Have a temporary directory for convenience. Make it in the build tree
15132 # simply because there is no reason against having it here, and in addition,
15133 # creating and moving files from /tmp can sometimes cause problems.
15134 # Hook for its removal unless debugging.
15135 # Note that there is a small window in which the directory will not be cleaned:
15136 # after its creation but before its name has been assigned to `$tmp'.
15137 $debug ||
15138 {
15139 tmp=
15140 trap 'exit_status=$?
15141 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15142 ' 0
15143 trap 'as_fn_exit 1' 1 2 13 15
15144 }
15145 # Create a (secure) tmp directory for tmp files.
15146
15147 {
15148 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15149 test -n "$tmp" && test -d "$tmp"
15150 } ||
15151 {
15152 tmp=./conf$$-$RANDOM
15153 (umask 077 && mkdir "$tmp")
15154 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15155
15156 # Set up the scripts for CONFIG_FILES section.
15157 # No need to generate them if there are no CONFIG_FILES.
15158 # This happens for instance with `./config.status config.h'.
15159 if test -n "$CONFIG_FILES"; then
15160
15161 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15162 ac_cs_awk_getline=:
15163 ac_cs_awk_pipe_init=
15164 ac_cs_awk_read_file='
15165 while ((getline aline < (F[key])) > 0)
15166 print(aline)
15167 close(F[key])'
15168 ac_cs_awk_pipe_fini=
15169 else
15170 ac_cs_awk_getline=false
15171 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15172 ac_cs_awk_read_file='
15173 print "|#_!!_#|"
15174 print "cat " F[key] " &&"
15175 '$ac_cs_awk_pipe_init
15176 # The final `:' finishes the AND list.
15177 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15178 fi
15179 ac_cr=`echo X | tr X '\015'`
15180 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15181 # But we know of no other shell where ac_cr would be empty at this
15182 # point, so we can use a bashism as a fallback.
15183 if test "x$ac_cr" = x; then
15184 eval ac_cr=\$\'\\r\'
15185 fi
15186 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15187 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15188 ac_cs_awk_cr='\r'
15189 else
15190 ac_cs_awk_cr=$ac_cr
15191 fi
15192
15193 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15194 _ACEOF
15195
15196 # Create commands to substitute file output variables.
15197 {
15198 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15199 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15200 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15201 echo "_ACAWK" &&
15202 echo "_ACEOF"
15203 } >conf$$files.sh &&
15204 . ./conf$$files.sh ||
15205 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15206 rm -f conf$$files.sh
15207
15208 {
15209 echo "cat >conf$$subs.awk <<_ACEOF" &&
15210 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15211 echo "_ACEOF"
15212 } >conf$$subs.sh ||
15213 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15214 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15215 ac_delim='%!_!# '
15216 for ac_last_try in false false false false false :; do
15217 . ./conf$$subs.sh ||
15218 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15219
15220 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15221 if test $ac_delim_n = $ac_delim_num; then
15222 break
15223 elif $ac_last_try; then
15224 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15225 else
15226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15227 fi
15228 done
15229 rm -f conf$$subs.sh
15230
15231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15232 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15233 _ACEOF
15234 sed -n '
15235 h
15236 s/^/S["/; s/!.*/"]=/
15237 p
15238 g
15239 s/^[^!]*!//
15240 :repl
15241 t repl
15242 s/'"$ac_delim"'$//
15243 t delim
15244 :nl
15245 h
15246 s/\(.\{148\}\).*/\1/
15247 t more1
15248 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15249 p
15250 n
15251 b repl
15252 :more1
15253 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15254 p
15255 g
15256 s/.\{148\}//
15257 t nl
15258 :delim
15259 h
15260 s/\(.\{148\}\).*/\1/
15261 t more2
15262 s/["\\]/\\&/g; s/^/"/; s/$/"/
15263 p
15264 b
15265 :more2
15266 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15267 p
15268 g
15269 s/.\{148\}//
15270 t delim
15271 ' <conf$$subs.awk | sed '
15272 /^[^""]/{
15273 N
15274 s/\n//
15275 }
15276 ' >>$CONFIG_STATUS || ac_write_fail=1
15277 rm -f conf$$subs.awk
15278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15279 _ACAWK
15280 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15281 for (key in S) S_is_set[key] = 1
15282 FS = "\a"
15283 \$ac_cs_awk_pipe_init
15284 }
15285 {
15286 line = $ 0
15287 nfields = split(line, field, "@")
15288 substed = 0
15289 len = length(field[1])
15290 for (i = 2; i < nfields; i++) {
15291 key = field[i]
15292 keylen = length(key)
15293 if (S_is_set[key]) {
15294 value = S[key]
15295 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15296 len += length(value) + length(field[++i])
15297 substed = 1
15298 } else
15299 len += 1 + keylen
15300 }
15301 if (nfields == 3 && !substed) {
15302 key = field[2]
15303 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15304 \$ac_cs_awk_read_file
15305 next
15306 }
15307 }
15308 print line
15309 }
15310 \$ac_cs_awk_pipe_fini
15311 _ACAWK
15312 _ACEOF
15313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15314 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15315 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15316 else
15317 cat
15318 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15319 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15320 _ACEOF
15321
15322 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15323 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15324 # trailing colons and then remove the whole line if VPATH becomes empty
15325 # (actually we leave an empty line to preserve line numbers).
15326 if test "x$srcdir" = x.; then
15327 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15328 s/:*\$(srcdir):*/:/
15329 s/:*\${srcdir}:*/:/
15330 s/:*@srcdir@:*/:/
15331 s/^\([^=]*=[ ]*\):*/\1/
15332 s/:*$//
15333 s/^[^=]*=[ ]*$//
15334 }'
15335 fi
15336
15337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15338 fi # test -n "$CONFIG_FILES"
15339
15340
15341 eval set X " :F $CONFIG_FILES "
15342 shift
15343 for ac_tag
15344 do
15345 case $ac_tag in
15346 :[FHLC]) ac_mode=$ac_tag; continue;;
15347 esac
15348 case $ac_mode$ac_tag in
15349 :[FHL]*:*);;
15350 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15351 :[FH]-) ac_tag=-:-;;
15352 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15353 esac
15354 ac_save_IFS=$IFS
15355 IFS=:
15356 set x $ac_tag
15357 IFS=$ac_save_IFS
15358 shift
15359 ac_file=$1
15360 shift
15361
15362 case $ac_mode in
15363 :L) ac_source=$1;;
15364 :[FH])
15365 ac_file_inputs=
15366 for ac_f
15367 do
15368 case $ac_f in
15369 -) ac_f="$tmp/stdin";;
15370 *) # Look for the file first in the build tree, then in the source tree
15371 # (if the path is not absolute). The absolute path cannot be DOS-style,
15372 # because $ac_f cannot contain `:'.
15373 test -f "$ac_f" ||
15374 case $ac_f in
15375 [\\/$]*) false;;
15376 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15377 esac ||
15378 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15379 esac
15380 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15381 as_fn_append ac_file_inputs " '$ac_f'"
15382 done
15383
15384 # Let's still pretend it is `configure' which instantiates (i.e., don't
15385 # use $as_me), people would be surprised to read:
15386 # /* config.h. Generated by config.status. */
15387 configure_input='Generated from '`
15388 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15389 `' by configure.'
15390 if test x"$ac_file" != x-; then
15391 configure_input="$ac_file. $configure_input"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15393 $as_echo "$as_me: creating $ac_file" >&6;}
15394 fi
15395 # Neutralize special characters interpreted by sed in replacement strings.
15396 case $configure_input in #(
15397 *\&* | *\|* | *\\* )
15398 ac_sed_conf_input=`$as_echo "$configure_input" |
15399 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15400 *) ac_sed_conf_input=$configure_input;;
15401 esac
15402
15403 case $ac_tag in
15404 *:-:* | *:-) cat >"$tmp/stdin" \
15405 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15406 esac
15407 ;;
15408 esac
15409
15410 ac_dir=`$as_dirname -- "$ac_file" ||
15411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15412 X"$ac_file" : 'X\(//\)[^/]' \| \
15413 X"$ac_file" : 'X\(//\)$' \| \
15414 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15415 $as_echo X"$ac_file" |
15416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15417 s//\1/
15418 q
15419 }
15420 /^X\(\/\/\)[^/].*/{
15421 s//\1/
15422 q
15423 }
15424 /^X\(\/\/\)$/{
15425 s//\1/
15426 q
15427 }
15428 /^X\(\/\).*/{
15429 s//\1/
15430 q
15431 }
15432 s/.*/./; q'`
15433 as_dir="$ac_dir"; as_fn_mkdir_p
15434 ac_builddir=.
15435
15436 case "$ac_dir" in
15437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15438 *)
15439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15440 # A ".." for each directory in $ac_dir_suffix.
15441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15442 case $ac_top_builddir_sub in
15443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15445 esac ;;
15446 esac
15447 ac_abs_top_builddir=$ac_pwd
15448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15449 # for backward compatibility:
15450 ac_top_builddir=$ac_top_build_prefix
15451
15452 case $srcdir in
15453 .) # We are building in place.
15454 ac_srcdir=.
15455 ac_top_srcdir=$ac_top_builddir_sub
15456 ac_abs_top_srcdir=$ac_pwd ;;
15457 [\\/]* | ?:[\\/]* ) # Absolute name.
15458 ac_srcdir=$srcdir$ac_dir_suffix;
15459 ac_top_srcdir=$srcdir
15460 ac_abs_top_srcdir=$srcdir ;;
15461 *) # Relative name.
15462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15463 ac_top_srcdir=$ac_top_build_prefix$srcdir
15464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15465 esac
15466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15467
15468
15469 case $ac_mode in
15470 :F)
15471 #
15472 # CONFIG_FILE
15473 #
15474
15475 case $INSTALL in
15476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15477 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15478 esac
15479 _ACEOF
15480
15481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482 # If the template does not know about datarootdir, expand it.
15483 # FIXME: This hack should be removed a few years after 2.60.
15484 ac_datarootdir_hack=; ac_datarootdir_seen=
15485 ac_sed_dataroot='
15486 /datarootdir/ {
15487 p
15488 q
15489 }
15490 /@datadir@/p
15491 /@docdir@/p
15492 /@infodir@/p
15493 /@localedir@/p
15494 /@mandir@/p'
15495 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15496 *datarootdir*) ac_datarootdir_seen=yes;;
15497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15499 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15500 _ACEOF
15501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15502 ac_datarootdir_hack='
15503 s&@datadir@&$datadir&g
15504 s&@docdir@&$docdir&g
15505 s&@infodir@&$infodir&g
15506 s&@localedir@&$localedir&g
15507 s&@mandir@&$mandir&g
15508 s&\\\${datarootdir}&$datarootdir&g' ;;
15509 esac
15510 _ACEOF
15511
15512 # Neutralize VPATH when `$srcdir' = `.'.
15513 # Shell code in configure.ac might set extrasub.
15514 # FIXME: do we really want to maintain this feature?
15515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15516 ac_sed_extra="$ac_vpsub
15517 $extrasub
15518 _ACEOF
15519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15520 :t
15521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15522 s|@configure_input@|$ac_sed_conf_input|;t t
15523 s&@top_builddir@&$ac_top_builddir_sub&;t t
15524 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15525 s&@srcdir@&$ac_srcdir&;t t
15526 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15527 s&@top_srcdir@&$ac_top_srcdir&;t t
15528 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15529 s&@builddir@&$ac_builddir&;t t
15530 s&@abs_builddir@&$ac_abs_builddir&;t t
15531 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15532 s&@INSTALL@&$ac_INSTALL&;t t
15533 $ac_datarootdir_hack
15534 "
15535 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15536 if $ac_cs_awk_getline; then
15537 $AWK -f "$tmp/subs.awk"
15538 else
15539 $AWK -f "$tmp/subs.awk" | $SHELL
15540 fi >$tmp/out \
15541 || as_fn_error "could not create $ac_file" "$LINENO" 5
15542
15543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15547 which seems to be undefined. Please make sure it is defined." >&5
15548 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15549 which seems to be undefined. Please make sure it is defined." >&2;}
15550
15551 rm -f "$tmp/stdin"
15552 case $ac_file in
15553 -) cat "$tmp/out" && rm -f "$tmp/out";;
15554 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15555 esac \
15556 || as_fn_error "could not create $ac_file" "$LINENO" 5
15557 ;;
15558
15559
15560
15561 esac
15562
15563
15564 case $ac_file$ac_mode in
15565 "Makefile":F) sed "$extrasub_build" Makefile |
15566 sed "$extrasub_host" |
15567 sed "$extrasub_target" > mf$$
15568 mv -f mf$$ Makefile ;;
15569
15570 esac
15571 done # for ac_tag
15572
15573
15574 as_fn_exit 0
15575 _ACEOF
15576 ac_clean_files=$ac_clean_files_save
15577
15578 test $ac_write_fail = 0 ||
15579 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15580
15581
15582 # configure is writing to config.log, and then calls config.status.
15583 # config.status does its own redirection, appending to config.log.
15584 # Unfortunately, on DOS this fails, as config.log is still kept open
15585 # by configure, so config.status won't be able to write to it; its
15586 # output is simply discarded. So we exec the FD to /dev/null,
15587 # effectively closing config.log, so it can be properly (re)opened and
15588 # appended to by config.status. When coming back to configure, we
15589 # need to make the FD available again.
15590 if test "$no_create" != yes; then
15591 ac_cs_success=:
15592 ac_config_status_args=
15593 test "$silent" = yes &&
15594 ac_config_status_args="$ac_config_status_args --quiet"
15595 exec 5>/dev/null
15596 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15597 exec 5>>config.log
15598 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15599 # would make configure fail if this is the last instruction.
15600 $ac_cs_success || as_fn_exit $?
15601 fi
15602 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15604 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15605 fi
15606