* Makefile.def (target_modules): Remove libmudflap (languages): Remove check-target...
[deliverable/binutils-gdb.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 stage1_languages
646 extra_host_libiberty_configure_flags
647 clooginc
648 clooglibs
649 islinc
650 poststage1_ldflags
651 poststage1_libs
652 stage1_ldflags
653 stage1_libs
654 extra_isl_gmp_configure_flags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
658 gmpinc
659 gmplibs
660 do_compare
661 GNATMAKE
662 GNATBIND
663 ac_ct_CXX
664 CXXFLAGS
665 CXX
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
672 CC
673 EXTRA_CONFIGARGS_LIBJAVA
674 target_subdir
675 host_subdir
676 build_subdir
677 build_libsubdir
678 AWK
679 SED
680 LN_S
681 LN
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 target_noncanonical
694 host_noncanonical
695 build_noncanonical
696 build_os
697 build_vendor
698 build_cpu
699 build
700 TOPLEVEL_CONFIGURE_ARGUMENTS
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files='serialization_dependencies
740 host_makefile_frag
741 target_makefile_frag
742 alphaieee_frag
743 ospace_frag'
744 ac_user_opts='
745 enable_option_checking
746 with_build_libsubdir
747 enable_gold
748 enable_ld
749 enable_libquadmath
750 enable_libquadmath_support
751 enable_libada
752 enable_libssp
753 enable_libstdcxx
754 enable_static_libjava
755 enable_bootstrap
756 with_mpc
757 with_mpc_include
758 with_mpc_lib
759 with_mpfr_dir
760 with_mpfr
761 with_mpfr_include
762 with_mpfr_lib
763 with_gmp_dir
764 with_gmp
765 with_gmp_include
766 with_gmp_lib
767 with_host_libstdcxx
768 with_stage1_libs
769 with_stage1_ldflags
770 with_boot_libs
771 with_boot_ldflags
772 with_cloog
773 with_isl
774 with_isl_include
775 with_isl_lib
776 enable_isl_version_check
777 with_cloog_include
778 with_cloog_lib
779 enable_cloog_version_check
780 enable_lto
781 enable_stage1_languages
782 enable_objc_gc
783 with_build_sysroot
784 with_debug_prefix_map
785 with_build_config
786 enable_serial_configure
787 with_build_time_tools
788 enable_maintainer_mode
789 enable_stage1_checking
790 enable_werror
791 enable_host_shared
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 CXX
802 CXXFLAGS
803 CCC
804 build_configargs
805 host_configargs
806 target_configargs
807 AR
808 AS
809 DLLTOOL
810 LD
811 LIPO
812 NM
813 RANLIB
814 STRIP
815 WINDRES
816 WINDMC
817 OBJCOPY
818 OBJDUMP
819 READELF
820 CC_FOR_TARGET
821 CXX_FOR_TARGET
822 GCC_FOR_TARGET
823 GCJ_FOR_TARGET
824 GFORTRAN_FOR_TARGET
825 GOC_FOR_TARGET
826 AR_FOR_TARGET
827 AS_FOR_TARGET
828 DLLTOOL_FOR_TARGET
829 LD_FOR_TARGET
830 LIPO_FOR_TARGET
831 NM_FOR_TARGET
832 OBJDUMP_FOR_TARGET
833 RANLIB_FOR_TARGET
834 READELF_FOR_TARGET
835 STRIP_FOR_TARGET
836 WINDRES_FOR_TARGET
837 WINDMC_FOR_TARGET'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1171
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1187
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1221
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information."
1224 ;;
1225
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1235
1236 *)
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 ;;
1243
1244 esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error "missing argument to $ac_option"
1250 fi
1251
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1258 fi
1259
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1265 do
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344 else
1345 ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 case $srcdir in
1366 *" "*)
1367 as_fn_error "path to source, $srcdir, contains spaces"
1368 ;;
1369 esac
1370 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1371
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures this package to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456
1457 cat <<\_ACEOF
1458
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1464 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1465 --disable-libquadmath do not build libquadmath directory
1466 --disable-libquadmath-support
1467 disable libquadmath support for Fortran
1468 --enable-libada build libada directory
1469 --enable-libssp build libssp directory
1470 --disable-libstdcxx do not build libstdc++-v3 directory
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
1473 --enable-bootstrap enable bootstrapping [yes if native build]
1474 --disable-isl-version-check
1475 disable check for ISL version
1476 --disable-cloog-version-check
1477 disable check for CLooG version
1478 --enable-lto enable link time optimization support
1479 --enable-stage1-languages[=all]
1480 choose additional languages to build during stage1.
1481 Mostly useful for compiler development
1482 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1483 Objective-C runtime
1484 --enable-serial-[{host,target,build}-]configure
1485 force sequential configuration of sub-packages for
1486 the host, target or build machine, or all
1487 sub-packages
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
1491 --enable-stage1-checking[=all]
1492 choose additional checking for stage1 of the
1493 compiler
1494 --enable-werror enable -Werror in bootstrap stage2 and later
1495 --enable-host-shared build host code as shared libraries
1496
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-build-libsubdir=DIR Directory where to find libraries for build system
1501 --with-mpc=PATH specify prefix directory for installed MPC package.
1502 Equivalent to --with-mpc-include=PATH/include plus
1503 --with-mpc-lib=PATH/lib
1504 --with-mpc-include=PATH specify directory for installed MPC include files
1505 --with-mpc-lib=PATH specify directory for the installed MPC library
1506 --with-mpfr-dir=PATH this option has been REMOVED
1507 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1508 Equivalent to --with-mpfr-include=PATH/include plus
1509 --with-mpfr-lib=PATH/lib
1510 --with-mpfr-include=PATH
1511 specify directory for installed MPFR include files
1512 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1513 --with-gmp-dir=PATH this option has been REMOVED
1514 --with-gmp=PATH specify prefix directory for the installed GMP
1515 package. Equivalent to
1516 --with-gmp-include=PATH/include plus
1517 --with-gmp-lib=PATH/lib
1518 --with-gmp-include=PATH specify directory for installed GMP include files
1519 --with-gmp-lib=PATH specify directory for the installed GMP library
1520 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1521 linking with PPL
1522 --with-stage1-libs=LIBS libraries for stage1
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
1525 --with-boot-libs=LIBS libraries for stage2 and later
1526 --with-boot-ldflags=FLAGS
1527 linker flags for stage2 and later
1528 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1529 package. Equivalent to
1530 --with-cloog-include=PATH/include plus
1531 --with-cloog-lib=PATH/lib
1532 --with-isl=PATH Specify prefix directory for the installed ISL
1533 package. Equivalent to
1534 --with-isl-include=PATH/include plus
1535 --with-isl-lib=PATH/lib
1536 --with-isl-include=PATH Specify directory for installed ISL include files
1537 --with-isl-lib=PATH Specify the directory for the installed ISL library
1538 --with-cloog-include=PATH
1539 Specify directory for installed CLooG include files
1540 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1541 library
1542 --with-build-sysroot=SYSROOT
1543 use sysroot as the system root during the build
1544 --with-debug-prefix-map='A=B C=D ...'
1545 map A to B, C to D ... in debug information
1546 --with-build-config='NAME NAME2...'
1547 use config/NAME.mk build configuration
1548 --with-build-time-tools=PATH
1549 use given path to find target tools during the build
1550
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
1561 build_configargs
1562 additional configure arguments for build directories
1563 host_configargs
1564 additional configure arguments for host directories
1565 target_configargs
1566 additional configure arguments for target directories
1567 AR AR for the host
1568 AS AS for the host
1569 DLLTOOL DLLTOOL for the host
1570 LD LD for the host
1571 LIPO LIPO for the host
1572 NM NM for the host
1573 RANLIB RANLIB for the host
1574 STRIP STRIP for the host
1575 WINDRES WINDRES for the host
1576 WINDMC WINDMC for the host
1577 OBJCOPY OBJCOPY for the host
1578 OBJDUMP OBJDUMP for the host
1579 READELF READELF for the host
1580 CC_FOR_TARGET
1581 CC for the target
1582 CXX_FOR_TARGET
1583 CXX for the target
1584 GCC_FOR_TARGET
1585 GCC for the target
1586 GCJ_FOR_TARGET
1587 GCJ for the target
1588 GFORTRAN_FOR_TARGET
1589 GFORTRAN for the target
1590 GOC_FOR_TARGET
1591 GOC for the target
1592 AR_FOR_TARGET
1593 AR for the target
1594 AS_FOR_TARGET
1595 AS for the target
1596 DLLTOOL_FOR_TARGET
1597 DLLTOOL for the target
1598 LD_FOR_TARGET
1599 LD for the target
1600 LIPO_FOR_TARGET
1601 LIPO for the target
1602 NM_FOR_TARGET
1603 NM for the target
1604 OBJDUMP_FOR_TARGET
1605 OBJDUMP for the target
1606 RANLIB_FOR_TARGET
1607 RANLIB for the target
1608 READELF_FOR_TARGET
1609 READELF for the target
1610 STRIP_FOR_TARGET
1611 STRIP for the target
1612 WINDRES_FOR_TARGET
1613 WINDRES for the target
1614 WINDMC_FOR_TARGET
1615 WINDMC for the target
1616
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1619
1620 Report bugs to the package provider.
1621 _ACEOF
1622 ac_status=$?
1623 fi
1624
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1631 ac_builddir=.
1632
1633 case "$ac_dir" in
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *)
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643 esac
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1648
1649 case $srcdir in
1650 .) # We are building in place.
1651 ac_srcdir=.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 esac
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1673 else
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1677 done
1678 fi
1679
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682 cat <<\_ACEOF
1683 configure
1684 generated by GNU Autoconf 2.64
1685
1686 Copyright (C) 2009 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689 _ACEOF
1690 exit
1691 fi
1692
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1696
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
1732
1733 } # ac_fn_c_try_compile
1734
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1770
1771 } # ac_fn_cxx_try_compile
1772
1773 # ac_fn_cxx_try_link LINENO
1774 # -------------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_cxx_try_link ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_cxx_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808 fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1816
1817 } # ac_fn_cxx_try_link
1818
1819 # ac_fn_c_try_link LINENO
1820 # -----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_link ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854 fi
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 return $ac_retval
1862
1863 } # ac_fn_c_try_link
1864
1865 # ac_fn_c_try_run LINENO
1866 # ----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868 # that executables *can* be run.
1869 ac_fn_c_try_run ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=$ac_status
1900 fi
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 return $ac_retval
1904
1905 } # ac_fn_c_try_run
1906 cat >config.log <<_ACEOF
1907 This file contains any messages produced by compilers while
1908 running configure, to aid debugging if configure makes a mistake.
1909
1910 It was created by $as_me, which was
1911 generated by GNU Autoconf 2.64. Invocation command line was
1912
1913 $ $0 $@
1914
1915 _ACEOF
1916 exec 5>>config.log
1917 {
1918 cat <<_ASUNAME
1919 ## --------- ##
1920 ## Platform. ##
1921 ## --------- ##
1922
1923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1928
1929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1931
1932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1939
1940 _ASUNAME
1941
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 $as_echo "PATH: $as_dir"
1948 done
1949 IFS=$as_save_IFS
1950
1951 } >&5
1952
1953 cat >&5 <<_ACEOF
1954
1955
1956 ## ----------- ##
1957 ## Core tests. ##
1958 ## ----------- ##
1959
1960 _ACEOF
1961
1962
1963 # Keep a trace of the command line.
1964 # Strip out --no-create and --no-recursion so they do not pile up.
1965 # Strip out --silent because we don't want to record it for future runs.
1966 # Also quote any args containing shell meta-characters.
1967 # Make two passes to allow for proper duplicate-argument suppression.
1968 ac_configure_args=
1969 ac_configure_args0=
1970 ac_configure_args1=
1971 ac_must_keep_next=false
1972 for ac_pass in 1 2
1973 do
1974 for ac_arg
1975 do
1976 case $ac_arg in
1977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1979 | -silent | --silent | --silen | --sile | --sil)
1980 continue ;;
1981 *\'*)
1982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 esac
1984 case $ac_pass in
1985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1986 2)
1987 as_fn_append ac_configure_args1 " '$ac_arg'"
1988 if test $ac_must_keep_next = true; then
1989 ac_must_keep_next=false # Got value, back to normal.
1990 else
1991 case $ac_arg in
1992 *=* | --config-cache | -C | -disable-* | --disable-* \
1993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1995 | -with-* | --with-* | -without-* | --without-* | --x)
1996 case "$ac_configure_args0 " in
1997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1998 esac
1999 ;;
2000 -* ) ac_must_keep_next=true ;;
2001 esac
2002 fi
2003 as_fn_append ac_configure_args " '$ac_arg'"
2004 ;;
2005 esac
2006 done
2007 done
2008 { ac_configure_args0=; unset ac_configure_args0;}
2009 { ac_configure_args1=; unset ac_configure_args1;}
2010
2011 # When interrupted or exit'd, cleanup temporary files, and complete
2012 # config.log. We remove comments because anyway the quotes in there
2013 # would cause problems or look ugly.
2014 # WARNING: Use '\'' to represent an apostrophe within the trap.
2015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2016 trap 'exit_status=$?
2017 # Save into config.log some information that might help in debugging.
2018 {
2019 echo
2020
2021 cat <<\_ASBOX
2022 ## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##
2025 _ASBOX
2026 echo
2027 # The following way of writing the cache mishandles newlines in values,
2028 (
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in #(
2032 *${as_nl}*)
2033 case $ac_var in #(
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2036 esac
2037 case $ac_var in #(
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2041 esac ;;
2042 esac
2043 done
2044 (set) 2>&1 |
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
2047 sed -n \
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2050 ;; #(
2051 *)
2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2053 ;;
2054 esac |
2055 sort
2056 )
2057 echo
2058
2059 cat <<\_ASBOX
2060 ## ----------------- ##
2061 ## Output variables. ##
2062 ## ----------------- ##
2063 _ASBOX
2064 echo
2065 for ac_var in $ac_subst_vars
2066 do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 $as_echo "$ac_var='\''$ac_val'\''"
2072 done | sort
2073 echo
2074
2075 if test -n "$ac_subst_files"; then
2076 cat <<\_ASBOX
2077 ## ------------------- ##
2078 ## File substitutions. ##
2079 ## ------------------- ##
2080 _ASBOX
2081 echo
2082 for ac_var in $ac_subst_files
2083 do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 $as_echo "$ac_var='\''$ac_val'\''"
2089 done | sort
2090 echo
2091 fi
2092
2093 if test -s confdefs.h; then
2094 cat <<\_ASBOX
2095 ## ----------- ##
2096 ## confdefs.h. ##
2097 ## ----------- ##
2098 _ASBOX
2099 echo
2100 cat confdefs.h
2101 echo
2102 fi
2103 test "$ac_signal" != 0 &&
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
2106 } >&5
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2109 exit $exit_status
2110 ' 0
2111 for ac_signal in 1 2 13 15; do
2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113 done
2114 ac_signal=0
2115
2116 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2117 rm -f -r conftest* confdefs.h
2118
2119 $as_echo "/* confdefs.h */" > confdefs.h
2120
2121 # Predefined preprocessor variables.
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_NAME "$PACKAGE_NAME"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129 _ACEOF
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2133 _ACEOF
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_STRING "$PACKAGE_STRING"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_URL "$PACKAGE_URL"
2145 _ACEOF
2146
2147
2148 # Let the site file select an alternate cache file if it wants to.
2149 # Prefer an explicitly selected file to automatically selected ones.
2150 ac_site_file1=NONE
2151 ac_site_file2=NONE
2152 if test -n "$CONFIG_SITE"; then
2153 ac_site_file1=$CONFIG_SITE
2154 elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2157 else
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
2160 fi
2161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162 do
2163 test "x$ac_site_file" = xNONE && continue
2164 if test -r "$ac_site_file"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2168 . "$ac_site_file"
2169 fi
2170 done
2171
2172 if test -r "$cache_file"; then
2173 # Some versions of bash will fail to source /dev/null (special
2174 # files actually), so we avoid doing that.
2175 if test -f "$cache_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177 $as_echo "$as_me: loading cache $cache_file" >&6;}
2178 case $cache_file in
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
2181 esac
2182 fi
2183 else
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185 $as_echo "$as_me: creating cache $cache_file" >&6;}
2186 >$cache_file
2187 fi
2188
2189 # Check that the precious variables saved in the cache have kept the same
2190 # value.
2191 ac_cache_corrupted=false
2192 for ac_var in $ac_precious_vars; do
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194 eval ac_new_set=\$ac_env_${ac_var}_set
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196 eval ac_new_val=\$ac_env_${ac_var}_value
2197 case $ac_old_set,$ac_new_set in
2198 set,)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,set)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,);;
2207 *)
2208 if test "x$ac_old_val" != "x$ac_new_val"; then
2209 # differences in whitespace do not lead to failure.
2210 ac_old_val_w=`echo x $ac_old_val`
2211 ac_new_val_w=`echo x $ac_new_val`
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215 ac_cache_corrupted=:
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219 eval $ac_var=\$ac_old_val
2220 fi
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2222 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2224 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2225 fi;;
2226 esac
2227 # Pass precious variables to config.status.
2228 if test "$ac_new_set" = set; then
2229 case $ac_new_val in
2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 *) ac_arg=$ac_var=$ac_new_val ;;
2232 esac
2233 case " $ac_configure_args " in
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2236 esac
2237 fi
2238 done
2239 if $ac_cache_corrupted; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2245 fi
2246 ## -------------------- ##
2247 ## Main body of script. ##
2248 ## -------------------- ##
2249
2250 ac_ext=c
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264 progname=$0
2265 # if PWD already has a value, it is probably wrong.
2266 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2267
2268 # Export original configure arguments for use by sub-configures.
2269 # Quote arguments with shell meta charatcers.
2270 TOPLEVEL_CONFIGURE_ARGUMENTS=
2271 set -- "$progname" "$@"
2272 for ac_arg
2273 do
2274 case "$ac_arg" in
2275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2277 # if the argument is of the form -foo=baz, quote the baz part only
2278 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2279 *) ;;
2280 esac
2281 # Add the quoted argument to the list.
2282 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2283 done
2284 if test "$silent" = yes; then
2285 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2286 fi
2287 # Remove the initial space we just introduced and, as these will be
2288 # expanded by make, quote '$'.
2289 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2290
2291
2292 # Find the build, host, and target systems.
2293 ac_aux_dir=
2294 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2295 for ac_t in install-sh install.sh shtool; do
2296 if test -f "$ac_dir/$ac_t"; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/$ac_t -c"
2299 break 2
2300 fi
2301 done
2302 done
2303 if test -z "$ac_aux_dir"; then
2304 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2305 fi
2306
2307 # These three variables are undocumented and unsupported,
2308 # and are intended to be withdrawn in a future Autoconf release.
2309 # They can cause serious problems if a builder's source tree is in a directory
2310 # whose full name contains unusual characters.
2311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314
2315
2316 # Make sure we can run config.sub.
2317 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2318 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2319
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2321 $as_echo_n "checking build system type... " >&6; }
2322 if test "${ac_cv_build+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 ac_build_alias=$build_alias
2326 test "x$ac_build_alias" = x &&
2327 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2328 test "x$ac_build_alias" = x &&
2329 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2330 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2331 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2332
2333 fi
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2335 $as_echo "$ac_cv_build" >&6; }
2336 case $ac_cv_build in
2337 *-*-*) ;;
2338 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2339 esac
2340 build=$ac_cv_build
2341 ac_save_IFS=$IFS; IFS='-'
2342 set x $ac_cv_build
2343 shift
2344 build_cpu=$1
2345 build_vendor=$2
2346 shift; shift
2347 # Remember, the first character of IFS is used to create $*,
2348 # except with old shells:
2349 build_os=$*
2350 IFS=$ac_save_IFS
2351 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2352
2353
2354 case ${build_alias} in
2355 "") build_noncanonical=${build} ;;
2356 *) build_noncanonical=${build_alias} ;;
2357 esac
2358
2359
2360
2361 case ${host_alias} in
2362 "") host_noncanonical=${build_noncanonical} ;;
2363 *) host_noncanonical=${host_alias} ;;
2364 esac
2365
2366
2367
2368 case ${target_alias} in
2369 "") target_noncanonical=${host_noncanonical} ;;
2370 *) target_noncanonical=${target_alias} ;;
2371 esac
2372
2373
2374
2375
2376 test "$host_noncanonical" = "$target_noncanonical" &&
2377 test "$program_prefix$program_suffix$program_transform_name" = \
2378 NONENONEs,x,x, &&
2379 program_transform_name=s,y,y,
2380
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382 $as_echo_n "checking host system type... " >&6; }
2383 if test "${ac_cv_host+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2388 else
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391 fi
2392
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395 $as_echo "$ac_cv_host" >&6; }
2396 case $ac_cv_host in
2397 *-*-*) ;;
2398 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2399 esac
2400 host=$ac_cv_host
2401 ac_save_IFS=$IFS; IFS='-'
2402 set x $ac_cv_host
2403 shift
2404 host_cpu=$1
2405 host_vendor=$2
2406 shift; shift
2407 # Remember, the first character of IFS is used to create $*,
2408 # except with old shells:
2409 host_os=$*
2410 IFS=$ac_save_IFS
2411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2412
2413
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415 $as_echo_n "checking target system type... " >&6; }
2416 if test "${ac_cv_target+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2421 else
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424 fi
2425
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428 $as_echo "$ac_cv_target" >&6; }
2429 case $ac_cv_target in
2430 *-*-*) ;;
2431 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2432 esac
2433 target=$ac_cv_target
2434 ac_save_IFS=$IFS; IFS='-'
2435 set x $ac_cv_target
2436 shift
2437 target_cpu=$1
2438 target_vendor=$2
2439 shift; shift
2440 # Remember, the first character of IFS is used to create $*,
2441 # except with old shells:
2442 target_os=$*
2443 IFS=$ac_save_IFS
2444 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2445
2446
2447 # The aliases save the names the user supplied, while $host etc.
2448 # will get canonicalized.
2449 test -n "$target_alias" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_prefix=${target_alias}-
2453
2454 test "$program_prefix" != NONE &&
2455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2456 # Use a double $ so make ignores it.
2457 test "$program_suffix" != NONE &&
2458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2459 # Double any \ or $.
2460 # By default was `s,x,x', remove it if useless.
2461 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2462 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2463
2464
2465
2466 # Get 'install' or 'install-sh' and its variants.
2467 # Find a good install program. We prefer a C program (faster),
2468 # so one script is as good as another. But avoid the broken or
2469 # incompatible versions:
2470 # SysV /etc/install, /usr/sbin/install
2471 # SunOS /usr/etc/install
2472 # IRIX /sbin/install
2473 # AIX /bin/install
2474 # AmigaOS /C/install, which installs bootblocks on floppy discs
2475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478 # OS/2's system install, which has a completely different semantic
2479 # ./install, which can be erroneously created by make from ./install.sh.
2480 # Reject install programs that cannot install multiple files.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2483 if test -z "$INSTALL"; then
2484 if test "${ac_cv_path_install+set}" = set; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 # Account for people who put trailing slashes in PATH elements.
2493 case $as_dir/ in #((
2494 ./ | .// | /[cC]/* | \
2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2497 /usr/ucb/* ) ;;
2498 *)
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2501 # by default.
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2505 if test $ac_prog = install &&
2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # AIX install. It has an incompatible calling convention.
2508 :
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2512 :
2513 else
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2517 mkdir conftest.dir
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2522 then
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524 break 3
2525 fi
2526 fi
2527 fi
2528 done
2529 done
2530 ;;
2531 esac
2532
2533 done
2534 IFS=$as_save_IFS
2535
2536 rm -rf conftest.one conftest.two conftest.dir
2537
2538 fi
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2541 else
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the value is a relative name.
2546 INSTALL=$ac_install_sh
2547 fi
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550 $as_echo "$INSTALL" >&6; }
2551
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2561 $as_echo_n "checking whether ln works... " >&6; }
2562 if test "${acx_cv_prog_LN+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 rm -f conftestdata_t
2566 echo >conftestdata_f
2567 if ln conftestdata_f conftestdata_t 2>/dev/null
2568 then
2569 acx_cv_prog_LN=ln
2570 else
2571 acx_cv_prog_LN=no
2572 fi
2573 rm -f conftestdata_f conftestdata_t
2574
2575 fi
2576 if test $acx_cv_prog_LN = no; then
2577 LN="cp"
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2579 $as_echo "no, using $LN" >&6; }
2580 else
2581 LN="$acx_cv_prog_LN"
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2584 fi
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2587 $as_echo_n "checking whether ln -s works... " >&6; }
2588 LN_S=$as_ln_s
2589 if test "$LN_S" = "ln -s"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591 $as_echo "yes" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2594 $as_echo "no, using $LN_S" >&6; }
2595 fi
2596
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2598 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2599 if test "${ac_cv_path_SED+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2603 for ac_i in 1 2 3 4 5 6 7; do
2604 ac_script="$ac_script$as_nl$ac_script"
2605 done
2606 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2607 { ac_script=; unset ac_script;}
2608 if test -z "$SED"; then
2609 ac_path_SED_found=false
2610 # Loop through the user's path and test for each of PROGNAME-LIST
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_prog in sed gsed; do
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2619 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2620 # Check for GNU ac_path_SED and select it if it is found.
2621 # Check for GNU $ac_path_SED
2622 case `"$ac_path_SED" --version 2>&1` in
2623 *GNU*)
2624 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2625 *)
2626 ac_count=0
2627 $as_echo_n 0123456789 >"conftest.in"
2628 while :
2629 do
2630 cat "conftest.in" "conftest.in" >"conftest.tmp"
2631 mv "conftest.tmp" "conftest.in"
2632 cp "conftest.in" "conftest.nl"
2633 $as_echo '' >> "conftest.nl"
2634 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2636 as_fn_arith $ac_count + 1 && ac_count=$as_val
2637 if test $ac_count -gt ${ac_path_SED_max-0}; then
2638 # Best one so far, save it but keep looking for a better one
2639 ac_cv_path_SED="$ac_path_SED"
2640 ac_path_SED_max=$ac_count
2641 fi
2642 # 10*(2^10) chars as input seems more than enough
2643 test $ac_count -gt 10 && break
2644 done
2645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2646 esac
2647
2648 $ac_path_SED_found && break 3
2649 done
2650 done
2651 done
2652 IFS=$as_save_IFS
2653 if test -z "$ac_cv_path_SED"; then
2654 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2655 fi
2656 else
2657 ac_cv_path_SED=$SED
2658 fi
2659
2660 fi
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2662 $as_echo "$ac_cv_path_SED" >&6; }
2663 SED="$ac_cv_path_SED"
2664 rm -f conftest.sed
2665
2666 for ac_prog in gawk mawk nawk awk
2667 do
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if test "${ac_cv_prog_AWK+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2674 else
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 AWK=$ac_cv_prog_AWK
2696 if test -n "$AWK"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2699 else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704
2705 test -n "$AWK" && break
2706 done
2707
2708
2709 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2710
2711 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2712 # a relative path.
2713 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2714 INSTALL="${srcpwd}/install-sh -c"
2715 fi
2716
2717 # Set srcdir to "." if that's what it is.
2718 # This is important for multilib support.
2719 pwd=`${PWDCMD-pwd}`
2720 if test "${pwd}" = "${srcpwd}" ; then
2721 srcdir=.
2722 fi
2723
2724 topsrcdir=$srcpwd
2725
2726 extra_host_args=
2727
2728 ### To add a new directory to the tree, first choose whether it is a target
2729 ### or a host dependent tool. Then put it into the appropriate list
2730 ### (library or tools, host or target), doing a dependency sort.
2731
2732 # Subdirs will be configured in the order listed in build_configdirs,
2733 # configdirs, or target_configdirs; see the serialization section below.
2734
2735 # Dependency sorting is only needed when *configuration* must be done in
2736 # a particular order. In all cases a dependency should be specified in
2737 # the Makefile, whether or not it's implicitly specified here.
2738
2739 # Double entries in build_configdirs, configdirs, or target_configdirs may
2740 # cause circular dependencies and break everything horribly.
2741
2742 # these library is used by various programs built for the build
2743 # environment
2744 #
2745 build_libs="build-libiberty"
2746
2747 # these tools are built for the build environment
2748 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2749
2750 # these libraries are used by various programs built for the host environment
2751 #
2752 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2753
2754 # these tools are built for the host environment
2755 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2756 # know that we are building the simulator.
2757 # binutils, gas and ld appear in that order because it makes sense to run
2758 # "make check" in that particular order.
2759 # If --enable-gold is used, "gold" may replace "ld".
2760 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2761
2762 # libgcj represents the runtime libraries only used by gcj.
2763 libgcj="target-libffi \
2764 target-zlib \
2765 target-libjava"
2766
2767 # these libraries are built for the target environment, and are built after
2768 # the host libraries and the host tools (which may be a cross compiler)
2769 # Note that libiberty is not a target library.
2770 target_libraries="target-libgcc \
2771 target-libbacktrace \
2772 target-libgloss \
2773 target-newlib \
2774 target-libgomp \
2775 target-libatomic \
2776 target-libitm \
2777 target-libstdc++-v3 \
2778 target-libsanitizer \
2779 target-libvtv \
2780 target-libssp \
2781 target-libquadmath \
2782 target-libgfortran \
2783 target-boehm-gc \
2784 ${libgcj} \
2785 target-libobjc \
2786 target-libada \
2787 target-libgo"
2788
2789 # these tools are built using the target libraries, and are intended to
2790 # run only in the target environment
2791 #
2792 # note: any program that *uses* libraries that are in the "target_libraries"
2793 # list belongs in this list.
2794 #
2795 target_tools="target-rda"
2796
2797 ################################################################################
2798
2799 ## All tools belong in one of the four categories, and are assigned above
2800 ## We assign ${configdirs} this way to remove all embedded newlines. This
2801 ## is important because configure will choke if they ever get through.
2802 ## ${configdirs} is directories we build using the host tools.
2803 ## ${target_configdirs} is directories we build using the target tools.
2804 configdirs=`echo ${host_libs} ${host_tools}`
2805 target_configdirs=`echo ${target_libraries} ${target_tools}`
2806 build_configdirs=`echo ${build_libs} ${build_tools}`
2807
2808
2809
2810 ################################################################################
2811
2812 srcname="gnu development package"
2813
2814 # This gets set non-empty for some net releases of packages.
2815 appdirs=""
2816
2817 # Define is_cross_compiler to save on calls to 'test'.
2818 is_cross_compiler=
2819 if test x"${host}" = x"${target}" ; then
2820 is_cross_compiler=no
2821 else
2822 is_cross_compiler=yes
2823 fi
2824
2825 # Find the build and target subdir names.
2826
2827 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2828 # have matching libraries, they should use host libraries: Makefile.tpl
2829 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2830 # However, they still use the build modules, because the corresponding
2831 # host modules (e.g. bison) are only built for the host when bootstrap
2832 # finishes. So:
2833 # - build_subdir is where we find build modules, and never changes.
2834 # - build_libsubdir is where we find build libraries, and can be overridden.
2835
2836 # Prefix 'build-' so this never conflicts with target_subdir.
2837 build_subdir="build-${build_noncanonical}"
2838
2839 # Check whether --with-build-libsubdir was given.
2840 if test "${with_build_libsubdir+set}" = set; then :
2841 withval=$with_build_libsubdir; build_libsubdir="$withval"
2842 else
2843 build_libsubdir="$build_subdir"
2844 fi
2845
2846 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2847 if ( test $srcdir = . && test -d gcc ) \
2848 || test -d $srcdir/../host-${host_noncanonical}; then
2849 host_subdir="host-${host_noncanonical}"
2850 else
2851 host_subdir=.
2852 fi
2853 # No prefix.
2854 target_subdir=${target_noncanonical}
2855
2856 # Be sure to cover against remnants of an in-tree build.
2857 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2858 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2859 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2860 fi
2861
2862 # Skipdirs are removed silently.
2863 skipdirs=
2864 # Noconfigdirs are removed loudly.
2865 noconfigdirs=""
2866
2867 use_gnu_ld=
2868 # Make sure we don't let GNU ld be added if we didn't want it.
2869 if test x$with_gnu_ld = xno ; then
2870 use_gnu_ld=no
2871 noconfigdirs="$noconfigdirs ld gold"
2872 fi
2873
2874 use_gnu_as=
2875 # Make sure we don't let GNU as be added if we didn't want it.
2876 if test x$with_gnu_as = xno ; then
2877 use_gnu_as=no
2878 noconfigdirs="$noconfigdirs gas"
2879 fi
2880
2881 use_included_zlib=
2882 # Make sure we don't let ZLIB be added if we didn't want it.
2883 if test x$with_system_zlib = xyes ; then
2884 use_included_zlib=no
2885 noconfigdirs="$noconfigdirs zlib"
2886 fi
2887
2888 # some tools are so dependent upon X11 that if we're not building with X,
2889 # it's not even worth trying to configure, much less build, that tool.
2890
2891 case ${with_x} in
2892 yes | "") ;; # the default value for this tree is that X11 is available
2893 no)
2894 skipdirs="${skipdirs} tk itcl libgui"
2895 # We won't be able to build gdbtk without X.
2896 enable_gdbtk=no
2897 ;;
2898 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2899 esac
2900
2901 # Some are only suitable for cross toolchains.
2902 # Remove these if host=target.
2903 cross_only="target-libgloss target-newlib target-opcodes"
2904
2905 case $is_cross_compiler in
2906 no) skipdirs="${skipdirs} ${cross_only}" ;;
2907 esac
2908
2909 # If both --with-headers and --with-libs are specified, default to
2910 # --without-newlib.
2911 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2912 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2913 if test x"${with_newlib}" = x ; then
2914 with_newlib=no
2915 fi
2916 fi
2917
2918 # Recognize --with-newlib/--without-newlib.
2919 case ${with_newlib} in
2920 no) skipdirs="${skipdirs} target-newlib" ;;
2921 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2922 esac
2923
2924 # Handle --enable-gold, --enable-ld.
2925 # --disable-gold [--enable-ld]
2926 # Build only ld. Default option.
2927 # --enable-gold [--enable-ld]
2928 # Build both gold and ld. Install gold as "ld.gold", install ld
2929 # as "ld.bfd" and "ld".
2930 # --enable-gold=default [--enable-ld]
2931 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2932 # install ld as "ld.bfd".
2933 # --enable-gold[=default] --disable-ld
2934 # Build only gold, which is then installed as both "ld.gold" and "ld".
2935 # --enable-gold --enable-ld=default
2936 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2937 # and ld.bfd).
2938 # In other words, ld is default
2939 # --enable-gold=default --enable-ld=default
2940 # Error.
2941
2942 default_ld=
2943 # Check whether --enable-gold was given.
2944 if test "${enable_gold+set}" = set; then :
2945 enableval=$enable_gold; ENABLE_GOLD=$enableval
2946 else
2947 ENABLE_GOLD=no
2948 fi
2949
2950 case "${ENABLE_GOLD}" in
2951 yes|default)
2952 # Check for ELF target.
2953 is_elf=no
2954 case "${target}" in
2955 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2956 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2957 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2958 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2959 case "${target}" in
2960 *-*-linux*aout* | *-*-linux*oldld*)
2961 ;;
2962 *)
2963 is_elf=yes
2964 ;;
2965 esac
2966 esac
2967
2968 if test "$is_elf" = "yes"; then
2969 # Check for target supported by gold.
2970 case "${target}" in
2971 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2972 configdirs="$configdirs gold"
2973 if test x${ENABLE_GOLD} = xdefault; then
2974 default_ld=gold
2975 fi
2976 ENABLE_GOLD=yes
2977 ;;
2978 esac
2979 fi
2980 ;;
2981 no)
2982 ;;
2983 *)
2984 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2985 ;;
2986 esac
2987
2988 # Check whether --enable-ld was given.
2989 if test "${enable_ld+set}" = set; then :
2990 enableval=$enable_ld; ENABLE_LD=$enableval
2991 else
2992 ENABLE_LD=yes
2993 fi
2994
2995
2996 case "${ENABLE_LD}" in
2997 default)
2998 if test x${default_ld} != x; then
2999 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3000 fi
3001 ;;
3002 yes)
3003 ;;
3004 no)
3005 if test x${ENABLE_GOLD} != xyes; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3007 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3008 fi
3009 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3010 ;;
3011 *)
3012 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3013 ;;
3014 esac
3015
3016 # Configure extra directories which are host specific
3017
3018 case "${host}" in
3019 *-cygwin*)
3020 configdirs="$configdirs libtermcap" ;;
3021 esac
3022
3023 # A target can indicate whether a language isn't supported for some reason.
3024 # Only spaces may be used in this macro; not newlines or tabs.
3025 unsupported_languages=
3026
3027 # Remove more programs from consideration, based on the host or
3028 # target this usually means that a port of the program doesn't
3029 # exist yet.
3030
3031 case "${host}" in
3032 i[3456789]86-*-msdosdjgpp*)
3033 noconfigdirs="$noconfigdirs tcl tk itcl"
3034 ;;
3035 esac
3036
3037
3038 # Check whether --enable-libquadmath was given.
3039 if test "${enable_libquadmath+set}" = set; then :
3040 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3041 else
3042 ENABLE_LIBQUADMATH=yes
3043 fi
3044
3045 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3046 noconfigdirs="$noconfigdirs target-libquadmath"
3047 fi
3048
3049
3050 # Check whether --enable-libquadmath-support was given.
3051 if test "${enable_libquadmath_support+set}" = set; then :
3052 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3053 else
3054 ENABLE_LIBQUADMATH_SUPPORT=yes
3055 fi
3056
3057 enable_libquadmath_support=
3058 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3059 enable_libquadmath_support=no
3060 fi
3061
3062
3063 # Check whether --enable-libada was given.
3064 if test "${enable_libada+set}" = set; then :
3065 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3066 else
3067 ENABLE_LIBADA=yes
3068 fi
3069
3070 if test "${ENABLE_LIBADA}" != "yes" ; then
3071 noconfigdirs="$noconfigdirs gnattools"
3072 fi
3073
3074 # Check whether --enable-libssp was given.
3075 if test "${enable_libssp+set}" = set; then :
3076 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3077 else
3078 ENABLE_LIBSSP=yes
3079 fi
3080
3081
3082 # Check whether --enable-libstdcxx was given.
3083 if test "${enable_libstdcxx+set}" = set; then :
3084 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3085 else
3086 ENABLE_LIBSTDCXX=default
3087 fi
3088
3089 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3090 noconfigdirs="$noconfigdirs libstdc++-v3"
3091 fi
3092
3093 # Save it here so that, even in case of --enable-libgcj, if the Java
3094 # front-end isn't enabled, we still get libgcj disabled.
3095 libgcj_saved=$libgcj
3096 case $enable_libgcj in
3097 yes)
3098 # If we reset it here, it won't get added to noconfigdirs in the
3099 # target-specific build rules, so it will be forcibly enabled
3100 # (unless the Java language itself isn't enabled).
3101 libgcj=
3102 ;;
3103 no)
3104 # Make sure we get it printed in the list of not supported target libs.
3105 # Don't disable libffi, though, other languages use it.
3106 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3107 # Clear libgcj_saved so that even if java is enabled libffi won't be
3108 # built.
3109 libgcj_saved=
3110 ;;
3111 esac
3112
3113 # Check whether --enable-static-libjava was given.
3114 if test "${enable_static_libjava+set}" = set; then :
3115 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3116 else
3117 ENABLE_STATIC_LIBJAVA=no
3118 fi
3119
3120 enable_static_libjava=
3121 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3122 enable_static_libjava=yes
3123 fi
3124
3125 if test x$enable_static_libjava != xyes ; then
3126 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3127 fi
3128
3129
3130 # Disable libgomp on non POSIX hosted systems.
3131 if test x$enable_libgomp = x ; then
3132 # Enable libgomp by default on hosted POSIX systems.
3133 case "${target}" in
3134 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3135 ;;
3136 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3137 ;;
3138 *-*-solaris2* | *-*-hpux11*)
3139 ;;
3140 *-*-darwin* | *-*-aix*)
3141 ;;
3142 *)
3143 noconfigdirs="$noconfigdirs target-libgomp"
3144 ;;
3145 esac
3146 fi
3147
3148 # Disable libatomic on unsupported systems.
3149 if test -d ${srcdir}/libatomic; then
3150 if test x$enable_libatomic = x; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3152 $as_echo_n "checking for libatomic support... " >&6; }
3153 if (srcdir=${srcdir}/libatomic; \
3154 . ${srcdir}/configure.tgt; \
3155 test -n "$UNSUPPORTED")
3156 then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 noconfigdirs="$noconfigdirs target-libatomic"
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3162 $as_echo "yes" >&6; }
3163 fi
3164 fi
3165 fi
3166
3167 # Disable libitm on unsupported systems.
3168 if test -d ${srcdir}/libitm; then
3169 if test x$enable_libitm = x; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3171 $as_echo_n "checking for libitm support... " >&6; }
3172 if (srcdir=${srcdir}/libitm; \
3173 . ${srcdir}/configure.tgt; \
3174 test -n "$UNSUPPORTED")
3175 then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 noconfigdirs="$noconfigdirs target-libitm"
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 $as_echo "yes" >&6; }
3182 fi
3183 fi
3184 fi
3185
3186 # Disable libsanitizer on unsupported systems.
3187 if test -d ${srcdir}/libsanitizer; then
3188 if test x$enable_libsanitizer = x; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3190 $as_echo_n "checking for libsanitizer support... " >&6; }
3191 if (srcdir=${srcdir}/libsanitizer; \
3192 . ${srcdir}/configure.tgt; \
3193 test -n "$UNSUPPORTED")
3194 then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 noconfigdirs="$noconfigdirs target-libsanitizer"
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201 fi
3202 fi
3203 fi
3204
3205 # Disable libvtv on unsupported systems.
3206 if test -d ${srcdir}/libvtv; then
3207 if test x$enable_libvtv = x; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3209 $as_echo_n "checking for libvtv support... " >&6; }
3210 if (srcdir=${srcdir}/libvtv; \
3211 . ${srcdir}/configure.tgt; \
3212 test "$VTV_SUPPORTED" != "yes")
3213 then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 noconfigdirs="$noconfigdirs target-libvtv"
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219 $as_echo "yes" >&6; }
3220 fi
3221 fi
3222 fi
3223
3224 # Disable libquadmath for some systems.
3225 case "${target}" in
3226 avr-*-*)
3227 noconfigdirs="$noconfigdirs target-libquadmath"
3228 ;;
3229 # libquadmath is unused on AIX and libquadmath build process use of
3230 # LD_LIBRARY_PATH can break AIX bootstrap.
3231 powerpc-*-aix* | rs6000-*-aix*)
3232 noconfigdirs="$noconfigdirs target-libquadmath"
3233 ;;
3234 esac
3235
3236 # Disable libssp for some systems.
3237 case "${target}" in
3238 avr-*-*)
3239 # No hosted I/O support.
3240 noconfigdirs="$noconfigdirs target-libssp"
3241 ;;
3242 powerpc-*-aix* | rs6000-*-aix*)
3243 noconfigdirs="$noconfigdirs target-libssp"
3244 ;;
3245 rl78-*-*)
3246 # libssp uses a misaligned load to trigger a fault, but the RL78
3247 # doesn't fault for those - instead, it gives a build-time error
3248 # for explicit misaligned loads.
3249 noconfigdirs="$noconfigdirs target-libssp"
3250 ;;
3251 esac
3252
3253 # Disable libstdc++-v3 for some systems.
3254 # Allow user to override this if they pass --enable-libstdc++-v3
3255 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3256 case "${target}" in
3257 *-*-vxworks*)
3258 # VxWorks uses the Dinkumware C++ library.
3259 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3260 ;;
3261 arm*-wince-pe*)
3262 # the C++ libraries don't build on top of CE's C libraries
3263 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3264 ;;
3265 avr-*-*)
3266 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3267 ;;
3268 esac
3269 fi
3270
3271 # Disable Fortran for some systems.
3272 case "${target}" in
3273 mmix-*-*)
3274 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3275 unsupported_languages="$unsupported_languages fortran"
3276 ;;
3277 esac
3278
3279 # Disable Java if libffi is not supported.
3280 case "${target}" in
3281 aarch64-*-*)
3282 ;;
3283 alpha*-*-*)
3284 ;;
3285 arm*-*-*)
3286 ;;
3287 cris-*-*)
3288 ;;
3289 frv-*-*)
3290 ;;
3291 hppa*-*-linux*)
3292 ;;
3293 hppa*-*-hpux*)
3294 ;;
3295 i?86-*-*)
3296 ;;
3297 ia64*-*-*)
3298 ;;
3299 m32r*-*-*)
3300 ;;
3301 m68k-*-*)
3302 ;;
3303 mips*-*-rtems*)
3304 ;;
3305 mips*-*-linux*)
3306 ;;
3307 powerpc*-*-linux*)
3308 ;;
3309 powerpc-*-darwin*)
3310 ;;
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 ;;
3313 powerpc-*-freebsd*)
3314 ;;
3315 powerpc64-*-freebsd*)
3316 ;;
3317 powerpc*-*-rtems*)
3318 ;;
3319 s390-*-* | s390x-*-*)
3320 ;;
3321 sh-*-* | sh[34]*-*-*)
3322 ;;
3323 sh64-*-* | sh5*-*-*)
3324 ;;
3325 sparc*-*-*)
3326 ;;
3327 x86_64-*-*)
3328 ;;
3329 *-*-*)
3330 unsupported_languages="$unsupported_languages java"
3331 ;;
3332 esac
3333
3334 # Disable Java, libgcj or related libraries for some systems.
3335 case "${target}" in
3336 powerpc-*-darwin*)
3337 ;;
3338 i[3456789]86-*-darwin*)
3339 ;;
3340 x86_64-*-darwin[912]*)
3341 ;;
3342 *-*-darwin*)
3343 noconfigdirs="$noconfigdirs ${libgcj}"
3344 ;;
3345 *-*-netware*)
3346 noconfigdirs="$noconfigdirs ${libgcj}"
3347 ;;
3348 *-*-rtems*)
3349 noconfigdirs="$noconfigdirs ${libgcj}"
3350 ;;
3351 *-*-tpf*)
3352 noconfigdirs="$noconfigdirs ${libgcj}"
3353 ;;
3354 *-*-uclinux*)
3355 noconfigdirs="$noconfigdirs ${libgcj}"
3356 ;;
3357 *-*-vxworks*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3359 ;;
3360 alpha*-*-*vms*)
3361 noconfigdirs="$noconfigdirs ${libgcj}"
3362 ;;
3363 arm-wince-pe)
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3365 ;;
3366 arm*-*-symbianelf*)
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3368 ;;
3369 bfin-*-*)
3370 noconfigdirs="$noconfigdirs target-boehm-gc"
3371 ;;
3372 cris-*-* | crisv32-*-*)
3373 unsupported_languages="$unsupported_languages java"
3374 case "${target}" in
3375 *-*-linux*)
3376 ;;
3377 *) # See PR46792 regarding target-libffi.
3378 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3379 esac
3380 ;;
3381 hppa*64*-*-linux*)
3382 # In this case, it's because the hppa64-linux target is for
3383 # the kernel only at this point and has no libc, and thus no
3384 # headers, crt*.o, etc., all of which are needed by these.
3385 unsupported_languages="$unsupported_languages java"
3386 ;;
3387 hppa*64*-*-hpux*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3389 ;;
3390 hppa*-hp-hpux11*)
3391 ;;
3392 hppa*-*-hpux*)
3393 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3394 # build on HP-UX 10.20.
3395 noconfigdirs="$noconfigdirs ${libgcj}"
3396 ;;
3397 ia64*-*-*vms*)
3398 noconfigdirs="$noconfigdirs ${libgcj}"
3399 ;;
3400 i[3456789]86-w64-mingw*)
3401 noconfigdirs="$noconfigdirs ${libgcj}"
3402 ;;
3403 i[3456789]86-*-mingw*)
3404 noconfigdirs="$noconfigdirs ${libgcj}"
3405 ;;
3406 x86_64-*-mingw*)
3407 noconfigdirs="$noconfigdirs ${libgcj}"
3408 ;;
3409 mmix-*-*)
3410 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3411 ;;
3412 powerpc-*-aix*)
3413 # copied from rs6000-*-* entry
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3415 ;;
3416 rs6000-*-aix*)
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3418 ;;
3419 *-*-lynxos*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3421 ;;
3422 esac
3423
3424 # Disable libgo for some systems where it is known to not work.
3425 # For testing, you can easily override this with --enable-libgo.
3426 if test x$enable_libgo = x; then
3427 case "${target}" in
3428 *-*-darwin*)
3429 # PR 46986
3430 noconfigdirs="$noconfigdirs target-libgo"
3431 ;;
3432 *-*-cygwin* | *-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libgo"
3434 ;;
3435 *-*-aix*)
3436 noconfigdirs="$noconfigdirs target-libgo"
3437 ;;
3438 esac
3439 fi
3440
3441 # Default libgloss CPU subdirectory.
3442 libgloss_dir="$target_cpu"
3443
3444 case "${target}" in
3445 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3446 libgloss_dir=wince
3447 ;;
3448 aarch64*-*-* )
3449 libgloss_dir=aarch64
3450 ;;
3451 arm*-*-*)
3452 libgloss_dir=arm
3453 ;;
3454 cris-*-* | crisv32-*-*)
3455 libgloss_dir=cris
3456 ;;
3457 hppa*-*-*)
3458 libgloss_dir=pa
3459 ;;
3460 i[3456789]86-*-*)
3461 libgloss_dir=i386
3462 ;;
3463 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3464 libgloss_dir=m68hc11
3465 ;;
3466 m68*-*-* | fido-*-*)
3467 libgloss_dir=m68k
3468 ;;
3469 mips*-*-*)
3470 libgloss_dir=mips
3471 ;;
3472 powerpc*-*-*)
3473 libgloss_dir=rs6000
3474 ;;
3475 sparc*-*-*)
3476 libgloss_dir=sparc
3477 ;;
3478 esac
3479
3480 # Disable newlib and libgloss for various target OSes.
3481 case "${target}" in
3482 alpha*-dec-osf*)
3483 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3484 ;;
3485 i[3456789]86-*-linux*)
3486 # This section makes it possible to build newlib natively on linux.
3487 # If we are using a cross compiler then don't configure newlib.
3488 if test x${is_cross_compiler} != xno ; then
3489 noconfigdirs="$noconfigdirs target-newlib"
3490 fi
3491 noconfigdirs="$noconfigdirs target-libgloss"
3492 # If we are not using a cross compiler, do configure newlib.
3493 # Note however, that newlib will only be configured in this situation
3494 # if the --with-newlib option has been given, because otherwise
3495 # 'target-newlib' will appear in skipdirs.
3496 ;;
3497 i[3456789]86-*-rdos*)
3498 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3499 ;;
3500 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3501 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3502 ;;
3503 sparc-*-sunos4*)
3504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3505 ;;
3506 *-*-aix*)
3507 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3508 ;;
3509 *-*-beos*)
3510 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3511 ;;
3512 *-*-chorusos)
3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3514 ;;
3515 *-*-dragonfly*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3517 ;;
3518 *-*-freebsd*)
3519 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3520 ;;
3521 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3523 ;;
3524 *-*-lynxos*)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3526 ;;
3527 *-*-mingw*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529 ;;
3530 *-*-netbsd*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 *-*-netware*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535 ;;
3536 *-*-tpf*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 ;;
3539 *-*-uclinux*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3541 ;;
3542 *-*-vxworks*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 ;;
3545 esac
3546
3547 case "${target}" in
3548 *-*-chorusos)
3549 ;;
3550 powerpc-*-darwin*)
3551 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3552 noconfigdirs="$noconfigdirs sim target-rda"
3553 ;;
3554 i[3456789]86-*-darwin*)
3555 noconfigdirs="$noconfigdirs ld gprof"
3556 noconfigdirs="$noconfigdirs sim target-rda"
3557 ;;
3558 x86_64-*-darwin[912]*)
3559 noconfigdirs="$noconfigdirs ld gas gprof"
3560 noconfigdirs="$noconfigdirs sim target-rda"
3561 ;;
3562 *-*-darwin*)
3563 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3564 noconfigdirs="$noconfigdirs sim target-rda"
3565 ;;
3566 *-*-dragonfly*)
3567 ;;
3568 *-*-freebsd*)
3569 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3570 && test -f /usr/local/include/gmp.h; then
3571 with_gmp=/usr/local
3572 fi
3573 ;;
3574 *-*-kaos*)
3575 # Remove unsupported stuff on all kaOS configurations.
3576 noconfigdirs="$noconfigdirs target-libgloss"
3577 ;;
3578 *-*-netbsd*)
3579 ;;
3580 *-*-netware*)
3581 ;;
3582 *-*-rtems*)
3583 noconfigdirs="$noconfigdirs target-libgloss"
3584 ;;
3585 # The tpf target doesn't support gdb yet.
3586 *-*-tpf*)
3587 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3588 ;;
3589 *-*-uclinux*)
3590 noconfigdirs="$noconfigdirs target-rda"
3591 ;;
3592 *-*-vxworks*)
3593 ;;
3594 alpha*-dec-osf*)
3595 # ld works, but does not support shared libraries.
3596 # gas doesn't generate exception information.
3597 noconfigdirs="$noconfigdirs gas ld"
3598 ;;
3599 alpha*-*-*vms*)
3600 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3601 ;;
3602 alpha*-*-*)
3603 # newlib is not 64 bit ready
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3607 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3608 ;;
3609 arc-*-*|arceb-*-*)
3610 noconfigdirs="$noconfigdirs target-libgloss"
3611 ;;
3612 arm-*-pe*)
3613 noconfigdirs="$noconfigdirs target-libgloss"
3614 ;;
3615 arm-*-riscix*)
3616 noconfigdirs="$noconfigdirs ld target-libgloss"
3617 ;;
3618 avr-*-rtems*)
3619 ;;
3620 avr-*-*)
3621 if test x${with_avrlibc} != xno; then
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 fi
3624 ;;
3625 c4x-*-* | tic4x-*-*)
3626 noconfigdirs="$noconfigdirs target-libgloss"
3627 ;;
3628 tic54x-*-*)
3629 noconfigdirs="$noconfigdirs target-libgloss gdb"
3630 ;;
3631 d10v-*-*)
3632 noconfigdirs="$noconfigdirs target-libgloss"
3633 ;;
3634 d30v-*-*)
3635 noconfigdirs="$noconfigdirs gdb"
3636 ;;
3637 fr30-*-elf*)
3638 noconfigdirs="$noconfigdirs gdb"
3639 ;;
3640 moxie-*-*)
3641 noconfigdirs="$noconfigdirs gprof"
3642 ;;
3643 h8300*-*-*)
3644 noconfigdirs="$noconfigdirs target-libgloss"
3645 ;;
3646 h8500-*-*)
3647 noconfigdirs="$noconfigdirs target-libgloss"
3648 ;;
3649 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3650 ;;
3651 hppa*64*-*-linux*)
3652 ;;
3653 hppa*-*-linux*)
3654 ;;
3655 hppa*-*-*elf* | \
3656 hppa*-*-lites* | \
3657 hppa*-*-openbsd* | \
3658 hppa*64*-*-*)
3659 ;;
3660 hppa*-hp-hpux11*)
3661 noconfigdirs="$noconfigdirs ld"
3662 ;;
3663 hppa*-*-pro*)
3664 ;;
3665 hppa*-*-*)
3666 noconfigdirs="$noconfigdirs ld"
3667 ;;
3668 i960-*-*)
3669 noconfigdirs="$noconfigdirs gdb"
3670 ;;
3671 ia64*-*-elf*)
3672 # No gdb support yet.
3673 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3674 ;;
3675 ia64*-**-hpux*)
3676 # No ld support yet.
3677 noconfigdirs="$noconfigdirs libgui itcl ld"
3678 ;;
3679 ia64*-*-*vms*)
3680 # No ld support yet.
3681 noconfigdirs="$noconfigdirs libgui itcl ld"
3682 ;;
3683 i[3456789]86-w64-mingw*)
3684 ;;
3685 i[3456789]86-*-mingw*)
3686 target_configdirs="$target_configdirs target-winsup"
3687 ;;
3688 *-*-cygwin*)
3689 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3690 noconfigdirs="$noconfigdirs target-libgloss"
3691 # always build newlib if winsup directory is present.
3692 if test -d "$srcdir/winsup/cygwin"; then
3693 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3694 elif test -d "$srcdir/newlib"; then
3695 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3696 fi
3697 ;;
3698 i[3456789]86-*-pe)
3699 noconfigdirs="$noconfigdirs target-libgloss"
3700 ;;
3701 i[3456789]86-*-sco3.2v5*)
3702 # The linker does not yet know about weak symbols in COFF,
3703 # and is not configured to handle mixed ELF and COFF.
3704 noconfigdirs="$noconfigdirs ld target-libgloss"
3705 ;;
3706 i[3456789]86-*-sco*)
3707 noconfigdirs="$noconfigdirs gprof target-libgloss"
3708 ;;
3709 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3710 noconfigdirs="$noconfigdirs target-libgloss"
3711 ;;
3712 i[3456789]86-*-sysv4*)
3713 noconfigdirs="$noconfigdirs target-libgloss"
3714 ;;
3715 i[3456789]86-*-beos*)
3716 noconfigdirs="$noconfigdirs gdb"
3717 ;;
3718 i[3456789]86-*-rdos*)
3719 noconfigdirs="$noconfigdirs gdb"
3720 ;;
3721 mmix-*-*)
3722 noconfigdirs="$noconfigdirs gdb"
3723 ;;
3724 mt-*-*)
3725 noconfigdirs="$noconfigdirs sim"
3726 ;;
3727 powerpc-*-aix*)
3728 # copied from rs6000-*-* entry
3729 noconfigdirs="$noconfigdirs gprof"
3730 ;;
3731 powerpc*-*-winnt* | powerpc*-*-pe*)
3732 target_configdirs="$target_configdirs target-winsup"
3733 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3734 # always build newlib.
3735 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3736 ;;
3737 # This is temporary until we can link against shared libraries
3738 powerpcle-*-solaris*)
3739 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3740 ;;
3741 powerpc-*-beos*)
3742 noconfigdirs="$noconfigdirs gdb"
3743 ;;
3744 rs6000-*-lynxos*)
3745 noconfigdirs="$noconfigdirs gprof"
3746 ;;
3747 rs6000-*-aix*)
3748 noconfigdirs="$noconfigdirs gprof"
3749 ;;
3750 rs6000-*-*)
3751 noconfigdirs="$noconfigdirs gprof"
3752 ;;
3753 m68k-apollo-*)
3754 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3755 ;;
3756 microblaze*)
3757 noconfigdirs="$noconfigdirs gprof"
3758 ;;
3759 mips*-sde-elf* | mips*-mti-elf*)
3760 if test x$with_newlib = xyes; then
3761 noconfigdirs="$noconfigdirs gprof"
3762 fi
3763 ;;
3764 mips*-*-irix5*)
3765 noconfigdirs="$noconfigdirs gprof target-libgloss"
3766 ;;
3767 mips*-*-irix6*)
3768 noconfigdirs="$noconfigdirs gprof target-libgloss"
3769 ;;
3770 mips*-*-bsd*)
3771 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3772 ;;
3773 mips*-*-linux*)
3774 ;;
3775 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3776 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3777 noconfigdirs="$noconfigdirs ld gas gprof"
3778 ;;
3779 mips*-*-*)
3780 noconfigdirs="$noconfigdirs gprof"
3781 ;;
3782 sh-*-* | sh64-*-*)
3783 case "${target}" in
3784 sh*-*-elf)
3785 ;;
3786 *)
3787 noconfigdirs="$noconfigdirs target-libgloss" ;;
3788 esac
3789 ;;
3790 sparc-*-sunos4*)
3791 if test x${is_cross_compiler} = xno ; then
3792 use_gnu_ld=no
3793 fi
3794 ;;
3795 tic6x-*-*)
3796 noconfigdirs="$noconfigdirs sim"
3797 ;;
3798 tilepro-*-* | tilegx-*-*)
3799 noconfigdirs="$noconfigdirs sim"
3800 ;;
3801 v810-*-*)
3802 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3803 ;;
3804 vax-*-*)
3805 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3806 ;;
3807 esac
3808
3809 # If we aren't building newlib, then don't build libgloss, since libgloss
3810 # depends upon some newlib header files.
3811 case "${noconfigdirs}" in
3812 *target-libgloss*) ;;
3813 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3814 esac
3815
3816 # Work in distributions that contain no compiler tools, like Autoconf.
3817 host_makefile_frag=/dev/null
3818 if test -d ${srcdir}/config ; then
3819 case "${host}" in
3820 i[3456789]86-*-msdosdjgpp*)
3821 host_makefile_frag="config/mh-djgpp"
3822 ;;
3823 *-cygwin*)
3824
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3826 $as_echo_n "checking to see if cat works as expected... " >&6; }
3827 echo a >cygwin-cat-check
3828 if test `cat cygwin-cat-check` = a ; then
3829 rm cygwin-cat-check
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3831 $as_echo "yes" >&6; }
3832 else
3833 rm cygwin-cat-check
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 as_fn_error "The cat command does not ignore carriage return characters.
3837 Please either mount the build directory in binary mode or run the following
3838 commands before running any configure script:
3839 set -o igncr
3840 export SHELLOPTS
3841 " "$LINENO" 5
3842 fi
3843
3844 host_makefile_frag="config/mh-cygwin"
3845 ;;
3846 *-mingw*)
3847 host_makefile_frag="config/mh-mingw"
3848 ;;
3849 hppa*-hp-hpux10*)
3850 host_makefile_frag="config/mh-pa-hpux10"
3851 ;;
3852 hppa*-hp-hpux*)
3853 host_makefile_frag="config/mh-pa"
3854 ;;
3855 hppa*-*)
3856 host_makefile_frag="config/mh-pa"
3857 ;;
3858 *-*-darwin*)
3859 host_makefile_frag="config/mh-darwin"
3860 ;;
3861 powerpc-*-aix*)
3862 host_makefile_frag="config/mh-ppc-aix"
3863 ;;
3864 rs6000-*-aix*)
3865 host_makefile_frag="config/mh-ppc-aix"
3866 ;;
3867 esac
3868 fi
3869
3870 if test "${build}" != "${host}" ; then
3871 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3872 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3873 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3874 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3875 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3876 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3877 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3878 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3879 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3880 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3881 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3882 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3883 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3884 else
3885 AR_FOR_BUILD="\$(AR)"
3886 AS_FOR_BUILD="\$(AS)"
3887 CC_FOR_BUILD="\$(CC)"
3888 CXX_FOR_BUILD="\$(CXX)"
3889 GCJ_FOR_BUILD="\$(GCJ)"
3890 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3891 GOC_FOR_BUILD="\$(GOC)"
3892 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3893 LD_FOR_BUILD="\$(LD)"
3894 NM_FOR_BUILD="\$(NM)"
3895 RANLIB_FOR_BUILD="\$(RANLIB)"
3896 WINDRES_FOR_BUILD="\$(WINDRES)"
3897 WINDMC_FOR_BUILD="\$(WINDMC)"
3898 fi
3899
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_CC+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927 done
3928 done
3929 IFS=$as_save_IFS
3930
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 $as_echo "$CC" >&6; }
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 fi
3941
3942
3943 fi
3944 if test -z "$ac_cv_prog_CC"; then
3945 ac_ct_CC=$CC
3946 # Extract the first word of "gcc", so it can be a program name with args.
3947 set dummy gcc; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$ac_ct_CC"; then
3954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_ac_ct_CC="gcc"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974 if test -n "$ac_ct_CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3976 $as_echo "$ac_ct_CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982 if test "x$ac_ct_CC" = x; then
3983 CC=""
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986 yes:)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3990 esac
3991 CC=$ac_ct_CC
3992 fi
3993 else
3994 CC="$ac_cv_prog_CC"
3995 fi
3996
3997 if test -z "$CC"; then
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}cc; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if test "${ac_cv_prog_CC+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_prog_CC="${ac_tool_prefix}cc"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020 done
4021 done
4022 IFS=$as_save_IFS
4023
4024 fi
4025 fi
4026 CC=$ac_cv_prog_CC
4027 if test -n "$CC"; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029 $as_echo "$CC" >&6; }
4030 else
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4033 fi
4034
4035
4036 fi
4037 fi
4038 if test -z "$CC"; then
4039 # Extract the first word of "cc", so it can be a program name with args.
4040 set dummy cc; ac_word=$2
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 $as_echo_n "checking for $ac_word... " >&6; }
4043 if test "${ac_cv_prog_CC+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4048 else
4049 ac_prog_rejected=no
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4058 ac_prog_rejected=yes
4059 continue
4060 fi
4061 ac_cv_prog_CC="cc"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 if test $ac_prog_rejected = yes; then
4070 # We found a bogon in the path, so make sure we never use it.
4071 set dummy $ac_cv_prog_CC
4072 shift
4073 if test $# != 0; then
4074 # We chose a different compiler from the bogus one.
4075 # However, it has the same basename, so the bogon will be chosen
4076 # first if we set CC to just the basename; use the full file name.
4077 shift
4078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4079 fi
4080 fi
4081 fi
4082 fi
4083 CC=$ac_cv_prog_CC
4084 if test -n "$CC"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086 $as_echo "$CC" >&6; }
4087 else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4090 fi
4091
4092
4093 fi
4094 if test -z "$CC"; then
4095 if test -n "$ac_tool_prefix"; then
4096 for ac_prog in cl.exe
4097 do
4098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if test "${ac_cv_prog_CC+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119 done
4120 done
4121 IFS=$as_save_IFS
4122
4123 fi
4124 fi
4125 CC=$ac_cv_prog_CC
4126 if test -n "$CC"; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4128 $as_echo "$CC" >&6; }
4129 else
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4132 fi
4133
4134
4135 test -n "$CC" && break
4136 done
4137 fi
4138 if test -z "$CC"; then
4139 ac_ct_CC=$CC
4140 for ac_prog in cl.exe
4141 do
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143 set dummy $ac_prog; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -n "$ac_ct_CC"; then
4150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159 ac_cv_prog_ac_ct_CC="$ac_prog"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163 done
4164 done
4165 IFS=$as_save_IFS
4166
4167 fi
4168 fi
4169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4170 if test -n "$ac_ct_CC"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4172 $as_echo "$ac_ct_CC" >&6; }
4173 else
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4176 fi
4177
4178
4179 test -n "$ac_ct_CC" && break
4180 done
4181
4182 if test "x$ac_ct_CC" = x; then
4183 CC=""
4184 else
4185 case $cross_compiling:$ac_tool_warned in
4186 yes:)
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4189 ac_tool_warned=yes ;;
4190 esac
4191 CC=$ac_ct_CC
4192 fi
4193 fi
4194
4195 fi
4196
4197
4198 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error "no acceptable C compiler found in \$PATH
4201 See \`config.log' for more details." "$LINENO" 5; }
4202
4203 # Provide some information about the compiler.
4204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4205 set X $ac_compile
4206 ac_compiler=$2
4207 for ac_option in --version -v -V -qversion; do
4208 { { ac_try="$ac_compiler $ac_option >&5"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4216 ac_status=$?
4217 if test -s conftest.err; then
4218 sed '10a\
4219 ... rest of stderr output deleted ...
4220 10q' conftest.err >conftest.er1
4221 cat conftest.er1 >&5
4222 rm -f conftest.er1 conftest.err
4223 fi
4224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225 test $ac_status = 0; }
4226 done
4227
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230
4231 int
4232 main ()
4233 {
4234
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 ac_clean_files_save=$ac_clean_files
4240 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4241 # Try to create an executable without -o first, disregard a.out.
4242 # It will help us diagnose broken compilers, and finding out an intuition
4243 # of exeext.
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4245 $as_echo_n "checking for C compiler default output file name... " >&6; }
4246 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4247
4248 # The possible output files:
4249 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4250
4251 ac_rmfiles=
4252 for ac_file in $ac_files
4253 do
4254 case $ac_file in
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4256 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4257 esac
4258 done
4259 rm -f $ac_rmfiles
4260
4261 if { { ac_try="$ac_link_default"
4262 case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_link_default") 2>&5
4269 ac_status=$?
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; then :
4272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4274 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4275 # so that the user can short-circuit this test for compilers unknown to
4276 # Autoconf.
4277 for ac_file in $ac_files ''
4278 do
4279 test -f "$ac_file" || continue
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4282 ;;
4283 [ab].out )
4284 # We found the default executable, but exeext='' is most
4285 # certainly right.
4286 break;;
4287 *.* )
4288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4289 then :; else
4290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4291 fi
4292 # We set ac_cv_exeext here because the later test for it is not
4293 # safe: cross compilers may not add the suffix if given an `-o'
4294 # argument, so we may need to know it at that point already.
4295 # Even if this section looks crufty: it has the advantage of
4296 # actually working.
4297 break;;
4298 * )
4299 break;;
4300 esac
4301 done
4302 test "$ac_cv_exeext" = no && ac_cv_exeext=
4303
4304 else
4305 ac_file=''
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4308 $as_echo "$ac_file" >&6; }
4309 if test -z "$ac_file"; then :
4310 $as_echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4312
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 { as_fn_set_status 77
4316 as_fn_error "C compiler cannot create executables
4317 See \`config.log' for more details." "$LINENO" 5; }; }
4318 fi
4319 ac_exeext=$ac_cv_exeext
4320
4321 # Check that the compiler produces executables we can run. If not, either
4322 # the compiler is broken, or we cross compile.
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4324 $as_echo_n "checking whether the C compiler works... " >&6; }
4325 # If not cross compiling, check that we can run a simple program.
4326 if test "$cross_compiling" != yes; then
4327 if { ac_try='./$ac_file'
4328 { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; }; then
4338 cross_compiling=no
4339 else
4340 if test "$cross_compiling" = maybe; then
4341 cross_compiling=yes
4342 else
4343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4345 as_fn_error "cannot run C compiled programs.
4346 If you meant to cross compile, use \`--host'.
4347 See \`config.log' for more details." "$LINENO" 5; }
4348 fi
4349 fi
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352 $as_echo "yes" >&6; }
4353
4354 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4355 ac_clean_files=$ac_clean_files_save
4356 # Check that the compiler produces executables we can run. If not, either
4357 # the compiler is broken, or we cross compile.
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4359 $as_echo_n "checking whether we are cross compiling... " >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4361 $as_echo "$cross_compiling" >&6; }
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4364 $as_echo_n "checking for suffix of executables... " >&6; }
4365 if { { ac_try="$ac_link"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_link") 2>&5
4373 ac_status=$?
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }; then :
4376 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4377 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4378 # work properly (i.e., refer to `conftest.exe'), while it won't with
4379 # `rm'.
4380 for ac_file in conftest.exe conftest conftest.*; do
4381 test -f "$ac_file" || continue
4382 case $ac_file in
4383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4384 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4385 break;;
4386 * ) break;;
4387 esac
4388 done
4389 else
4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error "cannot compute suffix of executables: cannot compile and link
4393 See \`config.log' for more details." "$LINENO" 5; }
4394 fi
4395 rm -f conftest$ac_cv_exeext
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4397 $as_echo "$ac_cv_exeext" >&6; }
4398
4399 rm -f conftest.$ac_ext
4400 EXEEXT=$ac_cv_exeext
4401 ac_exeext=$EXEEXT
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4403 $as_echo_n "checking for suffix of object files... " >&6; }
4404 if test "${ac_cv_objext+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409
4410 int
4411 main ()
4412 {
4413
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.o conftest.obj
4419 if { { ac_try="$ac_compile"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_compile") 2>&5
4427 ac_status=$?
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; then :
4430 for ac_file in conftest.o conftest.obj conftest.*; do
4431 test -f "$ac_file" || continue;
4432 case $ac_file in
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4435 break;;
4436 esac
4437 done
4438 else
4439 $as_echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error "cannot compute suffix of object files: cannot compile
4445 See \`config.log' for more details." "$LINENO" 5; }
4446 fi
4447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4450 $as_echo "$ac_cv_objext" >&6; }
4451 OBJEXT=$ac_cv_objext
4452 ac_objext=$OBJEXT
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4455 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460
4461 int
4462 main ()
4463 {
4464 #ifndef __GNUC__
4465 choke me
4466 #endif
4467
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"; then :
4473 ac_compiler_gnu=yes
4474 else
4475 ac_compiler_gnu=no
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4479
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4483 if test $ac_compiler_gnu = yes; then
4484 GCC=yes
4485 else
4486 GCC=
4487 fi
4488 ac_test_CFLAGS=${CFLAGS+set}
4489 ac_save_CFLAGS=$CFLAGS
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4492 if test "${ac_cv_prog_cc_g+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 ac_save_c_werror_flag=$ac_c_werror_flag
4496 ac_c_werror_flag=yes
4497 ac_cv_prog_cc_g=no
4498 CFLAGS="-g"
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501
4502 int
4503 main ()
4504 {
4505
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 if ac_fn_c_try_compile "$LINENO"; then :
4511 ac_cv_prog_cc_g=yes
4512 else
4513 CFLAGS=""
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516
4517 int
4518 main ()
4519 {
4520
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526
4527 else
4528 ac_c_werror_flag=$ac_save_c_werror_flag
4529 CFLAGS="-g"
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532
4533 int
4534 main ()
4535 {
4536
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_cv_prog_cc_g=yes
4543 fi
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 ac_c_werror_flag=$ac_save_c_werror_flag
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4552 $as_echo "$ac_cv_prog_cc_g" >&6; }
4553 if test "$ac_test_CFLAGS" = set; then
4554 CFLAGS=$ac_save_CFLAGS
4555 elif test $ac_cv_prog_cc_g = yes; then
4556 if test "$GCC" = yes; then
4557 CFLAGS="-g -O2"
4558 else
4559 CFLAGS="-g"
4560 fi
4561 else
4562 if test "$GCC" = yes; then
4563 CFLAGS="-O2"
4564 else
4565 CFLAGS=
4566 fi
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4570 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 ac_cv_prog_cc_c89=no
4574 ac_save_CC=$CC
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 #include <stdarg.h>
4578 #include <stdio.h>
4579 #include <sys/types.h>
4580 #include <sys/stat.h>
4581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4582 struct buf { int x; };
4583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4584 static char *e (p, i)
4585 char **p;
4586 int i;
4587 {
4588 return p[i];
4589 }
4590 static char *f (char * (*g) (char **, int), char **p, ...)
4591 {
4592 char *s;
4593 va_list v;
4594 va_start (v,p);
4595 s = g (p, va_arg (v,int));
4596 va_end (v);
4597 return s;
4598 }
4599
4600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4601 function prototypes and stuff, but not '\xHH' hex character constants.
4602 These don't provoke an error unfortunately, instead are silently treated
4603 as 'x'. The following induces an error, until -std is added to get
4604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4605 array size at least. It's necessary to write '\x00'==0 to get something
4606 that's true only with -std. */
4607 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4608
4609 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4610 inside strings and character constants. */
4611 #define FOO(x) 'x'
4612 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4613
4614 int test (int i, double x);
4615 struct s1 {int (*f) (int a);};
4616 struct s2 {int (*f) (double a);};
4617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4618 int argc;
4619 char **argv;
4620 int
4621 main ()
4622 {
4623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4630 do
4631 CC="$ac_save_CC $ac_arg"
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_c89=$ac_arg
4634 fi
4635 rm -f core conftest.err conftest.$ac_objext
4636 test "x$ac_cv_prog_cc_c89" != "xno" && break
4637 done
4638 rm -f conftest.$ac_ext
4639 CC=$ac_save_CC
4640
4641 fi
4642 # AC_CACHE_VAL
4643 case "x$ac_cv_prog_cc_c89" in
4644 x)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4646 $as_echo "none needed" >&6; } ;;
4647 xno)
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4649 $as_echo "unsupported" >&6; } ;;
4650 *)
4651 CC="$CC $ac_cv_prog_cc_c89"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4653 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4654 esac
4655 if test "x$ac_cv_prog_cc_c89" != xno; then :
4656
4657 fi
4658
4659 ac_ext=c
4660 ac_cpp='$CPP $CPPFLAGS'
4661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4664
4665 ac_ext=cpp
4666 ac_cpp='$CXXCPP $CPPFLAGS'
4667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4670 if test -z "$CXX"; then
4671 if test -n "$CCC"; then
4672 CXX=$CCC
4673 else
4674 if test -n "$ac_tool_prefix"; then
4675 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4676 do
4677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if test "${ac_cv_prog_CXX+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if test -n "$CXX"; then
4685 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698 done
4699 done
4700 IFS=$as_save_IFS
4701
4702 fi
4703 fi
4704 CXX=$ac_cv_prog_CXX
4705 if test -n "$CXX"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4707 $as_echo "$CXX" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713
4714 test -n "$CXX" && break
4715 done
4716 fi
4717 if test -z "$CXX"; then
4718 ac_ct_CXX=$CXX
4719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4720 do
4721 # Extract the first word of "$ac_prog", so it can be a program name with args.
4722 set dummy $ac_prog; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$ac_ct_CXX"; then
4729 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_ac_ct_CXX="$ac_prog"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4749 if test -n "$ac_ct_CXX"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4751 $as_echo "$ac_ct_CXX" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 fi
4756
4757
4758 test -n "$ac_ct_CXX" && break
4759 done
4760
4761 if test "x$ac_ct_CXX" = x; then
4762 CXX="g++"
4763 else
4764 case $cross_compiling:$ac_tool_warned in
4765 yes:)
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768 ac_tool_warned=yes ;;
4769 esac
4770 CXX=$ac_ct_CXX
4771 fi
4772 fi
4773
4774 fi
4775 fi
4776 # Provide some information about the compiler.
4777 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4778 set X $ac_compile
4779 ac_compiler=$2
4780 for ac_option in --version -v -V -qversion; do
4781 { { ac_try="$ac_compiler $ac_option >&5"
4782 case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4785 esac
4786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4787 $as_echo "$ac_try_echo"; } >&5
4788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4789 ac_status=$?
4790 if test -s conftest.err; then
4791 sed '10a\
4792 ... rest of stderr output deleted ...
4793 10q' conftest.err >conftest.er1
4794 cat conftest.er1 >&5
4795 rm -f conftest.er1 conftest.err
4796 fi
4797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798 test $ac_status = 0; }
4799 done
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4802 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4803 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808
4809 int
4810 main ()
4811 {
4812 #ifndef __GNUC__
4813 choke me
4814 #endif
4815
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 if ac_fn_cxx_try_compile "$LINENO"; then :
4821 ac_compiler_gnu=yes
4822 else
4823 ac_compiler_gnu=no
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4827
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4830 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4831 if test $ac_compiler_gnu = yes; then
4832 GXX=yes
4833 else
4834 GXX=
4835 fi
4836 ac_test_CXXFLAGS=${CXXFLAGS+set}
4837 ac_save_CXXFLAGS=$CXXFLAGS
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4839 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4840 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4844 ac_cxx_werror_flag=yes
4845 ac_cv_prog_cxx_g=no
4846 CXXFLAGS="-g"
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849
4850 int
4851 main ()
4852 {
4853
4854 ;
4855 return 0;
4856 }
4857 _ACEOF
4858 if ac_fn_cxx_try_compile "$LINENO"; then :
4859 ac_cv_prog_cxx_g=yes
4860 else
4861 CXXFLAGS=""
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864
4865 int
4866 main ()
4867 {
4868
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 if ac_fn_cxx_try_compile "$LINENO"; then :
4874
4875 else
4876 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4877 CXXFLAGS="-g"
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880
4881 int
4882 main ()
4883 {
4884
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 if ac_fn_cxx_try_compile "$LINENO"; then :
4890 ac_cv_prog_cxx_g=yes
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 fi
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4900 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4901 if test "$ac_test_CXXFLAGS" = set; then
4902 CXXFLAGS=$ac_save_CXXFLAGS
4903 elif test $ac_cv_prog_cxx_g = yes; then
4904 if test "$GXX" = yes; then
4905 CXXFLAGS="-g -O2"
4906 else
4907 CXXFLAGS="-g"
4908 fi
4909 else
4910 if test "$GXX" = yes; then
4911 CXXFLAGS="-O2"
4912 else
4913 CXXFLAGS=
4914 fi
4915 fi
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921
4922
4923 # We must set the default linker to the linker used by gcc for the correct
4924 # operation of libtool. If LD is not defined and we are using gcc, try to
4925 # set the LD default to the ld used by gcc.
4926 if test -z "$LD"; then
4927 if test "$GCC" = yes; then
4928 case $build in
4929 *-*-mingw*)
4930 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4931 *)
4932 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4933 esac
4934 case $gcc_prog_ld in
4935 # Accept absolute paths.
4936 [\\/]* | [A-Za-z]:[\\/]*)
4937 LD="$gcc_prog_ld" ;;
4938 esac
4939 fi
4940 fi
4941
4942 # Check whether -static-libstdc++ -static-libgcc is supported.
4943 have_static_libs=no
4944 if test "$GCC" = yes; then
4945 saved_LDFLAGS="$LDFLAGS"
4946
4947 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4949 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4950 ac_ext=cpp
4951 ac_cpp='$CXXCPP $CPPFLAGS'
4952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4955
4956
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959
4960 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4961 #error -static-libstdc++ not implemented
4962 #endif
4963 int main() {}
4964 _ACEOF
4965 if ac_fn_cxx_try_link "$LINENO"; then :
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4967 $as_echo "yes" >&6; }; have_static_libs=yes
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext \
4973 conftest$ac_exeext conftest.$ac_ext
4974 ac_ext=c
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979
4980
4981 LDFLAGS="$saved_LDFLAGS"
4982 fi
4983
4984
4985
4986
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4989 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$GNATBIND"; then
4996 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 GNATBIND=$ac_cv_prog_GNATBIND
5016 if test -n "$GNATBIND"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5018 $as_echo "$GNATBIND" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025 fi
5026 if test -z "$ac_cv_prog_GNATBIND"; then
5027 ac_ct_GNATBIND=$GNATBIND
5028 # Extract the first word of "gnatbind", so it can be a program name with args.
5029 set dummy gnatbind; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$ac_ct_GNATBIND"; then
5036 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049 done
5050 done
5051 IFS=$as_save_IFS
5052
5053 fi
5054 fi
5055 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5056 if test -n "$ac_ct_GNATBIND"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5058 $as_echo "$ac_ct_GNATBIND" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5062 fi
5063
5064 if test "x$ac_ct_GNATBIND" = x; then
5065 GNATBIND="no"
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068 yes:)
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned=yes ;;
5072 esac
5073 GNATBIND=$ac_ct_GNATBIND
5074 fi
5075 else
5076 GNATBIND="$ac_cv_prog_GNATBIND"
5077 fi
5078
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$GNATMAKE"; then
5088 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 GNATMAKE=$ac_cv_prog_GNATMAKE
5108 if test -n "$GNATMAKE"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5110 $as_echo "$GNATMAKE" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116
5117 fi
5118 if test -z "$ac_cv_prog_GNATMAKE"; then
5119 ac_ct_GNATMAKE=$GNATMAKE
5120 # Extract the first word of "gnatmake", so it can be a program name with args.
5121 set dummy gnatmake; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$ac_ct_GNATMAKE"; then
5128 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145 fi
5146 fi
5147 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5148 if test -n "$ac_ct_GNATMAKE"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5150 $as_echo "$ac_ct_GNATMAKE" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5154 fi
5155
5156 if test "x$ac_ct_GNATMAKE" = x; then
5157 GNATMAKE="no"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160 yes:)
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5164 esac
5165 GNATMAKE=$ac_ct_GNATMAKE
5166 fi
5167 else
5168 GNATMAKE="$ac_cv_prog_GNATMAKE"
5169 fi
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5172 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5173 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 cat >conftest.adb <<EOF
5177 procedure conftest is begin null; end conftest;
5178 EOF
5179 acx_cv_cc_gcc_supports_ada=no
5180 # There is a bug in old released versions of GCC which causes the
5181 # driver to exit successfully when the appropriate language module
5182 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5183 # Therefore we must check for the error message as well as an
5184 # unsuccessful exit.
5185 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5186 # given a .adb file, but produce no object file. So we must check
5187 # if an object file was really produced to guard against this.
5188 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5189 if test x"$errors" = x && test -f conftest.$ac_objext; then
5190 acx_cv_cc_gcc_supports_ada=yes
5191 fi
5192 rm -f conftest.*
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5195 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5196
5197 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5198 have_gnat=yes
5199 else
5200 have_gnat=no
5201 fi
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5204 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5205 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 echo abfoo >t1
5209 echo cdfoo >t2
5210 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5211 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5212 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5213 :
5214 else
5215 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5216 fi
5217 fi
5218 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5219 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5220 :
5221 else
5222 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5223 fi
5224 fi
5225 rm t1 t2
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5229 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5230 do_compare="$gcc_cv_prog_cmp_skip"
5231
5232
5233
5234 # Check whether --enable-bootstrap was given.
5235 if test "${enable_bootstrap+set}" = set; then :
5236 enableval=$enable_bootstrap;
5237 else
5238 enable_bootstrap=default
5239 fi
5240
5241
5242 # Issue errors and warnings for invalid/strange bootstrap combinations.
5243 if test -r $srcdir/gcc/configure; then
5244 have_compiler=yes
5245 else
5246 have_compiler=no
5247 fi
5248
5249 case "$have_compiler:$host:$target:$enable_bootstrap" in
5250 *:*:*:no) ;;
5251
5252 # Default behavior. Enable bootstrap if we have a compiler
5253 # and we are in a native configuration.
5254 yes:$build:$build:default)
5255 enable_bootstrap=yes ;;
5256
5257 *:*:*:default)
5258 enable_bootstrap=no ;;
5259
5260 # We have a compiler and we are in a native configuration, bootstrap is ok
5261 yes:$build:$build:yes)
5262 ;;
5263
5264 # Other configurations, but we have a compiler. Assume the user knows
5265 # what he's doing.
5266 yes:*:*:yes)
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5268 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5269 ;;
5270
5271 # No compiler: if they passed --enable-bootstrap explicitly, fail
5272 no:*:*:yes)
5273 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5274
5275 # Fail if wrong command line
5276 *)
5277 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5278 ;;
5279 esac
5280
5281 # Used for setting $lt_cv_objdir
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5283 $as_echo_n "checking for objdir... " >&6; }
5284 if test "${lt_cv_objdir+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 rm -f .libs 2>/dev/null
5288 mkdir .libs 2>/dev/null
5289 if test -d .libs; then
5290 lt_cv_objdir=.libs
5291 else
5292 # MS-DOS does not allow filenames that begin with a dot.
5293 lt_cv_objdir=_libs
5294 fi
5295 rmdir .libs 2>/dev/null
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5298 $as_echo "$lt_cv_objdir" >&6; }
5299 objdir=$lt_cv_objdir
5300
5301
5302
5303
5304
5305 cat >>confdefs.h <<_ACEOF
5306 #define LT_OBJDIR "$lt_cv_objdir/"
5307 _ACEOF
5308
5309
5310
5311 # Check for GMP, MPFR and MPC
5312 gmplibs="-lmpc -lmpfr -lgmp"
5313 gmpinc=
5314 have_gmp=no
5315
5316 # Specify a location for mpc
5317 # check for this first so it ends up on the link line before mpfr.
5318
5319 # Check whether --with-mpc was given.
5320 if test "${with_mpc+set}" = set; then :
5321 withval=$with_mpc;
5322 fi
5323
5324
5325 # Check whether --with-mpc-include was given.
5326 if test "${with_mpc_include+set}" = set; then :
5327 withval=$with_mpc_include;
5328 fi
5329
5330
5331 # Check whether --with-mpc-lib was given.
5332 if test "${with_mpc_lib+set}" = set; then :
5333 withval=$with_mpc_lib;
5334 fi
5335
5336
5337 if test "x$with_mpc" != x; then
5338 gmplibs="-L$with_mpc/lib $gmplibs"
5339 gmpinc="-I$with_mpc/include $gmpinc"
5340 fi
5341 if test "x$with_mpc_include" != x; then
5342 gmpinc="-I$with_mpc_include $gmpinc"
5343 fi
5344 if test "x$with_mpc_lib" != x; then
5345 gmplibs="-L$with_mpc_lib $gmplibs"
5346 fi
5347 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5348 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5349 gmpinc='-I$$s/mpc/src '"$gmpinc"
5350 # Do not test the mpc version. Assume that it is sufficient, since
5351 # it is in the source tree, and the library has not been built yet
5352 # but it would be included on the link line in the version check below
5353 # hence making the test fail.
5354 have_gmp=yes
5355 fi
5356
5357 # Specify a location for mpfr
5358 # check for this first so it ends up on the link line before gmp.
5359
5360 # Check whether --with-mpfr-dir was given.
5361 if test "${with_mpfr_dir+set}" = set; then :
5362 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5363 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5364 fi
5365
5366
5367
5368 # Check whether --with-mpfr was given.
5369 if test "${with_mpfr+set}" = set; then :
5370 withval=$with_mpfr;
5371 fi
5372
5373
5374 # Check whether --with-mpfr-include was given.
5375 if test "${with_mpfr_include+set}" = set; then :
5376 withval=$with_mpfr_include;
5377 fi
5378
5379
5380 # Check whether --with-mpfr-lib was given.
5381 if test "${with_mpfr_lib+set}" = set; then :
5382 withval=$with_mpfr_lib;
5383 fi
5384
5385
5386 if test "x$with_mpfr" != x; then
5387 gmplibs="-L$with_mpfr/lib $gmplibs"
5388 gmpinc="-I$with_mpfr/include $gmpinc"
5389 fi
5390 if test "x$with_mpfr_include" != x; then
5391 gmpinc="-I$with_mpfr_include $gmpinc"
5392 fi
5393 if test "x$with_mpfr_lib" != x; then
5394 gmplibs="-L$with_mpfr_lib $gmplibs"
5395 fi
5396 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5397 # MPFR v3.1.0 moved the sources into a src sub-directory.
5398 if test -d ${srcdir}/mpfr/src; then
5399 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5400 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5401 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5402 else
5403 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5404 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5405 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5406 fi
5407 # Do not test the mpfr version. Assume that it is sufficient, since
5408 # it is in the source tree, and the library has not been built yet
5409 # but it would be included on the link line in the version check below
5410 # hence making the test fail.
5411 have_gmp=yes
5412 fi
5413
5414 # Specify a location for gmp
5415
5416 # Check whether --with-gmp-dir was given.
5417 if test "${with_gmp_dir+set}" = set; then :
5418 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5419 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5420 fi
5421
5422
5423
5424 # Check whether --with-gmp was given.
5425 if test "${with_gmp+set}" = set; then :
5426 withval=$with_gmp;
5427 fi
5428
5429
5430 # Check whether --with-gmp-include was given.
5431 if test "${with_gmp_include+set}" = set; then :
5432 withval=$with_gmp_include;
5433 fi
5434
5435
5436 # Check whether --with-gmp-lib was given.
5437 if test "${with_gmp_lib+set}" = set; then :
5438 withval=$with_gmp_lib;
5439 fi
5440
5441
5442
5443 if test "x$with_gmp" != x; then
5444 gmplibs="-L$with_gmp/lib $gmplibs"
5445 gmpinc="-I$with_gmp/include $gmpinc"
5446 fi
5447 if test "x$with_gmp_include" != x; then
5448 gmpinc="-I$with_gmp_include $gmpinc"
5449 fi
5450 if test "x$with_gmp_lib" != x; then
5451 gmplibs="-L$with_gmp_lib $gmplibs"
5452 fi
5453 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5454 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5455 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5456 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5457 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5458 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5459 # Do not test the gmp version. Assume that it is sufficient, since
5460 # it is in the source tree, and the library has not been built yet
5461 # but it would be included on the link line in the version check below
5462 # hence making the test fail.
5463 have_gmp=yes
5464 fi
5465
5466 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5467 have_gmp=yes
5468 saved_CFLAGS="$CFLAGS"
5469 CFLAGS="$CFLAGS $gmpinc"
5470 # Check for the recommended and required versions of GMP.
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5472 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5473
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #include "gmp.h"
5477 int
5478 main ()
5479 {
5480
5481 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5482 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5483 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5484 choke me
5485 #endif
5486
5487 ;
5488 return 0;
5489 }
5490 _ACEOF
5491 if ac_fn_c_try_compile "$LINENO"; then :
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #include <gmp.h>
5495 int
5496 main ()
5497 {
5498
5499 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5500 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5501 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5502 choke me
5503 #endif
5504
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 if ac_fn_c_try_compile "$LINENO"; then :
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 $as_echo "yes" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5514 $as_echo "buggy but acceptable" >&6; }
5515 fi
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }; have_gmp=no
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522
5523 # If we have GMP, check the MPFR version.
5524 if test x"$have_gmp" = xyes; then
5525 # Check for the recommended and required versions of MPFR.
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5527 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <gmp.h>
5531 #include <mpfr.h>
5532 int
5533 main ()
5534 {
5535
5536 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5537 choke me
5538 #endif
5539
5540 ;
5541 return 0;
5542 }
5543 _ACEOF
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 #include <gmp.h>
5548 #include <mpfr.h>
5549 int
5550 main ()
5551 {
5552
5553 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5554 choke me
5555 #endif
5556
5557 ;
5558 return 0;
5559 }
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563 $as_echo "yes" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5566 $as_echo "buggy but acceptable" >&6; }
5567 fi
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }; have_gmp=no
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 fi
5575
5576 # Check for the MPC header version.
5577 if test x"$have_gmp" = xyes ; then
5578 # Check for the recommended and required versions of MPC.
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5580 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #include <mpc.h>
5584 int
5585 main ()
5586 {
5587
5588 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5589 choke me
5590 #endif
5591
5592 ;
5593 return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <mpc.h>
5600 int
5601 main ()
5602 {
5603
5604 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5605 choke me
5606 #endif
5607
5608 ;
5609 return 0;
5610 }
5611 _ACEOF
5612 if ac_fn_c_try_compile "$LINENO"; then :
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5614 $as_echo "yes" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5617 $as_echo "buggy but acceptable" >&6; }
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }; have_gmp=no
5623 fi
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 fi
5626
5627 # Now check the MPFR library.
5628 if test x"$have_gmp" = xyes; then
5629 saved_LIBS="$LIBS"
5630 LIBS="$LIBS $gmplibs"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5632 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <mpc.h>
5636 int
5637 main ()
5638 {
5639
5640 mpfr_t n;
5641 mpfr_t x;
5642 mpc_t c;
5643 int t;
5644 mpfr_init (n);
5645 mpfr_init (x);
5646 mpfr_atan2 (n, n, x, GMP_RNDN);
5647 mpfr_erfc (n, x, GMP_RNDN);
5648 mpfr_subnormalize (x, t, GMP_RNDN);
5649 mpfr_clear(n);
5650 mpfr_clear(x);
5651 mpc_init2 (c, 53);
5652 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5653 mpc_cosh (c, c, MPC_RNDNN);
5654 mpc_pow (c, c, c, MPC_RNDNN);
5655 mpc_acosh (c, c, MPC_RNDNN);
5656 mpc_clear (c);
5657
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 if ac_fn_c_try_link "$LINENO"; then :
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5664 $as_echo "yes" >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }; have_gmp=no
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext \
5670 conftest$ac_exeext conftest.$ac_ext
5671 LIBS="$saved_LIBS"
5672 fi
5673
5674 CFLAGS="$saved_CFLAGS"
5675
5676 # The library versions listed in the error message below should match
5677 # the HARD-minimums enforced above.
5678 if test x$have_gmp != xyes; then
5679 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5680 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5681 their locations. Source code for these libraries can be found at
5682 their respective hosting sites as well as at
5683 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5684 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5685 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5686 make sure that you have installed both the libraries and the header
5687 files. They may be located in separate packages." "$LINENO" 5
5688 fi
5689 fi
5690
5691 # Flags needed for both GMP, MPFR and/or MPC.
5692
5693
5694
5695
5696
5697
5698
5699 # Allow host libstdc++ to be specified for static linking with PPL.
5700
5701 # Check whether --with-host-libstdcxx was given.
5702 if test "${with_host_libstdcxx+set}" = set; then :
5703 withval=$with_host_libstdcxx;
5704 fi
5705
5706
5707 case $with_host_libstdcxx in
5708 no|yes)
5709 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5710 ;;
5711 esac
5712
5713 # Libraries to use for stage1 or when not bootstrapping.
5714
5715 # Check whether --with-stage1-libs was given.
5716 if test "${with_stage1_libs+set}" = set; then :
5717 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5718 stage1_libs=
5719 else
5720 stage1_libs=$withval
5721 fi
5722 else
5723 stage1_libs=$with_host_libstdcxx
5724 fi
5725
5726
5727
5728 # Linker flags to use for stage1 or when not bootstrapping.
5729
5730 # Check whether --with-stage1-ldflags was given.
5731 if test "${with_stage1_ldflags+set}" = set; then :
5732 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5733 stage1_ldflags=
5734 else
5735 stage1_ldflags=$withval
5736 fi
5737 else
5738 stage1_ldflags=
5739 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5740 # if supported. But if the user explicitly specified the libraries to use,
5741 # trust that they are doing what they want.
5742 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5743 stage1_ldflags="-static-libstdc++ -static-libgcc"
5744 fi
5745 fi
5746
5747
5748
5749 # Libraries to use for stage2 and later builds. This defaults to the
5750 # argument passed to --with-host-libstdcxx.
5751
5752 # Check whether --with-boot-libs was given.
5753 if test "${with_boot_libs+set}" = set; then :
5754 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5755 poststage1_libs=
5756 else
5757 poststage1_libs=$withval
5758 fi
5759 else
5760 poststage1_libs=$with_host_libstdcxx
5761 fi
5762
5763
5764
5765 # Linker flags to use for stage2 and later builds.
5766
5767 # Check whether --with-boot-ldflags was given.
5768 if test "${with_boot_ldflags+set}" = set; then :
5769 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5770 poststage1_ldflags=
5771 else
5772 poststage1_ldflags=$withval
5773 fi
5774 else
5775 poststage1_ldflags=
5776 # In stages 2 and 3, default to linking libstdc++ and libgcc
5777 # statically. But if the user explicitly specified the libraries to
5778 # use, trust that they are doing what they want.
5779 if test "$poststage1_libs" = ""; then
5780 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5781 fi
5782 fi
5783
5784
5785
5786 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5787 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5788 # config/isl.m4
5789
5790
5791 # Check whether --with-cloog was given.
5792 if test "${with_cloog+set}" = set; then :
5793 withval=$with_cloog;
5794 fi
5795
5796
5797 # Check whether --with-isl was given.
5798 if test "${with_isl+set}" = set; then :
5799 withval=$with_isl;
5800 fi
5801
5802
5803 # Treat either --without-cloog or --without-isl as a request to disable
5804 # GRAPHITE support and skip all following checks.
5805 if test "x$with_isl" != "xno" &&
5806 test "x$with_cloog" != "xno"; then
5807 # Check for ISL
5808
5809
5810 # Check whether --with-isl-include was given.
5811 if test "${with_isl_include+set}" = set; then :
5812 withval=$with_isl_include;
5813 fi
5814
5815
5816 # Check whether --with-isl-lib was given.
5817 if test "${with_isl_lib+set}" = set; then :
5818 withval=$with_isl_lib;
5819 fi
5820
5821
5822 # Check whether --enable-isl-version-check was given.
5823 if test "${enable_isl_version_check+set}" = set; then :
5824 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5825 else
5826 ENABLE_ISL_CHECK=yes
5827 fi
5828
5829
5830 # Initialize isllibs and islinc.
5831 case $with_isl in
5832 no)
5833 isllibs=
5834 islinc=
5835 ;;
5836 "" | yes)
5837 ;;
5838 *)
5839 isllibs="-L$with_isl/lib"
5840 islinc="-I$with_isl/include"
5841 ;;
5842 esac
5843 if test "x${with_isl_include}" != x ; then
5844 islinc="-I$with_isl_include"
5845 fi
5846 if test "x${with_isl_lib}" != x; then
5847 isllibs="-L$with_isl_lib"
5848 fi
5849 if test "x${islinc}" = x && test "x${isllibs}" = x \
5850 && test -d ${srcdir}/isl; then
5851 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5852 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5853 ENABLE_ISL_CHECK=no
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5855 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5856 fi
5857
5858
5859
5860 if test "${ENABLE_ISL_CHECK}" = yes ; then
5861 _isl_saved_CFLAGS=$CFLAGS
5862 _isl_saved_LDFLAGS=$LDFLAGS
5863 _isl_saved_LIBS=$LIBS
5864
5865 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5866 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5867 LIBS="${_isl_saved_LIBS} -lisl"
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5870 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5871 if test "$cross_compiling" = yes; then :
5872 gcc_cv_isl=yes
5873 else
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #include <isl/version.h>
5877 #include <string.h>
5878 int
5879 main ()
5880 {
5881 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5882 return 1;
5883
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 if ac_fn_c_try_run "$LINENO"; then :
5889 gcc_cv_isl=yes
5890 else
5891 gcc_cv_isl=no
5892 fi
5893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5894 conftest.$ac_objext conftest.beam conftest.$ac_ext
5895 fi
5896
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5898 $as_echo "$gcc_cv_isl" >&6; }
5899
5900 CFLAGS=$_isl_saved_CFLAGS
5901 LDFLAGS=$_isl_saved_LDFLAGS
5902 LIBS=$_isl_saved_LIBS
5903 fi
5904
5905
5906 if test "${gcc_cv_isl}" = no ; then
5907
5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5912
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl"
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5918 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5919 if test "$cross_compiling" = yes; then :
5920 gcc_cv_isl=yes
5921 else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 #include <isl/version.h>
5925 #include <string.h>
5926 int
5927 main ()
5928 {
5929 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5930 return 1;
5931
5932 ;
5933 return 0;
5934 }
5935 _ACEOF
5936 if ac_fn_c_try_run "$LINENO"; then :
5937 gcc_cv_isl=yes
5938 else
5939 gcc_cv_isl=no
5940 fi
5941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5942 conftest.$ac_objext conftest.beam conftest.$ac_ext
5943 fi
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5946 $as_echo "$gcc_cv_isl" >&6; }
5947
5948 CFLAGS=$_isl_saved_CFLAGS
5949 LDFLAGS=$_isl_saved_LDFLAGS
5950 LIBS=$_isl_saved_LIBS
5951 fi
5952
5953
5954 if test "${gcc_cv_isl}" = no ; then
5955
5956 if test "${ENABLE_ISL_CHECK}" = yes ; then
5957 _isl_saved_CFLAGS=$CFLAGS
5958 _isl_saved_LDFLAGS=$LDFLAGS
5959 _isl_saved_LIBS=$LIBS
5960
5961 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5962 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5963 LIBS="${_isl_saved_LIBS} -lisl"
5964
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5966 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
5967 if test "$cross_compiling" = yes; then :
5968 gcc_cv_isl=yes
5969 else
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 #include <isl/version.h>
5973 #include <string.h>
5974 int
5975 main ()
5976 {
5977 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
5978 return 1;
5979
5980 ;
5981 return 0;
5982 }
5983 _ACEOF
5984 if ac_fn_c_try_run "$LINENO"; then :
5985 gcc_cv_isl=yes
5986 else
5987 gcc_cv_isl=no
5988 fi
5989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5990 conftest.$ac_objext conftest.beam conftest.$ac_ext
5991 fi
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5994 $as_echo "$gcc_cv_isl" >&6; }
5995
5996 CFLAGS=$_isl_saved_CFLAGS
5997 LDFLAGS=$_isl_saved_LDFLAGS
5998 LIBS=$_isl_saved_LIBS
5999 fi
6000
6001
6002 fi
6003 fi
6004
6005
6006
6007
6008 if test "x${with_isl}" = xno; then
6009 graphite_requested=no
6010 elif test "x${with_isl}" != x \
6011 || test "x${with_isl_include}" != x \
6012 || test "x${with_isl_lib}" != x ; then
6013 graphite_requested=yes
6014 else
6015 graphite_requested=no
6016 fi
6017
6018
6019
6020 if test "${gcc_cv_isl}" = no ; then
6021 isllibs=
6022 islinc=
6023 fi
6024
6025 if test "${graphite_requested}" = yes \
6026 && test "x${isllibs}" = x \
6027 && test "x${islinc}" = x ; then
6028
6029 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6030 fi
6031
6032
6033
6034 if test "x$gcc_cv_isl" != "xno"; then
6035 # Check for CLOOG
6036
6037
6038 # Check whether --with-cloog-include was given.
6039 if test "${with_cloog_include+set}" = set; then :
6040 withval=$with_cloog_include;
6041 fi
6042
6043
6044 # Check whether --with-cloog-lib was given.
6045 if test "${with_cloog_lib+set}" = set; then :
6046 withval=$with_cloog_lib;
6047 fi
6048
6049
6050 # Check whether --enable-cloog-version-check was given.
6051 if test "${enable_cloog_version_check+set}" = set; then :
6052 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6053 else
6054 ENABLE_CLOOG_CHECK=yes
6055 fi
6056
6057
6058 # Initialize clooglibs and clooginc.
6059 case $with_cloog in
6060 no)
6061 clooglibs=
6062 clooginc=
6063 ;;
6064 "" | yes)
6065 ;;
6066 *)
6067 clooglibs="-L$with_cloog/lib"
6068 clooginc="-I$with_cloog/include"
6069 ;;
6070 esac
6071 if test "x${with_cloog_include}" != x ; then
6072 clooginc="-I$with_cloog_include"
6073 fi
6074 if test "x${with_cloog_lib}" != x; then
6075 clooglibs="-L$with_cloog_lib"
6076 fi
6077 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6078 && test -d ${srcdir}/cloog; then
6079 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6080 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6081 ENABLE_CLOOG_CHECK=no
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6083 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6084 fi
6085
6086 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6087 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6088
6089
6090
6091
6092
6093 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6094 _cloog_saved_CFLAGS=$CFLAGS
6095 _cloog_saved_LDFLAGS=$LDFLAGS
6096
6097 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6098 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6099
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6101 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include "cloog/version.h"
6105 int
6106 main ()
6107 {
6108 #if CLOOG_VERSION_MAJOR != 0 \
6109 || CLOOG_VERSION_MINOR != 17 \
6110 || CLOOG_VERSION_REVISION < 0
6111 choke me
6112 #endif
6113 ;
6114 return 0;
6115 }
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"; then :
6118 gcc_cv_cloog=yes
6119 else
6120 gcc_cv_cloog=no
6121 fi
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6124 $as_echo "$gcc_cv_cloog" >&6; }
6125
6126 CFLAGS=$_cloog_saved_CFLAGS
6127 LDFLAGS=$_cloog_saved_LDFLAGS
6128 fi
6129
6130
6131 if test "${gcc_cv_cloog}" = no ; then
6132
6133
6134
6135 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6136 _cloog_saved_CFLAGS=$CFLAGS
6137 _cloog_saved_LDFLAGS=$LDFLAGS
6138
6139 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6140 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6143 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 #include "cloog/version.h"
6147 int
6148 main ()
6149 {
6150 #if CLOOG_VERSION_MAJOR != 0 \
6151 || CLOOG_VERSION_MINOR != 18 \
6152 || CLOOG_VERSION_REVISION < 0
6153 choke me
6154 #endif
6155 ;
6156 return 0;
6157 }
6158 _ACEOF
6159 if ac_fn_c_try_compile "$LINENO"; then :
6160 gcc_cv_cloog=yes
6161 else
6162 gcc_cv_cloog=no
6163 fi
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6166 $as_echo "$gcc_cv_cloog" >&6; }
6167
6168 CFLAGS=$_cloog_saved_CFLAGS
6169 LDFLAGS=$_cloog_saved_LDFLAGS
6170 fi
6171
6172
6173 fi
6174
6175
6176
6177
6178
6179 if test "x${with_cloog}" = xno; then
6180 graphite_requested=no
6181 elif test "x${with_cloog}" != x \
6182 || test "x${with_cloog_include}" != x \
6183 || test "x${with_cloog_lib}" != x ; then
6184 graphite_requested=yes
6185 else
6186 graphite_requested=no
6187 fi
6188
6189
6190
6191 if test "${gcc_cv_cloog}" = no ; then
6192 clooglibs=
6193 clooginc=
6194 fi
6195
6196 if test "${graphite_requested}" = yes \
6197 && test "x${clooglibs}" = x \
6198 && test "x${clooginc}" = x ; then
6199
6200 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6201 fi
6202
6203
6204 fi
6205 fi
6206
6207 # If either the ISL or the CLooG check failed, disable builds of in-tree
6208 # variants of both
6209 if test "x$with_isl" = xno ||
6210 test "x$with_cloog" = xno ||
6211 test "x$gcc_cv_cloog" = xno ||
6212 test "x$gcc_cv_isl" = xno; then
6213 noconfigdirs="$noconfigdirs cloog isl"
6214 islinc=
6215 clooginc=
6216 clooglibs=
6217 fi
6218
6219
6220
6221
6222
6223
6224 # Check for LTO support.
6225 # Check whether --enable-lto was given.
6226 if test "${enable_lto+set}" = set; then :
6227 enableval=$enable_lto; enable_lto=$enableval
6228 else
6229 enable_lto=yes; default_enable_lto=yes
6230 fi
6231
6232
6233
6234
6235
6236 target_elf=no
6237 case $target in
6238 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6239 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6240 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6241 target_elf=no
6242 ;;
6243 *)
6244 target_elf=yes
6245 ;;
6246 esac
6247
6248 if test $target_elf = yes; then :
6249 # ELF platforms build the lto-plugin always.
6250 build_lto_plugin=yes
6251
6252 else
6253 if test x"$default_enable_lto" = x"yes" ; then
6254 case $target in
6255 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6256 # On other non-ELF platforms, LTO has yet to be validated.
6257 *) enable_lto=no ;;
6258 esac
6259 else
6260 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6261 # It would also be nice to check the binutils support, but we don't
6262 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6263 # warn during gcc/ subconfigure; unless you're bootstrapping with
6264 # -flto it won't be needed until after installation anyway.
6265 case $target in
6266 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6267 *) if test x"$enable_lto" = x"yes"; then
6268 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6269 fi
6270 ;;
6271 esac
6272 fi
6273 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6274 # Build it unless LTO was explicitly disabled.
6275 case $target in
6276 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6277 *) ;;
6278 esac
6279
6280 fi
6281
6282
6283
6284 # By default, C and C++ are the only stage 1 languages.
6285 stage1_languages=,c,
6286
6287 # Target libraries that we bootstrap.
6288 bootstrap_target_libs=,target-libgcc,
6289
6290 # Figure out what language subdirectories are present.
6291 # Look if the user specified --enable-languages="..."; if not, use
6292 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6293 # go away some day.
6294 # NB: embedded tabs in this IF block -- do not untabify
6295 if test -d ${srcdir}/gcc; then
6296 if test x"${enable_languages+set}" != xset; then
6297 if test x"${LANGUAGES+set}" = xset; then
6298 enable_languages="${LANGUAGES}"
6299 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6300 else
6301 enable_languages=all
6302 fi
6303 else
6304 if test x"${enable_languages}" = x ||
6305 test x"${enable_languages}" = xyes;
6306 then
6307 echo configure.in: --enable-languages needs at least one language argument 1>&2
6308 exit 1
6309 fi
6310 fi
6311 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6312
6313 # 'f95' is the old name for the 'fortran' language. We issue a warning
6314 # and make the substitution.
6315 case ,${enable_languages}, in
6316 *,f95,*)
6317 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6318 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6319 ;;
6320 esac
6321
6322 # If bootstrapping, C++ must be enabled.
6323 case ",$enable_languages,:$enable_bootstrap" in
6324 *,c++,*:*) ;;
6325 *:yes)
6326 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6327 enable_languages="${enable_languages},c++"
6328 else
6329 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6330 fi
6331 ;;
6332 esac
6333
6334 # First scan to see if an enabled language requires some other language.
6335 # We assume that a given config-lang.in will list all the language
6336 # front ends it requires, even if some are required indirectly.
6337 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6338 case ${lang_frag} in
6339 ..) ;;
6340 # The odd quoting in the next line works around
6341 # an apparent bug in bash 1.12 on linux.
6342 ${srcdir}/gcc/[*]/config-lang.in) ;;
6343 *)
6344 # From the config-lang.in, get $language, $lang_requires, and
6345 # $lang_requires_boot_languages.
6346 language=
6347 lang_requires=
6348 lang_requires_boot_languages=
6349 . ${lang_frag}
6350 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6351 case ,${enable_languages}, in
6352 *,$other,*) ;;
6353 *,all,*) ;;
6354 *,$language,*)
6355 echo " \`$other' language required by \`$language'; enabling" 1>&2
6356 enable_languages="${enable_languages},${other}"
6357 ;;
6358 esac
6359 done
6360 for other in ${lang_requires_boot_languages} ; do
6361 if test "$other" != "c"; then
6362 case ,${enable_stage1_languages}, in
6363 *,$other,*) ;;
6364 *,all,*) ;;
6365 *)
6366 case ,${enable_languages}, in
6367 *,$language,*)
6368 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6369 enable_stage1_languages="$enable_stage1_languages,${other}"
6370 ;;
6371 esac
6372 ;;
6373 esac
6374 fi
6375 done
6376 ;;
6377 esac
6378 done
6379
6380 new_enable_languages=,c,
6381
6382 # If LTO is enabled, add the LTO front end.
6383 extra_host_libiberty_configure_flags=
6384 if test "$enable_lto" = "yes" ; then
6385 case ,${enable_languages}, in
6386 *,lto,*) ;;
6387 *) enable_languages="${enable_languages},lto" ;;
6388 esac
6389 if test "${build_lto_plugin}" = "yes" ; then
6390 configdirs="$configdirs lto-plugin"
6391 extra_host_libiberty_configure_flags=--enable-shared
6392 fi
6393 fi
6394
6395
6396 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6397 potential_languages=,c,
6398
6399 enabled_target_libs=
6400 disabled_target_libs=
6401
6402 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6403 case ${lang_frag} in
6404 ..) ;;
6405 # The odd quoting in the next line works around
6406 # an apparent bug in bash 1.12 on linux.
6407 ${srcdir}/gcc/[*]/config-lang.in) ;;
6408 *)
6409 # From the config-lang.in, get $language, $target_libs,
6410 # $lang_dirs, $boot_language, and $build_by_default
6411 language=
6412 target_libs=
6413 lang_dirs=
6414 subdir_requires=
6415 boot_language=no
6416 build_by_default=yes
6417 . ${lang_frag}
6418 if test x${language} = x; then
6419 echo "${lang_frag} doesn't set \$language." 1>&2
6420 exit 1
6421 fi
6422
6423 if test "$language" = "c++"; then
6424 boot_language=yes
6425 fi
6426
6427 add_this_lang=no
6428 case ,${enable_languages}, in
6429 *,${language},*)
6430 # Language was explicitly selected; include it
6431 # unless it is C, which is enabled by default.
6432 if test "$language" != "c"; then
6433 add_this_lang=yes
6434 fi
6435 ;;
6436 *,all,*)
6437 # 'all' was selected, select it if it is a default language
6438 if test "$language" != "c"; then
6439 add_this_lang=${build_by_default}
6440 fi
6441 ;;
6442 esac
6443
6444 # Disable languages that need other directories if these aren't available.
6445 for i in $subdir_requires; do
6446 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6447 case ,${enable_languages}, in
6448 *,${language},*)
6449 # Specifically requested language; tell them.
6450 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6451 ;;
6452 *)
6453 # Silently disable.
6454 add_this_lang=unsupported
6455 ;;
6456 esac
6457 done
6458
6459 # Disable Ada if no preexisting GNAT is available.
6460 case ,${enable_languages},:${language}:${have_gnat} in
6461 *,${language},*:ada:no)
6462 # Specifically requested language; tell them.
6463 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6464 ;;
6465 *:ada:no)
6466 # Silently disable.
6467 add_this_lang=unsupported
6468 ;;
6469 esac
6470
6471 # Disable a language that is unsupported by the target.
6472 case " $unsupported_languages " in
6473 *" $language "*)
6474 add_this_lang=unsupported
6475 ;;
6476 esac
6477
6478 case $add_this_lang in
6479 unsupported)
6480 # Remove language-dependent dirs.
6481 disabled_target_libs="$disabled_target_libs $target_libs"
6482 noconfigdirs="$noconfigdirs $lang_dirs"
6483 ;;
6484 no)
6485 # Remove language-dependent dirs; still show language as supported.
6486 disabled_target_libs="$disabled_target_libs $target_libs"
6487 noconfigdirs="$noconfigdirs $lang_dirs"
6488 potential_languages="${potential_languages}${language},"
6489 ;;
6490 yes)
6491 new_enable_languages="${new_enable_languages}${language},"
6492 potential_languages="${potential_languages}${language},"
6493 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6494 enabled_target_libs="$enabled_target_libs $target_libs"
6495 case "${boot_language}:,$enable_stage1_languages," in
6496 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6497 # Add to (comma-separated) list of stage 1 languages.
6498 case ",$stage1_languages," in
6499 *,$language,* | ,yes, | ,all,) ;;
6500 *) stage1_languages="${stage1_languages}${language}," ;;
6501 esac
6502 # We need to bootstrap any supporting libraries.
6503 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6504 ;;
6505 esac
6506 ;;
6507 esac
6508 ;;
6509 esac
6510 done
6511
6512 # Add target libraries which are only needed for disabled languages
6513 # to noconfigdirs.
6514 if test -n "$disabled_target_libs"; then
6515 for dir in $disabled_target_libs; do
6516 case " $enabled_target_libs " in
6517 *" ${dir} "*) ;;
6518 *) noconfigdirs="$noconfigdirs $dir" ;;
6519 esac
6520 done
6521 fi
6522
6523 # Check whether --enable-stage1-languages was given.
6524 if test "${enable_stage1_languages+set}" = set; then :
6525 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6526 ,no,|,,)
6527 # Set it to something that will have no effect in the loop below
6528 enable_stage1_languages=c ;;
6529 ,yes,)
6530 enable_stage1_languages=`echo $new_enable_languages | \
6531 sed -e "s/^,//" -e "s/,$//" ` ;;
6532 *,all,*)
6533 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6534 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6535 esac
6536
6537 # Add "good" languages from enable_stage1_languages to stage1_languages,
6538 # while "bad" languages go in missing_languages. Leave no duplicates.
6539 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6540 case $potential_languages in
6541 *,$i,*)
6542 case $stage1_languages in
6543 *,$i,*) ;;
6544 *) stage1_languages="$stage1_languages$i," ;;
6545 esac ;;
6546 *)
6547 case $missing_languages in
6548 *,$i,*) ;;
6549 *) missing_languages="$missing_languages$i," ;;
6550 esac ;;
6551 esac
6552 done
6553 fi
6554
6555
6556 # Remove leading/trailing commas that were added for simplicity
6557 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6558 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6559 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6560 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6561
6562 if test "x$missing_languages" != x; then
6563 as_fn_error "
6564 The following requested languages could not be built: ${missing_languages}
6565 Supported languages are: ${potential_languages}" "$LINENO" 5
6566 fi
6567 if test "x$new_enable_languages" != "x$enable_languages"; then
6568 echo The following languages will be built: ${new_enable_languages}
6569 enable_languages="$new_enable_languages"
6570 fi
6571
6572
6573 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6574 fi
6575
6576 # Handle --disable-<component> generically.
6577 for dir in $configdirs $build_configdirs $target_configdirs ; do
6578 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6579 varname=`echo $dirname | sed -e s/+/_/g`
6580 if eval test x\${enable_${varname}} "=" xno ; then
6581 noconfigdirs="$noconfigdirs $dir"
6582 fi
6583 done
6584
6585 # Check for Boehm's garbage collector
6586 # Check whether --enable-objc-gc was given.
6587 if test "${enable_objc_gc+set}" = set; then :
6588 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6589 *,objc,*:*:yes:*target-boehm-gc*)
6590 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6591 ;;
6592 esac
6593 fi
6594
6595
6596 # Make sure we only build Boehm's garbage collector if required.
6597 case ,${enable_languages},:${enable_objc_gc} in
6598 *,objc,*:yes)
6599 # Keep target-boehm-gc if requested for Objective-C.
6600 ;;
6601 *)
6602 # Otherwise remove target-boehm-gc depending on target-libjava.
6603 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6604 noconfigdirs="$noconfigdirs target-boehm-gc"
6605 fi
6606 ;;
6607 esac
6608
6609 # Disable libitm, libsanitizer, libvtv if we're not building C++
6610 case ,${enable_languages}, in
6611 *,c++,*) ;;
6612 *)
6613 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
6614 ;;
6615 esac
6616
6617 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6618 # $build_configdirs and $target_configdirs.
6619 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6620
6621 notsupp=""
6622 for dir in . $skipdirs $noconfigdirs ; do
6623 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6624 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6625 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6626 if test -r $srcdir/$dirname/configure ; then
6627 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6628 true
6629 else
6630 notsupp="$notsupp $dir"
6631 fi
6632 fi
6633 fi
6634 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6635 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6636 if test -r $srcdir/$dirname/configure ; then
6637 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6638 true
6639 else
6640 notsupp="$notsupp $dir"
6641 fi
6642 fi
6643 fi
6644 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6645 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6646 if test -r $srcdir/$dirname/configure ; then
6647 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6648 true
6649 else
6650 notsupp="$notsupp $dir"
6651 fi
6652 fi
6653 fi
6654 done
6655
6656 # Quietly strip out all directories which aren't configurable in this tree.
6657 # This relies on all configurable subdirectories being autoconfiscated, which
6658 # is now the case.
6659 build_configdirs_all="$build_configdirs"
6660 build_configdirs=
6661 for i in ${build_configdirs_all} ; do
6662 j=`echo $i | sed -e s/build-//g`
6663 if test -f ${srcdir}/$j/configure ; then
6664 build_configdirs="${build_configdirs} $i"
6665 fi
6666 done
6667
6668 configdirs_all="$configdirs"
6669 configdirs=
6670 for i in ${configdirs_all} ; do
6671 if test -f ${srcdir}/$i/configure ; then
6672 configdirs="${configdirs} $i"
6673 fi
6674 done
6675
6676 target_configdirs_all="$target_configdirs"
6677 target_configdirs=
6678 for i in ${target_configdirs_all} ; do
6679 j=`echo $i | sed -e s/target-//g`
6680 if test -f ${srcdir}/$j/configure ; then
6681 target_configdirs="${target_configdirs} $i"
6682 fi
6683 done
6684
6685 # Produce a warning message for the subdirs we can't configure.
6686 # This isn't especially interesting in the Cygnus tree, but in the individual
6687 # FSF releases, it's important to let people know when their machine isn't
6688 # supported by the one or two programs in a package.
6689
6690 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6691 # If $appdirs is non-empty, at least one of those directories must still
6692 # be configured, or we error out. (E.g., if the gas release supports a
6693 # specified target in some subdirs but not the gas subdir, we shouldn't
6694 # pretend that all is well.)
6695 if test -n "$appdirs" ; then
6696 for dir in $appdirs ; do
6697 if test -r $dir/Makefile.in ; then
6698 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6699 appdirs=""
6700 break
6701 fi
6702 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6703 appdirs=""
6704 break
6705 fi
6706 fi
6707 done
6708 if test -n "$appdirs" ; then
6709 echo "*** This configuration is not supported by this package." 1>&2
6710 exit 1
6711 fi
6712 fi
6713 # Okay, some application will build, or we don't care to check. Still
6714 # notify of subdirs not getting built.
6715 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6716 echo " ${notsupp}" 1>&2
6717 echo " (Any other directories should still work fine.)" 1>&2
6718 fi
6719
6720 case "$host" in
6721 *msdosdjgpp*)
6722 enable_gdbtk=no ;;
6723 esac
6724
6725 # To find our prefix, in gcc_cv_tool_prefix.
6726
6727 # The user is always right.
6728 if test "${PATH_SEPARATOR+set}" != set; then
6729 echo "#! /bin/sh" >conf$$.sh
6730 echo "exit 0" >>conf$$.sh
6731 chmod +x conf$$.sh
6732 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6733 PATH_SEPARATOR=';'
6734 else
6735 PATH_SEPARATOR=:
6736 fi
6737 rm -f conf$$.sh
6738 fi
6739
6740
6741
6742 if test "x$exec_prefix" = xNONE; then
6743 if test "x$prefix" = xNONE; then
6744 gcc_cv_tool_prefix=$ac_default_prefix
6745 else
6746 gcc_cv_tool_prefix=$prefix
6747 fi
6748 else
6749 gcc_cv_tool_prefix=$exec_prefix
6750 fi
6751
6752 # If there is no compiler in the tree, use the PATH only. In any
6753 # case, if there is no compiler in the tree nobody should use
6754 # AS_FOR_TARGET and LD_FOR_TARGET.
6755 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6756 gcc_version=`cat $srcdir/gcc/BASE-VER`
6757 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6758 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6759 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6760 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6761 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6762 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6763 else
6764 gcc_cv_tool_dirs=
6765 fi
6766
6767 if test x$build = x$target && test -n "$md_exec_prefix"; then
6768 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6769 fi
6770
6771
6772
6773 copy_dirs=
6774
6775
6776 # Check whether --with-build-sysroot was given.
6777 if test "${with_build_sysroot+set}" = set; then :
6778 withval=$with_build_sysroot; if test x"$withval" != x ; then
6779 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6780 fi
6781 else
6782 SYSROOT_CFLAGS_FOR_TARGET=
6783 fi
6784
6785
6786
6787
6788 # Check whether --with-debug-prefix-map was given.
6789 if test "${with_debug_prefix_map+set}" = set; then :
6790 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6791 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6792 for debug_map in $withval; do
6793 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6794 done
6795 fi
6796 else
6797 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6798 fi
6799
6800
6801
6802 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6803 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6804 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6805 # We want to ensure that TARGET libraries (which we know are built with
6806 # gcc) are built with "-O2 -g", so include those options when setting
6807 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6808 if test "x$CFLAGS_FOR_TARGET" = x; then
6809 CFLAGS_FOR_TARGET=$CFLAGS
6810 case " $CFLAGS " in
6811 *" -O2 "*) ;;
6812 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6813 esac
6814 case " $CFLAGS " in
6815 *" -g "* | *" -g3 "*) ;;
6816 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6817 esac
6818 fi
6819
6820
6821 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6822 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6823 case " $CXXFLAGS " in
6824 *" -O2 "*) ;;
6825 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6826 esac
6827 case " $CXXFLAGS " in
6828 *" -g "* | *" -g3 "*) ;;
6829 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6830 esac
6831 fi
6832
6833
6834
6835
6836 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6837 # the named directory are copied to $(tooldir)/sys-include.
6838 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6839 if test x${is_cross_compiler} = xno ; then
6840 echo 1>&2 '***' --with-headers is only supported when cross compiling
6841 exit 1
6842 fi
6843 if test x"${with_headers}" != xyes ; then
6844 x=${gcc_cv_tool_prefix}
6845 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6846 fi
6847 fi
6848
6849 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6850 # the name directories are copied to $(tooldir)/lib. Multiple directories
6851 # are permitted.
6852 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6853 if test x${is_cross_compiler} = xno ; then
6854 echo 1>&2 '***' --with-libs is only supported when cross compiling
6855 exit 1
6856 fi
6857 if test x"${with_libs}" != xyes ; then
6858 # Copy the libraries in reverse order, so that files in the first named
6859 # library override files in subsequent libraries.
6860 x=${gcc_cv_tool_prefix}
6861 for l in ${with_libs}; do
6862 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6863 done
6864 fi
6865 fi
6866
6867 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6868 #
6869 # This is done by determining whether or not the appropriate directory
6870 # is available, and by checking whether or not specific configurations
6871 # have requested that this magic not happen.
6872 #
6873 # The command line options always override the explicit settings in
6874 # configure.in, and the settings in configure.in override this magic.
6875 #
6876 # If the default for a toolchain is to use GNU as and ld, and you don't
6877 # want to do that, then you should use the --without-gnu-as and
6878 # --without-gnu-ld options for the configure script. Similarly, if
6879 # the default is to use the included zlib and you don't want to do that,
6880 # you should use the --with-system-zlib option for the configure script.
6881
6882 if test x${use_gnu_as} = x &&
6883 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6884 with_gnu_as=yes
6885 extra_host_args="$extra_host_args --with-gnu-as"
6886 fi
6887
6888 if test x${use_gnu_ld} = x &&
6889 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6890 with_gnu_ld=yes
6891 extra_host_args="$extra_host_args --with-gnu-ld"
6892 fi
6893
6894 if test x${use_included_zlib} = x &&
6895 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6896 :
6897 else
6898 with_system_zlib=yes
6899 extra_host_args="$extra_host_args --with-system-zlib"
6900 fi
6901
6902 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6903 # can detect this case.
6904
6905 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6906 with_newlib=yes
6907 extra_host_args="$extra_host_args --with-newlib"
6908 fi
6909
6910 # Handle ${copy_dirs}
6911 set fnord ${copy_dirs}
6912 shift
6913 while test $# != 0 ; do
6914 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6915 :
6916 else
6917 echo Copying $1 to $2
6918
6919 # Use the install script to create the directory and all required
6920 # parent directories.
6921 if test -d $2 ; then
6922 :
6923 else
6924 echo >config.temp
6925 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6926 fi
6927
6928 # Copy the directory, assuming we have tar.
6929 # FIXME: Should we use B in the second tar? Not all systems support it.
6930 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6931
6932 # It is the responsibility of the user to correctly adjust all
6933 # symlinks. If somebody can figure out how to handle them correctly
6934 # here, feel free to add the code.
6935
6936 echo $1 > $2/COPIED
6937 fi
6938 shift; shift
6939 done
6940
6941 # Determine a target-dependent exec_prefix that the installed
6942 # gcc will search in. Keep this list sorted by triplet, with
6943 # the *-*-osname triplets last.
6944 md_exec_prefix=
6945 case "${target}" in
6946 i[34567]86-pc-msdosdjgpp*)
6947 md_exec_prefix=/dev/env/DJDIR/bin
6948 ;;
6949 *-*-hpux* | \
6950 *-*-nto-qnx* | \
6951 *-*-solaris2*)
6952 md_exec_prefix=/usr/ccs/bin
6953 ;;
6954 esac
6955
6956 extra_arflags_for_target=
6957 extra_nmflags_for_target=
6958 extra_ranlibflags_for_target=
6959 target_makefile_frag=/dev/null
6960 case "${target}" in
6961 spu-*-*)
6962 target_makefile_frag="config/mt-spu"
6963 ;;
6964 mips*-sde-elf* | mips*-mti-elf*)
6965 target_makefile_frag="config/mt-sde"
6966 ;;
6967 mipsisa*-*-elfoabi*)
6968 target_makefile_frag="config/mt-mips-elfoabi"
6969 ;;
6970 mips*-*-*linux* | mips*-*-gnu*)
6971 target_makefile_frag="config/mt-mips-gnu"
6972 ;;
6973 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6974 target_makefile_frag="config/mt-gnu"
6975 ;;
6976 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6977 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6978 # commands to handle both 32-bit and 64-bit objects. These flags are
6979 # harmless if we're using GNU nm or ar.
6980 extra_arflags_for_target=" -X32_64"
6981 extra_nmflags_for_target=" -B -X32_64"
6982 ;;
6983 esac
6984
6985 alphaieee_frag=/dev/null
6986 case $target in
6987 alpha*-*-*)
6988 # This just makes sure to use the -mieee option to build target libs.
6989 # This should probably be set individually by each library.
6990 alphaieee_frag="config/mt-alphaieee"
6991 ;;
6992 esac
6993
6994 # If --enable-target-optspace always use -Os instead of -O2 to build
6995 # the target libraries, similarly if it is not specified, use -Os
6996 # on selected platforms.
6997 ospace_frag=/dev/null
6998 case "${enable_target_optspace}:${target}" in
6999 yes:*)
7000 ospace_frag="config/mt-ospace"
7001 ;;
7002 :d30v-*)
7003 ospace_frag="config/mt-d30v"
7004 ;;
7005 :m32r-* | :d10v-* | :fr30-*)
7006 ospace_frag="config/mt-ospace"
7007 ;;
7008 no:* | :*)
7009 ;;
7010 *)
7011 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7012 ;;
7013 esac
7014
7015 # Some systems (e.g., one of the i386-aix systems the gas testers are
7016 # using) don't handle "\$" correctly, so don't use it here.
7017 tooldir='${exec_prefix}'/${target_noncanonical}
7018 build_tooldir=${tooldir}
7019
7020 # Create a .gdbinit file which runs the one in srcdir
7021 # and tells GDB to look there for source files.
7022
7023 if test -r ${srcdir}/.gdbinit ; then
7024 case ${srcdir} in
7025 .) ;;
7026 *) cat > ./.gdbinit <<EOF
7027 # ${NO_EDIT}
7028 dir ${srcdir}
7029 dir .
7030 source ${srcdir}/.gdbinit
7031 EOF
7032 ;;
7033 esac
7034 fi
7035
7036 # Make sure that the compiler is able to generate an executable. If it
7037 # can't, we are probably in trouble. We don't care whether we can run the
7038 # executable--we might be using a cross compiler--we only care whether it
7039 # can be created. At this point the main configure script has set CC.
7040 we_are_ok=no
7041 echo "int main () { return 0; }" > conftest.c
7042 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7043 if test $? = 0 ; then
7044 if test -s conftest || test -s conftest.exe ; then
7045 we_are_ok=yes
7046 fi
7047 fi
7048 case $we_are_ok in
7049 no)
7050 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7051 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7052 rm -f conftest*
7053 exit 1
7054 ;;
7055 esac
7056 rm -f conftest*
7057
7058 # Decide which environment variable is used to find dynamic libraries.
7059 case "${host}" in
7060 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7061 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7062 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7063 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7064 esac
7065
7066 # On systems where the dynamic library environment variable is PATH,
7067 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7068 # built executables to PATH.
7069 if test "$RPATH_ENVVAR" = PATH; then
7070 GCC_SHLIB_SUBDIR=/shlib
7071 else
7072 GCC_SHLIB_SUBDIR=
7073 fi
7074
7075 # Record target_configdirs and the configure arguments for target and
7076 # build configuration in Makefile.
7077 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7078 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7079
7080 # If we are building libgomp, bootstrap it.
7081 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7082 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7083 fi
7084
7085 # If we are building libsanitizer, bootstrap it.
7086 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7087 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7088 fi
7089
7090 # If we are building libvtv, bootstrap it.
7091 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then
7092 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7093 fi
7094
7095 # Determine whether gdb needs tk/tcl or not.
7096 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7097 # and in that case we want gdb to be built without tk. Ugh!
7098 # In fact I believe gdb is the *only* package directly dependent on tk,
7099 # so we should be able to put the 'maybe's in unconditionally and
7100 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7101 # 100% sure that that's safe though.
7102
7103 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7104 case "$enable_gdbtk" in
7105 no)
7106 GDB_TK="" ;;
7107 yes)
7108 GDB_TK="${gdb_tk}" ;;
7109 *)
7110 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7111 # distro. Eventually someone will fix this and move Insight, nee
7112 # gdbtk to a separate directory.
7113 if test -d ${srcdir}/gdb/gdbtk ; then
7114 GDB_TK="${gdb_tk}"
7115 else
7116 GDB_TK=""
7117 fi
7118 ;;
7119 esac
7120 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7121 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7122
7123 # Strip out unwanted targets.
7124
7125 # While at that, we remove Makefiles if we were started for recursive
7126 # configuration, so that the top-level Makefile reconfigures them,
7127 # like we used to do when configure itself was recursive.
7128
7129 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7130 # but now we're fixing up the Makefile ourselves with the additional
7131 # commands passed to AC_CONFIG_FILES. Use separate variables
7132 # extrasub-{build,host,target} not because there is any reason to split
7133 # the substitutions up that way, but only to remain below the limit of
7134 # 99 commands in a script, for HP-UX sed.
7135 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7136
7137 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7138 yes:yes:*\ gold\ *:*,c++,*) ;;
7139 yes:yes:*\ gold\ *:*)
7140 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7141 ;;
7142 esac
7143
7144 # Adjust the toplevel makefile according to whether bootstrap was selected.
7145 case $enable_bootstrap in
7146 yes)
7147 bootstrap_suffix=bootstrap
7148 BUILD_CONFIG=bootstrap-debug
7149 ;;
7150 no)
7151 bootstrap_suffix=no-bootstrap
7152 BUILD_CONFIG=
7153 ;;
7154 esac
7155
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7157 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7158
7159
7160 # Check whether --with-build-config was given.
7161 if test "${with_build_config+set}" = set; then :
7162 withval=$with_build_config; case $with_build_config in
7163 yes) with_build_config= ;;
7164 no) with_build_config= BUILD_CONFIG= ;;
7165 esac
7166 fi
7167
7168
7169 if test "x${with_build_config}" != x; then
7170 BUILD_CONFIG=$with_build_config
7171 else
7172 case $BUILD_CONFIG in
7173 bootstrap-debug)
7174 if echo "int f (void) { return 0; }" > conftest.c &&
7175 ${CC} -c conftest.c &&
7176 mv conftest.o conftest.o.g0 &&
7177 ${CC} -c -g conftest.c &&
7178 mv conftest.o conftest.o.g &&
7179 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7180 :
7181 else
7182 BUILD_CONFIG=
7183 fi
7184 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7185 ;;
7186 esac
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7189 $as_echo "$BUILD_CONFIG" >&6; }
7190
7191
7192 extrasub_build=
7193 for module in ${build_configdirs} ; do
7194 if test -z "${no_recursion}" \
7195 && test -f ${build_subdir}/${module}/Makefile; then
7196 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7197 rm -f ${build_subdir}/${module}/Makefile
7198 fi
7199 extrasub_build="$extrasub_build
7200 /^@if build-$module\$/d
7201 /^@endif build-$module\$/d
7202 /^@if build-$module-$bootstrap_suffix\$/d
7203 /^@endif build-$module-$bootstrap_suffix\$/d"
7204 done
7205 extrasub_host=
7206 for module in ${configdirs} ; do
7207 if test -z "${no_recursion}"; then
7208 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7209 if test -f ${file}; then
7210 echo 1>&2 "*** removing ${file} to force reconfigure"
7211 rm -f ${file}
7212 fi
7213 done
7214 fi
7215 extrasub_host="$extrasub_host
7216 /^@if $module\$/d
7217 /^@endif $module\$/d
7218 /^@if $module-$bootstrap_suffix\$/d
7219 /^@endif $module-$bootstrap_suffix\$/d"
7220 done
7221 extrasub_target=
7222 for module in ${target_configdirs} ; do
7223 if test -z "${no_recursion}" \
7224 && test -f ${target_subdir}/${module}/Makefile; then
7225 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7226 rm -f ${target_subdir}/${module}/Makefile
7227 fi
7228
7229 # We only bootstrap target libraries listed in bootstrap_target_libs.
7230 case $bootstrap_target_libs in
7231 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7232 *) target_bootstrap_suffix=no-bootstrap ;;
7233 esac
7234
7235 extrasub_target="$extrasub_target
7236 /^@if target-$module\$/d
7237 /^@endif target-$module\$/d
7238 /^@if target-$module-$target_bootstrap_suffix\$/d
7239 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7240 done
7241
7242 # Do the final fixup along with target modules.
7243 extrasub_target="$extrasub_target
7244 /^@if /,/^@endif /d"
7245
7246 # Create the serialization dependencies. This uses a temporary file.
7247
7248 # Check whether --enable-serial-configure was given.
7249 if test "${enable_serial_configure+set}" = set; then :
7250 enableval=$enable_serial_configure;
7251 fi
7252
7253
7254 case ${enable_serial_configure} in
7255 yes)
7256 enable_serial_build_configure=yes
7257 enable_serial_host_configure=yes
7258 enable_serial_target_configure=yes
7259 ;;
7260 esac
7261
7262 # These force 'configure's to be done one at a time, to avoid problems
7263 # with contention over a shared config.cache.
7264 rm -f serdep.tmp
7265 echo '# serdep.tmp' > serdep.tmp
7266 olditem=
7267 test "x${enable_serial_build_configure}" = xyes &&
7268 for item in ${build_configdirs} ; do
7269 case ${olditem} in
7270 "") ;;
7271 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7272 esac
7273 olditem=${item}
7274 done
7275 olditem=
7276 test "x${enable_serial_host_configure}" = xyes &&
7277 for item in ${configdirs} ; do
7278 case ${olditem} in
7279 "") ;;
7280 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7281 esac
7282 olditem=${item}
7283 done
7284 olditem=
7285 test "x${enable_serial_target_configure}" = xyes &&
7286 for item in ${target_configdirs} ; do
7287 case ${olditem} in
7288 "") ;;
7289 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7290 esac
7291 olditem=${item}
7292 done
7293 serialization_dependencies=serdep.tmp
7294
7295
7296 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7297 # target, nonopt, and variable assignments. These are the ones we
7298 # might not want to pass down to subconfigures. The exception being
7299 # --cache-file=/dev/null, which is used to turn off the use of cache
7300 # files altogether, and which should be passed on to subconfigures.
7301 # Also strip program-prefix, program-suffix, and program-transform-name,
7302 # so that we can pass down a consistent program-transform-name.
7303 baseargs=
7304 tbaseargs=
7305 keep_next=no
7306 skip_next=no
7307 eval "set -- $ac_configure_args"
7308 for ac_arg
7309 do
7310 if test X"$skip_next" = X"yes"; then
7311 skip_next=no
7312 continue
7313 fi
7314 if test X"$keep_next" = X"yes"; then
7315 case $ac_arg in
7316 *\'*)
7317 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7318 esac
7319 baseargs="$baseargs '$ac_arg'"
7320 tbaseargs="$tbaseargs '$ac_arg'"
7321 keep_next=no
7322 continue
7323 fi
7324
7325 # Handle separated arguments. Based on the logic generated by
7326 # autoconf 2.59.
7327 case $ac_arg in
7328 *=* | --config-cache | -C | -disable-* | --disable-* \
7329 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7330 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7331 | -with-* | --with-* | -without-* | --without-* | --x)
7332 separate_arg=no
7333 ;;
7334 -*)
7335 separate_arg=yes
7336 ;;
7337 *)
7338 separate_arg=no
7339 ;;
7340 esac
7341
7342 skip_targ=no
7343 case $ac_arg in
7344
7345 --with-* | --without-*)
7346 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7347
7348 case $libopt in
7349 *[-_]include)
7350 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7351 ;;
7352 *[-_]lib)
7353 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7354 ;;
7355 *)
7356 lib=$libopt
7357 ;;
7358 esac
7359
7360
7361 case $lib in
7362 mpc | mpfr | gmp | cloog)
7363 # If we're processing --with-$lib, --with-$lib-include or
7364 # --with-$lib-lib, for one of the libs above, and target is
7365 # different from host, don't pass the current argument to any
7366 # target library's configure.
7367 if test x$is_cross_compiler = xyes; then
7368 skip_targ=yes
7369 fi
7370 ;;
7371 esac
7372 ;;
7373 esac
7374
7375 case "$ac_arg" in
7376 --cache-file=/dev/null | \
7377 -cache-file=/dev/null )
7378 # Handled here to avoid the test to skip args below.
7379 baseargs="$baseargs '$ac_arg'"
7380 tbaseargs="$tbaseargs '$ac_arg'"
7381 # Assert: $separate_arg should always be no.
7382 keep_next=$separate_arg
7383 ;;
7384 --no*)
7385 continue
7386 ;;
7387 --c* | \
7388 --sr* | \
7389 --ho* | \
7390 --bu* | \
7391 --t* | \
7392 --program-* | \
7393 -cache_file* | \
7394 -srcdir* | \
7395 -host* | \
7396 -build* | \
7397 -target* | \
7398 -program-prefix* | \
7399 -program-suffix* | \
7400 -program-transform-name* )
7401 skip_next=$separate_arg
7402 continue
7403 ;;
7404 -*)
7405 # An option. Add it.
7406 case $ac_arg in
7407 *\'*)
7408 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7409 esac
7410 baseargs="$baseargs '$ac_arg'"
7411 if test X"$skip_targ" = Xno; then
7412 tbaseargs="$tbaseargs '$ac_arg'"
7413 fi
7414 keep_next=$separate_arg
7415 ;;
7416 *)
7417 # Either a variable assignment, or a nonopt (triplet). Don't
7418 # pass it down; let the Makefile handle this.
7419 continue
7420 ;;
7421 esac
7422 done
7423 # Remove the initial space we just introduced and, as these will be
7424 # expanded by make, quote '$'.
7425 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7426
7427 # Add in --program-transform-name, after --program-prefix and
7428 # --program-suffix have been applied to it. Autoconf has already
7429 # doubled dollar signs and backslashes in program_transform_name; we want
7430 # the backslashes un-doubled, and then the entire thing wrapped in single
7431 # quotes, because this will be expanded first by make and then by the shell.
7432 # Also, because we want to override the logic in subdir configure scripts to
7433 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7434 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7435 ${program_transform_name}
7436 EOF_SED
7437 gcc_transform_name=`cat conftestsed.out`
7438 rm -f conftestsed.out
7439 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7440 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7441 if test "$silent" = yes; then
7442 baseargs="$baseargs --silent"
7443 tbaseargs="$tbaseargs --silent"
7444 fi
7445 baseargs="$baseargs --disable-option-checking"
7446 tbaseargs="$tbaseargs --disable-option-checking"
7447
7448 # Record and document user additions to sub configure arguments.
7449
7450
7451
7452
7453 # For the build-side libraries, we just need to pretend we're native,
7454 # and not use the same cache file. Multilibs are neither needed nor
7455 # desired.
7456 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7457
7458 # For host modules, accept cache file option, or specification as blank.
7459 case "${cache_file}" in
7460 "") # empty
7461 cache_file_option="" ;;
7462 /* | [A-Za-z]:[\\/]* ) # absolute path
7463 cache_file_option="--cache-file=${cache_file}" ;;
7464 *) # relative path
7465 cache_file_option="--cache-file=../${cache_file}" ;;
7466 esac
7467
7468 # Host dirs don't like to share a cache file either, horribly enough.
7469 # This seems to be due to autoconf 2.5x stupidity.
7470 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7471
7472 target_configargs="$target_configargs ${tbaseargs}"
7473
7474 # Passing a --with-cross-host argument lets the target libraries know
7475 # whether they are being built with a cross-compiler or being built
7476 # native. However, it would be better to use other mechanisms to make the
7477 # sorts of decisions they want to make on this basis. Please consider
7478 # this option to be deprecated. FIXME.
7479 if test x${is_cross_compiler} = xyes ; then
7480 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7481 fi
7482
7483 # Default to --enable-multilib.
7484 if test x${enable_multilib} = x ; then
7485 target_configargs="--enable-multilib ${target_configargs}"
7486 fi
7487
7488 # Pass --with-newlib if appropriate. Note that target_configdirs has
7489 # changed from the earlier setting of with_newlib.
7490 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7491 target_configargs="--with-newlib ${target_configargs}"
7492 fi
7493
7494 # Different target subdirs use different values of certain variables
7495 # (notably CXX). Worse, multilibs use *lots* of different values.
7496 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7497 # it doesn't automatically accept command-line overrides of them.
7498 # This means it's not safe for target subdirs to share a cache file,
7499 # which is disgusting, but there you have it. Hopefully this can be
7500 # fixed in future. It's still worthwhile to use a cache file for each
7501 # directory. I think.
7502
7503 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7504 # We need to pass --target, as newer autoconf's requires consistency
7505 # for target_alias and gcc doesn't manage it consistently.
7506 target_configargs="--cache-file=./config.cache ${target_configargs}"
7507
7508 FLAGS_FOR_TARGET=
7509 case " $target_configdirs " in
7510 *" newlib "*)
7511 case " $target_configargs " in
7512 *" --with-newlib "*)
7513 case "$target" in
7514 *-cygwin*)
7515 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7516 ;;
7517 esac
7518
7519 # If we're not building GCC, don't discard standard headers.
7520 if test -d ${srcdir}/gcc; then
7521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7522
7523 if test "${build}" != "${host}"; then
7524 # On Canadian crosses, CC_FOR_TARGET will have already been set
7525 # by `configure', so we won't have an opportunity to add -Bgcc/
7526 # to it. This is right: we don't want to search that directory
7527 # for binaries, but we want the header files in there, so add
7528 # them explicitly.
7529 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7530
7531 # Someone might think of using the pre-installed headers on
7532 # Canadian crosses, in case the installed compiler is not fully
7533 # compatible with the compiler being built. In this case, it
7534 # would be better to flag an error than risking having
7535 # incompatible object files being constructed. We can't
7536 # guarantee that an error will be flagged, but let's hope the
7537 # compiler will do it, when presented with incompatible header
7538 # files.
7539 fi
7540 fi
7541
7542 case "${target}-${is_cross_compiler}" in
7543 i[3456789]86-*-linux*-no)
7544 # Here host == target, so we don't need to build gcc,
7545 # so we don't want to discard standard headers.
7546 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7547 ;;
7548 *)
7549 # If we're building newlib, use its generic headers last, but search
7550 # for any libc-related directories first (so make it the last -B
7551 # switch).
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7553
7554 # If we're building libgloss, find the startup file, simulator library
7555 # and linker script.
7556 case " $target_configdirs " in
7557 *" libgloss "*)
7558 # Look for startup file, simulator library and maybe linker script.
7559 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7560 # Look for libnosys.a in case the target needs it.
7561 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7562 # Most targets have the linker script in the source directory.
7563 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7564 ;;
7565 esac
7566 ;;
7567 esac
7568 ;;
7569 esac
7570 ;;
7571 esac
7572
7573 case "$target" in
7574 x86_64-*mingw* | *-w64-mingw*)
7575 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7576 # however, use a symlink named 'mingw' in ${prefix} .
7577 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7578 ;;
7579 *-mingw*)
7580 # MinGW can't be handled as Cygwin above since it does not use newlib.
7581 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'
7582 ;;
7583 esac
7584
7585 # Allow the user to override the flags for
7586 # our build compiler if desired.
7587 if test x"${build}" = x"${host}" ; then
7588 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7589 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7590 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7591 fi
7592
7593 # On Canadian crosses, we'll be searching the right directories for
7594 # the previously-installed cross compiler, so don't bother to add
7595 # flags for directories within the install tree of the compiler
7596 # being built; programs in there won't even run.
7597 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7598 # Search for pre-installed headers if nothing else fits.
7599 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7600 fi
7601
7602 if test "x${use_gnu_ld}" = x &&
7603 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7604 # Arrange for us to find uninstalled linker scripts.
7605 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7606 fi
7607
7608 # Search for other target-specific linker scripts and such.
7609 case "${target}" in
7610 mep*)
7611 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7612 ;;
7613 esac
7614
7615 # Makefile fragments.
7616 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7617 do
7618 eval fragval=\$$frag
7619 if test $fragval != /dev/null; then
7620 eval $frag=${srcdir}/$fragval
7621 fi
7622 done
7623
7624
7625
7626
7627
7628 # Miscellanea: directories, flags, etc.
7629
7630
7631
7632
7633
7634
7635
7636
7637 # Build module lists & subconfigure args.
7638
7639
7640
7641 # Host module lists & subconfigure args.
7642
7643
7644
7645
7646 # Target module lists & subconfigure args.
7647
7648
7649
7650 # Build tools.
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668 # Generate default definitions for YACC, M4, LEX and other programs that run
7669 # on the build machine. These are used if the Makefile can't locate these
7670 # programs in objdir.
7671 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7672
7673 for ac_prog in 'bison -y' byacc yacc
7674 do
7675 # Extract the first word of "$ac_prog", so it can be a program name with args.
7676 set dummy $ac_prog; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if test "${ac_cv_prog_YACC+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 if test -n "$YACC"; then
7683 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_prog_YACC="$ac_prog"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 break 2
7695 fi
7696 done
7697 done
7698 IFS=$as_save_IFS
7699
7700 fi
7701 fi
7702 YACC=$ac_cv_prog_YACC
7703 if test -n "$YACC"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7705 $as_echo "$YACC" >&6; }
7706 else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711
7712 test -n "$YACC" && break
7713 done
7714 test -n "$YACC" || YACC="$MISSING bison -y"
7715
7716 case " $build_configdirs " in
7717 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7718 esac
7719
7720 for ac_prog in bison
7721 do
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 $as_echo_n "checking for $ac_word... " >&6; }
7726 if test "${ac_cv_prog_BISON+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 if test -n "$BISON"; then
7730 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_prog_BISON="$ac_prog"
7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7742 fi
7743 done
7744 done
7745 IFS=$as_save_IFS
7746
7747 fi
7748 fi
7749 BISON=$ac_cv_prog_BISON
7750 if test -n "$BISON"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7752 $as_echo "$BISON" >&6; }
7753 else
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755 $as_echo "no" >&6; }
7756 fi
7757
7758
7759 test -n "$BISON" && break
7760 done
7761 test -n "$BISON" || BISON="$MISSING bison"
7762
7763 case " $build_configdirs " in
7764 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7765 esac
7766
7767 for ac_prog in gm4 gnum4 m4
7768 do
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy $ac_prog; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_M4+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 if test -n "$M4"; then
7777 ac_cv_prog_M4="$M4" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_prog_M4="$ac_prog"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 M4=$ac_cv_prog_M4
7797 if test -n "$M4"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7799 $as_echo "$M4" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806 test -n "$M4" && break
7807 done
7808 test -n "$M4" || M4="$MISSING m4"
7809
7810 case " $build_configdirs " in
7811 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7812 esac
7813
7814 for ac_prog in flex lex
7815 do
7816 # Extract the first word of "$ac_prog", so it can be a program name with args.
7817 set dummy $ac_prog; ac_word=$2
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819 $as_echo_n "checking for $ac_word... " >&6; }
7820 if test "${ac_cv_prog_LEX+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 if test -n "$LEX"; then
7824 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7825 else
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7833 ac_cv_prog_LEX="$ac_prog"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 LEX=$ac_cv_prog_LEX
7844 if test -n "$LEX"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7846 $as_echo "$LEX" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 fi
7851
7852
7853 test -n "$LEX" && break
7854 done
7855 test -n "$LEX" || LEX="$MISSING flex"
7856
7857 case " $build_configdirs " in
7858 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7859 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7860 esac
7861
7862 for ac_prog in flex
7863 do
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if test "${ac_cv_prog_FLEX+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 if test -n "$FLEX"; then
7872 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7873 else
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7876 do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_FLEX="$ac_prog"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7884 fi
7885 done
7886 done
7887 IFS=$as_save_IFS
7888
7889 fi
7890 fi
7891 FLEX=$ac_cv_prog_FLEX
7892 if test -n "$FLEX"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7894 $as_echo "$FLEX" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7898 fi
7899
7900
7901 test -n "$FLEX" && break
7902 done
7903 test -n "$FLEX" || FLEX="$MISSING flex"
7904
7905 case " $build_configdirs " in
7906 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7907 esac
7908
7909 for ac_prog in makeinfo
7910 do
7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
7912 set dummy $ac_prog; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 if test -n "$MAKEINFO"; then
7919 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7923 do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_MAKEINFO="$ac_prog"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 MAKEINFO=$ac_cv_prog_MAKEINFO
7939 if test -n "$MAKEINFO"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7941 $as_echo "$MAKEINFO" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 fi
7946
7947
7948 test -n "$MAKEINFO" && break
7949 done
7950 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7951
7952 case " $build_configdirs " in
7953 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7954 *)
7955
7956 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7957 # higher, else we use the "missing" dummy.
7958 if ${MAKEINFO} --version \
7959 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7960 :
7961 else
7962 MAKEINFO="$MISSING makeinfo"
7963 fi
7964 ;;
7965
7966 esac
7967
7968 # FIXME: expect and dejagnu may become build tools?
7969
7970 for ac_prog in expect
7971 do
7972 # Extract the first word of "$ac_prog", so it can be a program name with args.
7973 set dummy $ac_prog; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 if test -n "$EXPECT"; then
7980 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_prog_EXPECT="$ac_prog"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993 done
7994 done
7995 IFS=$as_save_IFS
7996
7997 fi
7998 fi
7999 EXPECT=$ac_cv_prog_EXPECT
8000 if test -n "$EXPECT"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8002 $as_echo "$EXPECT" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007
8008
8009 test -n "$EXPECT" && break
8010 done
8011 test -n "$EXPECT" || EXPECT="expect"
8012
8013 case " $configdirs " in
8014 *" expect "*)
8015 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8016 ;;
8017 esac
8018
8019 for ac_prog in runtest
8020 do
8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
8022 set dummy $ac_prog; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test -n "$RUNTEST"; then
8029 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8038 ac_cv_prog_RUNTEST="$ac_prog"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 RUNTEST=$ac_cv_prog_RUNTEST
8049 if test -n "$RUNTEST"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8051 $as_echo "$RUNTEST" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057
8058 test -n "$RUNTEST" && break
8059 done
8060 test -n "$RUNTEST" || RUNTEST="runtest"
8061
8062 case " $configdirs " in
8063 *" dejagnu "*)
8064 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8065 ;;
8066 esac
8067
8068
8069 # Host tools.
8070 ncn_tool_prefix=
8071 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8072 ncn_target_tool_prefix=
8073 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8074
8075
8076
8077 if test -n "$AR"; then
8078 ac_cv_prog_AR=$AR
8079 elif test -n "$ac_cv_prog_AR"; then
8080 AR=$ac_cv_prog_AR
8081 fi
8082
8083 if test -n "$ac_cv_prog_AR"; then
8084 for ncn_progname in ar; do
8085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8086 set dummy ${ncn_progname}; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if test "${ac_cv_prog_AR+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 if test -n "$AR"; then
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_AR="${ncn_progname}"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 AR=$ac_cv_prog_AR
8113 if test -n "$AR"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8115 $as_echo "$AR" >&6; }
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121
8122 done
8123 fi
8124
8125 for ncn_progname in ar; do
8126 if test -n "$ncn_tool_prefix"; then
8127 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8128 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_prog_AR+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 if test -n "$AR"; then
8135 ac_cv_prog_AR="$AR" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8139 do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8147 fi
8148 done
8149 done
8150 IFS=$as_save_IFS
8151
8152 fi
8153 fi
8154 AR=$ac_cv_prog_AR
8155 if test -n "$AR"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8157 $as_echo "$AR" >&6; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8161 fi
8162
8163
8164 fi
8165 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8167 set dummy ${ncn_progname}; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_prog_AR+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 if test -n "$AR"; then
8174 ac_cv_prog_AR="$AR" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_prog_AR="${ncn_progname}"
8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185 break 2
8186 fi
8187 done
8188 done
8189 IFS=$as_save_IFS
8190
8191 fi
8192 fi
8193 AR=$ac_cv_prog_AR
8194 if test -n "$AR"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8196 $as_echo "$AR" >&6; }
8197 else
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8200 fi
8201
8202
8203 fi
8204 test -n "$ac_cv_prog_AR" && break
8205 done
8206
8207 if test -z "$ac_cv_prog_AR" ; then
8208 set dummy ar
8209 if test $build = $host ; then
8210 AR="$2"
8211 else
8212 AR="${ncn_tool_prefix}$2"
8213 fi
8214 fi
8215
8216
8217
8218 if test -n "$AS"; then
8219 ac_cv_prog_AS=$AS
8220 elif test -n "$ac_cv_prog_AS"; then
8221 AS=$ac_cv_prog_AS
8222 fi
8223
8224 if test -n "$ac_cv_prog_AS"; then
8225 for ncn_progname in as; do
8226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8227 set dummy ${ncn_progname}; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if test "${ac_cv_prog_AS+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 if test -n "$AS"; then
8234 ac_cv_prog_AS="$AS" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_prog_AS="${ncn_progname}"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247 done
8248 done
8249 IFS=$as_save_IFS
8250
8251 fi
8252 fi
8253 AS=$ac_cv_prog_AS
8254 if test -n "$AS"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8256 $as_echo "$AS" >&6; }
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8260 fi
8261
8262
8263 done
8264 fi
8265
8266 for ncn_progname in as; do
8267 if test -n "$ncn_tool_prefix"; then
8268 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8269 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_AS+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 if test -n "$AS"; then
8276 ac_cv_prog_AS="$AS" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289 done
8290 done
8291 IFS=$as_save_IFS
8292
8293 fi
8294 fi
8295 AS=$ac_cv_prog_AS
8296 if test -n "$AS"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8298 $as_echo "$AS" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303
8304
8305 fi
8306 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308 set dummy ${ncn_progname}; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if test "${ac_cv_prog_AS+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 if test -n "$AS"; then
8315 ac_cv_prog_AS="$AS" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_prog_AS="${ncn_progname}"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328 done
8329 done
8330 IFS=$as_save_IFS
8331
8332 fi
8333 fi
8334 AS=$ac_cv_prog_AS
8335 if test -n "$AS"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8337 $as_echo "$AS" >&6; }
8338 else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8341 fi
8342
8343
8344 fi
8345 test -n "$ac_cv_prog_AS" && break
8346 done
8347
8348 if test -z "$ac_cv_prog_AS" ; then
8349 set dummy as
8350 if test $build = $host ; then
8351 AS="$2"
8352 else
8353 AS="${ncn_tool_prefix}$2"
8354 fi
8355 fi
8356
8357
8358
8359 if test -n "$DLLTOOL"; then
8360 ac_cv_prog_DLLTOOL=$DLLTOOL
8361 elif test -n "$ac_cv_prog_DLLTOOL"; then
8362 DLLTOOL=$ac_cv_prog_DLLTOOL
8363 fi
8364
8365 if test -n "$ac_cv_prog_DLLTOOL"; then
8366 for ncn_progname in dlltool; do
8367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8368 set dummy ${ncn_progname}; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 if test -n "$DLLTOOL"; then
8375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_DLLTOOL="${ncn_progname}"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 break 2
8387 fi
8388 done
8389 done
8390 IFS=$as_save_IFS
8391
8392 fi
8393 fi
8394 DLLTOOL=$ac_cv_prog_DLLTOOL
8395 if test -n "$DLLTOOL"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8397 $as_echo "$DLLTOOL" >&6; }
8398 else
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8401 fi
8402
8403
8404 done
8405 fi
8406
8407 for ncn_progname in dlltool; do
8408 if test -n "$ncn_tool_prefix"; then
8409 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8410 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$DLLTOOL"; then
8417 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430 done
8431 done
8432 IFS=$as_save_IFS
8433
8434 fi
8435 fi
8436 DLLTOOL=$ac_cv_prog_DLLTOOL
8437 if test -n "$DLLTOOL"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8439 $as_echo "$DLLTOOL" >&6; }
8440 else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8443 fi
8444
8445
8446 fi
8447 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8449 set dummy ${ncn_progname}; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 if test -n "$DLLTOOL"; then
8456 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8460 do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8465 ac_cv_prog_DLLTOOL="${ncn_progname}"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8468 fi
8469 done
8470 done
8471 IFS=$as_save_IFS
8472
8473 fi
8474 fi
8475 DLLTOOL=$ac_cv_prog_DLLTOOL
8476 if test -n "$DLLTOOL"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8478 $as_echo "$DLLTOOL" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483
8484
8485 fi
8486 test -n "$ac_cv_prog_DLLTOOL" && break
8487 done
8488
8489 if test -z "$ac_cv_prog_DLLTOOL" ; then
8490 set dummy dlltool
8491 if test $build = $host ; then
8492 DLLTOOL="$2"
8493 else
8494 DLLTOOL="${ncn_tool_prefix}$2"
8495 fi
8496 fi
8497
8498
8499
8500 if test -n "$LD"; then
8501 ac_cv_prog_LD=$LD
8502 elif test -n "$ac_cv_prog_LD"; then
8503 LD=$ac_cv_prog_LD
8504 fi
8505
8506 if test -n "$ac_cv_prog_LD"; then
8507 for ncn_progname in ld; do
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509 set dummy ${ncn_progname}; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_prog_LD+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 if test -n "$LD"; then
8516 ac_cv_prog_LD="$LD" # Let the user override the test.
8517 else
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8520 do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_prog_LD="${ncn_progname}"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 break 2
8528 fi
8529 done
8530 done
8531 IFS=$as_save_IFS
8532
8533 fi
8534 fi
8535 LD=$ac_cv_prog_LD
8536 if test -n "$LD"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8538 $as_echo "$LD" >&6; }
8539 else
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543
8544
8545 done
8546 fi
8547
8548 for ncn_progname in ld; do
8549 if test -n "$ncn_tool_prefix"; then
8550 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8551 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_prog_LD+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 if test -n "$LD"; then
8558 ac_cv_prog_LD="$LD" # Let the user override the test.
8559 else
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8570 fi
8571 done
8572 done
8573 IFS=$as_save_IFS
8574
8575 fi
8576 fi
8577 LD=$ac_cv_prog_LD
8578 if test -n "$LD"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8580 $as_echo "$LD" >&6; }
8581 else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584 fi
8585
8586
8587 fi
8588 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8590 set dummy ${ncn_progname}; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if test "${ac_cv_prog_LD+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 if test -n "$LD"; then
8597 ac_cv_prog_LD="$LD" # Let the user override the test.
8598 else
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8601 do
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8606 ac_cv_prog_LD="${ncn_progname}"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8609 fi
8610 done
8611 done
8612 IFS=$as_save_IFS
8613
8614 fi
8615 fi
8616 LD=$ac_cv_prog_LD
8617 if test -n "$LD"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8619 $as_echo "$LD" >&6; }
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8623 fi
8624
8625
8626 fi
8627 test -n "$ac_cv_prog_LD" && break
8628 done
8629
8630 if test -z "$ac_cv_prog_LD" ; then
8631 set dummy ld
8632 if test $build = $host ; then
8633 LD="$2"
8634 else
8635 LD="${ncn_tool_prefix}$2"
8636 fi
8637 fi
8638
8639
8640
8641 if test -n "$LIPO"; then
8642 ac_cv_prog_LIPO=$LIPO
8643 elif test -n "$ac_cv_prog_LIPO"; then
8644 LIPO=$ac_cv_prog_LIPO
8645 fi
8646
8647 if test -n "$ac_cv_prog_LIPO"; then
8648 for ncn_progname in lipo; do
8649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8650 set dummy ${ncn_progname}; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if test "${ac_cv_prog_LIPO+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 if test -n "$LIPO"; then
8657 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_prog_LIPO="${ncn_progname}"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8669 fi
8670 done
8671 done
8672 IFS=$as_save_IFS
8673
8674 fi
8675 fi
8676 LIPO=$ac_cv_prog_LIPO
8677 if test -n "$LIPO"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8679 $as_echo "$LIPO" >&6; }
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683 fi
8684
8685
8686 done
8687 fi
8688
8689 for ncn_progname in lipo; do
8690 if test -n "$ncn_tool_prefix"; then
8691 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8692 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if test "${ac_cv_prog_LIPO+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 if test -n "$LIPO"; then
8699 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8700 else
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8703 do
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8708 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710 break 2
8711 fi
8712 done
8713 done
8714 IFS=$as_save_IFS
8715
8716 fi
8717 fi
8718 LIPO=$ac_cv_prog_LIPO
8719 if test -n "$LIPO"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8721 $as_echo "$LIPO" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8725 fi
8726
8727
8728 fi
8729 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8731 set dummy ${ncn_progname}; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if test "${ac_cv_prog_LIPO+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 if test -n "$LIPO"; then
8738 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747 ac_cv_prog_LIPO="${ncn_progname}"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8750 fi
8751 done
8752 done
8753 IFS=$as_save_IFS
8754
8755 fi
8756 fi
8757 LIPO=$ac_cv_prog_LIPO
8758 if test -n "$LIPO"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8760 $as_echo "$LIPO" >&6; }
8761 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766
8767 fi
8768 test -n "$ac_cv_prog_LIPO" && break
8769 done
8770
8771 if test -z "$ac_cv_prog_LIPO" ; then
8772 set dummy lipo
8773 if test $build = $host ; then
8774 LIPO="$2"
8775 else
8776 LIPO="${ncn_tool_prefix}$2"
8777 fi
8778 fi
8779
8780
8781
8782 if test -n "$NM"; then
8783 ac_cv_prog_NM=$NM
8784 elif test -n "$ac_cv_prog_NM"; then
8785 NM=$ac_cv_prog_NM
8786 fi
8787
8788 if test -n "$ac_cv_prog_NM"; then
8789 for ncn_progname in nm; do
8790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791 set dummy ${ncn_progname}; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if test "${ac_cv_prog_NM+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 if test -n "$NM"; then
8798 ac_cv_prog_NM="$NM" # Let the user override the test.
8799 else
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in $PATH
8802 do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807 ac_cv_prog_NM="${ncn_progname}"
8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811 done
8812 done
8813 IFS=$as_save_IFS
8814
8815 fi
8816 fi
8817 NM=$ac_cv_prog_NM
8818 if test -n "$NM"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8820 $as_echo "$NM" >&6; }
8821 else
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8824 fi
8825
8826
8827 done
8828 fi
8829
8830 for ncn_progname in nm; do
8831 if test -n "$ncn_tool_prefix"; then
8832 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8833 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if test "${ac_cv_prog_NM+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 if test -n "$NM"; then
8840 ac_cv_prog_NM="$NM" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8844 do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8852 fi
8853 done
8854 done
8855 IFS=$as_save_IFS
8856
8857 fi
8858 fi
8859 NM=$ac_cv_prog_NM
8860 if test -n "$NM"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8862 $as_echo "$NM" >&6; }
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868
8869 fi
8870 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8872 set dummy ${ncn_progname}; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if test "${ac_cv_prog_NM+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 if test -n "$NM"; then
8879 ac_cv_prog_NM="$NM" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8883 do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_prog_NM="${ncn_progname}"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8891 fi
8892 done
8893 done
8894 IFS=$as_save_IFS
8895
8896 fi
8897 fi
8898 NM=$ac_cv_prog_NM
8899 if test -n "$NM"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8901 $as_echo "$NM" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8905 fi
8906
8907
8908 fi
8909 test -n "$ac_cv_prog_NM" && break
8910 done
8911
8912 if test -z "$ac_cv_prog_NM" ; then
8913 set dummy nm
8914 if test $build = $host ; then
8915 NM="$2"
8916 else
8917 NM="${ncn_tool_prefix}$2"
8918 fi
8919 fi
8920
8921
8922
8923 if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB=$RANLIB
8925 elif test -n "$ac_cv_prog_RANLIB"; then
8926 RANLIB=$ac_cv_prog_RANLIB
8927 fi
8928
8929 if test -n "$ac_cv_prog_RANLIB"; then
8930 for ncn_progname in ranlib; do
8931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932 set dummy ${ncn_progname}; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 if test -n "$RANLIB"; then
8939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8940 else
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 for as_dir in $PATH
8943 do
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8948 ac_cv_prog_RANLIB="${ncn_progname}"
8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950 break 2
8951 fi
8952 done
8953 done
8954 IFS=$as_save_IFS
8955
8956 fi
8957 fi
8958 RANLIB=$ac_cv_prog_RANLIB
8959 if test -n "$RANLIB"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8961 $as_echo "$RANLIB" >&6; }
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8965 fi
8966
8967
8968 done
8969 fi
8970
8971 for ncn_progname in ranlib; do
8972 if test -n "$ncn_tool_prefix"; then
8973 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8974 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 if test -n "$RANLIB"; then
8981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8982 else
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8985 do
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8993 fi
8994 done
8995 done
8996 IFS=$as_save_IFS
8997
8998 fi
8999 fi
9000 RANLIB=$ac_cv_prog_RANLIB
9001 if test -n "$RANLIB"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9003 $as_echo "$RANLIB" >&6; }
9004 else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9007 fi
9008
9009
9010 fi
9011 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9013 set dummy ${ncn_progname}; ac_word=$2
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015 $as_echo_n "checking for $ac_word... " >&6; }
9016 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 if test -n "$RANLIB"; then
9020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9021 else
9022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9024 do
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9029 ac_cv_prog_RANLIB="${ncn_progname}"
9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031 break 2
9032 fi
9033 done
9034 done
9035 IFS=$as_save_IFS
9036
9037 fi
9038 fi
9039 RANLIB=$ac_cv_prog_RANLIB
9040 if test -n "$RANLIB"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9042 $as_echo "$RANLIB" >&6; }
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9046 fi
9047
9048
9049 fi
9050 test -n "$ac_cv_prog_RANLIB" && break
9051 done
9052
9053 if test -z "$ac_cv_prog_RANLIB" ; then
9054 RANLIB="true"
9055 fi
9056
9057
9058
9059 if test -n "$STRIP"; then
9060 ac_cv_prog_STRIP=$STRIP
9061 elif test -n "$ac_cv_prog_STRIP"; then
9062 STRIP=$ac_cv_prog_STRIP
9063 fi
9064
9065 if test -n "$ac_cv_prog_STRIP"; then
9066 for ncn_progname in strip; do
9067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9068 set dummy ${ncn_progname}; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if test "${ac_cv_prog_STRIP+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$STRIP"; then
9075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9079 do
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_prog_STRIP="${ncn_progname}"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9087 fi
9088 done
9089 done
9090 IFS=$as_save_IFS
9091
9092 fi
9093 fi
9094 STRIP=$ac_cv_prog_STRIP
9095 if test -n "$STRIP"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9097 $as_echo "$STRIP" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 fi
9102
9103
9104 done
9105 fi
9106
9107 for ncn_progname in strip; do
9108 if test -n "$ncn_tool_prefix"; then
9109 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9110 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if test "${ac_cv_prog_STRIP+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 if test -n "$STRIP"; then
9117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9121 do
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9129 fi
9130 done
9131 done
9132 IFS=$as_save_IFS
9133
9134 fi
9135 fi
9136 STRIP=$ac_cv_prog_STRIP
9137 if test -n "$STRIP"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9139 $as_echo "$STRIP" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9143 fi
9144
9145
9146 fi
9147 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9149 set dummy ${ncn_progname}; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_STRIP+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 if test -n "$STRIP"; then
9156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9160 do
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_STRIP="${ncn_progname}"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9168 fi
9169 done
9170 done
9171 IFS=$as_save_IFS
9172
9173 fi
9174 fi
9175 STRIP=$ac_cv_prog_STRIP
9176 if test -n "$STRIP"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9178 $as_echo "$STRIP" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 fi
9183
9184
9185 fi
9186 test -n "$ac_cv_prog_STRIP" && break
9187 done
9188
9189 if test -z "$ac_cv_prog_STRIP" ; then
9190 STRIP="true"
9191 fi
9192
9193
9194
9195 if test -n "$WINDRES"; then
9196 ac_cv_prog_WINDRES=$WINDRES
9197 elif test -n "$ac_cv_prog_WINDRES"; then
9198 WINDRES=$ac_cv_prog_WINDRES
9199 fi
9200
9201 if test -n "$ac_cv_prog_WINDRES"; then
9202 for ncn_progname in windres; do
9203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9204 set dummy ${ncn_progname}; ac_word=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 if test -n "$WINDRES"; then
9211 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9212 else
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 for as_dir in $PATH
9215 do
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9220 ac_cv_prog_WINDRES="${ncn_progname}"
9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 break 2
9223 fi
9224 done
9225 done
9226 IFS=$as_save_IFS
9227
9228 fi
9229 fi
9230 WINDRES=$ac_cv_prog_WINDRES
9231 if test -n "$WINDRES"; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9233 $as_echo "$WINDRES" >&6; }
9234 else
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9237 fi
9238
9239
9240 done
9241 fi
9242
9243 for ncn_progname in windres; do
9244 if test -n "$ncn_tool_prefix"; then
9245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9246 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 if test -n "$WINDRES"; then
9253 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9254 else
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in $PATH
9257 do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9265 fi
9266 done
9267 done
9268 IFS=$as_save_IFS
9269
9270 fi
9271 fi
9272 WINDRES=$ac_cv_prog_WINDRES
9273 if test -n "$WINDRES"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9275 $as_echo "$WINDRES" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9279 fi
9280
9281
9282 fi
9283 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9285 set dummy ${ncn_progname}; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 if test -n "$WINDRES"; then
9292 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9293 else
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9296 do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9301 ac_cv_prog_WINDRES="${ncn_progname}"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9304 fi
9305 done
9306 done
9307 IFS=$as_save_IFS
9308
9309 fi
9310 fi
9311 WINDRES=$ac_cv_prog_WINDRES
9312 if test -n "$WINDRES"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9314 $as_echo "$WINDRES" >&6; }
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9318 fi
9319
9320
9321 fi
9322 test -n "$ac_cv_prog_WINDRES" && break
9323 done
9324
9325 if test -z "$ac_cv_prog_WINDRES" ; then
9326 set dummy windres
9327 if test $build = $host ; then
9328 WINDRES="$2"
9329 else
9330 WINDRES="${ncn_tool_prefix}$2"
9331 fi
9332 fi
9333
9334
9335
9336 if test -n "$WINDMC"; then
9337 ac_cv_prog_WINDMC=$WINDMC
9338 elif test -n "$ac_cv_prog_WINDMC"; then
9339 WINDMC=$ac_cv_prog_WINDMC
9340 fi
9341
9342 if test -n "$ac_cv_prog_WINDMC"; then
9343 for ncn_progname in windmc; do
9344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345 set dummy ${ncn_progname}; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 if test -n "$WINDMC"; then
9352 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9353 else
9354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355 for as_dir in $PATH
9356 do
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9361 ac_cv_prog_WINDMC="${ncn_progname}"
9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9363 break 2
9364 fi
9365 done
9366 done
9367 IFS=$as_save_IFS
9368
9369 fi
9370 fi
9371 WINDMC=$ac_cv_prog_WINDMC
9372 if test -n "$WINDMC"; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9374 $as_echo "$WINDMC" >&6; }
9375 else
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9378 fi
9379
9380
9381 done
9382 fi
9383
9384 for ncn_progname in windmc; do
9385 if test -n "$ncn_tool_prefix"; then
9386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9387 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 if test -n "$WINDMC"; then
9394 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9395 else
9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 for as_dir in $PATH
9398 do
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9403 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9405 break 2
9406 fi
9407 done
9408 done
9409 IFS=$as_save_IFS
9410
9411 fi
9412 fi
9413 WINDMC=$ac_cv_prog_WINDMC
9414 if test -n "$WINDMC"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9416 $as_echo "$WINDMC" >&6; }
9417 else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9420 fi
9421
9422
9423 fi
9424 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9426 set dummy ${ncn_progname}; ac_word=$2
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428 $as_echo_n "checking for $ac_word... " >&6; }
9429 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 if test -n "$WINDMC"; then
9433 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9434 else
9435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436 for as_dir in $PATH
9437 do
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9442 ac_cv_prog_WINDMC="${ncn_progname}"
9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444 break 2
9445 fi
9446 done
9447 done
9448 IFS=$as_save_IFS
9449
9450 fi
9451 fi
9452 WINDMC=$ac_cv_prog_WINDMC
9453 if test -n "$WINDMC"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9455 $as_echo "$WINDMC" >&6; }
9456 else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9459 fi
9460
9461
9462 fi
9463 test -n "$ac_cv_prog_WINDMC" && break
9464 done
9465
9466 if test -z "$ac_cv_prog_WINDMC" ; then
9467 set dummy windmc
9468 if test $build = $host ; then
9469 WINDMC="$2"
9470 else
9471 WINDMC="${ncn_tool_prefix}$2"
9472 fi
9473 fi
9474
9475
9476
9477 if test -n "$OBJCOPY"; then
9478 ac_cv_prog_OBJCOPY=$OBJCOPY
9479 elif test -n "$ac_cv_prog_OBJCOPY"; then
9480 OBJCOPY=$ac_cv_prog_OBJCOPY
9481 fi
9482
9483 if test -n "$ac_cv_prog_OBJCOPY"; then
9484 for ncn_progname in objcopy; do
9485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9486 set dummy ${ncn_progname}; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 if test -n "$OBJCOPY"; then
9493 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9494 else
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 for as_dir in $PATH
9497 do
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9502 ac_cv_prog_OBJCOPY="${ncn_progname}"
9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9504 break 2
9505 fi
9506 done
9507 done
9508 IFS=$as_save_IFS
9509
9510 fi
9511 fi
9512 OBJCOPY=$ac_cv_prog_OBJCOPY
9513 if test -n "$OBJCOPY"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9515 $as_echo "$OBJCOPY" >&6; }
9516 else
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9519 fi
9520
9521
9522 done
9523 fi
9524
9525 for ncn_progname in objcopy; do
9526 if test -n "$ncn_tool_prefix"; then
9527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9528 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 if test -n "$OBJCOPY"; then
9535 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9536 else
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9539 do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9547 fi
9548 done
9549 done
9550 IFS=$as_save_IFS
9551
9552 fi
9553 fi
9554 OBJCOPY=$ac_cv_prog_OBJCOPY
9555 if test -n "$OBJCOPY"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9557 $as_echo "$OBJCOPY" >&6; }
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9561 fi
9562
9563
9564 fi
9565 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9567 set dummy ${ncn_progname}; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 if test -n "$OBJCOPY"; then
9574 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9575 else
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $PATH
9578 do
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9583 ac_cv_prog_OBJCOPY="${ncn_progname}"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9585 break 2
9586 fi
9587 done
9588 done
9589 IFS=$as_save_IFS
9590
9591 fi
9592 fi
9593 OBJCOPY=$ac_cv_prog_OBJCOPY
9594 if test -n "$OBJCOPY"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9596 $as_echo "$OBJCOPY" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9600 fi
9601
9602
9603 fi
9604 test -n "$ac_cv_prog_OBJCOPY" && break
9605 done
9606
9607 if test -z "$ac_cv_prog_OBJCOPY" ; then
9608 set dummy objcopy
9609 if test $build = $host ; then
9610 OBJCOPY="$2"
9611 else
9612 OBJCOPY="${ncn_tool_prefix}$2"
9613 fi
9614 fi
9615
9616
9617
9618 if test -n "$OBJDUMP"; then
9619 ac_cv_prog_OBJDUMP=$OBJDUMP
9620 elif test -n "$ac_cv_prog_OBJDUMP"; then
9621 OBJDUMP=$ac_cv_prog_OBJDUMP
9622 fi
9623
9624 if test -n "$ac_cv_prog_OBJDUMP"; then
9625 for ncn_progname in objdump; do
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627 set dummy ${ncn_progname}; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 if test -n "$OBJDUMP"; then
9634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9635 else
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9638 do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_prog_OBJDUMP="${ncn_progname}"
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9646 fi
9647 done
9648 done
9649 IFS=$as_save_IFS
9650
9651 fi
9652 fi
9653 OBJDUMP=$ac_cv_prog_OBJDUMP
9654 if test -n "$OBJDUMP"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9656 $as_echo "$OBJDUMP" >&6; }
9657 else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9660 fi
9661
9662
9663 done
9664 fi
9665
9666 for ncn_progname in objdump; do
9667 if test -n "$ncn_tool_prefix"; then
9668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9669 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 if test -n "$OBJDUMP"; then
9676 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9677 else
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9680 do
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9688 fi
9689 done
9690 done
9691 IFS=$as_save_IFS
9692
9693 fi
9694 fi
9695 OBJDUMP=$ac_cv_prog_OBJDUMP
9696 if test -n "$OBJDUMP"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9698 $as_echo "$OBJDUMP" >&6; }
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9702 fi
9703
9704
9705 fi
9706 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9708 set dummy ${ncn_progname}; ac_word=$2
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 $as_echo_n "checking for $ac_word... " >&6; }
9711 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 if test -n "$OBJDUMP"; then
9715 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9716 else
9717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9719 do
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9724 ac_cv_prog_OBJDUMP="${ncn_progname}"
9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 break 2
9727 fi
9728 done
9729 done
9730 IFS=$as_save_IFS
9731
9732 fi
9733 fi
9734 OBJDUMP=$ac_cv_prog_OBJDUMP
9735 if test -n "$OBJDUMP"; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9737 $as_echo "$OBJDUMP" >&6; }
9738 else
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 $as_echo "no" >&6; }
9741 fi
9742
9743
9744 fi
9745 test -n "$ac_cv_prog_OBJDUMP" && break
9746 done
9747
9748 if test -z "$ac_cv_prog_OBJDUMP" ; then
9749 set dummy objdump
9750 if test $build = $host ; then
9751 OBJDUMP="$2"
9752 else
9753 OBJDUMP="${ncn_tool_prefix}$2"
9754 fi
9755 fi
9756
9757
9758
9759 if test -n "$READELF"; then
9760 ac_cv_prog_READELF=$READELF
9761 elif test -n "$ac_cv_prog_READELF"; then
9762 READELF=$ac_cv_prog_READELF
9763 fi
9764
9765 if test -n "$ac_cv_prog_READELF"; then
9766 for ncn_progname in readelf; do
9767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9768 set dummy ${ncn_progname}; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if test "${ac_cv_prog_READELF+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 if test -n "$READELF"; then
9775 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9776 else
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 for as_dir in $PATH
9779 do
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_prog_READELF="${ncn_progname}"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788 done
9789 done
9790 IFS=$as_save_IFS
9791
9792 fi
9793 fi
9794 READELF=$ac_cv_prog_READELF
9795 if test -n "$READELF"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9797 $as_echo "$READELF" >&6; }
9798 else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9801 fi
9802
9803
9804 done
9805 fi
9806
9807 for ncn_progname in readelf; do
9808 if test -n "$ncn_tool_prefix"; then
9809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9810 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812 $as_echo_n "checking for $ac_word... " >&6; }
9813 if test "${ac_cv_prog_READELF+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 if test -n "$READELF"; then
9817 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9818 else
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $PATH
9821 do
9822 IFS=$as_save_IFS
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9826 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 break 2
9829 fi
9830 done
9831 done
9832 IFS=$as_save_IFS
9833
9834 fi
9835 fi
9836 READELF=$ac_cv_prog_READELF
9837 if test -n "$READELF"; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9839 $as_echo "$READELF" >&6; }
9840 else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9843 fi
9844
9845
9846 fi
9847 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9849 set dummy ${ncn_progname}; ac_word=$2
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851 $as_echo_n "checking for $ac_word... " >&6; }
9852 if test "${ac_cv_prog_READELF+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
9854 else
9855 if test -n "$READELF"; then
9856 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9857 else
9858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 for as_dir in $PATH
9860 do
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
9863 for ac_exec_ext in '' $ac_executable_extensions; do
9864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9865 ac_cv_prog_READELF="${ncn_progname}"
9866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9867 break 2
9868 fi
9869 done
9870 done
9871 IFS=$as_save_IFS
9872
9873 fi
9874 fi
9875 READELF=$ac_cv_prog_READELF
9876 if test -n "$READELF"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9878 $as_echo "$READELF" >&6; }
9879 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; }
9882 fi
9883
9884
9885 fi
9886 test -n "$ac_cv_prog_READELF" && break
9887 done
9888
9889 if test -z "$ac_cv_prog_READELF" ; then
9890 set dummy readelf
9891 if test $build = $host ; then
9892 READELF="$2"
9893 else
9894 READELF="${ncn_tool_prefix}$2"
9895 fi
9896 fi
9897
9898
9899
9900
9901
9902
9903 # Target tools.
9904
9905 # Check whether --with-build-time-tools was given.
9906 if test "${with_build_time_tools+set}" = set; then :
9907 withval=$with_build_time_tools; case x"$withval" in
9908 x/*) ;;
9909 *)
9910 with_build_time_tools=
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9912 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9913 ;;
9914 esac
9915 else
9916 with_build_time_tools=
9917 fi
9918
9919
9920
9921
9922 if test -n "$CC_FOR_TARGET"; then
9923 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9924 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9925 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9926 fi
9927
9928 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9929 for ncn_progname in cc gcc; do
9930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9931 set dummy ${ncn_progname}; ac_word=$2
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933 $as_echo_n "checking for $ac_word... " >&6; }
9934 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test -n "$CC_FOR_TARGET"; then
9938 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9939 else
9940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 for as_dir in $PATH
9942 do
9943 IFS=$as_save_IFS
9944 test -z "$as_dir" && as_dir=.
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9947 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9949 break 2
9950 fi
9951 done
9952 done
9953 IFS=$as_save_IFS
9954
9955 fi
9956 fi
9957 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9958 if test -n "$CC_FOR_TARGET"; then
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9960 $as_echo "$CC_FOR_TARGET" >&6; }
9961 else
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963 $as_echo "no" >&6; }
9964 fi
9965
9966
9967 done
9968 fi
9969
9970 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9971 for ncn_progname in cc gcc; do
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9973 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9974 if test -x $with_build_time_tools/${ncn_progname}; then
9975 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9977 $as_echo "yes" >&6; }
9978 break
9979 else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9982 fi
9983 done
9984 fi
9985
9986 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9987 for ncn_progname in cc gcc; do
9988 if test -n "$ncn_target_tool_prefix"; then
9989 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9990 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 if test -n "$CC_FOR_TARGET"; then
9997 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9998 else
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10001 do
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10006 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10009 fi
10010 done
10011 done
10012 IFS=$as_save_IFS
10013
10014 fi
10015 fi
10016 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10017 if test -n "$CC_FOR_TARGET"; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10019 $as_echo "$CC_FOR_TARGET" >&6; }
10020 else
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10023 fi
10024
10025
10026 fi
10027 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10029 set dummy ${ncn_progname}; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 if test -n "$CC_FOR_TARGET"; then
10036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10037 else
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10040 do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10045 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10048 fi
10049 done
10050 done
10051 IFS=$as_save_IFS
10052
10053 fi
10054 fi
10055 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10056 if test -n "$CC_FOR_TARGET"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10058 $as_echo "$CC_FOR_TARGET" >&6; }
10059 else
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10062 fi
10063
10064
10065 fi
10066 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10067 done
10068 fi
10069
10070 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10071 set dummy cc gcc
10072 if test $build = $target ; then
10073 CC_FOR_TARGET="$2"
10074 else
10075 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10076 fi
10077 else
10078 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10079 fi
10080
10081
10082
10083 if test -n "$CXX_FOR_TARGET"; then
10084 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10085 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10086 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10087 fi
10088
10089 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10090 for ncn_progname in c++ g++ cxx gxx; do
10091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10092 set dummy ${ncn_progname}; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 if test -n "$CXX_FOR_TARGET"; then
10099 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10100 else
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10103 do
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 break 2
10111 fi
10112 done
10113 done
10114 IFS=$as_save_IFS
10115
10116 fi
10117 fi
10118 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10119 if test -n "$CXX_FOR_TARGET"; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10121 $as_echo "$CXX_FOR_TARGET" >&6; }
10122 else
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10125 fi
10126
10127
10128 done
10129 fi
10130
10131 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10132 for ncn_progname in c++ g++ cxx gxx; do
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10134 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10135 if test -x $with_build_time_tools/${ncn_progname}; then
10136 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10138 $as_echo "yes" >&6; }
10139 break
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142 $as_echo "no" >&6; }
10143 fi
10144 done
10145 fi
10146
10147 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10148 for ncn_progname in c++ g++ cxx gxx; do
10149 if test -n "$ncn_target_tool_prefix"; then
10150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10151 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 if test -n "$CXX_FOR_TARGET"; then
10158 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10159 else
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10162 do
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10167 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 break 2
10170 fi
10171 done
10172 done
10173 IFS=$as_save_IFS
10174
10175 fi
10176 fi
10177 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10178 if test -n "$CXX_FOR_TARGET"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10180 $as_echo "$CXX_FOR_TARGET" >&6; }
10181 else
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10184 fi
10185
10186
10187 fi
10188 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10190 set dummy ${ncn_progname}; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 if test -n "$CXX_FOR_TARGET"; then
10197 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10198 else
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10206 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210 done
10211 done
10212 IFS=$as_save_IFS
10213
10214 fi
10215 fi
10216 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10217 if test -n "$CXX_FOR_TARGET"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10219 $as_echo "$CXX_FOR_TARGET" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10223 fi
10224
10225
10226 fi
10227 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10228 done
10229 fi
10230
10231 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10232 set dummy c++ g++ cxx gxx
10233 if test $build = $target ; then
10234 CXX_FOR_TARGET="$2"
10235 else
10236 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10237 fi
10238 else
10239 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10240 fi
10241
10242
10243
10244 if test -n "$GCC_FOR_TARGET"; then
10245 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10246 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10247 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10248 fi
10249
10250 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10251 for ncn_progname in gcc; do
10252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10253 set dummy ${ncn_progname}; ac_word=$2
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255 $as_echo_n "checking for $ac_word... " >&6; }
10256 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 if test -n "$GCC_FOR_TARGET"; then
10260 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10261 else
10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in $PATH
10264 do
10265 IFS=$as_save_IFS
10266 test -z "$as_dir" && as_dir=.
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10269 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271 break 2
10272 fi
10273 done
10274 done
10275 IFS=$as_save_IFS
10276
10277 fi
10278 fi
10279 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10280 if test -n "$GCC_FOR_TARGET"; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10282 $as_echo "$GCC_FOR_TARGET" >&6; }
10283 else
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10286 fi
10287
10288
10289 done
10290 fi
10291
10292 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10293 for ncn_progname in gcc; do
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10295 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10296 if test -x $with_build_time_tools/${ncn_progname}; then
10297 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10299 $as_echo "yes" >&6; }
10300 break
10301 else
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303 $as_echo "no" >&6; }
10304 fi
10305 done
10306 fi
10307
10308 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10309 for ncn_progname in gcc; do
10310 if test -n "$ncn_target_tool_prefix"; then
10311 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10312 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 if test -n "$GCC_FOR_TARGET"; then
10319 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10320 else
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10323 do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10328 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10331 fi
10332 done
10333 done
10334 IFS=$as_save_IFS
10335
10336 fi
10337 fi
10338 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10339 if test -n "$GCC_FOR_TARGET"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10341 $as_echo "$GCC_FOR_TARGET" >&6; }
10342 else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10345 fi
10346
10347
10348 fi
10349 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10351 set dummy ${ncn_progname}; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 if test -n "$GCC_FOR_TARGET"; then
10358 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10359 else
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10362 do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371 done
10372 done
10373 IFS=$as_save_IFS
10374
10375 fi
10376 fi
10377 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10378 if test -n "$GCC_FOR_TARGET"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10380 $as_echo "$GCC_FOR_TARGET" >&6; }
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 fi
10385
10386
10387 fi
10388 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10389 done
10390 fi
10391
10392 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10393 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10394 else
10395 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10396 fi
10397
10398
10399
10400 if test -n "$GCJ_FOR_TARGET"; then
10401 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10402 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10403 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10404 fi
10405
10406 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10407 for ncn_progname in gcj; do
10408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10409 set dummy ${ncn_progname}; ac_word=$2
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411 $as_echo_n "checking for $ac_word... " >&6; }
10412 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 if test -n "$GCJ_FOR_TARGET"; then
10416 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10417 else
10418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10419 for as_dir in $PATH
10420 do
10421 IFS=$as_save_IFS
10422 test -z "$as_dir" && as_dir=.
10423 for ac_exec_ext in '' $ac_executable_extensions; do
10424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10425 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10427 break 2
10428 fi
10429 done
10430 done
10431 IFS=$as_save_IFS
10432
10433 fi
10434 fi
10435 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10436 if test -n "$GCJ_FOR_TARGET"; then
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10438 $as_echo "$GCJ_FOR_TARGET" >&6; }
10439 else
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; }
10442 fi
10443
10444
10445 done
10446 fi
10447
10448 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10449 for ncn_progname in gcj; do
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10451 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10452 if test -x $with_build_time_tools/${ncn_progname}; then
10453 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10455 $as_echo "yes" >&6; }
10456 break
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10460 fi
10461 done
10462 fi
10463
10464 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10465 for ncn_progname in gcj; do
10466 if test -n "$ncn_target_tool_prefix"; then
10467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10468 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 if test -n "$GCJ_FOR_TARGET"; then
10475 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10476 else
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10479 do
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10484 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10487 fi
10488 done
10489 done
10490 IFS=$as_save_IFS
10491
10492 fi
10493 fi
10494 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10495 if test -n "$GCJ_FOR_TARGET"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10497 $as_echo "$GCJ_FOR_TARGET" >&6; }
10498 else
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10501 fi
10502
10503
10504 fi
10505 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10507 set dummy ${ncn_progname}; ac_word=$2
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509 $as_echo_n "checking for $ac_word... " >&6; }
10510 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
10512 else
10513 if test -n "$GCJ_FOR_TARGET"; then
10514 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10515 else
10516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517 for as_dir in $PATH
10518 do
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10523 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10525 break 2
10526 fi
10527 done
10528 done
10529 IFS=$as_save_IFS
10530
10531 fi
10532 fi
10533 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10534 if test -n "$GCJ_FOR_TARGET"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10536 $as_echo "$GCJ_FOR_TARGET" >&6; }
10537 else
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10540 fi
10541
10542
10543 fi
10544 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10545 done
10546 fi
10547
10548 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10549 set dummy gcj
10550 if test $build = $target ; then
10551 GCJ_FOR_TARGET="$2"
10552 else
10553 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10554 fi
10555 else
10556 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10557 fi
10558
10559
10560
10561 if test -n "$GFORTRAN_FOR_TARGET"; then
10562 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10563 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10564 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10565 fi
10566
10567 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10568 for ncn_progname in gfortran; do
10569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10570 set dummy ${ncn_progname}; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10574 $as_echo_n "(cached) " >&6
10575 else
10576 if test -n "$GFORTRAN_FOR_TARGET"; then
10577 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10578 else
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10581 do
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10586 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 break 2
10589 fi
10590 done
10591 done
10592 IFS=$as_save_IFS
10593
10594 fi
10595 fi
10596 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10597 if test -n "$GFORTRAN_FOR_TARGET"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10599 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10603 fi
10604
10605
10606 done
10607 fi
10608
10609 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10610 for ncn_progname in gfortran; do
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10612 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10613 if test -x $with_build_time_tools/${ncn_progname}; then
10614 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616 $as_echo "yes" >&6; }
10617 break
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10621 fi
10622 done
10623 fi
10624
10625 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10626 for ncn_progname in gfortran; do
10627 if test -n "$ncn_target_tool_prefix"; then
10628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10629 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 if test -n "$GFORTRAN_FOR_TARGET"; then
10636 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10637 else
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10640 do
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10645 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 break 2
10648 fi
10649 done
10650 done
10651 IFS=$as_save_IFS
10652
10653 fi
10654 fi
10655 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10656 if test -n "$GFORTRAN_FOR_TARGET"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10658 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10662 fi
10663
10664
10665 fi
10666 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10668 set dummy ${ncn_progname}; ac_word=$2
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670 $as_echo_n "checking for $ac_word... " >&6; }
10671 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 if test -n "$GFORTRAN_FOR_TARGET"; then
10675 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10676 else
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10679 do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10684 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10687 fi
10688 done
10689 done
10690 IFS=$as_save_IFS
10691
10692 fi
10693 fi
10694 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10695 if test -n "$GFORTRAN_FOR_TARGET"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10697 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10701 fi
10702
10703
10704 fi
10705 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10706 done
10707 fi
10708
10709 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10710 set dummy gfortran
10711 if test $build = $target ; then
10712 GFORTRAN_FOR_TARGET="$2"
10713 else
10714 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10715 fi
10716 else
10717 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10718 fi
10719
10720
10721
10722 if test -n "$GOC_FOR_TARGET"; then
10723 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10724 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10725 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10726 fi
10727
10728 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10729 for ncn_progname in gccgo; do
10730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10731 set dummy ${ncn_progname}; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 if test -n "$GOC_FOR_TARGET"; then
10738 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10739 else
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10742 do
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 break 2
10750 fi
10751 done
10752 done
10753 IFS=$as_save_IFS
10754
10755 fi
10756 fi
10757 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10758 if test -n "$GOC_FOR_TARGET"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10760 $as_echo "$GOC_FOR_TARGET" >&6; }
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10764 fi
10765
10766
10767 done
10768 fi
10769
10770 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10771 for ncn_progname in gccgo; do
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10773 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10774 if test -x $with_build_time_tools/${ncn_progname}; then
10775 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10777 $as_echo "yes" >&6; }
10778 break
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10782 fi
10783 done
10784 fi
10785
10786 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10787 for ncn_progname in gccgo; do
10788 if test -n "$ncn_target_tool_prefix"; then
10789 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10790 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 if test -n "$GOC_FOR_TARGET"; then
10797 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10798 else
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10801 do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10809 fi
10810 done
10811 done
10812 IFS=$as_save_IFS
10813
10814 fi
10815 fi
10816 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10817 if test -n "$GOC_FOR_TARGET"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10819 $as_echo "$GOC_FOR_TARGET" >&6; }
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10823 fi
10824
10825
10826 fi
10827 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10829 set dummy ${ncn_progname}; ac_word=$2
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831 $as_echo_n "checking for $ac_word... " >&6; }
10832 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 if test -n "$GOC_FOR_TARGET"; then
10836 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10837 else
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH
10840 do
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10848 fi
10849 done
10850 done
10851 IFS=$as_save_IFS
10852
10853 fi
10854 fi
10855 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10856 if test -n "$GOC_FOR_TARGET"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10858 $as_echo "$GOC_FOR_TARGET" >&6; }
10859 else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10862 fi
10863
10864
10865 fi
10866 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10867 done
10868 fi
10869
10870 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10871 set dummy gccgo
10872 if test $build = $target ; then
10873 GOC_FOR_TARGET="$2"
10874 else
10875 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10876 fi
10877 else
10878 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10879 fi
10880
10881
10882
10883 cat > conftest.c << \EOF
10884 #ifdef __GNUC__
10885 gcc_yay;
10886 #endif
10887 EOF
10888 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10889 have_gcc_for_target=yes
10890 else
10891 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10892 have_gcc_for_target=no
10893 fi
10894 rm conftest.c
10895
10896
10897
10898
10899 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10900 if test -n "$with_build_time_tools"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10902 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10903 if test -x $with_build_time_tools/ar; then
10904 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10905 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10907 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 fi
10912 elif test $build != $host && test $have_gcc_for_target = yes; then
10913 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10914 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10915 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10916 fi
10917 fi
10918 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10919 # Extract the first word of "ar", so it can be a program name with args.
10920 set dummy ar; ac_word=$2
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922 $as_echo_n "checking for $ac_word... " >&6; }
10923 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 case $AR_FOR_TARGET in
10927 [\\/]* | ?:[\\/]*)
10928 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10929 ;;
10930 *)
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $gcc_cv_tool_dirs
10933 do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10941 fi
10942 done
10943 done
10944 IFS=$as_save_IFS
10945
10946 ;;
10947 esac
10948 fi
10949 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10950 if test -n "$AR_FOR_TARGET"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10952 $as_echo "$AR_FOR_TARGET" >&6; }
10953 else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10956 fi
10957
10958
10959 fi
10960 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10961
10962
10963 if test -n "$AR_FOR_TARGET"; then
10964 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10965 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10966 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10967 fi
10968
10969 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10970 for ncn_progname in ar; do
10971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10972 set dummy ${ncn_progname}; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 if test -n "$AR_FOR_TARGET"; then
10979 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10980 else
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10983 do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10988 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992 done
10993 done
10994 IFS=$as_save_IFS
10995
10996 fi
10997 fi
10998 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10999 if test -n "$AR_FOR_TARGET"; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11001 $as_echo "$AR_FOR_TARGET" >&6; }
11002 else
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004 $as_echo "no" >&6; }
11005 fi
11006
11007
11008 done
11009 fi
11010
11011 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11012 for ncn_progname in ar; do
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11014 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11015 if test -x $with_build_time_tools/${ncn_progname}; then
11016 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018 $as_echo "yes" >&6; }
11019 break
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11023 fi
11024 done
11025 fi
11026
11027 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11028 for ncn_progname in ar; do
11029 if test -n "$ncn_target_tool_prefix"; then
11030 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11031 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 if test -n "$AR_FOR_TARGET"; then
11038 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11047 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11050 fi
11051 done
11052 done
11053 IFS=$as_save_IFS
11054
11055 fi
11056 fi
11057 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11058 if test -n "$AR_FOR_TARGET"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11060 $as_echo "$AR_FOR_TARGET" >&6; }
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11064 fi
11065
11066
11067 fi
11068 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070 set dummy ${ncn_progname}; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 if test -n "$AR_FOR_TARGET"; then
11077 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11078 else
11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11081 do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11086 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090 done
11091 done
11092 IFS=$as_save_IFS
11093
11094 fi
11095 fi
11096 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11097 if test -n "$AR_FOR_TARGET"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11099 $as_echo "$AR_FOR_TARGET" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11103 fi
11104
11105
11106 fi
11107 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11108 done
11109 fi
11110
11111 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11112 set dummy ar
11113 if test $build = $target ; then
11114 AR_FOR_TARGET="$2"
11115 else
11116 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11117 fi
11118 else
11119 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11120 fi
11121
11122 else
11123 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11124 fi
11125
11126
11127
11128
11129 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11130 if test -n "$with_build_time_tools"; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11132 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11133 if test -x $with_build_time_tools/as; then
11134 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11135 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11137 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11141 fi
11142 elif test $build != $host && test $have_gcc_for_target = yes; then
11143 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11144 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11145 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11146 fi
11147 fi
11148 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11149 # Extract the first word of "as", so it can be a program name with args.
11150 set dummy as; ac_word=$2
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152 $as_echo_n "checking for $ac_word... " >&6; }
11153 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 case $AS_FOR_TARGET in
11157 [\\/]* | ?:[\\/]*)
11158 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11159 ;;
11160 *)
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162 for as_dir in $gcc_cv_tool_dirs
11163 do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11168 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11170 break 2
11171 fi
11172 done
11173 done
11174 IFS=$as_save_IFS
11175
11176 ;;
11177 esac
11178 fi
11179 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11180 if test -n "$AS_FOR_TARGET"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11182 $as_echo "$AS_FOR_TARGET" >&6; }
11183 else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11186 fi
11187
11188
11189 fi
11190 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11191
11192
11193 if test -n "$AS_FOR_TARGET"; then
11194 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11195 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11196 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11197 fi
11198
11199 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11200 for ncn_progname in as; do
11201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11202 set dummy ${ncn_progname}; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 if test -n "$AS_FOR_TARGET"; then
11209 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11210 else
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11213 do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11218 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 break 2
11221 fi
11222 done
11223 done
11224 IFS=$as_save_IFS
11225
11226 fi
11227 fi
11228 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11229 if test -n "$AS_FOR_TARGET"; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11231 $as_echo "$AS_FOR_TARGET" >&6; }
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11235 fi
11236
11237
11238 done
11239 fi
11240
11241 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11242 for ncn_progname in as; do
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11244 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11245 if test -x $with_build_time_tools/${ncn_progname}; then
11246 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11248 $as_echo "yes" >&6; }
11249 break
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 fi
11254 done
11255 fi
11256
11257 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11258 for ncn_progname in as; do
11259 if test -n "$ncn_target_tool_prefix"; then
11260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11261 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263 $as_echo_n "checking for $ac_word... " >&6; }
11264 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 if test -n "$AS_FOR_TARGET"; then
11268 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11269 else
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11272 do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11280 fi
11281 done
11282 done
11283 IFS=$as_save_IFS
11284
11285 fi
11286 fi
11287 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11288 if test -n "$AS_FOR_TARGET"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11290 $as_echo "$AS_FOR_TARGET" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11295
11296
11297 fi
11298 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11300 set dummy ${ncn_progname}; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 if test -n "$AS_FOR_TARGET"; then
11307 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11308 else
11309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11311 do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11316 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 break 2
11319 fi
11320 done
11321 done
11322 IFS=$as_save_IFS
11323
11324 fi
11325 fi
11326 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11327 if test -n "$AS_FOR_TARGET"; then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11329 $as_echo "$AS_FOR_TARGET" >&6; }
11330 else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333 fi
11334
11335
11336 fi
11337 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11338 done
11339 fi
11340
11341 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11342 set dummy as
11343 if test $build = $target ; then
11344 AS_FOR_TARGET="$2"
11345 else
11346 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11347 fi
11348 else
11349 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11350 fi
11351
11352 else
11353 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11354 fi
11355
11356
11357
11358
11359 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11360 if test -n "$with_build_time_tools"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11362 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11363 if test -x $with_build_time_tools/dlltool; then
11364 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11365 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11367 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 fi
11372 elif test $build != $host && test $have_gcc_for_target = yes; then
11373 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11374 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11375 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11376 fi
11377 fi
11378 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11379 # Extract the first word of "dlltool", so it can be a program name with args.
11380 set dummy dlltool; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 case $DLLTOOL_FOR_TARGET in
11387 [\\/]* | ?:[\\/]*)
11388 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11389 ;;
11390 *)
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $gcc_cv_tool_dirs
11393 do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406 ;;
11407 esac
11408 fi
11409 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11410 if test -n "$DLLTOOL_FOR_TARGET"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11412 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11416 fi
11417
11418
11419 fi
11420 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11421
11422
11423 if test -n "$DLLTOOL_FOR_TARGET"; then
11424 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11425 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11426 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11427 fi
11428
11429 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11430 for ncn_progname in dlltool; do
11431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11432 set dummy ${ncn_progname}; ac_word=$2
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434 $as_echo_n "checking for $ac_word... " >&6; }
11435 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 if test -n "$DLLTOOL_FOR_TARGET"; then
11439 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11440 else
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11443 do
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11448 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 break 2
11451 fi
11452 done
11453 done
11454 IFS=$as_save_IFS
11455
11456 fi
11457 fi
11458 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11459 if test -n "$DLLTOOL_FOR_TARGET"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11461 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 $as_echo "no" >&6; }
11465 fi
11466
11467
11468 done
11469 fi
11470
11471 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11472 for ncn_progname in dlltool; do
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11474 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11475 if test -x $with_build_time_tools/${ncn_progname}; then
11476 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11478 $as_echo "yes" >&6; }
11479 break
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11483 fi
11484 done
11485 fi
11486
11487 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11488 for ncn_progname in dlltool; do
11489 if test -n "$ncn_target_tool_prefix"; then
11490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11491 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 if test -n "$DLLTOOL_FOR_TARGET"; then
11498 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11499 else
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11507 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 break 2
11510 fi
11511 done
11512 done
11513 IFS=$as_save_IFS
11514
11515 fi
11516 fi
11517 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11518 if test -n "$DLLTOOL_FOR_TARGET"; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11520 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11524 fi
11525
11526
11527 fi
11528 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11530 set dummy ${ncn_progname}; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 if test -n "$DLLTOOL_FOR_TARGET"; then
11537 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11538 else
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11541 do
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11546 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11548 break 2
11549 fi
11550 done
11551 done
11552 IFS=$as_save_IFS
11553
11554 fi
11555 fi
11556 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11557 if test -n "$DLLTOOL_FOR_TARGET"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11559 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562 $as_echo "no" >&6; }
11563 fi
11564
11565
11566 fi
11567 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11568 done
11569 fi
11570
11571 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11572 set dummy dlltool
11573 if test $build = $target ; then
11574 DLLTOOL_FOR_TARGET="$2"
11575 else
11576 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11577 fi
11578 else
11579 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11580 fi
11581
11582 else
11583 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11584 fi
11585
11586
11587
11588
11589 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11590 if test -n "$with_build_time_tools"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11592 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11593 if test -x $with_build_time_tools/ld; then
11594 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11595 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11597 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11598 else
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11601 fi
11602 elif test $build != $host && test $have_gcc_for_target = yes; then
11603 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11604 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11605 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11606 fi
11607 fi
11608 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11609 # Extract the first word of "ld", so it can be a program name with args.
11610 set dummy ld; ac_word=$2
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 case $LD_FOR_TARGET in
11617 [\\/]* | ?:[\\/]*)
11618 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11619 ;;
11620 *)
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $gcc_cv_tool_dirs
11623 do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11628 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11631 fi
11632 done
11633 done
11634 IFS=$as_save_IFS
11635
11636 ;;
11637 esac
11638 fi
11639 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11640 if test -n "$LD_FOR_TARGET"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11642 $as_echo "$LD_FOR_TARGET" >&6; }
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11646 fi
11647
11648
11649 fi
11650 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11651
11652
11653 if test -n "$LD_FOR_TARGET"; then
11654 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11655 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11656 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11657 fi
11658
11659 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11660 for ncn_progname in ld; do
11661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11662 set dummy ${ncn_progname}; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 if test -n "$LD_FOR_TARGET"; then
11669 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11670 else
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11681 fi
11682 done
11683 done
11684 IFS=$as_save_IFS
11685
11686 fi
11687 fi
11688 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11689 if test -n "$LD_FOR_TARGET"; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11691 $as_echo "$LD_FOR_TARGET" >&6; }
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 fi
11696
11697
11698 done
11699 fi
11700
11701 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11702 for ncn_progname in ld; do
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11704 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11705 if test -x $with_build_time_tools/${ncn_progname}; then
11706 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11708 $as_echo "yes" >&6; }
11709 break
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11713 fi
11714 done
11715 fi
11716
11717 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11718 for ncn_progname in ld; do
11719 if test -n "$ncn_target_tool_prefix"; then
11720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11721 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test -n "$LD_FOR_TARGET"; then
11728 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11729 else
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11732 do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11737 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11740 fi
11741 done
11742 done
11743 IFS=$as_save_IFS
11744
11745 fi
11746 fi
11747 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11748 if test -n "$LD_FOR_TARGET"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11750 $as_echo "$LD_FOR_TARGET" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11754 fi
11755
11756
11757 fi
11758 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11760 set dummy ${ncn_progname}; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
11765 else
11766 if test -n "$LD_FOR_TARGET"; then
11767 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11768 else
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11771 do
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11776 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11778 break 2
11779 fi
11780 done
11781 done
11782 IFS=$as_save_IFS
11783
11784 fi
11785 fi
11786 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11787 if test -n "$LD_FOR_TARGET"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11789 $as_echo "$LD_FOR_TARGET" >&6; }
11790 else
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11793 fi
11794
11795
11796 fi
11797 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11798 done
11799 fi
11800
11801 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11802 set dummy ld
11803 if test $build = $target ; then
11804 LD_FOR_TARGET="$2"
11805 else
11806 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11807 fi
11808 else
11809 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11810 fi
11811
11812 else
11813 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11814 fi
11815
11816
11817
11818
11819 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11820 if test -n "$with_build_time_tools"; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11822 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11823 if test -x $with_build_time_tools/lipo; then
11824 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11825 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11827 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11828 else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11831 fi
11832 elif test $build != $host && test $have_gcc_for_target = yes; then
11833 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11834 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11835 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11836 fi
11837 fi
11838 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11839 # Extract the first word of "lipo", so it can be a program name with args.
11840 set dummy lipo; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 case $LIPO_FOR_TARGET in
11847 [\\/]* | ?:[\\/]*)
11848 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11849 ;;
11850 *)
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $gcc_cv_tool_dirs
11853 do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11858 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 break 2
11861 fi
11862 done
11863 done
11864 IFS=$as_save_IFS
11865
11866 ;;
11867 esac
11868 fi
11869 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11870 if test -n "$LIPO_FOR_TARGET"; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11872 $as_echo "$LIPO_FOR_TARGET" >&6; }
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11876 fi
11877
11878
11879 fi
11880 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11881
11882
11883 if test -n "$LIPO_FOR_TARGET"; then
11884 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11885 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11886 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11887 fi
11888
11889 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11890 for ncn_progname in lipo; do
11891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11892 set dummy ${ncn_progname}; ac_word=$2
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894 $as_echo_n "checking for $ac_word... " >&6; }
11895 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 if test -n "$LIPO_FOR_TARGET"; then
11899 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11900 else
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11903 do
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11908 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910 break 2
11911 fi
11912 done
11913 done
11914 IFS=$as_save_IFS
11915
11916 fi
11917 fi
11918 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11919 if test -n "$LIPO_FOR_TARGET"; then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11921 $as_echo "$LIPO_FOR_TARGET" >&6; }
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11925 fi
11926
11927
11928 done
11929 fi
11930
11931 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11932 for ncn_progname in lipo; do
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11934 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11935 if test -x $with_build_time_tools/${ncn_progname}; then
11936 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938 $as_echo "yes" >&6; }
11939 break
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11943 fi
11944 done
11945 fi
11946
11947 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11948 for ncn_progname in lipo; do
11949 if test -n "$ncn_target_tool_prefix"; then
11950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11951 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test -n "$LIPO_FOR_TARGET"; then
11958 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11962 do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11967 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11970 fi
11971 done
11972 done
11973 IFS=$as_save_IFS
11974
11975 fi
11976 fi
11977 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11978 if test -n "$LIPO_FOR_TARGET"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11980 $as_echo "$LIPO_FOR_TARGET" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985
11986
11987 fi
11988 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11990 set dummy ${ncn_progname}; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 if test -n "$LIPO_FOR_TARGET"; then
11997 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11998 else
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008 break 2
12009 fi
12010 done
12011 done
12012 IFS=$as_save_IFS
12013
12014 fi
12015 fi
12016 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12017 if test -n "$LIPO_FOR_TARGET"; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12019 $as_echo "$LIPO_FOR_TARGET" >&6; }
12020 else
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12023 fi
12024
12025
12026 fi
12027 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12028 done
12029 fi
12030
12031 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12032 set dummy lipo
12033 if test $build = $target ; then
12034 LIPO_FOR_TARGET="$2"
12035 else
12036 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12037 fi
12038 else
12039 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12040 fi
12041
12042 else
12043 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12044 fi
12045
12046
12047
12048
12049 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12050 if test -n "$with_build_time_tools"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12052 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12053 if test -x $with_build_time_tools/nm; then
12054 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12055 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12057 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12061 fi
12062 elif test $build != $host && test $have_gcc_for_target = yes; then
12063 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12064 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12065 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12066 fi
12067 fi
12068 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12069 # Extract the first word of "nm", so it can be a program name with args.
12070 set dummy nm; ac_word=$2
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072 $as_echo_n "checking for $ac_word... " >&6; }
12073 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
12075 else
12076 case $NM_FOR_TARGET in
12077 [\\/]* | ?:[\\/]*)
12078 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12079 ;;
12080 *)
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $gcc_cv_tool_dirs
12083 do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12088 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 break 2
12091 fi
12092 done
12093 done
12094 IFS=$as_save_IFS
12095
12096 ;;
12097 esac
12098 fi
12099 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12100 if test -n "$NM_FOR_TARGET"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12102 $as_echo "$NM_FOR_TARGET" >&6; }
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12106 fi
12107
12108
12109 fi
12110 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12111
12112
12113 if test -n "$NM_FOR_TARGET"; then
12114 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12115 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12116 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12117 fi
12118
12119 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12120 for ncn_progname in nm; do
12121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12122 set dummy ${ncn_progname}; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 if test -n "$NM_FOR_TARGET"; then
12129 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12138 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12141 fi
12142 done
12143 done
12144 IFS=$as_save_IFS
12145
12146 fi
12147 fi
12148 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12149 if test -n "$NM_FOR_TARGET"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12151 $as_echo "$NM_FOR_TARGET" >&6; }
12152 else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156
12157
12158 done
12159 fi
12160
12161 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12162 for ncn_progname in nm; do
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12164 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12165 if test -x $with_build_time_tools/${ncn_progname}; then
12166 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12168 $as_echo "yes" >&6; }
12169 break
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12173 fi
12174 done
12175 fi
12176
12177 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12178 for ncn_progname in nm; do
12179 if test -n "$ncn_target_tool_prefix"; then
12180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12181 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 if test -n "$NM_FOR_TARGET"; then
12188 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12192 do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12197 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12200 fi
12201 done
12202 done
12203 IFS=$as_save_IFS
12204
12205 fi
12206 fi
12207 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12208 if test -n "$NM_FOR_TARGET"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12210 $as_echo "$NM_FOR_TARGET" >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214 fi
12215
12216
12217 fi
12218 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12220 set dummy ${ncn_progname}; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 if test -n "$NM_FOR_TARGET"; then
12227 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12228 else
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12231 do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12239 fi
12240 done
12241 done
12242 IFS=$as_save_IFS
12243
12244 fi
12245 fi
12246 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12247 if test -n "$NM_FOR_TARGET"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12249 $as_echo "$NM_FOR_TARGET" >&6; }
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12253 fi
12254
12255
12256 fi
12257 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12258 done
12259 fi
12260
12261 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12262 set dummy nm
12263 if test $build = $target ; then
12264 NM_FOR_TARGET="$2"
12265 else
12266 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12267 fi
12268 else
12269 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12270 fi
12271
12272 else
12273 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12274 fi
12275
12276
12277
12278
12279 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12280 if test -n "$with_build_time_tools"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12282 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12283 if test -x $with_build_time_tools/objdump; then
12284 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12285 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12287 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12291 fi
12292 elif test $build != $host && test $have_gcc_for_target = yes; then
12293 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12294 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12295 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12296 fi
12297 fi
12298 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12299 # Extract the first word of "objdump", so it can be a program name with args.
12300 set dummy objdump; ac_word=$2
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 $as_echo_n "checking for $ac_word... " >&6; }
12303 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 case $OBJDUMP_FOR_TARGET in
12307 [\\/]* | ?:[\\/]*)
12308 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12309 ;;
12310 *)
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $gcc_cv_tool_dirs
12313 do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 break 2
12321 fi
12322 done
12323 done
12324 IFS=$as_save_IFS
12325
12326 ;;
12327 esac
12328 fi
12329 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12330 if test -n "$OBJDUMP_FOR_TARGET"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12332 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12336 fi
12337
12338
12339 fi
12340 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12341
12342
12343 if test -n "$OBJDUMP_FOR_TARGET"; then
12344 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12345 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12346 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12347 fi
12348
12349 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12350 for ncn_progname in objdump; do
12351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12352 set dummy ${ncn_progname}; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 if test -n "$OBJDUMP_FOR_TARGET"; then
12359 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12360 else
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12363 do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 break 2
12371 fi
12372 done
12373 done
12374 IFS=$as_save_IFS
12375
12376 fi
12377 fi
12378 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12379 if test -n "$OBJDUMP_FOR_TARGET"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12381 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12385 fi
12386
12387
12388 done
12389 fi
12390
12391 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12392 for ncn_progname in objdump; do
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12394 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12395 if test -x $with_build_time_tools/${ncn_progname}; then
12396 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398 $as_echo "yes" >&6; }
12399 break
12400 else
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12403 fi
12404 done
12405 fi
12406
12407 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12408 for ncn_progname in objdump; do
12409 if test -n "$ncn_target_tool_prefix"; then
12410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12411 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 if test -n "$OBJDUMP_FOR_TARGET"; then
12418 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12419 else
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12422 do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 break 2
12430 fi
12431 done
12432 done
12433 IFS=$as_save_IFS
12434
12435 fi
12436 fi
12437 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12438 if test -n "$OBJDUMP_FOR_TARGET"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12440 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12444 fi
12445
12446
12447 fi
12448 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12450 set dummy ${ncn_progname}; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 if test -n "$OBJDUMP_FOR_TARGET"; then
12457 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12458 else
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12461 do
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12466 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12468 break 2
12469 fi
12470 done
12471 done
12472 IFS=$as_save_IFS
12473
12474 fi
12475 fi
12476 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12477 if test -n "$OBJDUMP_FOR_TARGET"; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12479 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12483 fi
12484
12485
12486 fi
12487 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12488 done
12489 fi
12490
12491 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12492 set dummy objdump
12493 if test $build = $target ; then
12494 OBJDUMP_FOR_TARGET="$2"
12495 else
12496 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12497 fi
12498 else
12499 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12500 fi
12501
12502 else
12503 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12504 fi
12505
12506
12507
12508
12509 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12510 if test -n "$with_build_time_tools"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12512 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12513 if test -x $with_build_time_tools/ranlib; then
12514 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12515 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12517 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12521 fi
12522 elif test $build != $host && test $have_gcc_for_target = yes; then
12523 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12524 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12525 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12526 fi
12527 fi
12528 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12529 # Extract the first word of "ranlib", so it can be a program name with args.
12530 set dummy ranlib; ac_word=$2
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12532 $as_echo_n "checking for $ac_word... " >&6; }
12533 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 case $RANLIB_FOR_TARGET in
12537 [\\/]* | ?:[\\/]*)
12538 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12539 ;;
12540 *)
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $gcc_cv_tool_dirs
12543 do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12548 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550 break 2
12551 fi
12552 done
12553 done
12554 IFS=$as_save_IFS
12555
12556 ;;
12557 esac
12558 fi
12559 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12560 if test -n "$RANLIB_FOR_TARGET"; then
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12562 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12563 else
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565 $as_echo "no" >&6; }
12566 fi
12567
12568
12569 fi
12570 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12571
12572
12573 if test -n "$RANLIB_FOR_TARGET"; then
12574 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12575 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12576 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12577 fi
12578
12579 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12580 for ncn_progname in ranlib; do
12581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12582 set dummy ${ncn_progname}; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 if test -n "$RANLIB_FOR_TARGET"; then
12589 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12590 else
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12593 do
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 break 2
12601 fi
12602 done
12603 done
12604 IFS=$as_save_IFS
12605
12606 fi
12607 fi
12608 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12609 if test -n "$RANLIB_FOR_TARGET"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12611 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12612 else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615 fi
12616
12617
12618 done
12619 fi
12620
12621 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12622 for ncn_progname in ranlib; do
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12624 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12625 if test -x $with_build_time_tools/${ncn_progname}; then
12626 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12628 $as_echo "yes" >&6; }
12629 break
12630 else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12633 fi
12634 done
12635 fi
12636
12637 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12638 for ncn_progname in ranlib; do
12639 if test -n "$ncn_target_tool_prefix"; then
12640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 if test -n "$RANLIB_FOR_TARGET"; then
12648 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12649 else
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12652 do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12659 break 2
12660 fi
12661 done
12662 done
12663 IFS=$as_save_IFS
12664
12665 fi
12666 fi
12667 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12668 if test -n "$RANLIB_FOR_TARGET"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12670 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12671 else
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12674 fi
12675
12676
12677 fi
12678 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12680 set dummy ${ncn_progname}; ac_word=$2
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682 $as_echo_n "checking for $ac_word... " >&6; }
12683 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 if test -n "$RANLIB_FOR_TARGET"; then
12687 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12688 else
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12691 do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12696 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12699 fi
12700 done
12701 done
12702 IFS=$as_save_IFS
12703
12704 fi
12705 fi
12706 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12707 if test -n "$RANLIB_FOR_TARGET"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12709 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12710 else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12713 fi
12714
12715
12716 fi
12717 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12718 done
12719 fi
12720
12721 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12722 set dummy ranlib
12723 if test $build = $target ; then
12724 RANLIB_FOR_TARGET="$2"
12725 else
12726 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12727 fi
12728 else
12729 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12730 fi
12731
12732 else
12733 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12734 fi
12735
12736
12737
12738
12739 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12740 if test -n "$with_build_time_tools"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12742 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12743 if test -x $with_build_time_tools/readelf; then
12744 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12745 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12747 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752 elif test $build != $host && test $have_gcc_for_target = yes; then
12753 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12754 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12755 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12756 fi
12757 fi
12758 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12759 # Extract the first word of "readelf", so it can be a program name with args.
12760 set dummy readelf; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 case $READELF_FOR_TARGET in
12767 [\\/]* | ?:[\\/]*)
12768 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12769 ;;
12770 *)
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $gcc_cv_tool_dirs
12773 do
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12781 fi
12782 done
12783 done
12784 IFS=$as_save_IFS
12785
12786 ;;
12787 esac
12788 fi
12789 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12790 if test -n "$READELF_FOR_TARGET"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12792 $as_echo "$READELF_FOR_TARGET" >&6; }
12793 else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796 fi
12797
12798
12799 fi
12800 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12801
12802
12803 if test -n "$READELF_FOR_TARGET"; then
12804 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12805 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12806 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12807 fi
12808
12809 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12810 for ncn_progname in readelf; do
12811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12812 set dummy ${ncn_progname}; ac_word=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 if test -n "$READELF_FOR_TARGET"; then
12819 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12820 else
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12823 do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12831 fi
12832 done
12833 done
12834 IFS=$as_save_IFS
12835
12836 fi
12837 fi
12838 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12839 if test -n "$READELF_FOR_TARGET"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12841 $as_echo "$READELF_FOR_TARGET" >&6; }
12842 else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 fi
12846
12847
12848 done
12849 fi
12850
12851 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12852 for ncn_progname in readelf; do
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12854 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12855 if test -x $with_build_time_tools/${ncn_progname}; then
12856 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858 $as_echo "yes" >&6; }
12859 break
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12863 fi
12864 done
12865 fi
12866
12867 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12868 for ncn_progname in readelf; do
12869 if test -n "$ncn_target_tool_prefix"; then
12870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 if test -n "$READELF_FOR_TARGET"; then
12878 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12882 do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891 done
12892 done
12893 IFS=$as_save_IFS
12894
12895 fi
12896 fi
12897 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12898 if test -n "$READELF_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12900 $as_echo "$READELF_FOR_TARGET" >&6; }
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905
12906
12907 fi
12908 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12910 set dummy ${ncn_progname}; ac_word=$2
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912 $as_echo_n "checking for $ac_word... " >&6; }
12913 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 if test -n "$READELF_FOR_TARGET"; then
12917 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12918 else
12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $PATH
12921 do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12926 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 break 2
12929 fi
12930 done
12931 done
12932 IFS=$as_save_IFS
12933
12934 fi
12935 fi
12936 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12937 if test -n "$READELF_FOR_TARGET"; then
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12939 $as_echo "$READELF_FOR_TARGET" >&6; }
12940 else
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12943 fi
12944
12945
12946 fi
12947 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12948 done
12949 fi
12950
12951 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12952 set dummy readelf
12953 if test $build = $target ; then
12954 READELF_FOR_TARGET="$2"
12955 else
12956 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12957 fi
12958 else
12959 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12960 fi
12961
12962 else
12963 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12964 fi
12965
12966
12967
12968
12969 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12970 if test -n "$with_build_time_tools"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12972 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12973 if test -x $with_build_time_tools/strip; then
12974 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12975 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12977 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12978 else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12981 fi
12982 elif test $build != $host && test $have_gcc_for_target = yes; then
12983 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12984 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12985 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12986 fi
12987 fi
12988 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12989 # Extract the first word of "strip", so it can be a program name with args.
12990 set dummy strip; ac_word=$2
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992 $as_echo_n "checking for $ac_word... " >&6; }
12993 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 case $STRIP_FOR_TARGET in
12997 [\\/]* | ?:[\\/]*)
12998 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12999 ;;
13000 *)
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $gcc_cv_tool_dirs
13003 do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13008 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13010 break 2
13011 fi
13012 done
13013 done
13014 IFS=$as_save_IFS
13015
13016 ;;
13017 esac
13018 fi
13019 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13020 if test -n "$STRIP_FOR_TARGET"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13022 $as_echo "$STRIP_FOR_TARGET" >&6; }
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13026 fi
13027
13028
13029 fi
13030 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13031
13032
13033 if test -n "$STRIP_FOR_TARGET"; then
13034 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13035 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13036 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13037 fi
13038
13039 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13040 for ncn_progname in strip; do
13041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13042 set dummy ${ncn_progname}; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 if test -n "$STRIP_FOR_TARGET"; then
13049 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13050 else
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13053 do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13058 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13061 fi
13062 done
13063 done
13064 IFS=$as_save_IFS
13065
13066 fi
13067 fi
13068 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13069 if test -n "$STRIP_FOR_TARGET"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13071 $as_echo "$STRIP_FOR_TARGET" >&6; }
13072 else
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075 fi
13076
13077
13078 done
13079 fi
13080
13081 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13082 for ncn_progname in strip; do
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13084 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13085 if test -x $with_build_time_tools/${ncn_progname}; then
13086 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13088 $as_echo "yes" >&6; }
13089 break
13090 else
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13093 fi
13094 done
13095 fi
13096
13097 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13098 for ncn_progname in strip; do
13099 if test -n "$ncn_target_tool_prefix"; then
13100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13101 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 if test -n "$STRIP_FOR_TARGET"; then
13108 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13109 else
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13112 do
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13117 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13120 fi
13121 done
13122 done
13123 IFS=$as_save_IFS
13124
13125 fi
13126 fi
13127 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13128 if test -n "$STRIP_FOR_TARGET"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13130 $as_echo "$STRIP_FOR_TARGET" >&6; }
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13134 fi
13135
13136
13137 fi
13138 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13140 set dummy ${ncn_progname}; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 if test -n "$STRIP_FOR_TARGET"; then
13147 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13151 do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13159 fi
13160 done
13161 done
13162 IFS=$as_save_IFS
13163
13164 fi
13165 fi
13166 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13167 if test -n "$STRIP_FOR_TARGET"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13169 $as_echo "$STRIP_FOR_TARGET" >&6; }
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175
13176 fi
13177 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13178 done
13179 fi
13180
13181 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13182 set dummy strip
13183 if test $build = $target ; then
13184 STRIP_FOR_TARGET="$2"
13185 else
13186 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13187 fi
13188 else
13189 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13190 fi
13191
13192 else
13193 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13194 fi
13195
13196
13197
13198
13199 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13200 if test -n "$with_build_time_tools"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13202 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13203 if test -x $with_build_time_tools/windres; then
13204 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13205 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13207 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13208 else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13211 fi
13212 elif test $build != $host && test $have_gcc_for_target = yes; then
13213 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13214 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13215 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13216 fi
13217 fi
13218 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13219 # Extract the first word of "windres", so it can be a program name with args.
13220 set dummy windres; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 case $WINDRES_FOR_TARGET in
13227 [\\/]* | ?:[\\/]*)
13228 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13229 ;;
13230 *)
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232 for as_dir in $gcc_cv_tool_dirs
13233 do
13234 IFS=$as_save_IFS
13235 test -z "$as_dir" && as_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13238 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240 break 2
13241 fi
13242 done
13243 done
13244 IFS=$as_save_IFS
13245
13246 ;;
13247 esac
13248 fi
13249 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13250 if test -n "$WINDRES_FOR_TARGET"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13252 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256 fi
13257
13258
13259 fi
13260 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13261
13262
13263 if test -n "$WINDRES_FOR_TARGET"; then
13264 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13265 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13266 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13267 fi
13268
13269 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13270 for ncn_progname in windres; do
13271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13272 set dummy ${ncn_progname}; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 if test -n "$WINDRES_FOR_TARGET"; then
13279 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13283 do
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13288 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 break 2
13291 fi
13292 done
13293 done
13294 IFS=$as_save_IFS
13295
13296 fi
13297 fi
13298 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13299 if test -n "$WINDRES_FOR_TARGET"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13301 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305 fi
13306
13307
13308 done
13309 fi
13310
13311 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13312 for ncn_progname in windres; do
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13314 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13315 if test -x $with_build_time_tools/${ncn_progname}; then
13316 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13318 $as_echo "yes" >&6; }
13319 break
13320 else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13323 fi
13324 done
13325 fi
13326
13327 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13328 for ncn_progname in windres; do
13329 if test -n "$ncn_target_tool_prefix"; then
13330 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13331 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333 $as_echo_n "checking for $ac_word... " >&6; }
13334 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
13336 else
13337 if test -n "$WINDRES_FOR_TARGET"; then
13338 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13339 else
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13342 do
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13347 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13349 break 2
13350 fi
13351 done
13352 done
13353 IFS=$as_save_IFS
13354
13355 fi
13356 fi
13357 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13358 if test -n "$WINDRES_FOR_TARGET"; then
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13360 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13361 else
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13364 fi
13365
13366
13367 fi
13368 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13370 set dummy ${ncn_progname}; ac_word=$2
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372 $as_echo_n "checking for $ac_word... " >&6; }
13373 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13375 else
13376 if test -n "$WINDRES_FOR_TARGET"; then
13377 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13378 else
13379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380 for as_dir in $PATH
13381 do
13382 IFS=$as_save_IFS
13383 test -z "$as_dir" && as_dir=.
13384 for ac_exec_ext in '' $ac_executable_extensions; do
13385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13386 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13388 break 2
13389 fi
13390 done
13391 done
13392 IFS=$as_save_IFS
13393
13394 fi
13395 fi
13396 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13397 if test -n "$WINDRES_FOR_TARGET"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13399 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13400 else
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 $as_echo "no" >&6; }
13403 fi
13404
13405
13406 fi
13407 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13408 done
13409 fi
13410
13411 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13412 set dummy windres
13413 if test $build = $target ; then
13414 WINDRES_FOR_TARGET="$2"
13415 else
13416 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13417 fi
13418 else
13419 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13420 fi
13421
13422 else
13423 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13424 fi
13425
13426
13427
13428
13429 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13430 if test -n "$with_build_time_tools"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13432 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13433 if test -x $with_build_time_tools/windmc; then
13434 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13435 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13437 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13438 else
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13441 fi
13442 elif test $build != $host && test $have_gcc_for_target = yes; then
13443 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13444 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13445 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13446 fi
13447 fi
13448 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13449 # Extract the first word of "windmc", so it can be a program name with args.
13450 set dummy windmc; ac_word=$2
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452 $as_echo_n "checking for $ac_word... " >&6; }
13453 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456 case $WINDMC_FOR_TARGET in
13457 [\\/]* | ?:[\\/]*)
13458 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13459 ;;
13460 *)
13461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13462 for as_dir in $gcc_cv_tool_dirs
13463 do
13464 IFS=$as_save_IFS
13465 test -z "$as_dir" && as_dir=.
13466 for ac_exec_ext in '' $ac_executable_extensions; do
13467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13468 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13470 break 2
13471 fi
13472 done
13473 done
13474 IFS=$as_save_IFS
13475
13476 ;;
13477 esac
13478 fi
13479 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13480 if test -n "$WINDMC_FOR_TARGET"; then
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13482 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13483 else
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13486 fi
13487
13488
13489 fi
13490 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13491
13492
13493 if test -n "$WINDMC_FOR_TARGET"; then
13494 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13495 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13496 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13497 fi
13498
13499 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13500 for ncn_progname in windmc; do
13501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13502 set dummy ${ncn_progname}; ac_word=$2
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 $as_echo_n "checking for $ac_word... " >&6; }
13505 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 if test -n "$WINDMC_FOR_TARGET"; then
13509 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13510 else
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13513 do
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13518 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 break 2
13521 fi
13522 done
13523 done
13524 IFS=$as_save_IFS
13525
13526 fi
13527 fi
13528 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13529 if test -n "$WINDMC_FOR_TARGET"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13531 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13532 else
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13535 fi
13536
13537
13538 done
13539 fi
13540
13541 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13542 for ncn_progname in windmc; do
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13544 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13545 if test -x $with_build_time_tools/${ncn_progname}; then
13546 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13548 $as_echo "yes" >&6; }
13549 break
13550 else
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552 $as_echo "no" >&6; }
13553 fi
13554 done
13555 fi
13556
13557 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13558 for ncn_progname in windmc; do
13559 if test -n "$ncn_target_tool_prefix"; then
13560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13561 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
13566 else
13567 if test -n "$WINDMC_FOR_TARGET"; then
13568 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13569 else
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13572 do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13577 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13580 fi
13581 done
13582 done
13583 IFS=$as_save_IFS
13584
13585 fi
13586 fi
13587 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13588 if test -n "$WINDMC_FOR_TARGET"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13590 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13591 else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13594 fi
13595
13596
13597 fi
13598 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13600 set dummy ${ncn_progname}; ac_word=$2
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602 $as_echo_n "checking for $ac_word... " >&6; }
13603 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 if test -n "$WINDMC_FOR_TARGET"; then
13607 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13608 else
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13611 do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 break 2
13619 fi
13620 done
13621 done
13622 IFS=$as_save_IFS
13623
13624 fi
13625 fi
13626 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13627 if test -n "$WINDMC_FOR_TARGET"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13629 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13630 else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632 $as_echo "no" >&6; }
13633 fi
13634
13635
13636 fi
13637 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13638 done
13639 fi
13640
13641 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13642 set dummy windmc
13643 if test $build = $target ; then
13644 WINDMC_FOR_TARGET="$2"
13645 else
13646 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13647 fi
13648 else
13649 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13650 fi
13651
13652 else
13653 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13654 fi
13655
13656
13657 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13660 $as_echo_n "checking where to find the target ar... " >&6; }
13661 if test "x${build}" != "x${host}" ; then
13662 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13663 # We already found the complete path
13664 ac_dir=`dirname $AR_FOR_TARGET`
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13666 $as_echo "pre-installed in $ac_dir" >&6; }
13667 else
13668 # Canadian cross, just use what we found
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13670 $as_echo "pre-installed" >&6; }
13671 fi
13672 else
13673 ok=yes
13674 case " ${configdirs} " in
13675 *" binutils "*) ;;
13676 *) ok=no ;;
13677 esac
13678
13679 if test $ok = yes; then
13680 # An in-tree tool is available and we can use it
13681 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13683 $as_echo "just compiled" >&6; }
13684 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13685 # We already found the complete path
13686 ac_dir=`dirname $AR_FOR_TARGET`
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13688 $as_echo "pre-installed in $ac_dir" >&6; }
13689 elif test "x$target" = "x$host"; then
13690 # We can use an host tool
13691 AR_FOR_TARGET='$(AR)'
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13693 $as_echo "host tool" >&6; }
13694 else
13695 # We need a cross tool
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697 $as_echo "pre-installed" >&6; }
13698 fi
13699 fi
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13702 $as_echo_n "checking where to find the target as... " >&6; }
13703 if test "x${build}" != "x${host}" ; then
13704 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13705 # We already found the complete path
13706 ac_dir=`dirname $AS_FOR_TARGET`
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13708 $as_echo "pre-installed in $ac_dir" >&6; }
13709 else
13710 # Canadian cross, just use what we found
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13712 $as_echo "pre-installed" >&6; }
13713 fi
13714 else
13715 ok=yes
13716 case " ${configdirs} " in
13717 *" gas "*) ;;
13718 *) ok=no ;;
13719 esac
13720
13721 if test $ok = yes; then
13722 # An in-tree tool is available and we can use it
13723 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13725 $as_echo "just compiled" >&6; }
13726 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
13728 ac_dir=`dirname $AS_FOR_TARGET`
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730 $as_echo "pre-installed in $ac_dir" >&6; }
13731 elif test "x$target" = "x$host"; then
13732 # We can use an host tool
13733 AS_FOR_TARGET='$(AS)'
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13735 $as_echo "host tool" >&6; }
13736 else
13737 # We need a cross tool
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13739 $as_echo "pre-installed" >&6; }
13740 fi
13741 fi
13742
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13744 $as_echo_n "checking where to find the target cc... " >&6; }
13745 if test "x${build}" != "x${host}" ; then
13746 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13747 # We already found the complete path
13748 ac_dir=`dirname $CC_FOR_TARGET`
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13750 $as_echo "pre-installed in $ac_dir" >&6; }
13751 else
13752 # Canadian cross, just use what we found
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13754 $as_echo "pre-installed" >&6; }
13755 fi
13756 else
13757 ok=yes
13758 case " ${configdirs} " in
13759 *" gcc "*) ;;
13760 *) ok=no ;;
13761 esac
13762
13763 if test $ok = yes; then
13764 # An in-tree tool is available and we can use it
13765 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13767 $as_echo "just compiled" >&6; }
13768 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
13770 ac_dir=`dirname $CC_FOR_TARGET`
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772 $as_echo "pre-installed in $ac_dir" >&6; }
13773 elif test "x$target" = "x$host"; then
13774 # We can use an host tool
13775 CC_FOR_TARGET='$(CC)'
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13777 $as_echo "host tool" >&6; }
13778 else
13779 # We need a cross tool
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13781 $as_echo "pre-installed" >&6; }
13782 fi
13783 fi
13784
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13786 $as_echo_n "checking where to find the target c++... " >&6; }
13787 if test "x${build}" != "x${host}" ; then
13788 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13789 # We already found the complete path
13790 ac_dir=`dirname $CXX_FOR_TARGET`
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13792 $as_echo "pre-installed in $ac_dir" >&6; }
13793 else
13794 # Canadian cross, just use what we found
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13796 $as_echo "pre-installed" >&6; }
13797 fi
13798 else
13799 ok=yes
13800 case " ${configdirs} " in
13801 *" gcc "*) ;;
13802 *) ok=no ;;
13803 esac
13804 case ,${enable_languages}, in
13805 *,c++,*) ;;
13806 *) ok=no ;;
13807 esac
13808 if test $ok = yes; then
13809 # An in-tree tool is available and we can use it
13810 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'
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13812 $as_echo "just compiled" >&6; }
13813 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13814 # We already found the complete path
13815 ac_dir=`dirname $CXX_FOR_TARGET`
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13817 $as_echo "pre-installed in $ac_dir" >&6; }
13818 elif test "x$target" = "x$host"; then
13819 # We can use an host tool
13820 CXX_FOR_TARGET='$(CXX)'
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13822 $as_echo "host tool" >&6; }
13823 else
13824 # We need a cross tool
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13826 $as_echo "pre-installed" >&6; }
13827 fi
13828 fi
13829
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13831 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13832 if test "x${build}" != "x${host}" ; then
13833 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13834 # We already found the complete path
13835 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13837 $as_echo "pre-installed in $ac_dir" >&6; }
13838 else
13839 # Canadian cross, just use what we found
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13841 $as_echo "pre-installed" >&6; }
13842 fi
13843 else
13844 ok=yes
13845 case " ${configdirs} " in
13846 *" gcc "*) ;;
13847 *) ok=no ;;
13848 esac
13849 case ,${enable_languages}, in
13850 *,c++,*) ;;
13851 *) ok=no ;;
13852 esac
13853 if test $ok = yes; then
13854 # An in-tree tool is available and we can use it
13855 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'
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13857 $as_echo "just compiled" >&6; }
13858 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13859 # We already found the complete path
13860 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13862 $as_echo "pre-installed in $ac_dir" >&6; }
13863 elif test "x$target" = "x$host"; then
13864 # We can use an host tool
13865 RAW_CXX_FOR_TARGET='$(CXX)'
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13867 $as_echo "host tool" >&6; }
13868 else
13869 # We need a cross tool
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13871 $as_echo "pre-installed" >&6; }
13872 fi
13873 fi
13874
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13876 $as_echo_n "checking where to find the target dlltool... " >&6; }
13877 if test "x${build}" != "x${host}" ; then
13878 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13879 # We already found the complete path
13880 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882 $as_echo "pre-installed in $ac_dir" >&6; }
13883 else
13884 # Canadian cross, just use what we found
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886 $as_echo "pre-installed" >&6; }
13887 fi
13888 else
13889 ok=yes
13890 case " ${configdirs} " in
13891 *" binutils "*) ;;
13892 *) ok=no ;;
13893 esac
13894
13895 if test $ok = yes; then
13896 # An in-tree tool is available and we can use it
13897 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13899 $as_echo "just compiled" >&6; }
13900 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13901 # We already found the complete path
13902 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13904 $as_echo "pre-installed in $ac_dir" >&6; }
13905 elif test "x$target" = "x$host"; then
13906 # We can use an host tool
13907 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13909 $as_echo "host tool" >&6; }
13910 else
13911 # We need a cross tool
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13913 $as_echo "pre-installed" >&6; }
13914 fi
13915 fi
13916
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13918 $as_echo_n "checking where to find the target gcc... " >&6; }
13919 if test "x${build}" != "x${host}" ; then
13920 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13921 # We already found the complete path
13922 ac_dir=`dirname $GCC_FOR_TARGET`
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924 $as_echo "pre-installed in $ac_dir" >&6; }
13925 else
13926 # Canadian cross, just use what we found
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13928 $as_echo "pre-installed" >&6; }
13929 fi
13930 else
13931 ok=yes
13932 case " ${configdirs} " in
13933 *" gcc "*) ;;
13934 *) ok=no ;;
13935 esac
13936
13937 if test $ok = yes; then
13938 # An in-tree tool is available and we can use it
13939 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13941 $as_echo "just compiled" >&6; }
13942 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13943 # We already found the complete path
13944 ac_dir=`dirname $GCC_FOR_TARGET`
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13946 $as_echo "pre-installed in $ac_dir" >&6; }
13947 elif test "x$target" = "x$host"; then
13948 # We can use an host tool
13949 GCC_FOR_TARGET='$()'
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13951 $as_echo "host tool" >&6; }
13952 else
13953 # We need a cross tool
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955 $as_echo "pre-installed" >&6; }
13956 fi
13957 fi
13958
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13960 $as_echo_n "checking where to find the target gcj... " >&6; }
13961 if test "x${build}" != "x${host}" ; then
13962 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
13964 ac_dir=`dirname $GCJ_FOR_TARGET`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966 $as_echo "pre-installed in $ac_dir" >&6; }
13967 else
13968 # Canadian cross, just use what we found
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970 $as_echo "pre-installed" >&6; }
13971 fi
13972 else
13973 ok=yes
13974 case " ${configdirs} " in
13975 *" gcc "*) ;;
13976 *) ok=no ;;
13977 esac
13978 case ,${enable_languages}, in
13979 *,java,*) ;;
13980 *) ok=no ;;
13981 esac
13982 if test $ok = yes; then
13983 # An in-tree tool is available and we can use it
13984 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13986 $as_echo "just compiled" >&6; }
13987 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13988 # We already found the complete path
13989 ac_dir=`dirname $GCJ_FOR_TARGET`
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13991 $as_echo "pre-installed in $ac_dir" >&6; }
13992 elif test "x$target" = "x$host"; then
13993 # We can use an host tool
13994 GCJ_FOR_TARGET='$(GCJ)'
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13996 $as_echo "host tool" >&6; }
13997 else
13998 # We need a cross tool
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000 $as_echo "pre-installed" >&6; }
14001 fi
14002 fi
14003
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14005 $as_echo_n "checking where to find the target gfortran... " >&6; }
14006 if test "x${build}" != "x${host}" ; then
14007 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
14009 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011 $as_echo "pre-installed in $ac_dir" >&6; }
14012 else
14013 # Canadian cross, just use what we found
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015 $as_echo "pre-installed" >&6; }
14016 fi
14017 else
14018 ok=yes
14019 case " ${configdirs} " in
14020 *" gcc "*) ;;
14021 *) ok=no ;;
14022 esac
14023 case ,${enable_languages}, in
14024 *,fortran,*) ;;
14025 *) ok=no ;;
14026 esac
14027 if test $ok = yes; then
14028 # An in-tree tool is available and we can use it
14029 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14031 $as_echo "just compiled" >&6; }
14032 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14033 # We already found the complete path
14034 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14036 $as_echo "pre-installed in $ac_dir" >&6; }
14037 elif test "x$target" = "x$host"; then
14038 # We can use an host tool
14039 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14041 $as_echo "host tool" >&6; }
14042 else
14043 # We need a cross tool
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14045 $as_echo "pre-installed" >&6; }
14046 fi
14047 fi
14048
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14050 $as_echo_n "checking where to find the target gccgo... " >&6; }
14051 if test "x${build}" != "x${host}" ; then
14052 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
14054 ac_dir=`dirname $GOC_FOR_TARGET`
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056 $as_echo "pre-installed in $ac_dir" >&6; }
14057 else
14058 # Canadian cross, just use what we found
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060 $as_echo "pre-installed" >&6; }
14061 fi
14062 else
14063 ok=yes
14064 case " ${configdirs} " in
14065 *" gcc "*) ;;
14066 *) ok=no ;;
14067 esac
14068 case ,${enable_languages}, in
14069 *,go,*) ;;
14070 *) ok=no ;;
14071 esac
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
14074 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076 $as_echo "just compiled" >&6; }
14077 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
14079 ac_dir=`dirname $GOC_FOR_TARGET`
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081 $as_echo "pre-installed in $ac_dir" >&6; }
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 GOC_FOR_TARGET='$(GOC)'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086 $as_echo "host tool" >&6; }
14087 else
14088 # We need a cross tool
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090 $as_echo "pre-installed" >&6; }
14091 fi
14092 fi
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14095 $as_echo_n "checking where to find the target ld... " >&6; }
14096 if test "x${build}" != "x${host}" ; then
14097 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
14099 ac_dir=`dirname $LD_FOR_TARGET`
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101 $as_echo "pre-installed in $ac_dir" >&6; }
14102 else
14103 # Canadian cross, just use what we found
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105 $as_echo "pre-installed" >&6; }
14106 fi
14107 else
14108 ok=yes
14109 case " ${configdirs} " in
14110 *" ld "*) ;;
14111 *) ok=no ;;
14112 esac
14113
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118 $as_echo "just compiled" >&6; }
14119 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $LD_FOR_TARGET`
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 LD_FOR_TARGET='$(LD)'
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128 $as_echo "host tool" >&6; }
14129 else
14130 # We need a cross tool
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14133 fi
14134 fi
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14137 $as_echo_n "checking where to find the target lipo... " >&6; }
14138 if test "x${build}" != "x${host}" ; then
14139 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
14141 ac_dir=`dirname $LIPO_FOR_TARGET`
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143 $as_echo "pre-installed in $ac_dir" >&6; }
14144 else
14145 # Canadian cross, just use what we found
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147 $as_echo "pre-installed" >&6; }
14148 fi
14149 else
14150 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
14152 ac_dir=`dirname $LIPO_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 LIPO_FOR_TARGET='$(LIPO)'
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 nm" >&5
14168 $as_echo_n "checking where to find the target nm... " >&6; }
14169 if test "x${build}" != "x${host}" ; then
14170 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
14172 ac_dir=`dirname $NM_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 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14191 $as_echo "just compiled" >&6; }
14192 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
14194 ac_dir=`dirname $NM_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 NM_FOR_TARGET='$(NM)'
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 objdump" >&5
14210 $as_echo_n "checking where to find the target objdump... " >&6; }
14211 if test "x${build}" != "x${host}" ; then
14212 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
14214 ac_dir=`dirname $OBJDUMP_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 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14233 $as_echo "just compiled" >&6; }
14234 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
14236 ac_dir=`dirname $OBJDUMP_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 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
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 ranlib" >&5
14252 $as_echo_n "checking where to find the target ranlib... " >&6; }
14253 if test "x${build}" != "x${host}" ; then
14254 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $RANLIB_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 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275 $as_echo "just compiled" >&6; }
14276 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
14278 ac_dir=`dirname $RANLIB_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 RANLIB_FOR_TARGET='$(RANLIB)'
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14294 $as_echo_n "checking where to find the target readelf... " >&6; }
14295 if test "x${build}" != "x${host}" ; then
14296 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $READELF_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14301 else
14302 # Canadian cross, just use what we found
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304 $as_echo "pre-installed" >&6; }
14305 fi
14306 else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" binutils "*) ;;
14310 *) ok=no ;;
14311 esac
14312
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317 $as_echo "just compiled" >&6; }
14318 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $READELF_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322 $as_echo "pre-installed in $ac_dir" >&6; }
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 READELF_FOR_TARGET='$(READELF)'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327 $as_echo "host tool" >&6; }
14328 else
14329 # We need a cross tool
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331 $as_echo "pre-installed" >&6; }
14332 fi
14333 fi
14334
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14336 $as_echo_n "checking where to find the target strip... " >&6; }
14337 if test "x${build}" != "x${host}" ; then
14338 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $STRIP_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14343 else
14344 # Canadian cross, just use what we found
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346 $as_echo "pre-installed" >&6; }
14347 fi
14348 else
14349 ok=yes
14350 case " ${configdirs} " in
14351 *" binutils "*) ;;
14352 *) ok=no ;;
14353 esac
14354
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
14357 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359 $as_echo "just compiled" >&6; }
14360 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
14362 ac_dir=`dirname $STRIP_FOR_TARGET`
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364 $as_echo "pre-installed in $ac_dir" >&6; }
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 STRIP_FOR_TARGET='$(STRIP)'
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369 $as_echo "host tool" >&6; }
14370 else
14371 # We need a cross tool
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373 $as_echo "pre-installed" >&6; }
14374 fi
14375 fi
14376
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14378 $as_echo_n "checking where to find the target windres... " >&6; }
14379 if test "x${build}" != "x${host}" ; then
14380 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $WINDRES_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384 $as_echo "pre-installed in $ac_dir" >&6; }
14385 else
14386 # Canadian cross, just use what we found
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388 $as_echo "pre-installed" >&6; }
14389 fi
14390 else
14391 ok=yes
14392 case " ${configdirs} " in
14393 *" binutils "*) ;;
14394 *) ok=no ;;
14395 esac
14396
14397 if test $ok = yes; then
14398 # An in-tree tool is available and we can use it
14399 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14401 $as_echo "just compiled" >&6; }
14402 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
14404 ac_dir=`dirname $WINDRES_FOR_TARGET`
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406 $as_echo "pre-installed in $ac_dir" >&6; }
14407 elif test "x$target" = "x$host"; then
14408 # We can use an host tool
14409 WINDRES_FOR_TARGET='$(WINDRES)'
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14411 $as_echo "host tool" >&6; }
14412 else
14413 # We need a cross tool
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415 $as_echo "pre-installed" >&6; }
14416 fi
14417 fi
14418
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14420 $as_echo_n "checking where to find the target windmc... " >&6; }
14421 if test "x${build}" != "x${host}" ; then
14422 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $WINDMC_FOR_TARGET`
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426 $as_echo "pre-installed in $ac_dir" >&6; }
14427 else
14428 # Canadian cross, just use what we found
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430 $as_echo "pre-installed" >&6; }
14431 fi
14432 else
14433 ok=yes
14434 case " ${configdirs} " in
14435 *" binutils "*) ;;
14436 *) ok=no ;;
14437 esac
14438
14439 if test $ok = yes; then
14440 # An in-tree tool is available and we can use it
14441 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14443 $as_echo "just compiled" >&6; }
14444 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14445 # We already found the complete path
14446 ac_dir=`dirname $WINDMC_FOR_TARGET`
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14448 $as_echo "pre-installed in $ac_dir" >&6; }
14449 elif test "x$target" = "x$host"; then
14450 # We can use an host tool
14451 WINDMC_FOR_TARGET='$(WINDMC)'
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14453 $as_echo "host tool" >&6; }
14454 else
14455 # We need a cross tool
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457 $as_echo "pre-installed" >&6; }
14458 fi
14459 fi
14460
14461
14462
14463
14464
14465 # Certain tools may need extra flags.
14466 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14467 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14468 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14469
14470 # When building target libraries, except in a Canadian cross, we use
14471 # the same toolchain as the compiler we just built.
14472 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14473 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14474 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14475 if test $host = $build; then
14476 case " $configdirs " in
14477 *" gcc "*)
14478 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14479 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14480 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14481 ;;
14482 esac
14483 fi
14484
14485
14486
14487
14488
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14490 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14491 # Check whether --enable-maintainer-mode was given.
14492 if test "${enable_maintainer_mode+set}" = set; then :
14493 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14494 else
14495 USE_MAINTAINER_MODE=no
14496 fi
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14499 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14500
14501
14502 if test "$USE_MAINTAINER_MODE" = yes; then
14503 MAINTAINER_MODE_TRUE=
14504 MAINTAINER_MODE_FALSE='#'
14505 else
14506 MAINTAINER_MODE_TRUE='#'
14507 MAINTAINER_MODE_FALSE=
14508 fi
14509 MAINT=$MAINTAINER_MODE_TRUE
14510
14511 # ---------------------
14512 # GCC bootstrap support
14513 # ---------------------
14514
14515 # Stage specific cflags for build.
14516 stage1_cflags="-g"
14517 case $build in
14518 vax-*-*)
14519 case ${GCC} in
14520 yes) stage1_cflags="-g -Wa,-J" ;;
14521 *) stage1_cflags="-g -J" ;;
14522 esac ;;
14523 esac
14524
14525
14526
14527 # Enable --enable-checking in stage1 of the compiler.
14528 # Check whether --enable-stage1-checking was given.
14529 if test "${enable_stage1_checking+set}" = set; then :
14530 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14531 else
14532 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14533 stage1_checking=--enable-checking=yes,types
14534 else
14535 stage1_checking=--enable-checking=$enable_checking,types
14536 fi
14537 fi
14538
14539
14540
14541 # Enable -Werror in bootstrap stage2 and later.
14542 # Check whether --enable-werror was given.
14543 if test "${enable_werror+set}" = set; then :
14544 enableval=$enable_werror;
14545 else
14546 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14547 enable_werror=yes
14548 else
14549 enable_werror=no
14550 fi
14551 fi
14552
14553 case ${enable_werror} in
14554 yes) stage2_werror_flag="--enable-werror-always" ;;
14555 *) stage2_werror_flag="" ;;
14556 esac
14557
14558
14559 # Enable --enable-host-shared.
14560 # Check whether --enable-host-shared was given.
14561 if test "${enable_host_shared+set}" = set; then :
14562 enableval=$enable_host_shared; host_shared=$enableval
14563 else
14564 host_shared=no
14565 fi
14566
14567
14568
14569 # Specify what files to not compare during bootstrap.
14570
14571 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14572 case "$target" in
14573 hppa*64*-*-hpux*) ;;
14574 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14575 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14576 esac
14577
14578
14579 ac_config_files="$ac_config_files Makefile"
14580
14581 cat >confcache <<\_ACEOF
14582 # This file is a shell script that caches the results of configure
14583 # tests run on this system so they can be shared between configure
14584 # scripts and configure runs, see configure's option --config-cache.
14585 # It is not useful on other systems. If it contains results you don't
14586 # want to keep, you may remove or edit it.
14587 #
14588 # config.status only pays attention to the cache file if you give it
14589 # the --recheck option to rerun configure.
14590 #
14591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14593 # following values.
14594
14595 _ACEOF
14596
14597 # The following way of writing the cache mishandles newlines in values,
14598 # but we know of no workaround that is simple, portable, and efficient.
14599 # So, we kill variables containing newlines.
14600 # Ultrix sh set writes to stderr and can't be redirected directly,
14601 # and sets the high bit in the cache file unless we assign to the vars.
14602 (
14603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14604 eval ac_val=\$$ac_var
14605 case $ac_val in #(
14606 *${as_nl}*)
14607 case $ac_var in #(
14608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14610 esac
14611 case $ac_var in #(
14612 _ | IFS | as_nl) ;; #(
14613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14614 *) { eval $ac_var=; unset $ac_var;} ;;
14615 esac ;;
14616 esac
14617 done
14618
14619 (set) 2>&1 |
14620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14621 *${as_nl}ac_space=\ *)
14622 # `set' does not quote correctly, so add quotes: double-quote
14623 # substitution turns \\\\ into \\, and sed turns \\ into \.
14624 sed -n \
14625 "s/'/'\\\\''/g;
14626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14627 ;; #(
14628 *)
14629 # `set' quotes correctly as required by POSIX, so do not add quotes.
14630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14631 ;;
14632 esac |
14633 sort
14634 ) |
14635 sed '
14636 /^ac_cv_env_/b end
14637 t clear
14638 :clear
14639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14640 t end
14641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14642 :end' >>confcache
14643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14644 if test -w "$cache_file"; then
14645 test "x$cache_file" != "x/dev/null" &&
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14647 $as_echo "$as_me: updating cache $cache_file" >&6;}
14648 cat confcache >$cache_file
14649 else
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14651 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14652 fi
14653 fi
14654 rm -f confcache
14655
14656 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14657 # Let make expand exec_prefix.
14658 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14659
14660 # Transform confdefs.h into DEFS.
14661 # Protect against shell expansion while executing Makefile rules.
14662 # Protect against Makefile macro expansion.
14663 #
14664 # If the first sed substitution is executed (which looks for macros that
14665 # take arguments), then branch to the quote section. Otherwise,
14666 # look for a macro that doesn't take arguments.
14667 ac_script='
14668 :mline
14669 /\\$/{
14670 N
14671 s,\\\n,,
14672 b mline
14673 }
14674 t clear
14675 :clear
14676 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14677 t quote
14678 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14679 t quote
14680 b any
14681 :quote
14682 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14683 s/\[/\\&/g
14684 s/\]/\\&/g
14685 s/\$/$$/g
14686 H
14687 :any
14688 ${
14689 g
14690 s/^\n//
14691 s/\n/ /g
14692 p
14693 }
14694 '
14695 DEFS=`sed -n "$ac_script" confdefs.h`
14696
14697
14698 ac_libobjs=
14699 ac_ltlibobjs=
14700 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14701 # 1. Remove the extension, and $U if already installed.
14702 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14703 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14704 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14705 # will be set to the directory where LIBOBJS objects are built.
14706 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14707 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14708 done
14709 LIBOBJS=$ac_libobjs
14710
14711 LTLIBOBJS=$ac_ltlibobjs
14712
14713
14714
14715 : ${CONFIG_STATUS=./config.status}
14716 ac_write_fail=0
14717 ac_clean_files_save=$ac_clean_files
14718 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14720 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14721 as_write_fail=0
14722 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14723 #! $SHELL
14724 # Generated by $as_me.
14725 # Run this file to recreate the current configuration.
14726 # Compiler output produced by configure, useful for debugging
14727 # configure, is in config.log if it exists.
14728
14729 debug=false
14730 ac_cs_recheck=false
14731 ac_cs_silent=false
14732
14733 SHELL=\${CONFIG_SHELL-$SHELL}
14734 export SHELL
14735 _ASEOF
14736 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14737 ## -------------------- ##
14738 ## M4sh Initialization. ##
14739 ## -------------------- ##
14740
14741 # Be more Bourne compatible
14742 DUALCASE=1; export DUALCASE # for MKS sh
14743 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14744 emulate sh
14745 NULLCMD=:
14746 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14747 # is contrary to our usage. Disable this feature.
14748 alias -g '${1+"$@"}'='"$@"'
14749 setopt NO_GLOB_SUBST
14750 else
14751 case `(set -o) 2>/dev/null` in #(
14752 *posix*) :
14753 set -o posix ;; #(
14754 *) :
14755 ;;
14756 esac
14757 fi
14758
14759
14760 as_nl='
14761 '
14762 export as_nl
14763 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14764 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14766 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14767 # Prefer a ksh shell builtin over an external printf program on Solaris,
14768 # but without wasting forks for bash or zsh.
14769 if test -z "$BASH_VERSION$ZSH_VERSION" \
14770 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14771 as_echo='print -r --'
14772 as_echo_n='print -rn --'
14773 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14774 as_echo='printf %s\n'
14775 as_echo_n='printf %s'
14776 else
14777 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14778 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14779 as_echo_n='/usr/ucb/echo -n'
14780 else
14781 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14782 as_echo_n_body='eval
14783 arg=$1;
14784 case $arg in #(
14785 *"$as_nl"*)
14786 expr "X$arg" : "X\\(.*\\)$as_nl";
14787 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14788 esac;
14789 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14790 '
14791 export as_echo_n_body
14792 as_echo_n='sh -c $as_echo_n_body as_echo'
14793 fi
14794 export as_echo_body
14795 as_echo='sh -c $as_echo_body as_echo'
14796 fi
14797
14798 # The user is always right.
14799 if test "${PATH_SEPARATOR+set}" != set; then
14800 PATH_SEPARATOR=:
14801 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14802 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14803 PATH_SEPARATOR=';'
14804 }
14805 fi
14806
14807
14808 # IFS
14809 # We need space, tab and new line, in precisely that order. Quoting is
14810 # there to prevent editors from complaining about space-tab.
14811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14812 # splitting by setting IFS to empty value.)
14813 IFS=" "" $as_nl"
14814
14815 # Find who we are. Look in the path if we contain no directory separator.
14816 case $0 in #((
14817 *[\\/]* ) as_myself=$0 ;;
14818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819 for as_dir in $PATH
14820 do
14821 IFS=$as_save_IFS
14822 test -z "$as_dir" && as_dir=.
14823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14824 done
14825 IFS=$as_save_IFS
14826
14827 ;;
14828 esac
14829 # We did not find ourselves, most probably we were run as `sh COMMAND'
14830 # in which case we are not to be found in the path.
14831 if test "x$as_myself" = x; then
14832 as_myself=$0
14833 fi
14834 if test ! -f "$as_myself"; then
14835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14836 exit 1
14837 fi
14838
14839 # Unset variables that we do not need and which cause bugs (e.g. in
14840 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14841 # suppresses any "Segmentation fault" message there. '((' could
14842 # trigger a bug in pdksh 5.2.14.
14843 for as_var in BASH_ENV ENV MAIL MAILPATH
14844 do eval test x\${$as_var+set} = xset \
14845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14846 done
14847 PS1='$ '
14848 PS2='> '
14849 PS4='+ '
14850
14851 # NLS nuisances.
14852 LC_ALL=C
14853 export LC_ALL
14854 LANGUAGE=C
14855 export LANGUAGE
14856
14857 # CDPATH.
14858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14859
14860
14861 # as_fn_error ERROR [LINENO LOG_FD]
14862 # ---------------------------------
14863 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14864 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14865 # script with status $?, using 1 if that was 0.
14866 as_fn_error ()
14867 {
14868 as_status=$?; test $as_status -eq 0 && as_status=1
14869 if test "$3"; then
14870 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14872 fi
14873 $as_echo "$as_me: error: $1" >&2
14874 as_fn_exit $as_status
14875 } # as_fn_error
14876
14877
14878 # as_fn_set_status STATUS
14879 # -----------------------
14880 # Set $? to STATUS, without forking.
14881 as_fn_set_status ()
14882 {
14883 return $1
14884 } # as_fn_set_status
14885
14886 # as_fn_exit STATUS
14887 # -----------------
14888 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14889 as_fn_exit ()
14890 {
14891 set +e
14892 as_fn_set_status $1
14893 exit $1
14894 } # as_fn_exit
14895
14896 # as_fn_unset VAR
14897 # ---------------
14898 # Portably unset VAR.
14899 as_fn_unset ()
14900 {
14901 { eval $1=; unset $1;}
14902 }
14903 as_unset=as_fn_unset
14904 # as_fn_append VAR VALUE
14905 # ----------------------
14906 # Append the text in VALUE to the end of the definition contained in VAR. Take
14907 # advantage of any shell optimizations that allow amortized linear growth over
14908 # repeated appends, instead of the typical quadratic growth present in naive
14909 # implementations.
14910 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14911 eval 'as_fn_append ()
14912 {
14913 eval $1+=\$2
14914 }'
14915 else
14916 as_fn_append ()
14917 {
14918 eval $1=\$$1\$2
14919 }
14920 fi # as_fn_append
14921
14922 # as_fn_arith ARG...
14923 # ------------------
14924 # Perform arithmetic evaluation on the ARGs, and store the result in the
14925 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14926 # must be portable across $(()) and expr.
14927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14928 eval 'as_fn_arith ()
14929 {
14930 as_val=$(( $* ))
14931 }'
14932 else
14933 as_fn_arith ()
14934 {
14935 as_val=`expr "$@" || test $? -eq 1`
14936 }
14937 fi # as_fn_arith
14938
14939
14940 if expr a : '\(a\)' >/dev/null 2>&1 &&
14941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14942 as_expr=expr
14943 else
14944 as_expr=false
14945 fi
14946
14947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14948 as_basename=basename
14949 else
14950 as_basename=false
14951 fi
14952
14953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14954 as_dirname=dirname
14955 else
14956 as_dirname=false
14957 fi
14958
14959 as_me=`$as_basename -- "$0" ||
14960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14961 X"$0" : 'X\(//\)$' \| \
14962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14963 $as_echo X/"$0" |
14964 sed '/^.*\/\([^/][^/]*\)\/*$/{
14965 s//\1/
14966 q
14967 }
14968 /^X\/\(\/\/\)$/{
14969 s//\1/
14970 q
14971 }
14972 /^X\/\(\/\).*/{
14973 s//\1/
14974 q
14975 }
14976 s/.*/./; q'`
14977
14978 # Avoid depending upon Character Ranges.
14979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14982 as_cr_digits='0123456789'
14983 as_cr_alnum=$as_cr_Letters$as_cr_digits
14984
14985 ECHO_C= ECHO_N= ECHO_T=
14986 case `echo -n x` in #(((((
14987 -n*)
14988 case `echo 'xy\c'` in
14989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14990 xy) ECHO_C='\c';;
14991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14992 ECHO_T=' ';;
14993 esac;;
14994 *)
14995 ECHO_N='-n';;
14996 esac
14997
14998 rm -f conf$$ conf$$.exe conf$$.file
14999 if test -d conf$$.dir; then
15000 rm -f conf$$.dir/conf$$.file
15001 else
15002 rm -f conf$$.dir
15003 mkdir conf$$.dir 2>/dev/null
15004 fi
15005 if (echo >conf$$.file) 2>/dev/null; then
15006 if ln -s conf$$.file conf$$ 2>/dev/null; then
15007 as_ln_s='ln -s'
15008 # ... but there are two gotchas:
15009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15011 # In both cases, we have to default to `cp -p'.
15012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15013 as_ln_s='cp -p'
15014 elif ln conf$$.file conf$$ 2>/dev/null; then
15015 as_ln_s=ln
15016 else
15017 as_ln_s='cp -p'
15018 fi
15019 else
15020 as_ln_s='cp -p'
15021 fi
15022 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15023 rmdir conf$$.dir 2>/dev/null
15024
15025
15026 # as_fn_mkdir_p
15027 # -------------
15028 # Create "$as_dir" as a directory, including parents if necessary.
15029 as_fn_mkdir_p ()
15030 {
15031
15032 case $as_dir in #(
15033 -*) as_dir=./$as_dir;;
15034 esac
15035 test -d "$as_dir" || eval $as_mkdir_p || {
15036 as_dirs=
15037 while :; do
15038 case $as_dir in #(
15039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15040 *) as_qdir=$as_dir;;
15041 esac
15042 as_dirs="'$as_qdir' $as_dirs"
15043 as_dir=`$as_dirname -- "$as_dir" ||
15044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15045 X"$as_dir" : 'X\(//\)[^/]' \| \
15046 X"$as_dir" : 'X\(//\)$' \| \
15047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15048 $as_echo X"$as_dir" |
15049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)[^/].*/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\/\)$/{
15058 s//\1/
15059 q
15060 }
15061 /^X\(\/\).*/{
15062 s//\1/
15063 q
15064 }
15065 s/.*/./; q'`
15066 test -d "$as_dir" && break
15067 done
15068 test -z "$as_dirs" || eval "mkdir $as_dirs"
15069 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15070
15071
15072 } # as_fn_mkdir_p
15073 if mkdir -p . 2>/dev/null; then
15074 as_mkdir_p='mkdir -p "$as_dir"'
15075 else
15076 test -d ./-p && rmdir ./-p
15077 as_mkdir_p=false
15078 fi
15079
15080 if test -x / >/dev/null 2>&1; then
15081 as_test_x='test -x'
15082 else
15083 if ls -dL / >/dev/null 2>&1; then
15084 as_ls_L_option=L
15085 else
15086 as_ls_L_option=
15087 fi
15088 as_test_x='
15089 eval sh -c '\''
15090 if test -d "$1"; then
15091 test -d "$1/.";
15092 else
15093 case $1 in #(
15094 -*)set "./$1";;
15095 esac;
15096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15097 ???[sx]*):;;*)false;;esac;fi
15098 '\'' sh
15099 '
15100 fi
15101 as_executable_p=$as_test_x
15102
15103 # Sed expression to map a string onto a valid CPP name.
15104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15105
15106 # Sed expression to map a string onto a valid variable name.
15107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15108
15109
15110 exec 6>&1
15111 ## ----------------------------------- ##
15112 ## Main body of $CONFIG_STATUS script. ##
15113 ## ----------------------------------- ##
15114 _ASEOF
15115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15116
15117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15118 # Save the log message, to keep $0 and so on meaningful, and to
15119 # report actual input values of CONFIG_FILES etc. instead of their
15120 # values after options handling.
15121 ac_log="
15122 This file was extended by $as_me, which was
15123 generated by GNU Autoconf 2.64. Invocation command line was
15124
15125 CONFIG_FILES = $CONFIG_FILES
15126 CONFIG_HEADERS = $CONFIG_HEADERS
15127 CONFIG_LINKS = $CONFIG_LINKS
15128 CONFIG_COMMANDS = $CONFIG_COMMANDS
15129 $ $0 $@
15130
15131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15132 "
15133
15134 _ACEOF
15135
15136 case $ac_config_files in *"
15137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15138 esac
15139
15140
15141
15142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15143 # Files that config.status was made for.
15144 config_files="$ac_config_files"
15145
15146 _ACEOF
15147
15148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15149 ac_cs_usage="\
15150 \`$as_me' instantiates files and other configuration actions
15151 from templates according to the current configuration. Unless the files
15152 and actions are specified as TAGs, all are instantiated by default.
15153
15154 Usage: $0 [OPTION]... [TAG]...
15155
15156 -h, --help print this help, then exit
15157 -V, --version print version number and configuration settings, then exit
15158 -q, --quiet, --silent
15159 do not print progress messages
15160 -d, --debug don't remove temporary files
15161 --recheck update $as_me by reconfiguring in the same conditions
15162 --file=FILE[:TEMPLATE]
15163 instantiate the configuration file FILE
15164
15165 Configuration files:
15166 $config_files
15167
15168 Report bugs to the package provider."
15169
15170 _ACEOF
15171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15172 ac_cs_version="\\
15173 config.status
15174 configured by $0, generated by GNU Autoconf 2.64,
15175 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15176
15177 Copyright (C) 2009 Free Software Foundation, Inc.
15178 This config.status script is free software; the Free Software Foundation
15179 gives unlimited permission to copy, distribute and modify it."
15180
15181 ac_pwd='$ac_pwd'
15182 srcdir='$srcdir'
15183 INSTALL='$INSTALL'
15184 AWK='$AWK'
15185 test -n "\$AWK" || AWK=awk
15186 _ACEOF
15187
15188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15189 # The default lists apply if the user does not specify any file.
15190 ac_need_defaults=:
15191 while test $# != 0
15192 do
15193 case $1 in
15194 --*=*)
15195 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15196 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15197 ac_shift=:
15198 ;;
15199 *)
15200 ac_option=$1
15201 ac_optarg=$2
15202 ac_shift=shift
15203 ;;
15204 esac
15205
15206 case $ac_option in
15207 # Handling of the options.
15208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15209 ac_cs_recheck=: ;;
15210 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15211 $as_echo "$ac_cs_version"; exit ;;
15212 --debug | --debu | --deb | --de | --d | -d )
15213 debug=: ;;
15214 --file | --fil | --fi | --f )
15215 $ac_shift
15216 case $ac_optarg in
15217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15218 esac
15219 as_fn_append CONFIG_FILES " '$ac_optarg'"
15220 ac_need_defaults=false;;
15221 --he | --h | --help | --hel | -h )
15222 $as_echo "$ac_cs_usage"; exit ;;
15223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15225 ac_cs_silent=: ;;
15226
15227 # This is an error.
15228 -*) as_fn_error "unrecognized option: \`$1'
15229 Try \`$0 --help' for more information." ;;
15230
15231 *) as_fn_append ac_config_targets " $1"
15232 ac_need_defaults=false ;;
15233
15234 esac
15235 shift
15236 done
15237
15238 ac_configure_extra_args=
15239
15240 if $ac_cs_silent; then
15241 exec 6>/dev/null
15242 ac_configure_extra_args="$ac_configure_extra_args --silent"
15243 fi
15244
15245 _ACEOF
15246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15247 if \$ac_cs_recheck; then
15248 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15249 shift
15250 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15251 CONFIG_SHELL='$SHELL'
15252 export CONFIG_SHELL
15253 exec "\$@"
15254 fi
15255
15256 _ACEOF
15257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15258 exec 5>>config.log
15259 {
15260 echo
15261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15262 ## Running $as_me. ##
15263 _ASBOX
15264 $as_echo "$ac_log"
15265 } >&5
15266
15267 _ACEOF
15268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15269 #
15270 # INIT-COMMANDS
15271 #
15272 extrasub_build="$extrasub_build"
15273 extrasub_host="$extrasub_host"
15274 extrasub_target="$extrasub_target"
15275
15276 _ACEOF
15277
15278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15279
15280 # Handling of arguments.
15281 for ac_config_target in $ac_config_targets
15282 do
15283 case $ac_config_target in
15284 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15285
15286 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15287 esac
15288 done
15289
15290
15291 # If the user did not use the arguments to specify the items to instantiate,
15292 # then the envvar interface is used. Set only those that are not.
15293 # We use the long form for the default assignment because of an extremely
15294 # bizarre bug on SunOS 4.1.3.
15295 if $ac_need_defaults; then
15296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15297 fi
15298
15299 # Have a temporary directory for convenience. Make it in the build tree
15300 # simply because there is no reason against having it here, and in addition,
15301 # creating and moving files from /tmp can sometimes cause problems.
15302 # Hook for its removal unless debugging.
15303 # Note that there is a small window in which the directory will not be cleaned:
15304 # after its creation but before its name has been assigned to `$tmp'.
15305 $debug ||
15306 {
15307 tmp=
15308 trap 'exit_status=$?
15309 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15310 ' 0
15311 trap 'as_fn_exit 1' 1 2 13 15
15312 }
15313 # Create a (secure) tmp directory for tmp files.
15314
15315 {
15316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15317 test -n "$tmp" && test -d "$tmp"
15318 } ||
15319 {
15320 tmp=./conf$$-$RANDOM
15321 (umask 077 && mkdir "$tmp")
15322 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15323
15324 # Set up the scripts for CONFIG_FILES section.
15325 # No need to generate them if there are no CONFIG_FILES.
15326 # This happens for instance with `./config.status config.h'.
15327 if test -n "$CONFIG_FILES"; then
15328
15329 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15330 ac_cs_awk_getline=:
15331 ac_cs_awk_pipe_init=
15332 ac_cs_awk_read_file='
15333 while ((getline aline < (F[key])) > 0)
15334 print(aline)
15335 close(F[key])'
15336 ac_cs_awk_pipe_fini=
15337 else
15338 ac_cs_awk_getline=false
15339 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15340 ac_cs_awk_read_file='
15341 print "|#_!!_#|"
15342 print "cat " F[key] " &&"
15343 '$ac_cs_awk_pipe_init
15344 # The final `:' finishes the AND list.
15345 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15346 fi
15347 ac_cr=`echo X | tr X '\015'`
15348 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15349 # But we know of no other shell where ac_cr would be empty at this
15350 # point, so we can use a bashism as a fallback.
15351 if test "x$ac_cr" = x; then
15352 eval ac_cr=\$\'\\r\'
15353 fi
15354 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15355 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15356 ac_cs_awk_cr='\r'
15357 else
15358 ac_cs_awk_cr=$ac_cr
15359 fi
15360
15361 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15362 _ACEOF
15363
15364 # Create commands to substitute file output variables.
15365 {
15366 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15367 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15368 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15369 echo "_ACAWK" &&
15370 echo "_ACEOF"
15371 } >conf$$files.sh &&
15372 . ./conf$$files.sh ||
15373 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15374 rm -f conf$$files.sh
15375
15376 {
15377 echo "cat >conf$$subs.awk <<_ACEOF" &&
15378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15379 echo "_ACEOF"
15380 } >conf$$subs.sh ||
15381 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15383 ac_delim='%!_!# '
15384 for ac_last_try in false false false false false :; do
15385 . ./conf$$subs.sh ||
15386 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15387
15388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15389 if test $ac_delim_n = $ac_delim_num; then
15390 break
15391 elif $ac_last_try; then
15392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15393 else
15394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15395 fi
15396 done
15397 rm -f conf$$subs.sh
15398
15399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15401 _ACEOF
15402 sed -n '
15403 h
15404 s/^/S["/; s/!.*/"]=/
15405 p
15406 g
15407 s/^[^!]*!//
15408 :repl
15409 t repl
15410 s/'"$ac_delim"'$//
15411 t delim
15412 :nl
15413 h
15414 s/\(.\{148\}\).*/\1/
15415 t more1
15416 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15417 p
15418 n
15419 b repl
15420 :more1
15421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15422 p
15423 g
15424 s/.\{148\}//
15425 t nl
15426 :delim
15427 h
15428 s/\(.\{148\}\).*/\1/
15429 t more2
15430 s/["\\]/\\&/g; s/^/"/; s/$/"/
15431 p
15432 b
15433 :more2
15434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15435 p
15436 g
15437 s/.\{148\}//
15438 t delim
15439 ' <conf$$subs.awk | sed '
15440 /^[^""]/{
15441 N
15442 s/\n//
15443 }
15444 ' >>$CONFIG_STATUS || ac_write_fail=1
15445 rm -f conf$$subs.awk
15446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15447 _ACAWK
15448 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15449 for (key in S) S_is_set[key] = 1
15450 FS = "\a"
15451 \$ac_cs_awk_pipe_init
15452 }
15453 {
15454 line = $ 0
15455 nfields = split(line, field, "@")
15456 substed = 0
15457 len = length(field[1])
15458 for (i = 2; i < nfields; i++) {
15459 key = field[i]
15460 keylen = length(key)
15461 if (S_is_set[key]) {
15462 value = S[key]
15463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15464 len += length(value) + length(field[++i])
15465 substed = 1
15466 } else
15467 len += 1 + keylen
15468 }
15469 if (nfields == 3 && !substed) {
15470 key = field[2]
15471 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15472 \$ac_cs_awk_read_file
15473 next
15474 }
15475 }
15476 print line
15477 }
15478 \$ac_cs_awk_pipe_fini
15479 _ACAWK
15480 _ACEOF
15481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15484 else
15485 cat
15486 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15487 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15488 _ACEOF
15489
15490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15492 # trailing colons and then remove the whole line if VPATH becomes empty
15493 # (actually we leave an empty line to preserve line numbers).
15494 if test "x$srcdir" = x.; then
15495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15496 s/:*\$(srcdir):*/:/
15497 s/:*\${srcdir}:*/:/
15498 s/:*@srcdir@:*/:/
15499 s/^\([^=]*=[ ]*\):*/\1/
15500 s/:*$//
15501 s/^[^=]*=[ ]*$//
15502 }'
15503 fi
15504
15505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15506 fi # test -n "$CONFIG_FILES"
15507
15508
15509 eval set X " :F $CONFIG_FILES "
15510 shift
15511 for ac_tag
15512 do
15513 case $ac_tag in
15514 :[FHLC]) ac_mode=$ac_tag; continue;;
15515 esac
15516 case $ac_mode$ac_tag in
15517 :[FHL]*:*);;
15518 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15519 :[FH]-) ac_tag=-:-;;
15520 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15521 esac
15522 ac_save_IFS=$IFS
15523 IFS=:
15524 set x $ac_tag
15525 IFS=$ac_save_IFS
15526 shift
15527 ac_file=$1
15528 shift
15529
15530 case $ac_mode in
15531 :L) ac_source=$1;;
15532 :[FH])
15533 ac_file_inputs=
15534 for ac_f
15535 do
15536 case $ac_f in
15537 -) ac_f="$tmp/stdin";;
15538 *) # Look for the file first in the build tree, then in the source tree
15539 # (if the path is not absolute). The absolute path cannot be DOS-style,
15540 # because $ac_f cannot contain `:'.
15541 test -f "$ac_f" ||
15542 case $ac_f in
15543 [\\/$]*) false;;
15544 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15545 esac ||
15546 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15547 esac
15548 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15549 as_fn_append ac_file_inputs " '$ac_f'"
15550 done
15551
15552 # Let's still pretend it is `configure' which instantiates (i.e., don't
15553 # use $as_me), people would be surprised to read:
15554 # /* config.h. Generated by config.status. */
15555 configure_input='Generated from '`
15556 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15557 `' by configure.'
15558 if test x"$ac_file" != x-; then
15559 configure_input="$ac_file. $configure_input"
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15561 $as_echo "$as_me: creating $ac_file" >&6;}
15562 fi
15563 # Neutralize special characters interpreted by sed in replacement strings.
15564 case $configure_input in #(
15565 *\&* | *\|* | *\\* )
15566 ac_sed_conf_input=`$as_echo "$configure_input" |
15567 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15568 *) ac_sed_conf_input=$configure_input;;
15569 esac
15570
15571 case $ac_tag in
15572 *:-:* | *:-) cat >"$tmp/stdin" \
15573 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15574 esac
15575 ;;
15576 esac
15577
15578 ac_dir=`$as_dirname -- "$ac_file" ||
15579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15580 X"$ac_file" : 'X\(//\)[^/]' \| \
15581 X"$ac_file" : 'X\(//\)$' \| \
15582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15583 $as_echo X"$ac_file" |
15584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15585 s//\1/
15586 q
15587 }
15588 /^X\(\/\/\)[^/].*/{
15589 s//\1/
15590 q
15591 }
15592 /^X\(\/\/\)$/{
15593 s//\1/
15594 q
15595 }
15596 /^X\(\/\).*/{
15597 s//\1/
15598 q
15599 }
15600 s/.*/./; q'`
15601 as_dir="$ac_dir"; as_fn_mkdir_p
15602 ac_builddir=.
15603
15604 case "$ac_dir" in
15605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15606 *)
15607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15608 # A ".." for each directory in $ac_dir_suffix.
15609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15610 case $ac_top_builddir_sub in
15611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15613 esac ;;
15614 esac
15615 ac_abs_top_builddir=$ac_pwd
15616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15617 # for backward compatibility:
15618 ac_top_builddir=$ac_top_build_prefix
15619
15620 case $srcdir in
15621 .) # We are building in place.
15622 ac_srcdir=.
15623 ac_top_srcdir=$ac_top_builddir_sub
15624 ac_abs_top_srcdir=$ac_pwd ;;
15625 [\\/]* | ?:[\\/]* ) # Absolute name.
15626 ac_srcdir=$srcdir$ac_dir_suffix;
15627 ac_top_srcdir=$srcdir
15628 ac_abs_top_srcdir=$srcdir ;;
15629 *) # Relative name.
15630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15631 ac_top_srcdir=$ac_top_build_prefix$srcdir
15632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15633 esac
15634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15635
15636
15637 case $ac_mode in
15638 :F)
15639 #
15640 # CONFIG_FILE
15641 #
15642
15643 case $INSTALL in
15644 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15645 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15646 esac
15647 _ACEOF
15648
15649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650 # If the template does not know about datarootdir, expand it.
15651 # FIXME: This hack should be removed a few years after 2.60.
15652 ac_datarootdir_hack=; ac_datarootdir_seen=
15653 ac_sed_dataroot='
15654 /datarootdir/ {
15655 p
15656 q
15657 }
15658 /@datadir@/p
15659 /@docdir@/p
15660 /@infodir@/p
15661 /@localedir@/p
15662 /@mandir@/p'
15663 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15664 *datarootdir*) ac_datarootdir_seen=yes;;
15665 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15667 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15668 _ACEOF
15669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15670 ac_datarootdir_hack='
15671 s&@datadir@&$datadir&g
15672 s&@docdir@&$docdir&g
15673 s&@infodir@&$infodir&g
15674 s&@localedir@&$localedir&g
15675 s&@mandir@&$mandir&g
15676 s&\\\${datarootdir}&$datarootdir&g' ;;
15677 esac
15678 _ACEOF
15679
15680 # Neutralize VPATH when `$srcdir' = `.'.
15681 # Shell code in configure.ac might set extrasub.
15682 # FIXME: do we really want to maintain this feature?
15683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15684 ac_sed_extra="$ac_vpsub
15685 $extrasub
15686 _ACEOF
15687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15688 :t
15689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15690 s|@configure_input@|$ac_sed_conf_input|;t t
15691 s&@top_builddir@&$ac_top_builddir_sub&;t t
15692 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15693 s&@srcdir@&$ac_srcdir&;t t
15694 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15695 s&@top_srcdir@&$ac_top_srcdir&;t t
15696 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15697 s&@builddir@&$ac_builddir&;t t
15698 s&@abs_builddir@&$ac_abs_builddir&;t t
15699 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15700 s&@INSTALL@&$ac_INSTALL&;t t
15701 $ac_datarootdir_hack
15702 "
15703 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15704 if $ac_cs_awk_getline; then
15705 $AWK -f "$tmp/subs.awk"
15706 else
15707 $AWK -f "$tmp/subs.awk" | $SHELL
15708 fi >$tmp/out \
15709 || as_fn_error "could not create $ac_file" "$LINENO" 5
15710
15711 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15712 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15713 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15715 which seems to be undefined. Please make sure it is defined." >&5
15716 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15717 which seems to be undefined. Please make sure it is defined." >&2;}
15718
15719 rm -f "$tmp/stdin"
15720 case $ac_file in
15721 -) cat "$tmp/out" && rm -f "$tmp/out";;
15722 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15723 esac \
15724 || as_fn_error "could not create $ac_file" "$LINENO" 5
15725 ;;
15726
15727
15728
15729 esac
15730
15731
15732 case $ac_file$ac_mode in
15733 "Makefile":F) sed "$extrasub_build" Makefile |
15734 sed "$extrasub_host" |
15735 sed "$extrasub_target" > mf$$
15736 mv -f mf$$ Makefile ;;
15737
15738 esac
15739 done # for ac_tag
15740
15741
15742 as_fn_exit 0
15743 _ACEOF
15744 ac_clean_files=$ac_clean_files_save
15745
15746 test $ac_write_fail = 0 ||
15747 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15748
15749
15750 # configure is writing to config.log, and then calls config.status.
15751 # config.status does its own redirection, appending to config.log.
15752 # Unfortunately, on DOS this fails, as config.log is still kept open
15753 # by configure, so config.status won't be able to write to it; its
15754 # output is simply discarded. So we exec the FD to /dev/null,
15755 # effectively closing config.log, so it can be properly (re)opened and
15756 # appended to by config.status. When coming back to configure, we
15757 # need to make the FD available again.
15758 if test "$no_create" != yes; then
15759 ac_cs_success=:
15760 ac_config_status_args=
15761 test "$silent" = yes &&
15762 ac_config_status_args="$ac_config_status_args --quiet"
15763 exec 5>/dev/null
15764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15765 exec 5>>config.log
15766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15767 # would make configure fail if this is the last instruction.
15768 $ac_cs_success || as_fn_exit $?
15769 fi
15770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15772 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15773 fi
15774
This page took 0.358923 seconds and 5 git commands to generate.