PR target/38607
[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 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 READELF_FOR_TARGET
574 RANLIB_FOR_TARGET
575 OBJDUMP_FOR_TARGET
576 NM_FOR_TARGET
577 LIPO_FOR_TARGET
578 LD_FOR_TARGET
579 DLLTOOL_FOR_TARGET
580 AS_FOR_TARGET
581 AR_FOR_TARGET
582 GOC_FOR_TARGET
583 GFORTRAN_FOR_TARGET
584 GCJ_FOR_TARGET
585 GCC_FOR_TARGET
586 CXX_FOR_TARGET
587 CC_FOR_TARGET
588 READELF
589 OBJDUMP
590 OBJCOPY
591 WINDMC
592 WINDRES
593 STRIP
594 RANLIB
595 NM
596 LIPO
597 LD
598 DLLTOOL
599 AS
600 AR
601 RUNTEST
602 EXPECT
603 MAKEINFO
604 FLEX
605 LEX
606 M4
607 BISON
608 YACC
609 WINDRES_FOR_BUILD
610 WINDMC_FOR_BUILD
611 RANLIB_FOR_BUILD
612 NM_FOR_BUILD
613 LD_FOR_BUILD
614 LDFLAGS_FOR_BUILD
615 GOC_FOR_BUILD
616 GFORTRAN_FOR_BUILD
617 GCJ_FOR_BUILD
618 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 stage1_languages
645 extra_host_libiberty_configure_flags
646 clooginc
647 clooglibs
648 islinc
649 isllibs
650 poststage1_ldflags
651 poststage1_libs
652 stage1_libs
653 stage1_ldflags
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_static_libjava
754 enable_bootstrap
755 with_mpc
756 with_mpc_include
757 with_mpc_lib
758 with_mpfr_dir
759 with_mpfr
760 with_mpfr_include
761 with_mpfr_lib
762 with_gmp_dir
763 with_gmp
764 with_gmp_include
765 with_gmp_lib
766 with_host_libstdcxx
767 with_stage1_ldflags
768 with_stage1_libs
769 with_boot_libs
770 with_boot_ldflags
771 with_isl
772 with_isl_include
773 with_isl_lib
774 enable_isl_version_check
775 with_cloog
776 with_cloog_include
777 with_cloog_lib
778 enable_cloog_version_check
779 enable_lto
780 enable_stage1_languages
781 enable_objc_gc
782 with_build_sysroot
783 with_debug_prefix_map
784 with_build_config
785 enable_serial_configure
786 with_build_time_tools
787 enable_maintainer_mode
788 enable_stage1_checking
789 enable_werror
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 build_configargs
803 host_configargs
804 target_configargs
805 AR
806 AS
807 DLLTOOL
808 LD
809 LIPO
810 NM
811 RANLIB
812 STRIP
813 WINDRES
814 WINDMC
815 OBJCOPY
816 OBJDUMP
817 READELF
818 CC_FOR_TARGET
819 CXX_FOR_TARGET
820 GCC_FOR_TARGET
821 GCJ_FOR_TARGET
822 GFORTRAN_FOR_TARGET
823 GOC_FOR_TARGET
824 AR_FOR_TARGET
825 AS_FOR_TARGET
826 DLLTOOL_FOR_TARGET
827 LD_FOR_TARGET
828 LIPO_FOR_TARGET
829 NM_FOR_TARGET
830 OBJDUMP_FOR_TARGET
831 RANLIB_FOR_TARGET
832 READELF_FOR_TARGET
833 STRIP_FOR_TARGET
834 WINDRES_FOR_TARGET
835 WINDMC_FOR_TARGET'
836
837
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
859
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
895 fi
896
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information."
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 case $srcdir in
1364 *" "*)
1365 as_fn_error "path to source, $srcdir, contains spaces"
1366 ;;
1367 esac
1368 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1376
1377 #
1378 # Report the --help message.
1379 #
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384 \`configure' configures this package to adapt to many kinds of systems.
1385
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1390
1391 Defaults for the options are specified in brackets.
1392
1393 Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 [PREFIX]
1409
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1414
1415 For better control, use the options below.
1416
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437 _ACEOF
1438
1439 cat <<\_ACEOF
1440
1441 Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446 System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454
1455 cat <<\_ACEOF
1456
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
1468 --enable-static-libjava[=ARG]
1469 build static libjava [default=no]
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --disable-isl-version-check
1472 disable check for ISL version
1473 --disable-cloog-version-check
1474 disable check for CLooG version
1475 --enable-lto enable link time optimization support
1476 --enable-stage1-languages[=all]
1477 choose additional languages to build during stage1.
1478 Mostly useful for compiler development
1479 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1480 Objective-C runtime
1481 --enable-serial-[{host,target,build}-]configure
1482 force sequential configuration of sub-packages for
1483 the host, target or build machine, or all
1484 sub-packages
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-stage1-checking[=all]
1489 choose additional checking for stage1 of the
1490 compiler
1491 --enable-werror enable -Werror in bootstrap stage2 and later
1492
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-build-libsubdir=DIR Directory where to find libraries for build system
1497 --with-mpc=PATH specify prefix directory for installed MPC package.
1498 Equivalent to --with-mpc-include=PATH/include plus
1499 --with-mpc-lib=PATH/lib
1500 --with-mpc-include=PATH specify directory for installed MPC include files
1501 --with-mpc-lib=PATH specify directory for the installed MPC library
1502 --with-mpfr-dir=PATH this option has been REMOVED
1503 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1504 Equivalent to --with-mpfr-include=PATH/include plus
1505 --with-mpfr-lib=PATH/lib
1506 --with-mpfr-include=PATH
1507 specify directory for installed MPFR include files
1508 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1509 --with-gmp-dir=PATH this option has been REMOVED
1510 --with-gmp=PATH specify prefix directory for the installed GMP
1511 package. Equivalent to
1512 --with-gmp-include=PATH/include plus
1513 --with-gmp-lib=PATH/lib
1514 --with-gmp-include=PATH specify directory for installed GMP include files
1515 --with-gmp-lib=PATH specify directory for the installed GMP library
1516 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1517 linking with PPL
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
1520 --with-stage1-libs=LIBS libraries for stage1
1521 --with-boot-libs=LIBS libraries for stage2 and later
1522 --with-boot-ldflags=FLAGS
1523 linker flags for stage2 and later
1524 --with-isl=PATH Specify prefix directory for the installed ISL
1525 package. Equivalent to
1526 --with-isl-include=PATH/include plus
1527 --with-isl-lib=PATH/lib
1528 --with-isl-include=PATH Specify directory for installed ISL include files
1529 --with-isl-lib=PATH Specify the directory for the installed ISL library
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
1534 --with-cloog-include=PATH
1535 Specify directory for installed CLooG include files
1536 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1537 library
1538 --with-build-sysroot=SYSROOT
1539 use sysroot as the system root during the build
1540 --with-debug-prefix-map='A=B C=D ...'
1541 map A to B, C to D ... in debug information
1542 --with-build-config='NAME NAME2...'
1543 use config/NAME.mk build configuration
1544 --with-build-time-tools=PATH
1545 use given path to find target tools during the build
1546
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
1557 build_configargs
1558 additional configure arguments for build directories
1559 host_configargs
1560 additional configure arguments for host directories
1561 target_configargs
1562 additional configure arguments for target directories
1563 AR AR for the host
1564 AS AS for the host
1565 DLLTOOL DLLTOOL for the host
1566 LD LD for the host
1567 LIPO LIPO for the host
1568 NM NM for the host
1569 RANLIB RANLIB for the host
1570 STRIP STRIP for the host
1571 WINDRES WINDRES for the host
1572 WINDMC WINDMC for the host
1573 OBJCOPY OBJCOPY for the host
1574 OBJDUMP OBJDUMP for the host
1575 READELF READELF for the host
1576 CC_FOR_TARGET
1577 CC for the target
1578 CXX_FOR_TARGET
1579 CXX for the target
1580 GCC_FOR_TARGET
1581 GCC for the target
1582 GCJ_FOR_TARGET
1583 GCJ for the target
1584 GFORTRAN_FOR_TARGET
1585 GFORTRAN for the target
1586 GOC_FOR_TARGET
1587 GOC for the target
1588 AR_FOR_TARGET
1589 AR for the target
1590 AS_FOR_TARGET
1591 AS for the target
1592 DLLTOOL_FOR_TARGET
1593 DLLTOOL for the target
1594 LD_FOR_TARGET
1595 LD for the target
1596 LIPO_FOR_TARGET
1597 LIPO for the target
1598 NM_FOR_TARGET
1599 NM for the target
1600 OBJDUMP_FOR_TARGET
1601 OBJDUMP for the target
1602 RANLIB_FOR_TARGET
1603 RANLIB for the target
1604 READELF_FOR_TARGET
1605 READELF for the target
1606 STRIP_FOR_TARGET
1607 STRIP for the target
1608 WINDRES_FOR_TARGET
1609 WINDRES for the target
1610 WINDMC_FOR_TARGET
1611 WINDMC for the target
1612
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1615
1616 Report bugs to the package provider.
1617 _ACEOF
1618 ac_status=$?
1619 fi
1620
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
1627 ac_builddir=.
1628
1629 case "$ac_dir" in
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639 esac
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1644
1645 case $srcdir in
1646 .) # We are building in place.
1647 ac_srcdir=.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 esac
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1669 else
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1673 done
1674 fi
1675
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1678 cat <<\_ACEOF
1679 configure
1680 generated by GNU Autoconf 2.64
1681
1682 Copyright (C) 2009 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1685 _ACEOF
1686 exit
1687 fi
1688
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1692
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725 fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1728
1729 } # ac_fn_c_try_compile
1730
1731 # ac_fn_cxx_try_compile LINENO
1732 # ----------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_cxx_try_compile ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_cxx_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763 fi
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 return $ac_retval
1766
1767 } # ac_fn_cxx_try_compile
1768
1769 # ac_fn_c_try_link LINENO
1770 # -----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_link ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest$ac_exeext
1776 if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_link") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest$ac_exeext && {
1795 test "$cross_compiling" = yes ||
1796 $as_test_x conftest$ac_exeext
1797 }; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803 ac_retval=1
1804 fi
1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807 # interfere with the next link command; also delete a directory that is
1808 # left behind by Apple's compiler. We do this before executing the actions.
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 return $ac_retval
1812
1813 } # ac_fn_c_try_link
1814
1815 # ac_fn_c_try_run LINENO
1816 # ----------------------
1817 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818 # that executables *can* be run.
1819 ac_fn_c_try_run ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850 fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
1854
1855 } # ac_fn_c_try_run
1856 cat >config.log <<_ACEOF
1857 This file contains any messages produced by compilers while
1858 running configure, to aid debugging if configure makes a mistake.
1859
1860 It was created by $as_me, which was
1861 generated by GNU Autoconf 2.64. Invocation command line was
1862
1863 $ $0 $@
1864
1865 _ACEOF
1866 exec 5>>config.log
1867 {
1868 cat <<_ASUNAME
1869 ## --------- ##
1870 ## Platform. ##
1871 ## --------- ##
1872
1873 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878
1879 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1881
1882 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1885 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1886 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889
1890 _ASUNAME
1891
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 $as_echo "PATH: $as_dir"
1898 done
1899 IFS=$as_save_IFS
1900
1901 } >&5
1902
1903 cat >&5 <<_ACEOF
1904
1905
1906 ## ----------- ##
1907 ## Core tests. ##
1908 ## ----------- ##
1909
1910 _ACEOF
1911
1912
1913 # Keep a trace of the command line.
1914 # Strip out --no-create and --no-recursion so they do not pile up.
1915 # Strip out --silent because we don't want to record it for future runs.
1916 # Also quote any args containing shell meta-characters.
1917 # Make two passes to allow for proper duplicate-argument suppression.
1918 ac_configure_args=
1919 ac_configure_args0=
1920 ac_configure_args1=
1921 ac_must_keep_next=false
1922 for ac_pass in 1 2
1923 do
1924 for ac_arg
1925 do
1926 case $ac_arg in
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1930 continue ;;
1931 *\'*)
1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 esac
1934 case $ac_pass in
1935 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1936 2)
1937 as_fn_append ac_configure_args1 " '$ac_arg'"
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1940 else
1941 case $ac_arg in
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1948 esac
1949 ;;
1950 -* ) ac_must_keep_next=true ;;
1951 esac
1952 fi
1953 as_fn_append ac_configure_args " '$ac_arg'"
1954 ;;
1955 esac
1956 done
1957 done
1958 { ac_configure_args0=; unset ac_configure_args0;}
1959 { ac_configure_args1=; unset ac_configure_args1;}
1960
1961 # When interrupted or exit'd, cleanup temporary files, and complete
1962 # config.log. We remove comments because anyway the quotes in there
1963 # would cause problems or look ugly.
1964 # WARNING: Use '\'' to represent an apostrophe within the trap.
1965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1966 trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1968 {
1969 echo
1970
1971 cat <<\_ASBOX
1972 ## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##
1975 _ASBOX
1976 echo
1977 # The following way of writing the cache mishandles newlines in values,
1978 (
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in #(
1982 *${as_nl}*)
1983 case $ac_var in #(
1984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1986 esac
1987 case $ac_var in #(
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) { eval $ac_var=; unset $ac_var;} ;;
1991 esac ;;
1992 esac
1993 done
1994 (set) 2>&1 |
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
1997 sed -n \
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2000 ;; #(
2001 *)
2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003 ;;
2004 esac |
2005 sort
2006 )
2007 echo
2008
2009 cat <<\_ASBOX
2010 ## ----------------- ##
2011 ## Output variables. ##
2012 ## ----------------- ##
2013 _ASBOX
2014 echo
2015 for ac_var in $ac_subst_vars
2016 do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2024
2025 if test -n "$ac_subst_files"; then
2026 cat <<\_ASBOX
2027 ## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##
2030 _ASBOX
2031 echo
2032 for ac_var in $ac_subst_files
2033 do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
2039 done | sort
2040 echo
2041 fi
2042
2043 if test -s confdefs.h; then
2044 cat <<\_ASBOX
2045 ## ----------- ##
2046 ## confdefs.h. ##
2047 ## ----------- ##
2048 _ASBOX
2049 echo
2050 cat confdefs.h
2051 echo
2052 fi
2053 test "$ac_signal" != 0 &&
2054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
2056 } >&5
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2059 exit $exit_status
2060 ' 0
2061 for ac_signal in 1 2 13 15; do
2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2063 done
2064 ac_signal=0
2065
2066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2067 rm -f -r conftest* confdefs.h
2068
2069 $as_echo "/* confdefs.h */" > confdefs.h
2070
2071 # Predefined preprocessor variables.
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_NAME "$PACKAGE_NAME"
2075 _ACEOF
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079 _ACEOF
2080
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2083 _ACEOF
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_STRING "$PACKAGE_STRING"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_URL "$PACKAGE_URL"
2095 _ACEOF
2096
2097
2098 # Let the site file select an alternate cache file if it wants to.
2099 # Prefer an explicitly selected file to automatically selected ones.
2100 ac_site_file1=NONE
2101 ac_site_file2=NONE
2102 if test -n "$CONFIG_SITE"; then
2103 ac_site_file1=$CONFIG_SITE
2104 elif test "x$prefix" != xNONE; then
2105 ac_site_file1=$prefix/share/config.site
2106 ac_site_file2=$prefix/etc/config.site
2107 else
2108 ac_site_file1=$ac_default_prefix/share/config.site
2109 ac_site_file2=$ac_default_prefix/etc/config.site
2110 fi
2111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112 do
2113 test "x$ac_site_file" = xNONE && continue
2114 if test -r "$ac_site_file"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2117 sed 's/^/| /' "$ac_site_file" >&5
2118 . "$ac_site_file"
2119 fi
2120 done
2121
2122 if test -r "$cache_file"; then
2123 # Some versions of bash will fail to source /dev/null (special
2124 # files actually), so we avoid doing that.
2125 if test -f "$cache_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127 $as_echo "$as_me: loading cache $cache_file" >&6;}
2128 case $cache_file in
2129 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130 *) . "./$cache_file";;
2131 esac
2132 fi
2133 else
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135 $as_echo "$as_me: creating cache $cache_file" >&6;}
2136 >$cache_file
2137 fi
2138
2139 # Check that the precious variables saved in the cache have kept the same
2140 # value.
2141 ac_cache_corrupted=false
2142 for ac_var in $ac_precious_vars; do
2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2144 eval ac_new_set=\$ac_env_${ac_var}_set
2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2146 eval ac_new_val=\$ac_env_${ac_var}_value
2147 case $ac_old_set,$ac_new_set in
2148 set,)
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2150 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2152 ,set)
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2154 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2155 ac_cache_corrupted=: ;;
2156 ,);;
2157 *)
2158 if test "x$ac_old_val" != "x$ac_new_val"; then
2159 # differences in whitespace do not lead to failure.
2160 ac_old_val_w=`echo x $ac_old_val`
2161 ac_new_val_w=`echo x $ac_new_val`
2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2164 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2165 ac_cache_corrupted=:
2166 else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2168 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2169 eval $ac_var=\$ac_old_val
2170 fi
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2172 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2174 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2175 fi;;
2176 esac
2177 # Pass precious variables to config.status.
2178 if test "$ac_new_set" = set; then
2179 case $ac_new_val in
2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 *) ac_arg=$ac_var=$ac_new_val ;;
2182 esac
2183 case " $ac_configure_args " in
2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2186 esac
2187 fi
2188 done
2189 if $ac_cache_corrupted; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2193 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2194 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2195 fi
2196 ## -------------------- ##
2197 ## Main body of script. ##
2198 ## -------------------- ##
2199
2200 ac_ext=c
2201 ac_cpp='$CPP $CPPFLAGS'
2202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214 progname=$0
2215 # if PWD already has a value, it is probably wrong.
2216 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2217
2218 # Export original configure arguments for use by sub-configures.
2219 # Quote arguments with shell meta charatcers.
2220 TOPLEVEL_CONFIGURE_ARGUMENTS=
2221 set -- "$progname" "$@"
2222 for ac_arg
2223 do
2224 case "$ac_arg" in
2225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2227 # if the argument is of the form -foo=baz, quote the baz part only
2228 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2229 *) ;;
2230 esac
2231 # Add the quoted argument to the list.
2232 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2233 done
2234 if test "$silent" = yes; then
2235 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2236 fi
2237 # Remove the initial space we just introduced and, as these will be
2238 # expanded by make, quote '$'.
2239 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2240
2241
2242 # Find the build, host, and target systems.
2243 ac_aux_dir=
2244 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245 for ac_t in install-sh install.sh shtool; do
2246 if test -f "$ac_dir/$ac_t"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/$ac_t -c"
2249 break 2
2250 fi
2251 done
2252 done
2253 if test -z "$ac_aux_dir"; then
2254 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2255 fi
2256
2257 # These three variables are undocumented and unsupported,
2258 # and are intended to be withdrawn in a future Autoconf release.
2259 # They can cause serious problems if a builder's source tree is in a directory
2260 # whose full name contains unusual characters.
2261 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2264
2265
2266 # Make sure we can run config.sub.
2267 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2268 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2269
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2271 $as_echo_n "checking build system type... " >&6; }
2272 if test "${ac_cv_build+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 ac_build_alias=$build_alias
2276 test "x$ac_build_alias" = x &&
2277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2278 test "x$ac_build_alias" = x &&
2279 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2280 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2281 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2282
2283 fi
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2285 $as_echo "$ac_cv_build" >&6; }
2286 case $ac_cv_build in
2287 *-*-*) ;;
2288 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2289 esac
2290 build=$ac_cv_build
2291 ac_save_IFS=$IFS; IFS='-'
2292 set x $ac_cv_build
2293 shift
2294 build_cpu=$1
2295 build_vendor=$2
2296 shift; shift
2297 # Remember, the first character of IFS is used to create $*,
2298 # except with old shells:
2299 build_os=$*
2300 IFS=$ac_save_IFS
2301 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2302
2303
2304 case ${build_alias} in
2305 "") build_noncanonical=${build} ;;
2306 *) build_noncanonical=${build_alias} ;;
2307 esac
2308
2309
2310
2311 case ${host_alias} in
2312 "") host_noncanonical=${build_noncanonical} ;;
2313 *) host_noncanonical=${host_alias} ;;
2314 esac
2315
2316
2317
2318 case ${target_alias} in
2319 "") target_noncanonical=${host_noncanonical} ;;
2320 *) target_noncanonical=${target_alias} ;;
2321 esac
2322
2323
2324
2325
2326 test "$host_noncanonical" = "$target_noncanonical" &&
2327 test "$program_prefix$program_suffix$program_transform_name" = \
2328 NONENONEs,x,x, &&
2329 program_transform_name=s,y,y,
2330
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332 $as_echo_n "checking host system type... " >&6; }
2333 if test "${ac_cv_host+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2338 else
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2341 fi
2342
2343 fi
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345 $as_echo "$ac_cv_host" >&6; }
2346 case $ac_cv_host in
2347 *-*-*) ;;
2348 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2349 esac
2350 host=$ac_cv_host
2351 ac_save_IFS=$IFS; IFS='-'
2352 set x $ac_cv_host
2353 shift
2354 host_cpu=$1
2355 host_vendor=$2
2356 shift; shift
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2359 host_os=$*
2360 IFS=$ac_save_IFS
2361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2362
2363
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2365 $as_echo_n "checking target system type... " >&6; }
2366 if test "${ac_cv_target+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 if test "x$target_alias" = x; then
2370 ac_cv_target=$ac_cv_host
2371 else
2372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2373 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2374 fi
2375
2376 fi
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2378 $as_echo "$ac_cv_target" >&6; }
2379 case $ac_cv_target in
2380 *-*-*) ;;
2381 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2382 esac
2383 target=$ac_cv_target
2384 ac_save_IFS=$IFS; IFS='-'
2385 set x $ac_cv_target
2386 shift
2387 target_cpu=$1
2388 target_vendor=$2
2389 shift; shift
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2392 target_os=$*
2393 IFS=$ac_save_IFS
2394 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2395
2396
2397 # The aliases save the names the user supplied, while $host etc.
2398 # will get canonicalized.
2399 test -n "$target_alias" &&
2400 test "$program_prefix$program_suffix$program_transform_name" = \
2401 NONENONEs,x,x, &&
2402 program_prefix=${target_alias}-
2403
2404 test "$program_prefix" != NONE &&
2405 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2406 # Use a double $ so make ignores it.
2407 test "$program_suffix" != NONE &&
2408 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409 # Double any \ or $.
2410 # By default was `s,x,x', remove it if useless.
2411 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2413
2414
2415
2416 # Get 'install' or 'install-sh' and its variants.
2417 # Find a good install program. We prefer a C program (faster),
2418 # so one script is as good as another. But avoid the broken or
2419 # incompatible versions:
2420 # SysV /etc/install, /usr/sbin/install
2421 # SunOS /usr/etc/install
2422 # IRIX /sbin/install
2423 # AIX /bin/install
2424 # AmigaOS /C/install, which installs bootblocks on floppy discs
2425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428 # OS/2's system install, which has a completely different semantic
2429 # ./install, which can be erroneously created by make from ./install.sh.
2430 # Reject install programs that cannot install multiple files.
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2433 if test -z "$INSTALL"; then
2434 if test "${ac_cv_path_install+set}" = set; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 # Account for people who put trailing slashes in PATH elements.
2443 case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2447 /usr/ucb/* ) ;;
2448 *)
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2451 # by default.
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2455 if test $ac_prog = install &&
2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # AIX install. It has an incompatible calling convention.
2458 :
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2462 :
2463 else
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2467 mkdir conftest.dir
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2472 then
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
2475 fi
2476 fi
2477 fi
2478 done
2479 done
2480 ;;
2481 esac
2482
2483 done
2484 IFS=$as_save_IFS
2485
2486 rm -rf conftest.one conftest.two conftest.dir
2487
2488 fi
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2491 else
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the value is a relative name.
2496 INSTALL=$ac_install_sh
2497 fi
2498 fi
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500 $as_echo "$INSTALL" >&6; }
2501
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2511 $as_echo_n "checking whether ln works... " >&6; }
2512 if test "${acx_cv_prog_LN+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 rm -f conftestdata_t
2516 echo >conftestdata_f
2517 if ln conftestdata_f conftestdata_t 2>/dev/null
2518 then
2519 acx_cv_prog_LN=ln
2520 else
2521 acx_cv_prog_LN=no
2522 fi
2523 rm -f conftestdata_f conftestdata_t
2524
2525 fi
2526 if test $acx_cv_prog_LN = no; then
2527 LN="cp"
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2529 $as_echo "no, using $LN" >&6; }
2530 else
2531 LN="$acx_cv_prog_LN"
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533 $as_echo "yes" >&6; }
2534 fi
2535
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2537 $as_echo_n "checking whether ln -s works... " >&6; }
2538 LN_S=$as_ln_s
2539 if test "$LN_S" = "ln -s"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541 $as_echo "yes" >&6; }
2542 else
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2544 $as_echo "no, using $LN_S" >&6; }
2545 fi
2546
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2548 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2549 if test "${ac_cv_path_SED+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2553 for ac_i in 1 2 3 4 5 6 7; do
2554 ac_script="$ac_script$as_nl$ac_script"
2555 done
2556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2557 { ac_script=; unset ac_script;}
2558 if test -z "$SED"; then
2559 ac_path_SED_found=false
2560 # Loop through the user's path and test for each of PROGNAME-LIST
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_prog in sed gsed; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2569 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2570 # Check for GNU ac_path_SED and select it if it is found.
2571 # Check for GNU $ac_path_SED
2572 case `"$ac_path_SED" --version 2>&1` in
2573 *GNU*)
2574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2575 *)
2576 ac_count=0
2577 $as_echo_n 0123456789 >"conftest.in"
2578 while :
2579 do
2580 cat "conftest.in" "conftest.in" >"conftest.tmp"
2581 mv "conftest.tmp" "conftest.in"
2582 cp "conftest.in" "conftest.nl"
2583 $as_echo '' >> "conftest.nl"
2584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2586 as_fn_arith $ac_count + 1 && ac_count=$as_val
2587 if test $ac_count -gt ${ac_path_SED_max-0}; then
2588 # Best one so far, save it but keep looking for a better one
2589 ac_cv_path_SED="$ac_path_SED"
2590 ac_path_SED_max=$ac_count
2591 fi
2592 # 10*(2^10) chars as input seems more than enough
2593 test $ac_count -gt 10 && break
2594 done
2595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2596 esac
2597
2598 $ac_path_SED_found && break 3
2599 done
2600 done
2601 done
2602 IFS=$as_save_IFS
2603 if test -z "$ac_cv_path_SED"; then
2604 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2605 fi
2606 else
2607 ac_cv_path_SED=$SED
2608 fi
2609
2610 fi
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2612 $as_echo "$ac_cv_path_SED" >&6; }
2613 SED="$ac_cv_path_SED"
2614 rm -f conftest.sed
2615
2616 for ac_prog in gawk mawk nawk awk
2617 do
2618 # Extract the first word of "$ac_prog", so it can be a program name with args.
2619 set dummy $ac_prog; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if test "${ac_cv_prog_AWK+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test -n "$AWK"; then
2626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_AWK="$ac_prog"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 AWK=$ac_cv_prog_AWK
2646 if test -n "$AWK"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2648 $as_echo "$AWK" >&6; }
2649 else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654
2655 test -n "$AWK" && break
2656 done
2657
2658
2659 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2660
2661 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2662 # a relative path.
2663 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2664 INSTALL="${srcpwd}/install-sh -c"
2665 fi
2666
2667 # Set srcdir to "." if that's what it is.
2668 # This is important for multilib support.
2669 pwd=`${PWDCMD-pwd}`
2670 if test "${pwd}" = "${srcpwd}" ; then
2671 srcdir=.
2672 fi
2673
2674 topsrcdir=$srcpwd
2675
2676 extra_host_args=
2677
2678 ### To add a new directory to the tree, first choose whether it is a target
2679 ### or a host dependent tool. Then put it into the appropriate list
2680 ### (library or tools, host or target), doing a dependency sort.
2681
2682 # Subdirs will be configured in the order listed in build_configdirs,
2683 # configdirs, or target_configdirs; see the serialization section below.
2684
2685 # Dependency sorting is only needed when *configuration* must be done in
2686 # a particular order. In all cases a dependency should be specified in
2687 # the Makefile, whether or not it's implicitly specified here.
2688
2689 # Double entries in build_configdirs, configdirs, or target_configdirs may
2690 # cause circular dependencies and break everything horribly.
2691
2692 # these library is used by various programs built for the build
2693 # environment
2694 #
2695 build_libs="build-libiberty"
2696
2697 # these tools are built for the build environment
2698 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2699
2700 # these libraries are used by various programs built for the host environment
2701 #
2702 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2703
2704 # these tools are built for the host environment
2705 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2706 # know that we are building the simulator.
2707 # binutils, gas and ld appear in that order because it makes sense to run
2708 # "make check" in that particular order.
2709 # If --enable-gold is used, "gold" may replace "ld".
2710 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2711
2712 # libgcj represents the runtime libraries only used by gcj.
2713 libgcj="target-libffi \
2714 target-zlib \
2715 target-libjava"
2716
2717 # these libraries are built for the target environment, and are built after
2718 # the host libraries and the host tools (which may be a cross compiler)
2719 # Note that libiberty is not a target library.
2720 target_libraries="target-libgcc \
2721 target-libgloss \
2722 target-newlib \
2723 target-libgomp \
2724 target-libatomic \
2725 target-libitm \
2726 target-libstdc++-v3 \
2727 target-libmudflap \
2728 target-libssp \
2729 target-libquadmath \
2730 target-libgfortran \
2731 target-boehm-gc \
2732 ${libgcj} \
2733 target-libobjc \
2734 target-libada \
2735 target-libgo"
2736
2737 # these tools are built using the target libraries, and are intended to
2738 # run only in the target environment
2739 #
2740 # note: any program that *uses* libraries that are in the "target_libraries"
2741 # list belongs in this list.
2742 #
2743 target_tools="target-rda"
2744
2745 ################################################################################
2746
2747 ## All tools belong in one of the four categories, and are assigned above
2748 ## We assign ${configdirs} this way to remove all embedded newlines. This
2749 ## is important because configure will choke if they ever get through.
2750 ## ${configdirs} is directories we build using the host tools.
2751 ## ${target_configdirs} is directories we build using the target tools.
2752 configdirs=`echo ${host_libs} ${host_tools}`
2753 target_configdirs=`echo ${target_libraries} ${target_tools}`
2754 build_configdirs=`echo ${build_libs} ${build_tools}`
2755
2756
2757
2758 ################################################################################
2759
2760 srcname="gnu development package"
2761
2762 # This gets set non-empty for some net releases of packages.
2763 appdirs=""
2764
2765 # Define is_cross_compiler to save on calls to 'test'.
2766 is_cross_compiler=
2767 if test x"${host}" = x"${target}" ; then
2768 is_cross_compiler=no
2769 else
2770 is_cross_compiler=yes
2771 fi
2772
2773 # Find the build and target subdir names.
2774
2775 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2776 # have matching libraries, they should use host libraries: Makefile.tpl
2777 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2778 # However, they still use the build modules, because the corresponding
2779 # host modules (e.g. bison) are only built for the host when bootstrap
2780 # finishes. So:
2781 # - build_subdir is where we find build modules, and never changes.
2782 # - build_libsubdir is where we find build libraries, and can be overridden.
2783
2784 # Prefix 'build-' so this never conflicts with target_subdir.
2785 build_subdir="build-${build_noncanonical}"
2786
2787 # Check whether --with-build-libsubdir was given.
2788 if test "${with_build_libsubdir+set}" = set; then :
2789 withval=$with_build_libsubdir; build_libsubdir="$withval"
2790 else
2791 build_libsubdir="$build_subdir"
2792 fi
2793
2794 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2795 if ( test $srcdir = . && test -d gcc ) \
2796 || test -d $srcdir/../host-${host_noncanonical}; then
2797 host_subdir="host-${host_noncanonical}"
2798 else
2799 host_subdir=.
2800 fi
2801 # No prefix.
2802 target_subdir=${target_noncanonical}
2803
2804 # Be sure to cover against remnants of an in-tree build.
2805 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2806 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2807 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2808 fi
2809
2810 # Skipdirs are removed silently.
2811 skipdirs=
2812 # Noconfigdirs are removed loudly.
2813 noconfigdirs=""
2814
2815 use_gnu_ld=
2816 # Make sure we don't let GNU ld be added if we didn't want it.
2817 if test x$with_gnu_ld = xno ; then
2818 use_gnu_ld=no
2819 noconfigdirs="$noconfigdirs ld gold"
2820 fi
2821
2822 use_gnu_as=
2823 # Make sure we don't let GNU as be added if we didn't want it.
2824 if test x$with_gnu_as = xno ; then
2825 use_gnu_as=no
2826 noconfigdirs="$noconfigdirs gas"
2827 fi
2828
2829 use_included_zlib=
2830 # Make sure we don't let ZLIB be added if we didn't want it.
2831 if test x$with_system_zlib = xyes ; then
2832 use_included_zlib=no
2833 noconfigdirs="$noconfigdirs zlib"
2834 fi
2835
2836 # some tools are so dependent upon X11 that if we're not building with X,
2837 # it's not even worth trying to configure, much less build, that tool.
2838
2839 case ${with_x} in
2840 yes | "") ;; # the default value for this tree is that X11 is available
2841 no)
2842 skipdirs="${skipdirs} tk itcl libgui"
2843 # We won't be able to build gdbtk without X.
2844 enable_gdbtk=no
2845 ;;
2846 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2847 esac
2848
2849 # Some are only suitable for cross toolchains.
2850 # Remove these if host=target.
2851 cross_only="target-libgloss target-newlib target-opcodes"
2852
2853 case $is_cross_compiler in
2854 no) skipdirs="${skipdirs} ${cross_only}" ;;
2855 esac
2856
2857 # If both --with-headers and --with-libs are specified, default to
2858 # --without-newlib.
2859 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2860 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2861 if test x"${with_newlib}" = x ; then
2862 with_newlib=no
2863 fi
2864 fi
2865
2866 # Recognize --with-newlib/--without-newlib.
2867 case ${with_newlib} in
2868 no) skipdirs="${skipdirs} target-newlib" ;;
2869 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2870 esac
2871
2872 # Handle --enable-gold, --enable-ld.
2873 # --disable-gold [--enable-ld]
2874 # Build only ld. Default option.
2875 # --enable-gold [--enable-ld]
2876 # Build both gold and ld. Install gold as "ld.gold", install ld
2877 # as "ld.bfd" and "ld".
2878 # --enable-gold=default [--enable-ld]
2879 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2880 # install ld as "ld.bfd".
2881 # --enable-gold[=default] --disable-ld
2882 # Build only gold, which is then installed as both "ld.gold" and "ld".
2883 # --enable-gold --enable-ld=default
2884 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2885 # and ld.bfd).
2886 # In other words, ld is default
2887 # --enable-gold=default --enable-ld=default
2888 # Error.
2889
2890 default_ld=
2891 # Check whether --enable-gold was given.
2892 if test "${enable_gold+set}" = set; then :
2893 enableval=$enable_gold; ENABLE_GOLD=$enableval
2894 else
2895 ENABLE_GOLD=no
2896 fi
2897
2898 case "${ENABLE_GOLD}" in
2899 yes|default)
2900 # Check for ELF target.
2901 is_elf=no
2902 case "${target}" in
2903 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2904 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2905 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2906 | *-*-solaris2* | *-*-nto*)
2907 case "${target}" in
2908 *-*-linux*aout* | *-*-linux*oldld*)
2909 ;;
2910 *)
2911 is_elf=yes
2912 ;;
2913 esac
2914 esac
2915
2916 if test "$is_elf" = "yes"; then
2917 # Check for target supported by gold.
2918 case "${target}" in
2919 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2920 configdirs="$configdirs gold"
2921 if test x${ENABLE_GOLD} = xdefault; then
2922 default_ld=gold
2923 fi
2924 ENABLE_GOLD=yes
2925 ;;
2926 esac
2927 fi
2928 ;;
2929 no)
2930 ;;
2931 *)
2932 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2933 ;;
2934 esac
2935
2936 # Check whether --enable-ld was given.
2937 if test "${enable_ld+set}" = set; then :
2938 enableval=$enable_ld; ENABLE_LD=$enableval
2939 else
2940 ENABLE_LD=yes
2941 fi
2942
2943
2944 case "${ENABLE_LD}" in
2945 default)
2946 if test x${default_ld} != x; then
2947 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2948 fi
2949 ;;
2950 yes)
2951 ;;
2952 no)
2953 if test x${ENABLE_GOLD} != xyes; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2955 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2956 fi
2957 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2958 ;;
2959 *)
2960 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2961 ;;
2962 esac
2963
2964 # Configure extra directories which are host specific
2965
2966 case "${host}" in
2967 *-cygwin*)
2968 configdirs="$configdirs libtermcap" ;;
2969 esac
2970
2971 # A target can indicate whether a language isn't supported for some reason.
2972 # Only spaces may be used in this macro; not newlines or tabs.
2973 unsupported_languages=
2974
2975 # Remove more programs from consideration, based on the host or
2976 # target this usually means that a port of the program doesn't
2977 # exist yet.
2978
2979 case "${host}" in
2980 i[3456789]86-*-msdosdjgpp*)
2981 noconfigdirs="$noconfigdirs tcl tk itcl"
2982 ;;
2983 esac
2984
2985
2986 # Check whether --enable-libquadmath was given.
2987 if test "${enable_libquadmath+set}" = set; then :
2988 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2989 else
2990 ENABLE_LIBQUADMATH=yes
2991 fi
2992
2993 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2994 noconfigdirs="$noconfigdirs target-libquadmath"
2995 fi
2996
2997
2998 # Check whether --enable-libquadmath-support was given.
2999 if test "${enable_libquadmath_support+set}" = set; then :
3000 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3001 else
3002 ENABLE_LIBQUADMATH_SUPPORT=yes
3003 fi
3004
3005 enable_libquadmath_support=
3006 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3007 enable_libquadmath_support=no
3008 fi
3009
3010
3011 # Check whether --enable-libada was given.
3012 if test "${enable_libada+set}" = set; then :
3013 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3014 else
3015 ENABLE_LIBADA=yes
3016 fi
3017
3018 if test "${ENABLE_LIBADA}" != "yes" ; then
3019 noconfigdirs="$noconfigdirs gnattools"
3020 fi
3021
3022 # Check whether --enable-libssp was given.
3023 if test "${enable_libssp+set}" = set; then :
3024 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3025 else
3026 ENABLE_LIBSSP=yes
3027 fi
3028
3029
3030 # Save it here so that, even in case of --enable-libgcj, if the Java
3031 # front-end isn't enabled, we still get libgcj disabled.
3032 libgcj_saved=$libgcj
3033 case $enable_libgcj in
3034 yes)
3035 # If we reset it here, it won't get added to noconfigdirs in the
3036 # target-specific build rules, so it will be forcibly enabled
3037 # (unless the Java language itself isn't enabled).
3038 libgcj=
3039 ;;
3040 no)
3041 # Make sure we get it printed in the list of not supported target libs.
3042 # Don't disable libffi, though, other languages use it.
3043 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3044 # Clear libgcj_saved so that even if java is enabled libffi won't be
3045 # built.
3046 libgcj_saved=
3047 ;;
3048 esac
3049
3050 # Check whether --enable-static-libjava was given.
3051 if test "${enable_static_libjava+set}" = set; then :
3052 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3053 else
3054 ENABLE_STATIC_LIBJAVA=no
3055 fi
3056
3057 enable_static_libjava=
3058 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3059 enable_static_libjava=yes
3060 fi
3061
3062 if test x$enable_static_libjava != xyes ; then
3063 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3064 fi
3065
3066
3067 # Disable libmudflap on some systems.
3068 if test x$enable_libmudflap = x ; then
3069 case "${target}" in
3070 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3071 # Enable libmudflap by default in GNU and friends.
3072 ;;
3073 *-*-freebsd*)
3074 # Enable libmudflap by default in FreeBSD.
3075 ;;
3076 *)
3077 # Disable it by default everywhere else.
3078 noconfigdirs="$noconfigdirs target-libmudflap"
3079 ;;
3080 esac
3081 fi
3082
3083 # Disable libgomp on non POSIX hosted systems.
3084 if test x$enable_libgomp = x ; then
3085 # Enable libgomp by default on hosted POSIX systems.
3086 case "${target}" in
3087 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3088 ;;
3089 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3090 ;;
3091 *-*-solaris2* | *-*-hpux11*)
3092 ;;
3093 *-*-darwin* | *-*-aix*)
3094 ;;
3095 *)
3096 noconfigdirs="$noconfigdirs target-libgomp"
3097 ;;
3098 esac
3099 fi
3100
3101 # Disable libatomic on unsupported systems.
3102 if test -d ${srcdir}/libatomic; then
3103 if test x$enable_libatomic = x; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3105 $as_echo_n "checking for libatomic support... " >&6; }
3106 if (srcdir=${srcdir}/libatomic; \
3107 . ${srcdir}/configure.tgt; \
3108 test -n "$UNSUPPORTED")
3109 then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 noconfigdirs="$noconfigdirs target-libatomic"
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115 $as_echo "yes" >&6; }
3116 fi
3117 fi
3118 fi
3119
3120 # Disable libitm on unsupported systems.
3121 if test -d ${srcdir}/libitm; then
3122 if test x$enable_libitm = x; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3124 $as_echo_n "checking for libitm support... " >&6; }
3125 if (srcdir=${srcdir}/libitm; \
3126 . ${srcdir}/configure.tgt; \
3127 test -n "$UNSUPPORTED")
3128 then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 noconfigdirs="$noconfigdirs target-libitm"
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3135 fi
3136 fi
3137 fi
3138
3139 # Disable libquadmath for some systems.
3140 case "${target}" in
3141 # libquadmath is unused on AIX and libquadmath build process use of
3142 # LD_LIBRARY_PATH can break AIX bootstrap.
3143 powerpc-*-aix* | rs6000-*-aix*)
3144 noconfigdirs="$noconfigdirs target-libquadmath"
3145 ;;
3146 esac
3147
3148 # Disable libssp for some systems.
3149 case "${target}" in
3150 avr-*-*)
3151 # No hosted I/O support.
3152 noconfigdirs="$noconfigdirs target-libssp"
3153 ;;
3154 powerpc-*-aix* | rs6000-*-aix*)
3155 noconfigdirs="$noconfigdirs target-libssp"
3156 ;;
3157 rl78-*-*)
3158 # libssp uses a misaligned load to trigger a fault, but the RL78
3159 # doesn't fault for those - instead, it gives a build-time error
3160 # for explicit misaligned loads.
3161 noconfigdirs="$noconfigdirs target-libssp"
3162 ;;
3163 esac
3164
3165 # Disable libstdc++-v3 for some systems.
3166 case "${target}" in
3167 *-*-vxworks*)
3168 # VxWorks uses the Dinkumware C++ library.
3169 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3170 ;;
3171 arm*-wince-pe*)
3172 # the C++ libraries don't build on top of CE's C libraries
3173 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3174 ;;
3175 avr-*-*)
3176 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3177 ;;
3178 esac
3179
3180 # Disable Fortran for some systems.
3181 case "${target}" in
3182 mmix-*-*)
3183 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3184 unsupported_languages="$unsupported_languages fortran"
3185 ;;
3186 esac
3187
3188 # Disable Java if libffi is not supported.
3189 case "${target}" in
3190 alpha*-*-*)
3191 ;;
3192 arm*-*-*)
3193 ;;
3194 cris-*-*)
3195 ;;
3196 frv-*-*)
3197 ;;
3198 hppa*-*-linux*)
3199 ;;
3200 hppa*-*-hpux*)
3201 ;;
3202 i?86-*-*)
3203 ;;
3204 ia64*-*-*)
3205 ;;
3206 m32r*-*-*)
3207 ;;
3208 m68k-*-*)
3209 ;;
3210 mips*-*-rtems*)
3211 ;;
3212 mips*-*-linux*)
3213 ;;
3214 powerpc*-*-linux*)
3215 ;;
3216 powerpc-*-darwin*)
3217 ;;
3218 powerpc-*-aix* | rs6000-*-aix*)
3219 ;;
3220 powerpc-*-freebsd*)
3221 ;;
3222 powerpc64-*-freebsd*)
3223 ;;
3224 powerpc*-*-rtems*)
3225 ;;
3226 s390-*-* | s390x-*-*)
3227 ;;
3228 sh-*-* | sh[34]*-*-*)
3229 ;;
3230 sh64-*-* | sh5*-*-*)
3231 ;;
3232 sparc*-*-*)
3233 ;;
3234 x86_64-*-*)
3235 ;;
3236 *-*-*)
3237 unsupported_languages="$unsupported_languages java"
3238 ;;
3239 esac
3240
3241 # Disable Java, libgcj or related libraries for some systems.
3242 case "${target}" in
3243 powerpc-*-darwin*)
3244 ;;
3245 i[3456789]86-*-darwin*)
3246 ;;
3247 x86_64-*-darwin[912]*)
3248 ;;
3249 *-*-darwin*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3251 ;;
3252 *-*-netware*)
3253 noconfigdirs="$noconfigdirs ${libgcj}"
3254 ;;
3255 *-*-rtems*)
3256 noconfigdirs="$noconfigdirs ${libgcj}"
3257 ;;
3258 *-*-tpf*)
3259 noconfigdirs="$noconfigdirs ${libgcj}"
3260 ;;
3261 *-*-uclinux*)
3262 noconfigdirs="$noconfigdirs ${libgcj}"
3263 ;;
3264 *-*-vxworks*)
3265 noconfigdirs="$noconfigdirs ${libgcj}"
3266 ;;
3267 alpha*-*-*vms*)
3268 noconfigdirs="$noconfigdirs ${libgcj}"
3269 ;;
3270 arm-wince-pe)
3271 noconfigdirs="$noconfigdirs ${libgcj}"
3272 ;;
3273 arm*-*-symbianelf*)
3274 noconfigdirs="$noconfigdirs ${libgcj}"
3275 ;;
3276 bfin-*-*)
3277 noconfigdirs="$noconfigdirs target-boehm-gc"
3278 ;;
3279 cris-*-* | crisv32-*-*)
3280 unsupported_languages="$unsupported_languages java"
3281 case "${target}" in
3282 *-*-linux*)
3283 ;;
3284 *) # See PR46792 regarding target-libffi.
3285 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3286 esac
3287 ;;
3288 hppa*64*-*-linux*)
3289 # In this case, it's because the hppa64-linux target is for
3290 # the kernel only at this point and has no libc, and thus no
3291 # headers, crt*.o, etc., all of which are needed by these.
3292 unsupported_languages="$unsupported_languages java"
3293 ;;
3294 hppa*64*-*-hpux*)
3295 noconfigdirs="$noconfigdirs ${libgcj}"
3296 ;;
3297 hppa*-hp-hpux11*)
3298 ;;
3299 hppa*-*-hpux*)
3300 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3301 # build on HP-UX 10.20.
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3303 ;;
3304 ia64*-*-*vms*)
3305 noconfigdirs="$noconfigdirs ${libgcj}"
3306 ;;
3307 i[3456789]86-w64-mingw*)
3308 noconfigdirs="$noconfigdirs ${libgcj}"
3309 ;;
3310 i[3456789]86-*-mingw*)
3311 noconfigdirs="$noconfigdirs ${libgcj}"
3312 ;;
3313 x86_64-*-mingw*)
3314 noconfigdirs="$noconfigdirs ${libgcj}"
3315 ;;
3316 mmix-*-*)
3317 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3318 ;;
3319 powerpc-*-aix*)
3320 # copied from rs6000-*-* entry
3321 noconfigdirs="$noconfigdirs ${libgcj}"
3322 ;;
3323 rs6000-*-aix*)
3324 noconfigdirs="$noconfigdirs ${libgcj}"
3325 ;;
3326 *-*-lynxos*)
3327 noconfigdirs="$noconfigdirs ${libgcj}"
3328 ;;
3329 esac
3330
3331 # Default libgloss CPU subdirectory.
3332 libgloss_dir="$target_cpu"
3333
3334 case "${target}" in
3335 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3336 libgloss_dir=wince
3337 ;;
3338 arm*-*-*)
3339 libgloss_dir=arm
3340 ;;
3341 cris-*-* | crisv32-*-*)
3342 libgloss_dir=cris
3343 ;;
3344 hppa*-*-*)
3345 libgloss_dir=pa
3346 ;;
3347 i[3456789]86-*-*)
3348 libgloss_dir=i386
3349 ;;
3350 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3351 libgloss_dir=m68hc11
3352 ;;
3353 m68*-*-* | fido-*-*)
3354 libgloss_dir=m68k
3355 ;;
3356 mips*-*-*)
3357 libgloss_dir=mips
3358 ;;
3359 powerpc*-*-*)
3360 libgloss_dir=rs6000
3361 ;;
3362 sparc*-*-*)
3363 libgloss_dir=sparc
3364 ;;
3365 esac
3366
3367 # Disable newlib and libgloss for various target OSes.
3368 case "${target}" in
3369 alpha*-dec-osf*)
3370 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3371 ;;
3372 i[3456789]86-*-linux*)
3373 # This section makes it possible to build newlib natively on linux.
3374 # If we are using a cross compiler then don't configure newlib.
3375 if test x${is_cross_compiler} != xno ; then
3376 noconfigdirs="$noconfigdirs target-newlib"
3377 fi
3378 noconfigdirs="$noconfigdirs target-libgloss"
3379 # If we are not using a cross compiler, do configure newlib.
3380 # Note however, that newlib will only be configured in this situation
3381 # if the --with-newlib option has been given, because otherwise
3382 # 'target-newlib' will appear in skipdirs.
3383 ;;
3384 i[3456789]86-*-rdos*)
3385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3386 ;;
3387 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3388 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3389 ;;
3390 sparc-*-sunos4*)
3391 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3392 ;;
3393 *-*-aix*)
3394 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3395 ;;
3396 *-*-beos*)
3397 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3398 ;;
3399 *-*-chorusos)
3400 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3401 ;;
3402 *-*-dragonfly*)
3403 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3404 ;;
3405 *-*-freebsd*)
3406 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3407 ;;
3408 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3409 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3410 ;;
3411 *-*-lynxos*)
3412 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3413 ;;
3414 *-*-mingw*)
3415 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3416 ;;
3417 *-*-netbsd*)
3418 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3419 ;;
3420 *-*-netware*)
3421 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3422 ;;
3423 *-*-tpf*)
3424 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3425 ;;
3426 *-*-uclinux*)
3427 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3428 ;;
3429 *-*-vxworks*)
3430 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3431 ;;
3432 esac
3433
3434 case "${target}" in
3435 *-*-chorusos)
3436 ;;
3437 powerpc-*-darwin*)
3438 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3439 noconfigdirs="$noconfigdirs sim target-rda"
3440 ;;
3441 i[3456789]86-*-darwin*)
3442 noconfigdirs="$noconfigdirs ld gprof"
3443 noconfigdirs="$noconfigdirs sim target-rda"
3444 ;;
3445 x86_64-*-darwin[912]*)
3446 noconfigdirs="$noconfigdirs ld gas gprof"
3447 noconfigdirs="$noconfigdirs sim target-rda"
3448 ;;
3449 *-*-darwin*)
3450 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3451 noconfigdirs="$noconfigdirs sim target-rda"
3452 ;;
3453 *-*-dragonfly*)
3454 ;;
3455 *-*-freebsd*)
3456 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3457 && test -f /usr/local/include/gmp.h; then
3458 with_gmp=/usr/local
3459 fi
3460 ;;
3461 *-*-kaos*)
3462 # Remove unsupported stuff on all kaOS configurations.
3463 noconfigdirs="$noconfigdirs target-libgloss"
3464 ;;
3465 *-*-netbsd*)
3466 ;;
3467 *-*-netware*)
3468 ;;
3469 *-*-rtems*)
3470 noconfigdirs="$noconfigdirs target-libgloss"
3471 ;;
3472 # The tpf target doesn't support gdb yet.
3473 *-*-tpf*)
3474 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3475 ;;
3476 *-*-uclinux*)
3477 noconfigdirs="$noconfigdirs target-rda"
3478 ;;
3479 *-*-vxworks*)
3480 ;;
3481 alpha*-dec-osf*)
3482 # ld works, but does not support shared libraries.
3483 # gas doesn't generate exception information.
3484 noconfigdirs="$noconfigdirs gas ld"
3485 ;;
3486 alpha*-*-*vms*)
3487 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3488 ;;
3489 alpha*-*-*)
3490 # newlib is not 64 bit ready
3491 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3492 ;;
3493 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3494 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3495 ;;
3496 arc-*-*)
3497 noconfigdirs="$noconfigdirs target-libgloss"
3498 ;;
3499 arm-*-pe*)
3500 noconfigdirs="$noconfigdirs target-libgloss"
3501 ;;
3502 arm-*-riscix*)
3503 noconfigdirs="$noconfigdirs ld target-libgloss"
3504 ;;
3505 c4x-*-* | tic4x-*-*)
3506 noconfigdirs="$noconfigdirs target-libgloss"
3507 ;;
3508 tic54x-*-*)
3509 noconfigdirs="$noconfigdirs target-libgloss gdb"
3510 ;;
3511 d10v-*-*)
3512 noconfigdirs="$noconfigdirs target-libgloss"
3513 ;;
3514 d30v-*-*)
3515 noconfigdirs="$noconfigdirs gdb"
3516 ;;
3517 fr30-*-elf*)
3518 noconfigdirs="$noconfigdirs gdb"
3519 ;;
3520 moxie-*-*)
3521 noconfigdirs="$noconfigdirs gprof"
3522 ;;
3523 h8300*-*-*)
3524 noconfigdirs="$noconfigdirs target-libgloss"
3525 ;;
3526 h8500-*-*)
3527 noconfigdirs="$noconfigdirs target-libgloss"
3528 ;;
3529 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3530 ;;
3531 hppa*64*-*-linux*)
3532 ;;
3533 hppa*-*-linux*)
3534 ;;
3535 hppa*-*-*elf* | \
3536 hppa*-*-lites* | \
3537 hppa*-*-openbsd* | \
3538 hppa*64*-*-*)
3539 ;;
3540 hppa*-hp-hpux11*)
3541 noconfigdirs="$noconfigdirs ld"
3542 ;;
3543 hppa*-*-pro*)
3544 ;;
3545 hppa*-*-*)
3546 noconfigdirs="$noconfigdirs ld"
3547 ;;
3548 i960-*-*)
3549 noconfigdirs="$noconfigdirs gdb"
3550 ;;
3551 ia64*-*-elf*)
3552 # No gdb support yet.
3553 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3554 ;;
3555 ia64*-**-hpux*)
3556 # No ld support yet.
3557 noconfigdirs="$noconfigdirs libgui itcl ld"
3558 ;;
3559 ia64*-*-*vms*)
3560 # No ld support yet.
3561 noconfigdirs="$noconfigdirs libgui itcl ld"
3562 ;;
3563 i[3456789]86-w64-mingw*)
3564 ;;
3565 i[3456789]86-*-mingw*)
3566 target_configdirs="$target_configdirs target-winsup"
3567 ;;
3568 *-*-cygwin*)
3569 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3570 noconfigdirs="$noconfigdirs target-libgloss"
3571 # always build newlib if winsup directory is present.
3572 if test -d "$srcdir/winsup/cygwin"; then
3573 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3574 elif test -d "$srcdir/newlib"; then
3575 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3576 fi
3577 ;;
3578 i[3456789]86-*-pe)
3579 noconfigdirs="$noconfigdirs target-libgloss"
3580 ;;
3581 i[3456789]86-*-sco3.2v5*)
3582 # The linker does not yet know about weak symbols in COFF,
3583 # and is not configured to handle mixed ELF and COFF.
3584 noconfigdirs="$noconfigdirs ld target-libgloss"
3585 ;;
3586 i[3456789]86-*-sco*)
3587 noconfigdirs="$noconfigdirs gprof target-libgloss"
3588 ;;
3589 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3590 noconfigdirs="$noconfigdirs target-libgloss"
3591 ;;
3592 i[3456789]86-*-sysv4*)
3593 noconfigdirs="$noconfigdirs target-libgloss"
3594 ;;
3595 i[3456789]86-*-beos*)
3596 noconfigdirs="$noconfigdirs gdb"
3597 ;;
3598 i[3456789]86-*-rdos*)
3599 noconfigdirs="$noconfigdirs gdb"
3600 ;;
3601 mmix-*-*)
3602 noconfigdirs="$noconfigdirs gdb"
3603 ;;
3604 mt-*-*)
3605 noconfigdirs="$noconfigdirs sim"
3606 ;;
3607 powerpc-*-aix*)
3608 # copied from rs6000-*-* entry
3609 noconfigdirs="$noconfigdirs gprof"
3610 ;;
3611 powerpc*-*-winnt* | powerpc*-*-pe*)
3612 target_configdirs="$target_configdirs target-winsup"
3613 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3614 # always build newlib.
3615 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3616 ;;
3617 # This is temporary until we can link against shared libraries
3618 powerpcle-*-solaris*)
3619 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3620 ;;
3621 powerpc-*-beos*)
3622 noconfigdirs="$noconfigdirs gdb"
3623 ;;
3624 rs6000-*-lynxos*)
3625 noconfigdirs="$noconfigdirs gprof"
3626 ;;
3627 rs6000-*-aix*)
3628 noconfigdirs="$noconfigdirs gprof"
3629 ;;
3630 rs6000-*-*)
3631 noconfigdirs="$noconfigdirs gprof"
3632 ;;
3633 m68k-apollo-*)
3634 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3635 ;;
3636 microblaze*)
3637 noconfigdirs="$noconfigdirs gprof"
3638 ;;
3639 mips*-sde-elf*)
3640 if test x$with_newlib = xyes; then
3641 noconfigdirs="$noconfigdirs gprof"
3642 fi
3643 ;;
3644 mips*-*-irix5*)
3645 noconfigdirs="$noconfigdirs gprof target-libgloss"
3646 ;;
3647 mips*-*-irix6*)
3648 noconfigdirs="$noconfigdirs gprof target-libgloss"
3649 ;;
3650 mips*-*-bsd*)
3651 noconfigdirs="$noconfigdirs gprof target-libgloss"
3652 ;;
3653 mips*-*-linux*)
3654 ;;
3655 mips*-*-*)
3656 noconfigdirs="$noconfigdirs gprof"
3657 ;;
3658 sh-*-* | sh64-*-*)
3659 case "${target}" in
3660 sh*-*-elf)
3661 ;;
3662 *)
3663 noconfigdirs="$noconfigdirs target-libgloss" ;;
3664 esac
3665 ;;
3666 sparc-*-sunos4*)
3667 if test x${is_cross_compiler} = xno ; then
3668 use_gnu_ld=no
3669 fi
3670 ;;
3671 tic6x-*-*)
3672 noconfigdirs="$noconfigdirs sim"
3673 ;;
3674 tilepro-*-* | tilegx-*-*)
3675 noconfigdirs="$noconfigdirs sim"
3676 ;;
3677 v810-*-*)
3678 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3679 ;;
3680 vax-*-*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 ;;
3683 esac
3684
3685 # If we aren't building newlib, then don't build libgloss, since libgloss
3686 # depends upon some newlib header files.
3687 case "${noconfigdirs}" in
3688 *target-libgloss*) ;;
3689 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3690 esac
3691
3692 # Work in distributions that contain no compiler tools, like Autoconf.
3693 host_makefile_frag=/dev/null
3694 if test -d ${srcdir}/config ; then
3695 case "${host}" in
3696 i[3456789]86-*-msdosdjgpp*)
3697 host_makefile_frag="config/mh-djgpp"
3698 ;;
3699 *-cygwin*)
3700
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3702 $as_echo_n "checking to see if cat works as expected... " >&6; }
3703 echo a >cygwin-cat-check
3704 if test `cat cygwin-cat-check` = a ; then
3705 rm cygwin-cat-check
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3707 $as_echo "yes" >&6; }
3708 else
3709 rm cygwin-cat-check
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 as_fn_error "The cat command does not ignore carriage return characters.
3713 Please either mount the build directory in binary mode or run the following
3714 commands before running any configure script:
3715 set -o igncr
3716 export SHELLOPTS
3717 " "$LINENO" 5
3718 fi
3719
3720 host_makefile_frag="config/mh-cygwin"
3721 ;;
3722 *-mingw*)
3723 host_makefile_frag="config/mh-mingw"
3724 ;;
3725 hppa*-hp-hpux10*)
3726 host_makefile_frag="config/mh-pa-hpux10"
3727 ;;
3728 hppa*-hp-hpux*)
3729 host_makefile_frag="config/mh-pa"
3730 ;;
3731 hppa*-*)
3732 host_makefile_frag="config/mh-pa"
3733 ;;
3734 *-*-darwin*)
3735 host_makefile_frag="config/mh-darwin"
3736 ;;
3737 powerpc-*-aix*)
3738 host_makefile_frag="config/mh-ppc-aix"
3739 ;;
3740 rs6000-*-aix*)
3741 host_makefile_frag="config/mh-ppc-aix"
3742 ;;
3743 esac
3744 fi
3745
3746 if test "${build}" != "${host}" ; then
3747 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3748 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3749 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3750 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3751 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3752 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3753 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3754 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3755 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3756 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3757 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3758 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3759 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3760 else
3761 AR_FOR_BUILD="\$(AR)"
3762 AS_FOR_BUILD="\$(AS)"
3763 CC_FOR_BUILD="\$(CC)"
3764 CXX_FOR_BUILD="\$(CXX)"
3765 GCJ_FOR_BUILD="\$(GCJ)"
3766 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3767 GOC_FOR_BUILD="\$(GOC)"
3768 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3769 LD_FOR_BUILD="\$(LD)"
3770 NM_FOR_BUILD="\$(NM)"
3771 RANLIB_FOR_BUILD="\$(RANLIB)"
3772 WINDRES_FOR_BUILD="\$(WINDRES)"
3773 WINDMC_FOR_BUILD="\$(WINDMC)"
3774 fi
3775
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if test "${ac_cv_prog_CC+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803 done
3804 done
3805 IFS=$as_save_IFS
3806
3807 fi
3808 fi
3809 CC=$ac_cv_prog_CC
3810 if test -n "$CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812 $as_echo "$CC" >&6; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3816 fi
3817
3818
3819 fi
3820 if test -z "$ac_cv_prog_CC"; then
3821 ac_ct_CC=$CC
3822 # Extract the first word of "gcc", so it can be a program name with args.
3823 set dummy gcc; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 if test -n "$ac_ct_CC"; then
3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_ac_ct_CC="gcc"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843 done
3844 done
3845 IFS=$as_save_IFS
3846
3847 fi
3848 fi
3849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850 if test -n "$ac_ct_CC"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852 $as_echo "$ac_ct_CC" >&6; }
3853 else
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3856 fi
3857
3858 if test "x$ac_ct_CC" = x; then
3859 CC=""
3860 else
3861 case $cross_compiling:$ac_tool_warned in
3862 yes:)
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned=yes ;;
3866 esac
3867 CC=$ac_ct_CC
3868 fi
3869 else
3870 CC="$ac_cv_prog_CC"
3871 fi
3872
3873 if test -z "$CC"; then
3874 if test -n "$ac_tool_prefix"; then
3875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3876 set dummy ${ac_tool_prefix}cc; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if test "${ac_cv_prog_CC+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_CC="${ac_tool_prefix}cc"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896 done
3897 done
3898 IFS=$as_save_IFS
3899
3900 fi
3901 fi
3902 CC=$ac_cv_prog_CC
3903 if test -n "$CC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3905 $as_echo "$CC" >&6; }
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3909 fi
3910
3911
3912 fi
3913 fi
3914 if test -z "$CC"; then
3915 # Extract the first word of "cc", so it can be a program name with args.
3916 set dummy cc; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_CC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
3924 else
3925 ac_prog_rejected=no
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3934 ac_prog_rejected=yes
3935 continue
3936 fi
3937 ac_cv_prog_CC="cc"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 if test $ac_prog_rejected = yes; then
3946 # We found a bogon in the path, so make sure we never use it.
3947 set dummy $ac_cv_prog_CC
3948 shift
3949 if test $# != 0; then
3950 # We chose a different compiler from the bogus one.
3951 # However, it has the same basename, so the bogon will be chosen
3952 # first if we set CC to just the basename; use the full file name.
3953 shift
3954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3955 fi
3956 fi
3957 fi
3958 fi
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966 fi
3967
3968
3969 fi
3970 if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 for ac_prog in cl.exe
3973 do
3974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_CC+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -n "$CC"; then
3982 ac_cv_prog_CC="$CC" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 CC=$ac_cv_prog_CC
4002 if test -n "$CC"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004 $as_echo "$CC" >&6; }
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009
4010
4011 test -n "$CC" && break
4012 done
4013 fi
4014 if test -z "$CC"; then
4015 ac_ct_CC=$CC
4016 for ac_prog in cl.exe
4017 do
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -n "$ac_ct_CC"; then
4026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_prog_ac_ct_CC="$ac_prog"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046 if test -n "$ac_ct_CC"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4048 $as_echo "$ac_ct_CC" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 fi
4053
4054
4055 test -n "$ac_ct_CC" && break
4056 done
4057
4058 if test "x$ac_ct_CC" = x; then
4059 CC=""
4060 else
4061 case $cross_compiling:$ac_tool_warned in
4062 yes:)
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4066 esac
4067 CC=$ac_ct_CC
4068 fi
4069 fi
4070
4071 fi
4072
4073
4074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error "no acceptable C compiler found in \$PATH
4077 See \`config.log' for more details." "$LINENO" 5; }
4078
4079 # Provide some information about the compiler.
4080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4081 set X $ac_compile
4082 ac_compiler=$2
4083 for ac_option in --version -v -V -qversion; do
4084 { { ac_try="$ac_compiler $ac_option >&5"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4092 ac_status=$?
4093 if test -s conftest.err; then
4094 sed '10a\
4095 ... rest of stderr output deleted ...
4096 10q' conftest.err >conftest.er1
4097 cat conftest.er1 >&5
4098 rm -f conftest.er1 conftest.err
4099 fi
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }
4102 done
4103
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106
4107 int
4108 main ()
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 ac_clean_files_save=$ac_clean_files
4116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4117 # Try to create an executable without -o first, disregard a.out.
4118 # It will help us diagnose broken compilers, and finding out an intuition
4119 # of exeext.
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4121 $as_echo_n "checking for C compiler default output file name... " >&6; }
4122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4123
4124 # The possible output files:
4125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4126
4127 ac_rmfiles=
4128 for ac_file in $ac_files
4129 do
4130 case $ac_file in
4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4133 esac
4134 done
4135 rm -f $ac_rmfiles
4136
4137 if { { ac_try="$ac_link_default"
4138 case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144 (eval "$ac_link_default") 2>&5
4145 ac_status=$?
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }; then :
4148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4151 # so that the user can short-circuit this test for compilers unknown to
4152 # Autoconf.
4153 for ac_file in $ac_files ''
4154 do
4155 test -f "$ac_file" || continue
4156 case $ac_file in
4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4158 ;;
4159 [ab].out )
4160 # We found the default executable, but exeext='' is most
4161 # certainly right.
4162 break;;
4163 *.* )
4164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4165 then :; else
4166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4167 fi
4168 # We set ac_cv_exeext here because the later test for it is not
4169 # safe: cross compilers may not add the suffix if given an `-o'
4170 # argument, so we may need to know it at that point already.
4171 # Even if this section looks crufty: it has the advantage of
4172 # actually working.
4173 break;;
4174 * )
4175 break;;
4176 esac
4177 done
4178 test "$ac_cv_exeext" = no && ac_cv_exeext=
4179
4180 else
4181 ac_file=''
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4184 $as_echo "$ac_file" >&6; }
4185 if test -z "$ac_file"; then :
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 { as_fn_set_status 77
4192 as_fn_error "C compiler cannot create executables
4193 See \`config.log' for more details." "$LINENO" 5; }; }
4194 fi
4195 ac_exeext=$ac_cv_exeext
4196
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4200 $as_echo_n "checking whether the C compiler works... " >&6; }
4201 # If not cross compiling, check that we can run a simple program.
4202 if test "$cross_compiling" != yes; then
4203 if { ac_try='./$ac_file'
4204 { { case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207 esac
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 $as_echo "$ac_try_echo"; } >&5
4210 (eval "$ac_try") 2>&5
4211 ac_status=$?
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }; }; then
4214 cross_compiling=no
4215 else
4216 if test "$cross_compiling" = maybe; then
4217 cross_compiling=yes
4218 else
4219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4221 as_fn_error "cannot run C compiled programs.
4222 If you meant to cross compile, use \`--host'.
4223 See \`config.log' for more details." "$LINENO" 5; }
4224 fi
4225 fi
4226 fi
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4229
4230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4231 ac_clean_files=$ac_clean_files_save
4232 # Check that the compiler produces executables we can run. If not, either
4233 # the compiler is broken, or we cross compile.
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4235 $as_echo_n "checking whether we are cross compiling... " >&6; }
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4237 $as_echo "$cross_compiling" >&6; }
4238
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4240 $as_echo_n "checking for suffix of executables... " >&6; }
4241 if { { ac_try="$ac_link"
4242 case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245 esac
4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248 (eval "$ac_link") 2>&5
4249 ac_status=$?
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }; then :
4252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4253 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4254 # work properly (i.e., refer to `conftest.exe'), while it won't with
4255 # `rm'.
4256 for ac_file in conftest.exe conftest conftest.*; do
4257 test -f "$ac_file" || continue
4258 case $ac_file in
4259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4261 break;;
4262 * ) break;;
4263 esac
4264 done
4265 else
4266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268 as_fn_error "cannot compute suffix of executables: cannot compile and link
4269 See \`config.log' for more details." "$LINENO" 5; }
4270 fi
4271 rm -f conftest$ac_cv_exeext
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4273 $as_echo "$ac_cv_exeext" >&6; }
4274
4275 rm -f conftest.$ac_ext
4276 EXEEXT=$ac_cv_exeext
4277 ac_exeext=$EXEEXT
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4279 $as_echo_n "checking for suffix of object files... " >&6; }
4280 if test "${ac_cv_objext+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285
4286 int
4287 main ()
4288 {
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 rm -f conftest.o conftest.obj
4295 if { { ac_try="$ac_compile"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compile") 2>&5
4303 ac_status=$?
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }; then :
4306 for ac_file in conftest.o conftest.obj conftest.*; do
4307 test -f "$ac_file" || continue;
4308 case $ac_file in
4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4311 break;;
4312 esac
4313 done
4314 else
4315 $as_echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4317
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "cannot compute suffix of object files: cannot compile
4321 See \`config.log' for more details." "$LINENO" 5; }
4322 fi
4323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4326 $as_echo "$ac_cv_objext" >&6; }
4327 OBJEXT=$ac_cv_objext
4328 ac_objext=$OBJEXT
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4330 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4331 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 int
4338 main ()
4339 {
4340 #ifndef __GNUC__
4341 choke me
4342 #endif
4343
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 if ac_fn_c_try_compile "$LINENO"; then :
4349 ac_compiler_gnu=yes
4350 else
4351 ac_compiler_gnu=no
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4355
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4358 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4359 if test $ac_compiler_gnu = yes; then
4360 GCC=yes
4361 else
4362 GCC=
4363 fi
4364 ac_test_CFLAGS=${CFLAGS+set}
4365 ac_save_CFLAGS=$CFLAGS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4368 if test "${ac_cv_prog_cc_g+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 ac_save_c_werror_flag=$ac_c_werror_flag
4372 ac_c_werror_flag=yes
4373 ac_cv_prog_cc_g=no
4374 CFLAGS="-g"
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377
4378 int
4379 main ()
4380 {
4381
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_cv_prog_cc_g=yes
4388 else
4389 CFLAGS=""
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392
4393 int
4394 main ()
4395 {
4396
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_c_try_compile "$LINENO"; then :
4402
4403 else
4404 ac_c_werror_flag=$ac_save_c_werror_flag
4405 CFLAGS="-g"
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 int
4410 main ()
4411 {
4412
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_c_try_compile "$LINENO"; then :
4418 ac_cv_prog_cc_g=yes
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_c_werror_flag=$ac_save_c_werror_flag
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4428 $as_echo "$ac_cv_prog_cc_g" >&6; }
4429 if test "$ac_test_CFLAGS" = set; then
4430 CFLAGS=$ac_save_CFLAGS
4431 elif test $ac_cv_prog_cc_g = yes; then
4432 if test "$GCC" = yes; then
4433 CFLAGS="-g -O2"
4434 else
4435 CFLAGS="-g"
4436 fi
4437 else
4438 if test "$GCC" = yes; then
4439 CFLAGS="-O2"
4440 else
4441 CFLAGS=
4442 fi
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4445 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4446 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 ac_cv_prog_cc_c89=no
4450 ac_save_CC=$CC
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453 #include <stdarg.h>
4454 #include <stdio.h>
4455 #include <sys/types.h>
4456 #include <sys/stat.h>
4457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4458 struct buf { int x; };
4459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4460 static char *e (p, i)
4461 char **p;
4462 int i;
4463 {
4464 return p[i];
4465 }
4466 static char *f (char * (*g) (char **, int), char **p, ...)
4467 {
4468 char *s;
4469 va_list v;
4470 va_start (v,p);
4471 s = g (p, va_arg (v,int));
4472 va_end (v);
4473 return s;
4474 }
4475
4476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4477 function prototypes and stuff, but not '\xHH' hex character constants.
4478 These don't provoke an error unfortunately, instead are silently treated
4479 as 'x'. The following induces an error, until -std is added to get
4480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4481 array size at least. It's necessary to write '\x00'==0 to get something
4482 that's true only with -std. */
4483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4484
4485 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4486 inside strings and character constants. */
4487 #define FOO(x) 'x'
4488 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4489
4490 int test (int i, double x);
4491 struct s1 {int (*f) (int a);};
4492 struct s2 {int (*f) (double a);};
4493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4494 int argc;
4495 char **argv;
4496 int
4497 main ()
4498 {
4499 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4500 ;
4501 return 0;
4502 }
4503 _ACEOF
4504 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4506 do
4507 CC="$ac_save_CC $ac_arg"
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_cv_prog_cc_c89=$ac_arg
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext
4512 test "x$ac_cv_prog_cc_c89" != "xno" && break
4513 done
4514 rm -f conftest.$ac_ext
4515 CC=$ac_save_CC
4516
4517 fi
4518 # AC_CACHE_VAL
4519 case "x$ac_cv_prog_cc_c89" in
4520 x)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4522 $as_echo "none needed" >&6; } ;;
4523 xno)
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4525 $as_echo "unsupported" >&6; } ;;
4526 *)
4527 CC="$CC $ac_cv_prog_cc_c89"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4529 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4530 esac
4531 if test "x$ac_cv_prog_cc_c89" != xno; then :
4532
4533 fi
4534
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541 ac_ext=cpp
4542 ac_cpp='$CXXCPP $CPPFLAGS'
4543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4546 if test -z "$CXX"; then
4547 if test -n "$CCC"; then
4548 CXX=$CCC
4549 else
4550 if test -n "$ac_tool_prefix"; then
4551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4552 do
4553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_CXX+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$CXX"; then
4561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 CXX=$ac_cv_prog_CXX
4581 if test -n "$CXX"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4583 $as_echo "$CXX" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589
4590 test -n "$CXX" && break
4591 done
4592 fi
4593 if test -z "$CXX"; then
4594 ac_ct_CXX=$CXX
4595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4596 do
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$ac_ct_CXX"; then
4605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_ac_ct_CXX="$ac_prog"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4625 if test -n "$ac_ct_CXX"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4627 $as_echo "$ac_ct_CXX" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633
4634 test -n "$ac_ct_CXX" && break
4635 done
4636
4637 if test "x$ac_ct_CXX" = x; then
4638 CXX="g++"
4639 else
4640 case $cross_compiling:$ac_tool_warned in
4641 yes:)
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned=yes ;;
4645 esac
4646 CXX=$ac_ct_CXX
4647 fi
4648 fi
4649
4650 fi
4651 fi
4652 # Provide some information about the compiler.
4653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4654 set X $ac_compile
4655 ac_compiler=$2
4656 for ac_option in --version -v -V -qversion; do
4657 { { ac_try="$ac_compiler $ac_option >&5"
4658 case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661 esac
4662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663 $as_echo "$ac_try_echo"; } >&5
4664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4665 ac_status=$?
4666 if test -s conftest.err; then
4667 sed '10a\
4668 ... rest of stderr output deleted ...
4669 10q' conftest.err >conftest.er1
4670 cat conftest.er1 >&5
4671 rm -f conftest.er1 conftest.err
4672 fi
4673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4674 test $ac_status = 0; }
4675 done
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4678 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684
4685 int
4686 main ()
4687 {
4688 #ifndef __GNUC__
4689 choke me
4690 #endif
4691
4692 ;
4693 return 0;
4694 }
4695 _ACEOF
4696 if ac_fn_cxx_try_compile "$LINENO"; then :
4697 ac_compiler_gnu=yes
4698 else
4699 ac_compiler_gnu=no
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4703
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4706 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4707 if test $ac_compiler_gnu = yes; then
4708 GXX=yes
4709 else
4710 GXX=
4711 fi
4712 ac_test_CXXFLAGS=${CXXFLAGS+set}
4713 ac_save_CXXFLAGS=$CXXFLAGS
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4715 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4716 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4720 ac_cxx_werror_flag=yes
4721 ac_cv_prog_cxx_g=no
4722 CXXFLAGS="-g"
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725
4726 int
4727 main ()
4728 {
4729
4730 ;
4731 return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_cxx_try_compile "$LINENO"; then :
4735 ac_cv_prog_cxx_g=yes
4736 else
4737 CXXFLAGS=""
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740
4741 int
4742 main ()
4743 {
4744
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 if ac_fn_cxx_try_compile "$LINENO"; then :
4750
4751 else
4752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4753 CXXFLAGS="-g"
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756
4757 int
4758 main ()
4759 {
4760
4761 ;
4762 return 0;
4763 }
4764 _ACEOF
4765 if ac_fn_cxx_try_compile "$LINENO"; then :
4766 ac_cv_prog_cxx_g=yes
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4777 if test "$ac_test_CXXFLAGS" = set; then
4778 CXXFLAGS=$ac_save_CXXFLAGS
4779 elif test $ac_cv_prog_cxx_g = yes; then
4780 if test "$GXX" = yes; then
4781 CXXFLAGS="-g -O2"
4782 else
4783 CXXFLAGS="-g"
4784 fi
4785 else
4786 if test "$GXX" = yes; then
4787 CXXFLAGS="-O2"
4788 else
4789 CXXFLAGS=
4790 fi
4791 fi
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798
4799 # We must set the default linker to the linker used by gcc for the correct
4800 # operation of libtool. If LD is not defined and we are using gcc, try to
4801 # set the LD default to the ld used by gcc.
4802 if test -z "$LD"; then
4803 if test "$GCC" = yes; then
4804 case $build in
4805 *-*-mingw*)
4806 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4807 *)
4808 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4809 esac
4810 case $gcc_prog_ld in
4811 # Accept absolute paths.
4812 [\\/]* | [A-Za-z]:[\\/]*)
4813 LD="$gcc_prog_ld" ;;
4814 esac
4815 fi
4816 fi
4817
4818
4819
4820
4821 if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 if test -n "$GNATBIND"; then
4830 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 GNATBIND=$ac_cv_prog_GNATBIND
4850 if test -n "$GNATBIND"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4852 $as_echo "$GNATBIND" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 fi
4857
4858
4859 fi
4860 if test -z "$ac_cv_prog_GNATBIND"; then
4861 ac_ct_GNATBIND=$GNATBIND
4862 # Extract the first word of "gnatbind", so it can be a program name with args.
4863 set dummy gnatbind; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -n "$ac_ct_GNATBIND"; then
4870 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4890 if test -n "$ac_ct_GNATBIND"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4892 $as_echo "$ac_ct_GNATBIND" >&6; }
4893 else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898 if test "x$ac_ct_GNATBIND" = x; then
4899 GNATBIND="no"
4900 else
4901 case $cross_compiling:$ac_tool_warned in
4902 yes:)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4905 ac_tool_warned=yes ;;
4906 esac
4907 GNATBIND=$ac_ct_GNATBIND
4908 fi
4909 else
4910 GNATBIND="$ac_cv_prog_GNATBIND"
4911 fi
4912
4913 if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4915 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$GNATMAKE"; then
4922 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4934 fi
4935 done
4936 done
4937 IFS=$as_save_IFS
4938
4939 fi
4940 fi
4941 GNATMAKE=$ac_cv_prog_GNATMAKE
4942 if test -n "$GNATMAKE"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4944 $as_echo "$GNATMAKE" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4948 fi
4949
4950
4951 fi
4952 if test -z "$ac_cv_prog_GNATMAKE"; then
4953 ac_ct_GNATMAKE=$GNATMAKE
4954 # Extract the first word of "gnatmake", so it can be a program name with args.
4955 set dummy gnatmake; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$ac_ct_GNATMAKE"; then
4962 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4982 if test -n "$ac_ct_GNATMAKE"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4984 $as_echo "$ac_ct_GNATMAKE" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990 if test "x$ac_ct_GNATMAKE" = x; then
4991 GNATMAKE="no"
4992 else
4993 case $cross_compiling:$ac_tool_warned in
4994 yes:)
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned=yes ;;
4998 esac
4999 GNATMAKE=$ac_ct_GNATMAKE
5000 fi
5001 else
5002 GNATMAKE="$ac_cv_prog_GNATMAKE"
5003 fi
5004
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5006 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5007 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 cat >conftest.adb <<EOF
5011 procedure conftest is begin null; end conftest;
5012 EOF
5013 acx_cv_cc_gcc_supports_ada=no
5014 # There is a bug in old released versions of GCC which causes the
5015 # driver to exit successfully when the appropriate language module
5016 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5017 # Therefore we must check for the error message as well as an
5018 # unsuccessful exit.
5019 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5020 # given a .adb file, but produce no object file. So we must check
5021 # if an object file was really produced to guard against this.
5022 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5023 if test x"$errors" = x && test -f conftest.$ac_objext; then
5024 acx_cv_cc_gcc_supports_ada=yes
5025 fi
5026 rm -f conftest.*
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5029 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5030
5031 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5032 have_gnat=yes
5033 else
5034 have_gnat=no
5035 fi
5036
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5038 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5039 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 echo abfoo >t1
5043 echo cdfoo >t2
5044 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5045 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5046 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5047 :
5048 else
5049 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5050 fi
5051 fi
5052 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5053 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5054 :
5055 else
5056 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5057 fi
5058 fi
5059 rm t1 t2
5060
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5063 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5064 do_compare="$gcc_cv_prog_cmp_skip"
5065
5066
5067
5068 # Check whether --enable-bootstrap was given.
5069 if test "${enable_bootstrap+set}" = set; then :
5070 enableval=$enable_bootstrap;
5071 else
5072 enable_bootstrap=default
5073 fi
5074
5075
5076 # Issue errors and warnings for invalid/strange bootstrap combinations.
5077 if test -r $srcdir/gcc/configure; then
5078 have_compiler=yes
5079 else
5080 have_compiler=no
5081 fi
5082
5083 case "$have_compiler:$host:$target:$enable_bootstrap" in
5084 *:*:*:no) ;;
5085
5086 # Default behavior. Enable bootstrap if we have a compiler
5087 # and we are in a native configuration.
5088 yes:$build:$build:default)
5089 enable_bootstrap=yes ;;
5090
5091 *:*:*:default)
5092 enable_bootstrap=no ;;
5093
5094 # We have a compiler and we are in a native configuration, bootstrap is ok
5095 yes:$build:$build:yes)
5096 ;;
5097
5098 # Other configurations, but we have a compiler. Assume the user knows
5099 # what he's doing.
5100 yes:*:*:yes)
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5102 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5103 ;;
5104
5105 # No compiler: if they passed --enable-bootstrap explicitly, fail
5106 no:*:*:yes)
5107 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5108
5109 # Fail if wrong command line
5110 *)
5111 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5112 ;;
5113 esac
5114
5115 # Used for setting $lt_cv_objdir
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5117 $as_echo_n "checking for objdir... " >&6; }
5118 if test "${lt_cv_objdir+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 rm -f .libs 2>/dev/null
5122 mkdir .libs 2>/dev/null
5123 if test -d .libs; then
5124 lt_cv_objdir=.libs
5125 else
5126 # MS-DOS does not allow filenames that begin with a dot.
5127 lt_cv_objdir=_libs
5128 fi
5129 rmdir .libs 2>/dev/null
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5132 $as_echo "$lt_cv_objdir" >&6; }
5133 objdir=$lt_cv_objdir
5134
5135
5136
5137
5138
5139 cat >>confdefs.h <<_ACEOF
5140 #define LT_OBJDIR "$lt_cv_objdir/"
5141 _ACEOF
5142
5143
5144
5145 # Check for GMP, MPFR and MPC
5146 gmplibs="-lmpc -lmpfr -lgmp"
5147 gmpinc=
5148 have_gmp=no
5149
5150 # Specify a location for mpc
5151 # check for this first so it ends up on the link line before mpfr.
5152
5153 # Check whether --with-mpc was given.
5154 if test "${with_mpc+set}" = set; then :
5155 withval=$with_mpc;
5156 fi
5157
5158
5159 # Check whether --with-mpc-include was given.
5160 if test "${with_mpc_include+set}" = set; then :
5161 withval=$with_mpc_include;
5162 fi
5163
5164
5165 # Check whether --with-mpc-lib was given.
5166 if test "${with_mpc_lib+set}" = set; then :
5167 withval=$with_mpc_lib;
5168 fi
5169
5170
5171 if test "x$with_mpc" != x; then
5172 gmplibs="-L$with_mpc/lib $gmplibs"
5173 gmpinc="-I$with_mpc/include $gmpinc"
5174 fi
5175 if test "x$with_mpc_include" != x; then
5176 gmpinc="-I$with_mpc_include $gmpinc"
5177 fi
5178 if test "x$with_mpc_lib" != x; then
5179 gmplibs="-L$with_mpc_lib $gmplibs"
5180 fi
5181 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5182 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5183 gmpinc='-I$$s/mpc/src '"$gmpinc"
5184 # Do not test the mpc version. Assume that it is sufficient, since
5185 # it is in the source tree, and the library has not been built yet
5186 # but it would be included on the link line in the version check below
5187 # hence making the test fail.
5188 have_gmp=yes
5189 fi
5190
5191 # Specify a location for mpfr
5192 # check for this first so it ends up on the link line before gmp.
5193
5194 # Check whether --with-mpfr-dir was given.
5195 if test "${with_mpfr_dir+set}" = set; then :
5196 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5197 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5198 fi
5199
5200
5201
5202 # Check whether --with-mpfr was given.
5203 if test "${with_mpfr+set}" = set; then :
5204 withval=$with_mpfr;
5205 fi
5206
5207
5208 # Check whether --with-mpfr-include was given.
5209 if test "${with_mpfr_include+set}" = set; then :
5210 withval=$with_mpfr_include;
5211 fi
5212
5213
5214 # Check whether --with-mpfr-lib was given.
5215 if test "${with_mpfr_lib+set}" = set; then :
5216 withval=$with_mpfr_lib;
5217 fi
5218
5219
5220 if test "x$with_mpfr" != x; then
5221 gmplibs="-L$with_mpfr/lib $gmplibs"
5222 gmpinc="-I$with_mpfr/include $gmpinc"
5223 fi
5224 if test "x$with_mpfr_include" != x; then
5225 gmpinc="-I$with_mpfr_include $gmpinc"
5226 fi
5227 if test "x$with_mpfr_lib" != x; then
5228 gmplibs="-L$with_mpfr_lib $gmplibs"
5229 fi
5230 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5231 # MPFR v3.1.0 moved the sources into a src sub-directory.
5232 if test -d ${srcdir}/mpfr/src; then
5233 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5234 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5235 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5236 else
5237 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5238 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5239 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5240 fi
5241 # Do not test the mpfr version. Assume that it is sufficient, since
5242 # it is in the source tree, and the library has not been built yet
5243 # but it would be included on the link line in the version check below
5244 # hence making the test fail.
5245 have_gmp=yes
5246 fi
5247
5248 # Specify a location for gmp
5249
5250 # Check whether --with-gmp-dir was given.
5251 if test "${with_gmp_dir+set}" = set; then :
5252 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5253 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5254 fi
5255
5256
5257
5258 # Check whether --with-gmp was given.
5259 if test "${with_gmp+set}" = set; then :
5260 withval=$with_gmp;
5261 fi
5262
5263
5264 # Check whether --with-gmp-include was given.
5265 if test "${with_gmp_include+set}" = set; then :
5266 withval=$with_gmp_include;
5267 fi
5268
5269
5270 # Check whether --with-gmp-lib was given.
5271 if test "${with_gmp_lib+set}" = set; then :
5272 withval=$with_gmp_lib;
5273 fi
5274
5275
5276
5277 if test "x$with_gmp" != x; then
5278 gmplibs="-L$with_gmp/lib $gmplibs"
5279 gmpinc="-I$with_gmp/include $gmpinc"
5280 fi
5281 if test "x$with_gmp_include" != x; then
5282 gmpinc="-I$with_gmp_include $gmpinc"
5283 fi
5284 if test "x$with_gmp_lib" != x; then
5285 gmplibs="-L$with_gmp_lib $gmplibs"
5286 fi
5287 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5288 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5289 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5290 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5291 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5292 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5293 # Do not test the gmp version. Assume that it is sufficient, since
5294 # it is in the source tree, and the library has not been built yet
5295 # but it would be included on the link line in the version check below
5296 # hence making the test fail.
5297 have_gmp=yes
5298 fi
5299
5300 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5301 have_gmp=yes
5302 saved_CFLAGS="$CFLAGS"
5303 CFLAGS="$CFLAGS $gmpinc"
5304 # Check for the recommended and required versions of GMP.
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5306 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5307
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310 #include "gmp.h"
5311 int
5312 main ()
5313 {
5314
5315 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5316 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5317 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5318 choke me
5319 #endif
5320
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"; then :
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #include <gmp.h>
5329 int
5330 main ()
5331 {
5332
5333 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5334 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5335 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5336 choke me
5337 #endif
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345 $as_echo "yes" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5348 $as_echo "buggy but acceptable" >&6; }
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }; have_gmp=no
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356
5357 # If we have GMP, check the MPFR version.
5358 if test x"$have_gmp" = xyes; then
5359 # Check for the recommended and required versions of MPFR.
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5361 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <gmp.h>
5365 #include <mpfr.h>
5366 int
5367 main ()
5368 {
5369
5370 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5371 choke me
5372 #endif
5373
5374 ;
5375 return 0;
5376 }
5377 _ACEOF
5378 if ac_fn_c_try_compile "$LINENO"; then :
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <gmp.h>
5382 #include <mpfr.h>
5383 int
5384 main ()
5385 {
5386
5387 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5388 choke me
5389 #endif
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397 $as_echo "yes" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5400 $as_echo "buggy but acceptable" >&6; }
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }; have_gmp=no
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409
5410 # Check for the MPC header version.
5411 if test x"$have_gmp" = xyes ; then
5412 # Check for the recommended and required versions of MPC.
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5414 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 #include <mpc.h>
5418 int
5419 main ()
5420 {
5421
5422 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5423 choke me
5424 #endif
5425
5426 ;
5427 return 0;
5428 }
5429 _ACEOF
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433 #include <mpc.h>
5434 int
5435 main ()
5436 {
5437
5438 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5439 choke me
5440 #endif
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448 $as_echo "yes" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5451 $as_echo "buggy but acceptable" >&6; }
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }; have_gmp=no
5457 fi
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 fi
5460
5461 # Now check the MPFR library.
5462 if test x"$have_gmp" = xyes; then
5463 saved_LIBS="$LIBS"
5464 LIBS="$LIBS $gmplibs"
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5466 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <mpc.h>
5470 int
5471 main ()
5472 {
5473
5474 mpfr_t n;
5475 mpfr_t x;
5476 mpc_t c;
5477 int t;
5478 mpfr_init (n);
5479 mpfr_init (x);
5480 mpfr_atan2 (n, n, x, GMP_RNDN);
5481 mpfr_erfc (n, x, GMP_RNDN);
5482 mpfr_subnormalize (x, t, GMP_RNDN);
5483 mpfr_clear(n);
5484 mpfr_clear(x);
5485 mpc_init2 (c, 53);
5486 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5487 mpc_cosh (c, c, MPC_RNDNN);
5488 mpc_pow (c, c, c, MPC_RNDNN);
5489 mpc_acosh (c, c, MPC_RNDNN);
5490 mpc_clear (c);
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_link "$LINENO"; then :
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 $as_echo "yes" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }; have_gmp=no
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505 LIBS="$saved_LIBS"
5506 fi
5507
5508 CFLAGS="$saved_CFLAGS"
5509
5510 # The library versions listed in the error message below should match
5511 # the HARD-minimums enforced above.
5512 if test x$have_gmp != xyes; then
5513 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5514 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5515 their locations. Source code for these libraries can be found at
5516 their respective hosting sites as well as at
5517 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5518 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5519 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5520 make sure that you have installed both the libraries and the header
5521 files. They may be located in separate packages." "$LINENO" 5
5522 fi
5523 fi
5524
5525 # Flags needed for both GMP, MPFR and/or MPC.
5526
5527
5528
5529
5530
5531
5532
5533 # Allow host libstdc++ to be specified for static linking with PPL.
5534
5535 # Check whether --with-host-libstdcxx was given.
5536 if test "${with_host_libstdcxx+set}" = set; then :
5537 withval=$with_host_libstdcxx;
5538 fi
5539
5540
5541 case $with_host_libstdcxx in
5542 no|yes)
5543 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5544 ;;
5545 esac
5546
5547 # Linker flags to use for stage1 or when not boostrapping.
5548
5549 # Check whether --with-stage1-ldflags was given.
5550 if test "${with_stage1_ldflags+set}" = set; then :
5551 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5552 stage1_ldflags=
5553 else
5554 stage1_ldflags=$withval
5555 fi
5556 else
5557 stage1_ldflags=
5558 fi
5559
5560
5561
5562 # Libraries to use for stage1 or when not bootstrapping.
5563
5564 # Check whether --with-stage1-libs was given.
5565 if test "${with_stage1_libs+set}" = set; then :
5566 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5567 stage1_libs=
5568 else
5569 stage1_libs=$withval
5570 fi
5571 else
5572 stage1_libs=$with_host_libstdcxx
5573 fi
5574
5575
5576
5577 # Libraries to use for stage2 and later builds. This defaults to the
5578 # argument passed to --with-host-libstdcxx.
5579
5580 # Check whether --with-boot-libs was given.
5581 if test "${with_boot_libs+set}" = set; then :
5582 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5583 poststage1_libs=
5584 else
5585 poststage1_libs=$withval
5586 fi
5587 else
5588 poststage1_libs=$with_host_libstdcxx
5589 fi
5590
5591
5592
5593 # Linker flags to use for stage2 and later builds.
5594
5595 # Check whether --with-boot-ldflags was given.
5596 if test "${with_boot_ldflags+set}" = set; then :
5597 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5598 poststage1_ldflags=
5599 else
5600 poststage1_ldflags=$withval
5601 fi
5602 else
5603 poststage1_ldflags=
5604 # In stages 2 and 3, default to linking libstdc++ and libgcc
5605 # statically. But if the user explicitly specified the libraries to
5606 # use, trust that they are doing what they want.
5607 if test "$poststage1_libs" = ""; then
5608 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5609 fi
5610 fi
5611
5612
5613
5614 # Check for ISL
5615
5616
5617 # Check whether --with-isl was given.
5618 if test "${with_isl+set}" = set; then :
5619 withval=$with_isl;
5620 fi
5621
5622
5623 # Check whether --with-isl-include was given.
5624 if test "${with_isl_include+set}" = set; then :
5625 withval=$with_isl_include;
5626 fi
5627
5628
5629 # Check whether --with-isl-lib was given.
5630 if test "${with_isl_lib+set}" = set; then :
5631 withval=$with_isl_lib;
5632 fi
5633
5634
5635 # Check whether --enable-isl-version-check was given.
5636 if test "${enable_isl_version_check+set}" = set; then :
5637 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5638 else
5639 ENABLE_ISL_CHECK=yes
5640 fi
5641
5642
5643 # Initialize isllibs and islinc.
5644 case $with_isl in
5645 no)
5646 isllibs=
5647 islinc=
5648 ;;
5649 "" | yes)
5650 ;;
5651 *)
5652 isllibs="-L$with_isl/lib"
5653 islinc="-I$with_isl/include"
5654 ;;
5655 esac
5656 if test "x${with_isl_include}" != x ; then
5657 islinc="-I$with_isl_include"
5658 fi
5659 if test "x${with_isl_lib}" != x; then
5660 isllibs="-L$with_isl_lib"
5661 fi
5662 if test "x${islinc}" = x && test "x${isllibs}" = x \
5663 && test -d ${srcdir}/isl; then
5664 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5665 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5666 ENABLE_ISL_CHECK=no
5667 fi
5668
5669 isllibs="${isllibs} -lisl"
5670
5671
5672
5673
5674
5675 if test "x$with_isl" != "xno"; then
5676
5677 if test "${ENABLE_ISL_CHECK}" = yes ; then
5678 _isl_saved_CFLAGS=$CFLAGS
5679 _isl_saved_LDFLAGS=$LDFLAGS
5680 _isl_saved_LIBS=$LIBS
5681
5682 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5683 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5684 LIBS="${_isl_saved_LIBS} -lisl"
5685 echo $CFLAGS
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5688 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5689 if test "${gcc_cv_isl+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if test "$cross_compiling" = yes; then :
5693 gcc_cv_isl=yes
5694 else
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <isl/version.h>
5698 #include <string.h>
5699 int
5700 main ()
5701 {
5702 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5703 return 1;
5704
5705 ;
5706 return 0;
5707 }
5708 _ACEOF
5709 if ac_fn_c_try_run "$LINENO"; then :
5710 gcc_cv_isl=yes
5711 else
5712 gcc_cv_isl=no
5713 fi
5714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5715 conftest.$ac_objext conftest.beam conftest.$ac_ext
5716 fi
5717
5718 fi
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5720 $as_echo "$gcc_cv_isl" >&6; }
5721
5722 CFLAGS=$_isl_saved_CFLAGS
5723 LDFLAGS=$_isl_saved_LDFLAGS
5724 LIBS=$_isl_saved_LIBS
5725 fi
5726
5727
5728
5729
5730
5731
5732
5733 if test "x${with_isl}" = xno; then
5734 graphite_requested=no
5735 elif test "x${with_isl}" != x \
5736 || test "x${with_isl_include}" != x \
5737 || test "x${with_isl_lib}" != x ; then
5738 graphite_requested=yes
5739 else
5740 graphite_requested=no
5741 fi
5742
5743
5744
5745 if test "${gcc_cv_isl}" = no ; then
5746 isllibs=
5747 islinc=
5748 fi
5749
5750 if test "${graphite_requested}" = yes \
5751 && test "x${isllibs}" = x \
5752 && test "x${islinc}" = x ; then
5753
5754 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5755 fi
5756
5757
5758 fi
5759
5760 # Check for CLOOG
5761
5762
5763 # Check whether --with-cloog was given.
5764 if test "${with_cloog+set}" = set; then :
5765 withval=$with_cloog;
5766 fi
5767
5768
5769 # Check whether --with-cloog-include was given.
5770 if test "${with_cloog_include+set}" = set; then :
5771 withval=$with_cloog_include;
5772 fi
5773
5774
5775 # Check whether --with-cloog-lib was given.
5776 if test "${with_cloog_lib+set}" = set; then :
5777 withval=$with_cloog_lib;
5778 fi
5779
5780
5781 # Check whether --enable-cloog-version-check was given.
5782 if test "${enable_cloog_version_check+set}" = set; then :
5783 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5784 else
5785 ENABLE_CLOOG_CHECK=yes
5786 fi
5787
5788
5789 # Initialize clooglibs and clooginc.
5790 case $with_cloog in
5791 no)
5792 clooglibs=
5793 clooginc=
5794 ;;
5795 "" | yes)
5796 ;;
5797 *)
5798 clooglibs="-L$with_cloog/lib"
5799 clooginc="-I$with_cloog/include"
5800 ;;
5801 esac
5802 if test "x${with_cloog_include}" != x ; then
5803 clooginc="-I$with_cloog_include"
5804 fi
5805 if test "x${with_cloog_lib}" != x; then
5806 clooglibs="-L$with_cloog_lib"
5807 fi
5808 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5809 && test -d ${srcdir}/cloog; then
5810 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5811 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5812 fi
5813
5814 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5815 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
5816
5817
5818
5819
5820
5821 if test "x$isllibs" = x && test "x$islinc" = x; then
5822 clooglibs=
5823 clooginc=
5824 elif test "x$with_cloog" != "xno"; then
5825
5826
5827
5828 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5829 _cloog_saved_CFLAGS=$CFLAGS
5830 _cloog_saved_LDFLAGS=$LDFLAGS
5831
5832 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5833 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5836 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5837 if test "${gcc_cv_cloog+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include "cloog/version.h"
5843 int
5844 main ()
5845 {
5846 #if CLOOG_VERSION_MAJOR != 0 \
5847 || CLOOG_VERSION_MINOR != 17 \
5848 || CLOOG_VERSION_REVISION < 0
5849 choke me
5850 #endif
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 gcc_cv_cloog=yes
5857 else
5858 gcc_cv_cloog=no
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5863 $as_echo "$gcc_cv_cloog" >&6; }
5864
5865 CFLAGS=$_cloog_saved_CFLAGS
5866 LDFLAGS=$_cloog_saved_LDFLAGS
5867 fi
5868
5869
5870
5871
5872
5873
5874
5875 if test "x${with_cloog}" = xno; then
5876 graphite_requested=no
5877 elif test "x${with_cloog}" != x \
5878 || test "x${with_cloog_include}" != x \
5879 || test "x${with_cloog_lib}" != x ; then
5880 graphite_requested=yes
5881 else
5882 graphite_requested=no
5883 fi
5884
5885
5886
5887 if test "${gcc_cv_cloog}" = no ; then
5888 clooglibs=
5889 clooginc=
5890 fi
5891
5892 if test "${graphite_requested}" = yes \
5893 && test "x${clooglibs}" = x \
5894 && test "x${clooginc}" = x ; then
5895
5896 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5897 fi
5898
5899
5900 fi
5901
5902 # If either the ISL or the CLooG check failed, disable builds of in-tree
5903 # variants of both
5904 if test "x$clooglibs" = x && test "x$clooginc" = x; then
5905 noconfigdirs="$noconfigdirs cloog isl"
5906 fi
5907
5908 # Check for LTO support.
5909 # Check whether --enable-lto was given.
5910 if test "${enable_lto+set}" = set; then :
5911 enableval=$enable_lto; enable_lto=$enableval
5912 else
5913 enable_lto=yes; default_enable_lto=yes
5914 fi
5915
5916
5917
5918
5919
5920 target_elf=no
5921 case $target in
5922 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5923 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5924 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5925 target_elf=no
5926 ;;
5927 *)
5928 target_elf=yes
5929 ;;
5930 esac
5931
5932 if test $target_elf = yes; then :
5933 # ELF platforms build the lto-plugin always.
5934 build_lto_plugin=yes
5935
5936 else
5937 if test x"$default_enable_lto" = x"yes" ; then
5938 case $target in
5939 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5940 # On other non-ELF platforms, LTO has yet to be validated.
5941 *) enable_lto=no ;;
5942 esac
5943 else
5944 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5945 # It would also be nice to check the binutils support, but we don't
5946 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5947 # warn during gcc/ subconfigure; unless you're bootstrapping with
5948 # -flto it won't be needed until after installation anyway.
5949 case $target in
5950 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5951 *) if test x"$enable_lto" = x"yes"; then
5952 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5953 fi
5954 ;;
5955 esac
5956 fi
5957 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5958 # Build it unless LTO was explicitly disabled.
5959 case $target in
5960 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5961 *) ;;
5962 esac
5963
5964 fi
5965
5966
5967
5968 # By default, C and C++ are the only stage 1 languages.
5969 stage1_languages=,c,
5970
5971 # Target libraries that we bootstrap.
5972 bootstrap_target_libs=,target-libgcc,
5973
5974 # Figure out what language subdirectories are present.
5975 # Look if the user specified --enable-languages="..."; if not, use
5976 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5977 # go away some day.
5978 # NB: embedded tabs in this IF block -- do not untabify
5979 if test -d ${srcdir}/gcc; then
5980 if test x"${enable_languages+set}" != xset; then
5981 if test x"${LANGUAGES+set}" = xset; then
5982 enable_languages="${LANGUAGES}"
5983 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5984 else
5985 enable_languages=all
5986 fi
5987 else
5988 if test x"${enable_languages}" = x ||
5989 test x"${enable_languages}" = xyes;
5990 then
5991 echo configure.in: --enable-languages needs at least one language argument 1>&2
5992 exit 1
5993 fi
5994 fi
5995 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5996
5997 # 'f95' is the old name for the 'fortran' language. We issue a warning
5998 # and make the substitution.
5999 case ,${enable_languages}, in
6000 *,f95,*)
6001 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6002 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6003 ;;
6004 esac
6005
6006 # If bootstrapping, C++ must be enabled.
6007 case ",$enable_languages,:$enable_bootstrap" in
6008 *,c++,*:*) ;;
6009 *:yes)
6010 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6011 enable_languages="${enable_languages},c++"
6012 else
6013 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6014 fi
6015 ;;
6016 esac
6017
6018 # First scan to see if an enabled language requires some other language.
6019 # We assume that a given config-lang.in will list all the language
6020 # front ends it requires, even if some are required indirectly.
6021 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6022 case ${lang_frag} in
6023 ..) ;;
6024 # The odd quoting in the next line works around
6025 # an apparent bug in bash 1.12 on linux.
6026 ${srcdir}/gcc/[*]/config-lang.in) ;;
6027 *)
6028 # From the config-lang.in, get $language, $lang_requires, and
6029 # $lang_requires_boot_languages.
6030 language=
6031 lang_requires=
6032 lang_requires_boot_languages=
6033 . ${lang_frag}
6034 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6035 case ,${enable_languages}, in
6036 *,$other,*) ;;
6037 *,all,*) ;;
6038 *,$language,*)
6039 echo " \`$other' language required by \`$language'; enabling" 1>&2
6040 enable_languages="${enable_languages},${other}"
6041 ;;
6042 esac
6043 done
6044 for other in ${lang_requires_boot_languages} ; do
6045 if test "$other" != "c"; then
6046 case ,${enable_stage1_languages}, in
6047 *,$other,*) ;;
6048 *,all,*) ;;
6049 *)
6050 case ,${enable_languages}, in
6051 *,$language,*)
6052 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6053 enable_stage1_languages="$enable_stage1_languages,${other}"
6054 ;;
6055 esac
6056 ;;
6057 esac
6058 fi
6059 done
6060 ;;
6061 esac
6062 done
6063
6064 new_enable_languages=,c,
6065
6066 # If LTO is enabled, add the LTO front end.
6067 extra_host_libiberty_configure_flags=
6068 if test "$enable_lto" = "yes" ; then
6069 case ,${enable_languages}, in
6070 *,lto,*) ;;
6071 *) enable_languages="${enable_languages},lto" ;;
6072 esac
6073 if test "${build_lto_plugin}" = "yes" ; then
6074 configdirs="$configdirs lto-plugin"
6075 extra_host_libiberty_configure_flags=--enable-shared
6076 fi
6077 fi
6078
6079
6080 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6081 potential_languages=,c,
6082
6083 enabled_target_libs=
6084 disabled_target_libs=
6085
6086 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6087 case ${lang_frag} in
6088 ..) ;;
6089 # The odd quoting in the next line works around
6090 # an apparent bug in bash 1.12 on linux.
6091 ${srcdir}/gcc/[*]/config-lang.in) ;;
6092 *)
6093 # From the config-lang.in, get $language, $target_libs,
6094 # $lang_dirs, $boot_language, and $build_by_default
6095 language=
6096 target_libs=
6097 lang_dirs=
6098 subdir_requires=
6099 boot_language=no
6100 build_by_default=yes
6101 . ${lang_frag}
6102 if test x${language} = x; then
6103 echo "${lang_frag} doesn't set \$language." 1>&2
6104 exit 1
6105 fi
6106
6107 if test "$language" = "c++"; then
6108 boot_language=yes
6109 fi
6110
6111 case ,${enable_languages}, in
6112 *,${language},*)
6113 # Language was explicitly selected; include it
6114 # unless it is C, which is enabled by default.
6115 if test "$language" != "c"; then
6116 add_this_lang=yes
6117 fi
6118 ;;
6119 *,all,*)
6120 # 'all' was selected, select it if it is a default language
6121 add_this_lang=${build_by_default}
6122 ;;
6123 *)
6124 add_this_lang=no
6125 ;;
6126 esac
6127
6128 # Disable languages that need other directories if these aren't available.
6129 for i in $subdir_requires; do
6130 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6131 case ,${enable_languages}, in
6132 *,${language},*)
6133 # Specifically requested language; tell them.
6134 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6135 ;;
6136 *)
6137 # Silently disable.
6138 add_this_lang=unsupported
6139 ;;
6140 esac
6141 done
6142
6143 # Disable Ada if no preexisting GNAT is available.
6144 case ,${enable_languages},:${language}:${have_gnat} in
6145 *,${language},*:ada:no)
6146 # Specifically requested language; tell them.
6147 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6148 ;;
6149 *:ada:no)
6150 # Silently disable.
6151 add_this_lang=unsupported
6152 ;;
6153 esac
6154
6155 # Disable a language that is unsupported by the target.
6156 case " $unsupported_languages " in
6157 *" $language "*)
6158 add_this_lang=unsupported
6159 ;;
6160 esac
6161
6162 case $add_this_lang in
6163 unsupported)
6164 # Remove language-dependent dirs.
6165 disabled_target_libs="$disabled_target_libs $target_libs"
6166 noconfigdirs="$noconfigdirs $lang_dirs"
6167 ;;
6168 no)
6169 # Remove language-dependent dirs; still show language as supported.
6170 disabled_target_libs="$disabled_target_libs $target_libs"
6171 noconfigdirs="$noconfigdirs $lang_dirs"
6172 potential_languages="${potential_languages}${language},"
6173 ;;
6174 yes)
6175 new_enable_languages="${new_enable_languages}${language},"
6176 potential_languages="${potential_languages}${language},"
6177 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6178 enabled_target_libs="$enabled_target_libs $target_libs"
6179 case "${boot_language}:,$enable_stage1_languages," in
6180 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6181 # Add to (comma-separated) list of stage 1 languages.
6182 case ",$stage1_languages," in
6183 *,$language,* | ,yes, | ,all,) ;;
6184 *) stage1_languages="${stage1_languages}${language}," ;;
6185 esac
6186 # We need to bootstrap any supporting libraries.
6187 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6188 ;;
6189 esac
6190 ;;
6191 esac
6192 ;;
6193 esac
6194 done
6195
6196 # Add target libraries which are only needed for disabled languages
6197 # to noconfigdirs.
6198 if test -n "$disabled_target_libs"; then
6199 for dir in $disabled_target_libs; do
6200 case " $enabled_target_libs " in
6201 *" ${dir} "*) ;;
6202 *) noconfigdirs="$noconfigdirs $dir" ;;
6203 esac
6204 done
6205 fi
6206
6207 # Check whether --enable-stage1-languages was given.
6208 if test "${enable_stage1_languages+set}" = set; then :
6209 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6210 ,no,|,,)
6211 # Set it to something that will have no effect in the loop below
6212 enable_stage1_languages=c ;;
6213 ,yes,)
6214 enable_stage1_languages=`echo $new_enable_languages | \
6215 sed -e "s/^,//" -e "s/,$//" ` ;;
6216 *,all,*)
6217 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6218 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6219 esac
6220
6221 # Add "good" languages from enable_stage1_languages to stage1_languages,
6222 # while "bad" languages go in missing_languages. Leave no duplicates.
6223 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6224 case $potential_languages in
6225 *,$i,*)
6226 case $stage1_languages in
6227 *,$i,*) ;;
6228 *) stage1_languages="$stage1_languages$i," ;;
6229 esac ;;
6230 *)
6231 case $missing_languages in
6232 *,$i,*) ;;
6233 *) missing_languages="$missing_languages$i," ;;
6234 esac ;;
6235 esac
6236 done
6237 fi
6238
6239
6240 # Remove leading/trailing commas that were added for simplicity
6241 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6242 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6243 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6244 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6245
6246 if test "x$missing_languages" != x; then
6247 as_fn_error "
6248 The following requested languages could not be built: ${missing_languages}
6249 Supported languages are: ${potential_languages}" "$LINENO" 5
6250 fi
6251 if test "x$new_enable_languages" != "x$enable_languages"; then
6252 echo The following languages will be built: ${new_enable_languages}
6253 enable_languages="$new_enable_languages"
6254 fi
6255
6256
6257 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6258 fi
6259
6260 # Handle --disable-<component> generically.
6261 for dir in $configdirs $build_configdirs $target_configdirs ; do
6262 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6263 varname=`echo $dirname | sed -e s/+/_/g`
6264 if eval test x\${enable_${varname}} "=" xno ; then
6265 noconfigdirs="$noconfigdirs $dir"
6266 fi
6267 done
6268
6269 # Check for Boehm's garbage collector
6270 # Check whether --enable-objc-gc was given.
6271 if test "${enable_objc_gc+set}" = set; then :
6272 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6273 *,objc,*:*:yes:*target-boehm-gc*)
6274 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6275 ;;
6276 esac
6277 fi
6278
6279
6280 # Make sure we only build Boehm's garbage collector if required.
6281 case ,${enable_languages},:${enable_objc_gc} in
6282 *,objc,*:yes)
6283 # Keep target-boehm-gc if requested for Objective-C.
6284 ;;
6285 *)
6286 # Otherwise remove target-boehm-gc depending on target-libjava.
6287 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6288 noconfigdirs="$noconfigdirs target-boehm-gc"
6289 fi
6290 ;;
6291 esac
6292
6293 # Disable libitm if we're not building C++
6294 case ,${enable_languages}, in
6295 *,c++,*) ;;
6296 *)
6297 noconfigdirs="$noconfigdirs target-libitm"
6298 ;;
6299 esac
6300
6301 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6302 # $build_configdirs and $target_configdirs.
6303 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6304
6305 notsupp=""
6306 for dir in . $skipdirs $noconfigdirs ; do
6307 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6308 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6309 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6310 if test -r $srcdir/$dirname/configure ; then
6311 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6312 true
6313 else
6314 notsupp="$notsupp $dir"
6315 fi
6316 fi
6317 fi
6318 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6319 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6320 if test -r $srcdir/$dirname/configure ; then
6321 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6322 true
6323 else
6324 notsupp="$notsupp $dir"
6325 fi
6326 fi
6327 fi
6328 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6329 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6330 if test -r $srcdir/$dirname/configure ; then
6331 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6332 true
6333 else
6334 notsupp="$notsupp $dir"
6335 fi
6336 fi
6337 fi
6338 done
6339
6340 # Quietly strip out all directories which aren't configurable in this tree.
6341 # This relies on all configurable subdirectories being autoconfiscated, which
6342 # is now the case.
6343 build_configdirs_all="$build_configdirs"
6344 build_configdirs=
6345 for i in ${build_configdirs_all} ; do
6346 j=`echo $i | sed -e s/build-//g`
6347 if test -f ${srcdir}/$j/configure ; then
6348 build_configdirs="${build_configdirs} $i"
6349 fi
6350 done
6351
6352 configdirs_all="$configdirs"
6353 configdirs=
6354 for i in ${configdirs_all} ; do
6355 if test -f ${srcdir}/$i/configure ; then
6356 configdirs="${configdirs} $i"
6357 fi
6358 done
6359
6360 target_configdirs_all="$target_configdirs"
6361 target_configdirs=
6362 for i in ${target_configdirs_all} ; do
6363 j=`echo $i | sed -e s/target-//g`
6364 if test -f ${srcdir}/$j/configure ; then
6365 target_configdirs="${target_configdirs} $i"
6366 fi
6367 done
6368
6369 # Produce a warning message for the subdirs we can't configure.
6370 # This isn't especially interesting in the Cygnus tree, but in the individual
6371 # FSF releases, it's important to let people know when their machine isn't
6372 # supported by the one or two programs in a package.
6373
6374 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6375 # If $appdirs is non-empty, at least one of those directories must still
6376 # be configured, or we error out. (E.g., if the gas release supports a
6377 # specified target in some subdirs but not the gas subdir, we shouldn't
6378 # pretend that all is well.)
6379 if test -n "$appdirs" ; then
6380 for dir in $appdirs ; do
6381 if test -r $dir/Makefile.in ; then
6382 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6383 appdirs=""
6384 break
6385 fi
6386 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6387 appdirs=""
6388 break
6389 fi
6390 fi
6391 done
6392 if test -n "$appdirs" ; then
6393 echo "*** This configuration is not supported by this package." 1>&2
6394 exit 1
6395 fi
6396 fi
6397 # Okay, some application will build, or we don't care to check. Still
6398 # notify of subdirs not getting built.
6399 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6400 echo " ${notsupp}" 1>&2
6401 echo " (Any other directories should still work fine.)" 1>&2
6402 fi
6403
6404 case "$host" in
6405 *msdosdjgpp*)
6406 enable_gdbtk=no ;;
6407 esac
6408
6409 # To find our prefix, in gcc_cv_tool_prefix.
6410
6411 # The user is always right.
6412 if test "${PATH_SEPARATOR+set}" != set; then
6413 echo "#! /bin/sh" >conf$$.sh
6414 echo "exit 0" >>conf$$.sh
6415 chmod +x conf$$.sh
6416 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6417 PATH_SEPARATOR=';'
6418 else
6419 PATH_SEPARATOR=:
6420 fi
6421 rm -f conf$$.sh
6422 fi
6423
6424
6425
6426 if test "x$exec_prefix" = xNONE; then
6427 if test "x$prefix" = xNONE; then
6428 gcc_cv_tool_prefix=$ac_default_prefix
6429 else
6430 gcc_cv_tool_prefix=$prefix
6431 fi
6432 else
6433 gcc_cv_tool_prefix=$exec_prefix
6434 fi
6435
6436 # If there is no compiler in the tree, use the PATH only. In any
6437 # case, if there is no compiler in the tree nobody should use
6438 # AS_FOR_TARGET and LD_FOR_TARGET.
6439 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6440 gcc_version=`cat $srcdir/gcc/BASE-VER`
6441 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6442 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6443 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6444 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6445 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6446 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6447 else
6448 gcc_cv_tool_dirs=
6449 fi
6450
6451 if test x$build = x$target && test -n "$md_exec_prefix"; then
6452 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6453 fi
6454
6455
6456
6457 copy_dirs=
6458
6459
6460 # Check whether --with-build-sysroot was given.
6461 if test "${with_build_sysroot+set}" = set; then :
6462 withval=$with_build_sysroot; if test x"$withval" != x ; then
6463 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6464 fi
6465 else
6466 SYSROOT_CFLAGS_FOR_TARGET=
6467 fi
6468
6469
6470
6471
6472 # Check whether --with-debug-prefix-map was given.
6473 if test "${with_debug_prefix_map+set}" = set; then :
6474 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6475 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6476 for debug_map in $withval; do
6477 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6478 done
6479 fi
6480 else
6481 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6482 fi
6483
6484
6485
6486 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6487 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6488 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6489 # We want to ensure that TARGET libraries (which we know are built with
6490 # gcc) are built with "-O2 -g", so include those options when setting
6491 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6492 if test "x$CFLAGS_FOR_TARGET" = x; then
6493 CFLAGS_FOR_TARGET=$CFLAGS
6494 case " $CFLAGS " in
6495 *" -O2 "*) ;;
6496 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6497 esac
6498 case " $CFLAGS " in
6499 *" -g "* | *" -g3 "*) ;;
6500 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6501 esac
6502 fi
6503
6504
6505 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6506 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6507 case " $CXXFLAGS " in
6508 *" -O2 "*) ;;
6509 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6510 esac
6511 case " $CXXFLAGS " in
6512 *" -g "* | *" -g3 "*) ;;
6513 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6514 esac
6515 fi
6516
6517
6518
6519
6520 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6521 # the named directory are copied to $(tooldir)/sys-include.
6522 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6523 if test x${is_cross_compiler} = xno ; then
6524 echo 1>&2 '***' --with-headers is only supported when cross compiling
6525 exit 1
6526 fi
6527 if test x"${with_headers}" != xyes ; then
6528 x=${gcc_cv_tool_prefix}
6529 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6530 fi
6531 fi
6532
6533 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6534 # the name directories are copied to $(tooldir)/lib. Multiple directories
6535 # are permitted.
6536 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6537 if test x${is_cross_compiler} = xno ; then
6538 echo 1>&2 '***' --with-libs is only supported when cross compiling
6539 exit 1
6540 fi
6541 if test x"${with_libs}" != xyes ; then
6542 # Copy the libraries in reverse order, so that files in the first named
6543 # library override files in subsequent libraries.
6544 x=${gcc_cv_tool_prefix}
6545 for l in ${with_libs}; do
6546 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6547 done
6548 fi
6549 fi
6550
6551 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6552 #
6553 # This is done by determining whether or not the appropriate directory
6554 # is available, and by checking whether or not specific configurations
6555 # have requested that this magic not happen.
6556 #
6557 # The command line options always override the explicit settings in
6558 # configure.in, and the settings in configure.in override this magic.
6559 #
6560 # If the default for a toolchain is to use GNU as and ld, and you don't
6561 # want to do that, then you should use the --without-gnu-as and
6562 # --without-gnu-ld options for the configure script. Similarly, if
6563 # the default is to use the included zlib and you don't want to do that,
6564 # you should use the --with-system-zlib option for the configure script.
6565
6566 if test x${use_gnu_as} = x &&
6567 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6568 with_gnu_as=yes
6569 extra_host_args="$extra_host_args --with-gnu-as"
6570 fi
6571
6572 if test x${use_gnu_ld} = x &&
6573 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6574 with_gnu_ld=yes
6575 extra_host_args="$extra_host_args --with-gnu-ld"
6576 fi
6577
6578 if test x${use_included_zlib} = x &&
6579 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6580 :
6581 else
6582 with_system_zlib=yes
6583 extra_host_args="$extra_host_args --with-system-zlib"
6584 fi
6585
6586 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6587 # can detect this case.
6588
6589 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6590 with_newlib=yes
6591 extra_host_args="$extra_host_args --with-newlib"
6592 fi
6593
6594 # Handle ${copy_dirs}
6595 set fnord ${copy_dirs}
6596 shift
6597 while test $# != 0 ; do
6598 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6599 :
6600 else
6601 echo Copying $1 to $2
6602
6603 # Use the install script to create the directory and all required
6604 # parent directories.
6605 if test -d $2 ; then
6606 :
6607 else
6608 echo >config.temp
6609 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6610 fi
6611
6612 # Copy the directory, assuming we have tar.
6613 # FIXME: Should we use B in the second tar? Not all systems support it.
6614 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6615
6616 # It is the responsibility of the user to correctly adjust all
6617 # symlinks. If somebody can figure out how to handle them correctly
6618 # here, feel free to add the code.
6619
6620 echo $1 > $2/COPIED
6621 fi
6622 shift; shift
6623 done
6624
6625 # Determine a target-dependent exec_prefix that the installed
6626 # gcc will search in. Keep this list sorted by triplet, with
6627 # the *-*-osname triplets last.
6628 md_exec_prefix=
6629 case "${target}" in
6630 i[34567]86-pc-msdosdjgpp*)
6631 md_exec_prefix=/dev/env/DJDIR/bin
6632 ;;
6633 *-*-hpux* | \
6634 *-*-nto-qnx* | \
6635 *-*-solaris2*)
6636 md_exec_prefix=/usr/ccs/bin
6637 ;;
6638 esac
6639
6640 extra_arflags_for_target=
6641 extra_nmflags_for_target=
6642 extra_ranlibflags_for_target=
6643 target_makefile_frag=/dev/null
6644 case "${target}" in
6645 spu-*-*)
6646 target_makefile_frag="config/mt-spu"
6647 ;;
6648 mips*-sde-elf*)
6649 target_makefile_frag="config/mt-sde"
6650 ;;
6651 mipsisa*-*-elfoabi*)
6652 target_makefile_frag="config/mt-mips-elfoabi"
6653 ;;
6654 mips*-*-*linux* | mips*-*-gnu*)
6655 target_makefile_frag="config/mt-mips-gnu"
6656 ;;
6657 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6658 target_makefile_frag="config/mt-gnu"
6659 ;;
6660 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6661 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6662 # commands to handle both 32-bit and 64-bit objects. These flags are
6663 # harmless if we're using GNU nm or ar.
6664 extra_arflags_for_target=" -X32_64"
6665 extra_nmflags_for_target=" -B -X32_64"
6666 ;;
6667 esac
6668
6669 alphaieee_frag=/dev/null
6670 case $target in
6671 alpha*-*-*)
6672 # This just makes sure to use the -mieee option to build target libs.
6673 # This should probably be set individually by each library.
6674 alphaieee_frag="config/mt-alphaieee"
6675 ;;
6676 esac
6677
6678 # If --enable-target-optspace always use -Os instead of -O2 to build
6679 # the target libraries, similarly if it is not specified, use -Os
6680 # on selected platforms.
6681 ospace_frag=/dev/null
6682 case "${enable_target_optspace}:${target}" in
6683 yes:*)
6684 ospace_frag="config/mt-ospace"
6685 ;;
6686 :d30v-*)
6687 ospace_frag="config/mt-d30v"
6688 ;;
6689 :m32r-* | :d10v-* | :fr30-*)
6690 ospace_frag="config/mt-ospace"
6691 ;;
6692 no:* | :*)
6693 ;;
6694 *)
6695 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6696 ;;
6697 esac
6698
6699 # Some systems (e.g., one of the i386-aix systems the gas testers are
6700 # using) don't handle "\$" correctly, so don't use it here.
6701 tooldir='${exec_prefix}'/${target_noncanonical}
6702 build_tooldir=${tooldir}
6703
6704 # Create a .gdbinit file which runs the one in srcdir
6705 # and tells GDB to look there for source files.
6706
6707 if test -r ${srcdir}/.gdbinit ; then
6708 case ${srcdir} in
6709 .) ;;
6710 *) cat > ./.gdbinit <<EOF
6711 # ${NO_EDIT}
6712 dir ${srcdir}
6713 dir .
6714 source ${srcdir}/.gdbinit
6715 EOF
6716 ;;
6717 esac
6718 fi
6719
6720 # Make sure that the compiler is able to generate an executable. If it
6721 # can't, we are probably in trouble. We don't care whether we can run the
6722 # executable--we might be using a cross compiler--we only care whether it
6723 # can be created. At this point the main configure script has set CC.
6724 we_are_ok=no
6725 echo "int main () { return 0; }" > conftest.c
6726 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6727 if test $? = 0 ; then
6728 if test -s conftest || test -s conftest.exe ; then
6729 we_are_ok=yes
6730 fi
6731 fi
6732 case $we_are_ok in
6733 no)
6734 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6735 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6736 rm -f conftest*
6737 exit 1
6738 ;;
6739 esac
6740 rm -f conftest*
6741
6742 # Decide which environment variable is used to find dynamic libraries.
6743 case "${host}" in
6744 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6745 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6746 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6747 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6748 esac
6749
6750 # On systems where the dynamic library environment variable is PATH,
6751 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6752 # built executables to PATH.
6753 if test "$RPATH_ENVVAR" = PATH; then
6754 GCC_SHLIB_SUBDIR=/shlib
6755 else
6756 GCC_SHLIB_SUBDIR=
6757 fi
6758
6759 # Record target_configdirs and the configure arguments for target and
6760 # build configuration in Makefile.
6761 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6762 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6763
6764 # If we are building libgomp, bootstrap it.
6765 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6766 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6767 fi
6768
6769 # Determine whether gdb needs tk/tcl or not.
6770 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6771 # and in that case we want gdb to be built without tk. Ugh!
6772 # In fact I believe gdb is the *only* package directly dependent on tk,
6773 # so we should be able to put the 'maybe's in unconditionally and
6774 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6775 # 100% sure that that's safe though.
6776
6777 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6778 case "$enable_gdbtk" in
6779 no)
6780 GDB_TK="" ;;
6781 yes)
6782 GDB_TK="${gdb_tk}" ;;
6783 *)
6784 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6785 # distro. Eventually someone will fix this and move Insight, nee
6786 # gdbtk to a separate directory.
6787 if test -d ${srcdir}/gdb/gdbtk ; then
6788 GDB_TK="${gdb_tk}"
6789 else
6790 GDB_TK=""
6791 fi
6792 ;;
6793 esac
6794 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6795 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6796
6797 # Strip out unwanted targets.
6798
6799 # While at that, we remove Makefiles if we were started for recursive
6800 # configuration, so that the top-level Makefile reconfigures them,
6801 # like we used to do when configure itself was recursive.
6802
6803 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6804 # but now we're fixing up the Makefile ourselves with the additional
6805 # commands passed to AC_CONFIG_FILES. Use separate variables
6806 # extrasub-{build,host,target} not because there is any reason to split
6807 # the substitutions up that way, but only to remain below the limit of
6808 # 99 commands in a script, for HP-UX sed.
6809 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6810
6811 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6812 yes:yes:*\ gold\ *:*,c++,*) ;;
6813 yes:yes:*\ gold\ *:*)
6814 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6815 ;;
6816 esac
6817
6818 # Adjust the toplevel makefile according to whether bootstrap was selected.
6819 case $enable_bootstrap in
6820 yes)
6821 bootstrap_suffix=bootstrap
6822 BUILD_CONFIG=bootstrap-debug
6823 ;;
6824 no)
6825 bootstrap_suffix=no-bootstrap
6826 BUILD_CONFIG=
6827 ;;
6828 esac
6829
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6831 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6832
6833
6834 # Check whether --with-build-config was given.
6835 if test "${with_build_config+set}" = set; then :
6836 withval=$with_build_config; case $with_build_config in
6837 yes) with_build_config= ;;
6838 no) with_build_config= BUILD_CONFIG= ;;
6839 esac
6840 fi
6841
6842
6843 if test "x${with_build_config}" != x; then
6844 BUILD_CONFIG=$with_build_config
6845 else
6846 case $BUILD_CONFIG in
6847 bootstrap-debug)
6848 if echo "int f (void) { return 0; }" > conftest.c &&
6849 ${CC} -c conftest.c &&
6850 mv conftest.o conftest.o.g0 &&
6851 ${CC} -c -g conftest.c &&
6852 mv conftest.o conftest.o.g &&
6853 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6854 :
6855 else
6856 BUILD_CONFIG=
6857 fi
6858 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6859 ;;
6860 esac
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6863 $as_echo "$BUILD_CONFIG" >&6; }
6864
6865
6866 extrasub_build=
6867 for module in ${build_configdirs} ; do
6868 if test -z "${no_recursion}" \
6869 && test -f ${build_subdir}/${module}/Makefile; then
6870 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6871 rm -f ${build_subdir}/${module}/Makefile
6872 fi
6873 extrasub_build="$extrasub_build
6874 /^@if build-$module\$/d
6875 /^@endif build-$module\$/d
6876 /^@if build-$module-$bootstrap_suffix\$/d
6877 /^@endif build-$module-$bootstrap_suffix\$/d"
6878 done
6879 extrasub_host=
6880 for module in ${configdirs} ; do
6881 if test -z "${no_recursion}"; then
6882 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6883 if test -f ${file}; then
6884 echo 1>&2 "*** removing ${file} to force reconfigure"
6885 rm -f ${file}
6886 fi
6887 done
6888 fi
6889 extrasub_host="$extrasub_host
6890 /^@if $module\$/d
6891 /^@endif $module\$/d
6892 /^@if $module-$bootstrap_suffix\$/d
6893 /^@endif $module-$bootstrap_suffix\$/d"
6894 done
6895 extrasub_target=
6896 for module in ${target_configdirs} ; do
6897 if test -z "${no_recursion}" \
6898 && test -f ${target_subdir}/${module}/Makefile; then
6899 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6900 rm -f ${target_subdir}/${module}/Makefile
6901 fi
6902
6903 # We only bootstrap target libraries listed in bootstrap_target_libs.
6904 case $bootstrap_target_libs in
6905 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6906 *) target_bootstrap_suffix=no-bootstrap ;;
6907 esac
6908
6909 extrasub_target="$extrasub_target
6910 /^@if target-$module\$/d
6911 /^@endif target-$module\$/d
6912 /^@if target-$module-$target_bootstrap_suffix\$/d
6913 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6914 done
6915
6916 # Do the final fixup along with target modules.
6917 extrasub_target="$extrasub_target
6918 /^@if /,/^@endif /d"
6919
6920 # Create the serialization dependencies. This uses a temporary file.
6921
6922 # Check whether --enable-serial-configure was given.
6923 if test "${enable_serial_configure+set}" = set; then :
6924 enableval=$enable_serial_configure;
6925 fi
6926
6927
6928 case ${enable_serial_configure} in
6929 yes)
6930 enable_serial_build_configure=yes
6931 enable_serial_host_configure=yes
6932 enable_serial_target_configure=yes
6933 ;;
6934 esac
6935
6936 # These force 'configure's to be done one at a time, to avoid problems
6937 # with contention over a shared config.cache.
6938 rm -f serdep.tmp
6939 echo '# serdep.tmp' > serdep.tmp
6940 olditem=
6941 test "x${enable_serial_build_configure}" = xyes &&
6942 for item in ${build_configdirs} ; do
6943 case ${olditem} in
6944 "") ;;
6945 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6946 esac
6947 olditem=${item}
6948 done
6949 olditem=
6950 test "x${enable_serial_host_configure}" = xyes &&
6951 for item in ${configdirs} ; do
6952 case ${olditem} in
6953 "") ;;
6954 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6955 esac
6956 olditem=${item}
6957 done
6958 olditem=
6959 test "x${enable_serial_target_configure}" = xyes &&
6960 for item in ${target_configdirs} ; do
6961 case ${olditem} in
6962 "") ;;
6963 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6964 esac
6965 olditem=${item}
6966 done
6967 serialization_dependencies=serdep.tmp
6968
6969
6970 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6971 # target, nonopt, and variable assignments. These are the ones we
6972 # might not want to pass down to subconfigures. The exception being
6973 # --cache-file=/dev/null, which is used to turn off the use of cache
6974 # files altogether, and which should be passed on to subconfigures.
6975 # Also strip program-prefix, program-suffix, and program-transform-name,
6976 # so that we can pass down a consistent program-transform-name.
6977 baseargs=
6978 tbaseargs=
6979 keep_next=no
6980 skip_next=no
6981 eval "set -- $ac_configure_args"
6982 for ac_arg
6983 do
6984 if test X"$skip_next" = X"yes"; then
6985 skip_next=no
6986 continue
6987 fi
6988 if test X"$keep_next" = X"yes"; then
6989 case $ac_arg in
6990 *\'*)
6991 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6992 esac
6993 baseargs="$baseargs '$ac_arg'"
6994 tbaseargs="$tbaseargs '$ac_arg'"
6995 keep_next=no
6996 continue
6997 fi
6998
6999 # Handle separated arguments. Based on the logic generated by
7000 # autoconf 2.59.
7001 case $ac_arg in
7002 *=* | --config-cache | -C | -disable-* | --disable-* \
7003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7005 | -with-* | --with-* | -without-* | --without-* | --x)
7006 separate_arg=no
7007 ;;
7008 -*)
7009 separate_arg=yes
7010 ;;
7011 *)
7012 separate_arg=no
7013 ;;
7014 esac
7015
7016 skip_targ=no
7017 case $ac_arg in
7018
7019 --with-* | --without-*)
7020 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7021
7022 case $libopt in
7023 *[-_]include)
7024 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7025 ;;
7026 *[-_]lib)
7027 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7028 ;;
7029 *)
7030 lib=$libopt
7031 ;;
7032 esac
7033
7034
7035 case $lib in
7036 mpc | mpfr | gmp | cloog)
7037 # If we're processing --with-$lib, --with-$lib-include or
7038 # --with-$lib-lib, for one of the libs above, and target is
7039 # different from host, don't pass the current argument to any
7040 # target library's configure.
7041 if test x$is_cross_compiler = xyes; then
7042 skip_targ=yes
7043 fi
7044 ;;
7045 esac
7046 ;;
7047 esac
7048
7049 case "$ac_arg" in
7050 --cache-file=/dev/null | \
7051 -cache-file=/dev/null )
7052 # Handled here to avoid the test to skip args below.
7053 baseargs="$baseargs '$ac_arg'"
7054 tbaseargs="$tbaseargs '$ac_arg'"
7055 # Assert: $separate_arg should always be no.
7056 keep_next=$separate_arg
7057 ;;
7058 --no*)
7059 continue
7060 ;;
7061 --c* | \
7062 --sr* | \
7063 --ho* | \
7064 --bu* | \
7065 --t* | \
7066 --program-* | \
7067 -cache_file* | \
7068 -srcdir* | \
7069 -host* | \
7070 -build* | \
7071 -target* | \
7072 -program-prefix* | \
7073 -program-suffix* | \
7074 -program-transform-name* )
7075 skip_next=$separate_arg
7076 continue
7077 ;;
7078 -*)
7079 # An option. Add it.
7080 case $ac_arg in
7081 *\'*)
7082 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7083 esac
7084 baseargs="$baseargs '$ac_arg'"
7085 if test X"$skip_targ" = Xno; then
7086 tbaseargs="$tbaseargs '$ac_arg'"
7087 fi
7088 keep_next=$separate_arg
7089 ;;
7090 *)
7091 # Either a variable assignment, or a nonopt (triplet). Don't
7092 # pass it down; let the Makefile handle this.
7093 continue
7094 ;;
7095 esac
7096 done
7097 # Remove the initial space we just introduced and, as these will be
7098 # expanded by make, quote '$'.
7099 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7100
7101 # Add in --program-transform-name, after --program-prefix and
7102 # --program-suffix have been applied to it. Autoconf has already
7103 # doubled dollar signs and backslashes in program_transform_name; we want
7104 # the backslashes un-doubled, and then the entire thing wrapped in single
7105 # quotes, because this will be expanded first by make and then by the shell.
7106 # Also, because we want to override the logic in subdir configure scripts to
7107 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7108 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7109 ${program_transform_name}
7110 EOF_SED
7111 gcc_transform_name=`cat conftestsed.out`
7112 rm -f conftestsed.out
7113 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7114 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7115 if test "$silent" = yes; then
7116 baseargs="$baseargs --silent"
7117 tbaseargs="$tbaseargs --silent"
7118 fi
7119 baseargs="$baseargs --disable-option-checking"
7120 tbaseargs="$tbaseargs --disable-option-checking"
7121
7122 # Record and document user additions to sub configure arguments.
7123
7124
7125
7126
7127 # For the build-side libraries, we just need to pretend we're native,
7128 # and not use the same cache file. Multilibs are neither needed nor
7129 # desired.
7130 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7131
7132 # For host modules, accept cache file option, or specification as blank.
7133 case "${cache_file}" in
7134 "") # empty
7135 cache_file_option="" ;;
7136 /* | [A-Za-z]:[\\/]* ) # absolute path
7137 cache_file_option="--cache-file=${cache_file}" ;;
7138 *) # relative path
7139 cache_file_option="--cache-file=../${cache_file}" ;;
7140 esac
7141
7142 # Host dirs don't like to share a cache file either, horribly enough.
7143 # This seems to be due to autoconf 2.5x stupidity.
7144 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7145
7146 target_configargs="$target_configargs ${tbaseargs}"
7147
7148 # Passing a --with-cross-host argument lets the target libraries know
7149 # whether they are being built with a cross-compiler or being built
7150 # native. However, it would be better to use other mechanisms to make the
7151 # sorts of decisions they want to make on this basis. Please consider
7152 # this option to be deprecated. FIXME.
7153 if test x${is_cross_compiler} = xyes ; then
7154 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7155 fi
7156
7157 # Default to --enable-multilib.
7158 if test x${enable_multilib} = x ; then
7159 target_configargs="--enable-multilib ${target_configargs}"
7160 fi
7161
7162 # Pass --with-newlib if appropriate. Note that target_configdirs has
7163 # changed from the earlier setting of with_newlib.
7164 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7165 target_configargs="--with-newlib ${target_configargs}"
7166 fi
7167
7168 # Different target subdirs use different values of certain variables
7169 # (notably CXX). Worse, multilibs use *lots* of different values.
7170 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7171 # it doesn't automatically accept command-line overrides of them.
7172 # This means it's not safe for target subdirs to share a cache file,
7173 # which is disgusting, but there you have it. Hopefully this can be
7174 # fixed in future. It's still worthwhile to use a cache file for each
7175 # directory. I think.
7176
7177 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7178 # We need to pass --target, as newer autoconf's requires consistency
7179 # for target_alias and gcc doesn't manage it consistently.
7180 target_configargs="--cache-file=./config.cache ${target_configargs}"
7181
7182 FLAGS_FOR_TARGET=
7183 case " $target_configdirs " in
7184 *" newlib "*)
7185 case " $target_configargs " in
7186 *" --with-newlib "*)
7187 case "$target" in
7188 *-cygwin*)
7189 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7190 ;;
7191 esac
7192
7193 # If we're not building GCC, don't discard standard headers.
7194 if test -d ${srcdir}/gcc; then
7195 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7196
7197 if test "${build}" != "${host}"; then
7198 # On Canadian crosses, CC_FOR_TARGET will have already been set
7199 # by `configure', so we won't have an opportunity to add -Bgcc/
7200 # to it. This is right: we don't want to search that directory
7201 # for binaries, but we want the header files in there, so add
7202 # them explicitly.
7203 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7204
7205 # Someone might think of using the pre-installed headers on
7206 # Canadian crosses, in case the installed compiler is not fully
7207 # compatible with the compiler being built. In this case, it
7208 # would be better to flag an error than risking having
7209 # incompatible object files being constructed. We can't
7210 # guarantee that an error will be flagged, but let's hope the
7211 # compiler will do it, when presented with incompatible header
7212 # files.
7213 fi
7214 fi
7215
7216 case "${target}-${is_cross_compiler}" in
7217 i[3456789]86-*-linux*-no)
7218 # Here host == target, so we don't need to build gcc,
7219 # so we don't want to discard standard headers.
7220 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7221 ;;
7222 *)
7223 # If we're building newlib, use its generic headers last, but search
7224 # for any libc-related directories first (so make it the last -B
7225 # switch).
7226 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7227
7228 # If we're building libgloss, find the startup file, simulator library
7229 # and linker script.
7230 case " $target_configdirs " in
7231 *" libgloss "*)
7232 # Look for startup file, simulator library and maybe linker script.
7233 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7234 # Look for libnosys.a in case the target needs it.
7235 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7236 # Most targets have the linker script in the source directory.
7237 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7238 ;;
7239 esac
7240 ;;
7241 esac
7242 ;;
7243 esac
7244 ;;
7245 esac
7246
7247 case "$target" in
7248 x86_64-*mingw* | *-w64-mingw*)
7249 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7250 # however, use a symlink named 'mingw' in ${prefix} .
7251 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7252 ;;
7253 *-mingw*)
7254 # MinGW can't be handled as Cygwin above since it does not use newlib.
7255 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'
7256 ;;
7257 esac
7258
7259 # Allow the user to override the flags for
7260 # our build compiler if desired.
7261 if test x"${build}" = x"${host}" ; then
7262 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7263 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7264 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7265 fi
7266
7267 # On Canadian crosses, we'll be searching the right directories for
7268 # the previously-installed cross compiler, so don't bother to add
7269 # flags for directories within the install tree of the compiler
7270 # being built; programs in there won't even run.
7271 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7272 # Search for pre-installed headers if nothing else fits.
7273 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7274 fi
7275
7276 if test "x${use_gnu_ld}" = x &&
7277 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7278 # Arrange for us to find uninstalled linker scripts.
7279 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7280 fi
7281
7282 # Search for other target-specific linker scripts and such.
7283 case "${target}" in
7284 mep*)
7285 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7286 ;;
7287 esac
7288
7289 # Makefile fragments.
7290 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7291 do
7292 eval fragval=\$$frag
7293 if test $fragval != /dev/null; then
7294 eval $frag=${srcdir}/$fragval
7295 fi
7296 done
7297
7298
7299
7300
7301
7302 # Miscellanea: directories, flags, etc.
7303
7304
7305
7306
7307
7308
7309
7310
7311 # Build module lists & subconfigure args.
7312
7313
7314
7315 # Host module lists & subconfigure args.
7316
7317
7318
7319
7320 # Target module lists & subconfigure args.
7321
7322
7323
7324 # Build tools.
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342 # Generate default definitions for YACC, M4, LEX and other programs that run
7343 # on the build machine. These are used if the Makefile can't locate these
7344 # programs in objdir.
7345 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7346
7347 for ac_prog in 'bison -y' byacc yacc
7348 do
7349 # Extract the first word of "$ac_prog", so it can be a program name with args.
7350 set dummy $ac_prog; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if test "${ac_cv_prog_YACC+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 if test -n "$YACC"; then
7357 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_prog_YACC="$ac_prog"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370 done
7371 done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 YACC=$ac_cv_prog_YACC
7377 if test -n "$YACC"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7379 $as_echo "$YACC" >&6; }
7380 else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385
7386 test -n "$YACC" && break
7387 done
7388 test -n "$YACC" || YACC="$MISSING bison -y"
7389
7390 case " $build_configdirs " in
7391 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7392 esac
7393
7394 for ac_prog in bison
7395 do
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy $ac_prog; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if test "${ac_cv_prog_BISON+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 if test -n "$BISON"; then
7404 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_BISON="$ac_prog"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7416 fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 BISON=$ac_cv_prog_BISON
7424 if test -n "$BISON"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7426 $as_echo "$BISON" >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432
7433 test -n "$BISON" && break
7434 done
7435 test -n "$BISON" || BISON="$MISSING bison"
7436
7437 case " $build_configdirs " in
7438 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7439 esac
7440
7441 for ac_prog in gm4 gnum4 m4
7442 do
7443 # Extract the first word of "$ac_prog", so it can be a program name with args.
7444 set dummy $ac_prog; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if test "${ac_cv_prog_M4+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$M4"; then
7451 ac_cv_prog_M4="$M4" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_M4="$ac_prog"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 M4=$ac_cv_prog_M4
7471 if test -n "$M4"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7473 $as_echo "$M4" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479
7480 test -n "$M4" && break
7481 done
7482 test -n "$M4" || M4="$MISSING m4"
7483
7484 case " $build_configdirs " in
7485 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7486 esac
7487
7488 for ac_prog in flex lex
7489 do
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if test "${ac_cv_prog_LEX+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 if test -n "$LEX"; then
7498 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_LEX="$ac_prog"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 LEX=$ac_cv_prog_LEX
7518 if test -n "$LEX"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7520 $as_echo "$LEX" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525
7526
7527 test -n "$LEX" && break
7528 done
7529 test -n "$LEX" || LEX="$MISSING flex"
7530
7531 case " $build_configdirs " in
7532 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7533 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7534 esac
7535
7536 for ac_prog in flex
7537 do
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539 set dummy $ac_prog; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_FLEX+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 if test -n "$FLEX"; then
7546 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_FLEX="$ac_prog"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 FLEX=$ac_cv_prog_FLEX
7566 if test -n "$FLEX"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7568 $as_echo "$FLEX" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 test -n "$FLEX" && break
7576 done
7577 test -n "$FLEX" || FLEX="$MISSING flex"
7578
7579 case " $build_configdirs " in
7580 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7581 esac
7582
7583 for ac_prog in makeinfo
7584 do
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 if test -n "$MAKEINFO"; then
7593 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_prog_MAKEINFO="$ac_prog"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 MAKEINFO=$ac_cv_prog_MAKEINFO
7613 if test -n "$MAKEINFO"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7615 $as_echo "$MAKEINFO" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 test -n "$MAKEINFO" && break
7623 done
7624 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7625
7626 case " $build_configdirs " in
7627 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7628 *)
7629
7630 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7631 # higher, else we use the "missing" dummy.
7632 if ${MAKEINFO} --version \
7633 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7634 :
7635 else
7636 MAKEINFO="$MISSING makeinfo"
7637 fi
7638 ;;
7639
7640 esac
7641
7642 # FIXME: expect and dejagnu may become build tools?
7643
7644 for ac_prog in expect
7645 do
7646 # Extract the first word of "$ac_prog", so it can be a program name with args.
7647 set dummy $ac_prog; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$EXPECT"; then
7654 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663 ac_cv_prog_EXPECT="$ac_prog"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667 done
7668 done
7669 IFS=$as_save_IFS
7670
7671 fi
7672 fi
7673 EXPECT=$ac_cv_prog_EXPECT
7674 if test -n "$EXPECT"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7676 $as_echo "$EXPECT" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681
7682
7683 test -n "$EXPECT" && break
7684 done
7685 test -n "$EXPECT" || EXPECT="expect"
7686
7687 case " $configdirs " in
7688 *" expect "*)
7689 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7690 ;;
7691 esac
7692
7693 for ac_prog in runtest
7694 do
7695 # Extract the first word of "$ac_prog", so it can be a program name with args.
7696 set dummy $ac_prog; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 if test -n "$RUNTEST"; then
7703 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_RUNTEST="$ac_prog"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7715 fi
7716 done
7717 done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 RUNTEST=$ac_cv_prog_RUNTEST
7723 if test -n "$RUNTEST"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7725 $as_echo "$RUNTEST" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731
7732 test -n "$RUNTEST" && break
7733 done
7734 test -n "$RUNTEST" || RUNTEST="runtest"
7735
7736 case " $configdirs " in
7737 *" dejagnu "*)
7738 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7739 ;;
7740 esac
7741
7742
7743 # Host tools.
7744 ncn_tool_prefix=
7745 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7746 ncn_target_tool_prefix=
7747 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7748
7749
7750
7751 if test -n "$AR"; then
7752 ac_cv_prog_AR=$AR
7753 elif test -n "$ac_cv_prog_AR"; then
7754 AR=$ac_cv_prog_AR
7755 fi
7756
7757 if test -n "$ac_cv_prog_AR"; then
7758 for ncn_progname in ar; do
7759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7760 set dummy ${ncn_progname}; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_AR+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$AR"; then
7767 ac_cv_prog_AR="$AR" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7771 do
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_AR="${ncn_progname}"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7779 fi
7780 done
7781 done
7782 IFS=$as_save_IFS
7783
7784 fi
7785 fi
7786 AR=$ac_cv_prog_AR
7787 if test -n "$AR"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7789 $as_echo "$AR" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7793 fi
7794
7795
7796 done
7797 fi
7798
7799 for ncn_progname in ar; do
7800 if test -n "$ncn_tool_prefix"; then
7801 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7802 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if test "${ac_cv_prog_AR+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$AR"; then
7809 ac_cv_prog_AR="$AR" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826 fi
7827 fi
7828 AR=$ac_cv_prog_AR
7829 if test -n "$AR"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7831 $as_echo "$AR" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 fi
7836
7837
7838 fi
7839 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7841 set dummy ${ncn_progname}; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if test "${ac_cv_prog_AR+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 if test -n "$AR"; then
7848 ac_cv_prog_AR="$AR" # Let the user override the test.
7849 else
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_prog_AR="${ncn_progname}"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7860 fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865 fi
7866 fi
7867 AR=$ac_cv_prog_AR
7868 if test -n "$AR"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7870 $as_echo "$AR" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877 fi
7878 test -n "$ac_cv_prog_AR" && break
7879 done
7880
7881 if test -z "$ac_cv_prog_AR" ; then
7882 set dummy ar
7883 if test $build = $host ; then
7884 AR="$2"
7885 else
7886 AR="${ncn_tool_prefix}$2"
7887 fi
7888 fi
7889
7890
7891
7892 if test -n "$AS"; then
7893 ac_cv_prog_AS=$AS
7894 elif test -n "$ac_cv_prog_AS"; then
7895 AS=$ac_cv_prog_AS
7896 fi
7897
7898 if test -n "$ac_cv_prog_AS"; then
7899 for ncn_progname in as; do
7900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7901 set dummy ${ncn_progname}; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_AS+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$AS"; then
7908 ac_cv_prog_AS="$AS" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_AS="${ncn_progname}"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921 done
7922 done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 AS=$ac_cv_prog_AS
7928 if test -n "$AS"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7930 $as_echo "$AS" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937 done
7938 fi
7939
7940 for ncn_progname in as; do
7941 if test -n "$ncn_tool_prefix"; then
7942 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7943 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_AS+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$AS"; then
7950 ac_cv_prog_AS="$AS" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963 done
7964 done
7965 IFS=$as_save_IFS
7966
7967 fi
7968 fi
7969 AS=$ac_cv_prog_AS
7970 if test -n "$AS"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7972 $as_echo "$AS" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978
7979 fi
7980 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7982 set dummy ${ncn_progname}; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_AS+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$AS"; then
7989 ac_cv_prog_AS="$AS" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_AS="${ncn_progname}"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 AS=$ac_cv_prog_AS
8009 if test -n "$AS"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8011 $as_echo "$AS" >&6; }
8012 else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017
8018 fi
8019 test -n "$ac_cv_prog_AS" && break
8020 done
8021
8022 if test -z "$ac_cv_prog_AS" ; then
8023 set dummy as
8024 if test $build = $host ; then
8025 AS="$2"
8026 else
8027 AS="${ncn_tool_prefix}$2"
8028 fi
8029 fi
8030
8031
8032
8033 if test -n "$DLLTOOL"; then
8034 ac_cv_prog_DLLTOOL=$DLLTOOL
8035 elif test -n "$ac_cv_prog_DLLTOOL"; then
8036 DLLTOOL=$ac_cv_prog_DLLTOOL
8037 fi
8038
8039 if test -n "$ac_cv_prog_DLLTOOL"; then
8040 for ncn_progname in dlltool; do
8041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8042 set dummy ${ncn_progname}; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 if test -n "$DLLTOOL"; then
8049 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_prog_DLLTOOL="${ncn_progname}"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062 done
8063 done
8064 IFS=$as_save_IFS
8065
8066 fi
8067 fi
8068 DLLTOOL=$ac_cv_prog_DLLTOOL
8069 if test -n "$DLLTOOL"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8071 $as_echo "$DLLTOOL" >&6; }
8072 else
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8075 fi
8076
8077
8078 done
8079 fi
8080
8081 for ncn_progname in dlltool; do
8082 if test -n "$ncn_tool_prefix"; then
8083 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8084 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 if test -n "$DLLTOOL"; then
8091 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8092 else
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8095 do
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104 done
8105 done
8106 IFS=$as_save_IFS
8107
8108 fi
8109 fi
8110 DLLTOOL=$ac_cv_prog_DLLTOOL
8111 if test -n "$DLLTOOL"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8113 $as_echo "$DLLTOOL" >&6; }
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118
8119
8120 fi
8121 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8123 set dummy ${ncn_progname}; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 if test -n "$DLLTOOL"; then
8130 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_prog_DLLTOOL="${ncn_progname}"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8142 fi
8143 done
8144 done
8145 IFS=$as_save_IFS
8146
8147 fi
8148 fi
8149 DLLTOOL=$ac_cv_prog_DLLTOOL
8150 if test -n "$DLLTOOL"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8152 $as_echo "$DLLTOOL" >&6; }
8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8156 fi
8157
8158
8159 fi
8160 test -n "$ac_cv_prog_DLLTOOL" && break
8161 done
8162
8163 if test -z "$ac_cv_prog_DLLTOOL" ; then
8164 set dummy dlltool
8165 if test $build = $host ; then
8166 DLLTOOL="$2"
8167 else
8168 DLLTOOL="${ncn_tool_prefix}$2"
8169 fi
8170 fi
8171
8172
8173
8174 if test -n "$LD"; then
8175 ac_cv_prog_LD=$LD
8176 elif test -n "$ac_cv_prog_LD"; then
8177 LD=$ac_cv_prog_LD
8178 fi
8179
8180 if test -n "$ac_cv_prog_LD"; then
8181 for ncn_progname in ld; do
8182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8183 set dummy ${ncn_progname}; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_prog_LD+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 if test -n "$LD"; then
8190 ac_cv_prog_LD="$LD" # Let the user override the test.
8191 else
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199 ac_cv_prog_LD="${ncn_progname}"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 break 2
8202 fi
8203 done
8204 done
8205 IFS=$as_save_IFS
8206
8207 fi
8208 fi
8209 LD=$ac_cv_prog_LD
8210 if test -n "$LD"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8212 $as_echo "$LD" >&6; }
8213 else
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8216 fi
8217
8218
8219 done
8220 fi
8221
8222 for ncn_progname in ld; do
8223 if test -n "$ncn_tool_prefix"; then
8224 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8225 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if test "${ac_cv_prog_LD+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 if test -n "$LD"; then
8232 ac_cv_prog_LD="$LD" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8241 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8248
8249 fi
8250 fi
8251 LD=$ac_cv_prog_LD
8252 if test -n "$LD"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8254 $as_echo "$LD" >&6; }
8255 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8258 fi
8259
8260
8261 fi
8262 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8264 set dummy ${ncn_progname}; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_LD+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 if test -n "$LD"; then
8271 ac_cv_prog_LD="$LD" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_LD="${ncn_progname}"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 LD=$ac_cv_prog_LD
8291 if test -n "$LD"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8293 $as_echo "$LD" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299
8300 fi
8301 test -n "$ac_cv_prog_LD" && break
8302 done
8303
8304 if test -z "$ac_cv_prog_LD" ; then
8305 set dummy ld
8306 if test $build = $host ; then
8307 LD="$2"
8308 else
8309 LD="${ncn_tool_prefix}$2"
8310 fi
8311 fi
8312
8313
8314
8315 if test -n "$LIPO"; then
8316 ac_cv_prog_LIPO=$LIPO
8317 elif test -n "$ac_cv_prog_LIPO"; then
8318 LIPO=$ac_cv_prog_LIPO
8319 fi
8320
8321 if test -n "$ac_cv_prog_LIPO"; then
8322 for ncn_progname in lipo; do
8323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8324 set dummy ${ncn_progname}; ac_word=$2
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326 $as_echo_n "checking for $ac_word... " >&6; }
8327 if test "${ac_cv_prog_LIPO+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 if test -n "$LIPO"; then
8331 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8332 else
8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 for as_dir in $PATH
8335 do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8340 ac_cv_prog_LIPO="${ncn_progname}"
8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344 done
8345 done
8346 IFS=$as_save_IFS
8347
8348 fi
8349 fi
8350 LIPO=$ac_cv_prog_LIPO
8351 if test -n "$LIPO"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8353 $as_echo "$LIPO" >&6; }
8354 else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8357 fi
8358
8359
8360 done
8361 fi
8362
8363 for ncn_progname in lipo; do
8364 if test -n "$ncn_tool_prefix"; then
8365 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8366 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if test "${ac_cv_prog_LIPO+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 if test -n "$LIPO"; then
8373 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8374 else
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378 IFS=$as_save_IFS
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390 fi
8391 fi
8392 LIPO=$ac_cv_prog_LIPO
8393 if test -n "$LIPO"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8395 $as_echo "$LIPO" >&6; }
8396 else
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 fi
8400
8401
8402 fi
8403 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8405 set dummy ${ncn_progname}; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_LIPO+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 if test -n "$LIPO"; then
8412 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_LIPO="${ncn_progname}"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8424 fi
8425 done
8426 done
8427 IFS=$as_save_IFS
8428
8429 fi
8430 fi
8431 LIPO=$ac_cv_prog_LIPO
8432 if test -n "$LIPO"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8434 $as_echo "$LIPO" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 fi
8439
8440
8441 fi
8442 test -n "$ac_cv_prog_LIPO" && break
8443 done
8444
8445 if test -z "$ac_cv_prog_LIPO" ; then
8446 set dummy lipo
8447 if test $build = $host ; then
8448 LIPO="$2"
8449 else
8450 LIPO="${ncn_tool_prefix}$2"
8451 fi
8452 fi
8453
8454
8455
8456 if test -n "$NM"; then
8457 ac_cv_prog_NM=$NM
8458 elif test -n "$ac_cv_prog_NM"; then
8459 NM=$ac_cv_prog_NM
8460 fi
8461
8462 if test -n "$ac_cv_prog_NM"; then
8463 for ncn_progname in nm; do
8464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8465 set dummy ${ncn_progname}; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if test "${ac_cv_prog_NM+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 if test -n "$NM"; then
8472 ac_cv_prog_NM="$NM" # Let the user override the test.
8473 else
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8481 ac_cv_prog_NM="${ncn_progname}"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 break 2
8484 fi
8485 done
8486 done
8487 IFS=$as_save_IFS
8488
8489 fi
8490 fi
8491 NM=$ac_cv_prog_NM
8492 if test -n "$NM"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8494 $as_echo "$NM" >&6; }
8495 else
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8498 fi
8499
8500
8501 done
8502 fi
8503
8504 for ncn_progname in nm; do
8505 if test -n "$ncn_tool_prefix"; then
8506 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8507 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if test "${ac_cv_prog_NM+set}" = set; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 if test -n "$NM"; then
8514 ac_cv_prog_NM="$NM" # Let the user override the test.
8515 else
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 for as_dir in $PATH
8518 do
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8523 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 break 2
8526 fi
8527 done
8528 done
8529 IFS=$as_save_IFS
8530
8531 fi
8532 fi
8533 NM=$ac_cv_prog_NM
8534 if test -n "$NM"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8536 $as_echo "$NM" >&6; }
8537 else
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8540 fi
8541
8542
8543 fi
8544 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8546 set dummy ${ncn_progname}; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if test "${ac_cv_prog_NM+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 if test -n "$NM"; then
8553 ac_cv_prog_NM="$NM" # Let the user override the test.
8554 else
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 for as_dir in $PATH
8557 do
8558 IFS=$as_save_IFS
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562 ac_cv_prog_NM="${ncn_progname}"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 break 2
8565 fi
8566 done
8567 done
8568 IFS=$as_save_IFS
8569
8570 fi
8571 fi
8572 NM=$ac_cv_prog_NM
8573 if test -n "$NM"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8575 $as_echo "$NM" >&6; }
8576 else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8579 fi
8580
8581
8582 fi
8583 test -n "$ac_cv_prog_NM" && break
8584 done
8585
8586 if test -z "$ac_cv_prog_NM" ; then
8587 set dummy nm
8588 if test $build = $host ; then
8589 NM="$2"
8590 else
8591 NM="${ncn_tool_prefix}$2"
8592 fi
8593 fi
8594
8595
8596
8597 if test -n "$RANLIB"; then
8598 ac_cv_prog_RANLIB=$RANLIB
8599 elif test -n "$ac_cv_prog_RANLIB"; then
8600 RANLIB=$ac_cv_prog_RANLIB
8601 fi
8602
8603 if test -n "$ac_cv_prog_RANLIB"; then
8604 for ncn_progname in ranlib; do
8605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8606 set dummy ${ncn_progname}; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 if test -n "$RANLIB"; then
8613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8614 else
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8617 do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8622 ac_cv_prog_RANLIB="${ncn_progname}"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8625 fi
8626 done
8627 done
8628 IFS=$as_save_IFS
8629
8630 fi
8631 fi
8632 RANLIB=$ac_cv_prog_RANLIB
8633 if test -n "$RANLIB"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8635 $as_echo "$RANLIB" >&6; }
8636 else
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8639 fi
8640
8641
8642 done
8643 fi
8644
8645 for ncn_progname in ranlib; do
8646 if test -n "$ncn_tool_prefix"; then
8647 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8648 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 if test -n "$RANLIB"; then
8655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8656 else
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8659 do
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8664 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8667 fi
8668 done
8669 done
8670 IFS=$as_save_IFS
8671
8672 fi
8673 fi
8674 RANLIB=$ac_cv_prog_RANLIB
8675 if test -n "$RANLIB"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8677 $as_echo "$RANLIB" >&6; }
8678 else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 fi
8682
8683
8684 fi
8685 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8687 set dummy ${ncn_progname}; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 if test -n "$RANLIB"; then
8694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8695 else
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8698 do
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8703 ac_cv_prog_RANLIB="${ncn_progname}"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8706 fi
8707 done
8708 done
8709 IFS=$as_save_IFS
8710
8711 fi
8712 fi
8713 RANLIB=$ac_cv_prog_RANLIB
8714 if test -n "$RANLIB"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8716 $as_echo "$RANLIB" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 fi
8721
8722
8723 fi
8724 test -n "$ac_cv_prog_RANLIB" && break
8725 done
8726
8727 if test -z "$ac_cv_prog_RANLIB" ; then
8728 RANLIB="true"
8729 fi
8730
8731
8732
8733 if test -n "$STRIP"; then
8734 ac_cv_prog_STRIP=$STRIP
8735 elif test -n "$ac_cv_prog_STRIP"; then
8736 STRIP=$ac_cv_prog_STRIP
8737 fi
8738
8739 if test -n "$ac_cv_prog_STRIP"; then
8740 for ncn_progname in strip; do
8741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8742 set dummy ${ncn_progname}; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if test "${ac_cv_prog_STRIP+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 if test -n "$STRIP"; then
8749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8753 do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8758 ac_cv_prog_STRIP="${ncn_progname}"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8761 fi
8762 done
8763 done
8764 IFS=$as_save_IFS
8765
8766 fi
8767 fi
8768 STRIP=$ac_cv_prog_STRIP
8769 if test -n "$STRIP"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8771 $as_echo "$STRIP" >&6; }
8772 else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8775 fi
8776
8777
8778 done
8779 fi
8780
8781 for ncn_progname in strip; do
8782 if test -n "$ncn_tool_prefix"; then
8783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8784 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if test "${ac_cv_prog_STRIP+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 if test -n "$STRIP"; then
8791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8792 else
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in $PATH
8795 do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8800 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 break 2
8803 fi
8804 done
8805 done
8806 IFS=$as_save_IFS
8807
8808 fi
8809 fi
8810 STRIP=$ac_cv_prog_STRIP
8811 if test -n "$STRIP"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8813 $as_echo "$STRIP" >&6; }
8814 else
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8817 fi
8818
8819
8820 fi
8821 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8823 set dummy ${ncn_progname}; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if test "${ac_cv_prog_STRIP+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 if test -n "$STRIP"; then
8830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839 ac_cv_prog_STRIP="${ncn_progname}"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8842 fi
8843 done
8844 done
8845 IFS=$as_save_IFS
8846
8847 fi
8848 fi
8849 STRIP=$ac_cv_prog_STRIP
8850 if test -n "$STRIP"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8852 $as_echo "$STRIP" >&6; }
8853 else
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8856 fi
8857
8858
8859 fi
8860 test -n "$ac_cv_prog_STRIP" && break
8861 done
8862
8863 if test -z "$ac_cv_prog_STRIP" ; then
8864 STRIP="true"
8865 fi
8866
8867
8868
8869 if test -n "$WINDRES"; then
8870 ac_cv_prog_WINDRES=$WINDRES
8871 elif test -n "$ac_cv_prog_WINDRES"; then
8872 WINDRES=$ac_cv_prog_WINDRES
8873 fi
8874
8875 if test -n "$ac_cv_prog_WINDRES"; then
8876 for ncn_progname in windres; do
8877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8878 set dummy ${ncn_progname}; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 if test -n "$WINDRES"; then
8885 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_WINDRES="${ncn_progname}"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898 done
8899 done
8900 IFS=$as_save_IFS
8901
8902 fi
8903 fi
8904 WINDRES=$ac_cv_prog_WINDRES
8905 if test -n "$WINDRES"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8907 $as_echo "$WINDRES" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 fi
8912
8913
8914 done
8915 fi
8916
8917 for ncn_progname in windres; do
8918 if test -n "$ncn_tool_prefix"; then
8919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 if test -n "$WINDRES"; then
8927 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8939 fi
8940 done
8941 done
8942 IFS=$as_save_IFS
8943
8944 fi
8945 fi
8946 WINDRES=$ac_cv_prog_WINDRES
8947 if test -n "$WINDRES"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8949 $as_echo "$WINDRES" >&6; }
8950 else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8953 fi
8954
8955
8956 fi
8957 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959 set dummy ${ncn_progname}; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 if test -n "$WINDRES"; then
8966 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8970 do
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_prog_WINDRES="${ncn_progname}"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8978 fi
8979 done
8980 done
8981 IFS=$as_save_IFS
8982
8983 fi
8984 fi
8985 WINDRES=$ac_cv_prog_WINDRES
8986 if test -n "$WINDRES"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8988 $as_echo "$WINDRES" >&6; }
8989 else
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8992 fi
8993
8994
8995 fi
8996 test -n "$ac_cv_prog_WINDRES" && break
8997 done
8998
8999 if test -z "$ac_cv_prog_WINDRES" ; then
9000 set dummy windres
9001 if test $build = $host ; then
9002 WINDRES="$2"
9003 else
9004 WINDRES="${ncn_tool_prefix}$2"
9005 fi
9006 fi
9007
9008
9009
9010 if test -n "$WINDMC"; then
9011 ac_cv_prog_WINDMC=$WINDMC
9012 elif test -n "$ac_cv_prog_WINDMC"; then
9013 WINDMC=$ac_cv_prog_WINDMC
9014 fi
9015
9016 if test -n "$ac_cv_prog_WINDMC"; then
9017 for ncn_progname in windmc; do
9018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9019 set dummy ${ncn_progname}; ac_word=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 if test -n "$WINDMC"; then
9026 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9027 else
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 for as_dir in $PATH
9030 do
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035 ac_cv_prog_WINDMC="${ncn_progname}"
9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 break 2
9038 fi
9039 done
9040 done
9041 IFS=$as_save_IFS
9042
9043 fi
9044 fi
9045 WINDMC=$ac_cv_prog_WINDMC
9046 if test -n "$WINDMC"; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9048 $as_echo "$WINDMC" >&6; }
9049 else
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9052 fi
9053
9054
9055 done
9056 fi
9057
9058 for ncn_progname in windmc; do
9059 if test -n "$ncn_tool_prefix"; then
9060 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9061 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063 $as_echo_n "checking for $ac_word... " >&6; }
9064 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 if test -n "$WINDMC"; then
9068 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9069 else
9070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9071 for as_dir in $PATH
9072 do
9073 IFS=$as_save_IFS
9074 test -z "$as_dir" && as_dir=.
9075 for ac_exec_ext in '' $ac_executable_extensions; do
9076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9079 break 2
9080 fi
9081 done
9082 done
9083 IFS=$as_save_IFS
9084
9085 fi
9086 fi
9087 WINDMC=$ac_cv_prog_WINDMC
9088 if test -n "$WINDMC"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9090 $as_echo "$WINDMC" >&6; }
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095
9096
9097 fi
9098 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9100 set dummy ${ncn_progname}; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 if test -n "$WINDMC"; then
9107 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9108 else
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 for as_dir in $PATH
9111 do
9112 IFS=$as_save_IFS
9113 test -z "$as_dir" && as_dir=.
9114 for ac_exec_ext in '' $ac_executable_extensions; do
9115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9116 ac_cv_prog_WINDMC="${ncn_progname}"
9117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9118 break 2
9119 fi
9120 done
9121 done
9122 IFS=$as_save_IFS
9123
9124 fi
9125 fi
9126 WINDMC=$ac_cv_prog_WINDMC
9127 if test -n "$WINDMC"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9129 $as_echo "$WINDMC" >&6; }
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9133 fi
9134
9135
9136 fi
9137 test -n "$ac_cv_prog_WINDMC" && break
9138 done
9139
9140 if test -z "$ac_cv_prog_WINDMC" ; then
9141 set dummy windmc
9142 if test $build = $host ; then
9143 WINDMC="$2"
9144 else
9145 WINDMC="${ncn_tool_prefix}$2"
9146 fi
9147 fi
9148
9149
9150
9151 if test -n "$OBJCOPY"; then
9152 ac_cv_prog_OBJCOPY=$OBJCOPY
9153 elif test -n "$ac_cv_prog_OBJCOPY"; then
9154 OBJCOPY=$ac_cv_prog_OBJCOPY
9155 fi
9156
9157 if test -n "$ac_cv_prog_OBJCOPY"; then
9158 for ncn_progname in objcopy; do
9159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9160 set dummy ${ncn_progname}; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 if test -n "$OBJCOPY"; then
9167 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9171 do
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176 ac_cv_prog_OBJCOPY="${ncn_progname}"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9179 fi
9180 done
9181 done
9182 IFS=$as_save_IFS
9183
9184 fi
9185 fi
9186 OBJCOPY=$ac_cv_prog_OBJCOPY
9187 if test -n "$OBJCOPY"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9189 $as_echo "$OBJCOPY" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9193 fi
9194
9195
9196 done
9197 fi
9198
9199 for ncn_progname in objcopy; do
9200 if test -n "$ncn_tool_prefix"; then
9201 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9202 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204 $as_echo_n "checking for $ac_word... " >&6; }
9205 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9206 $as_echo_n "(cached) " >&6
9207 else
9208 if test -n "$OBJCOPY"; then
9209 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9210 else
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 for as_dir in $PATH
9213 do
9214 IFS=$as_save_IFS
9215 test -z "$as_dir" && as_dir=.
9216 for ac_exec_ext in '' $ac_executable_extensions; do
9217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9220 break 2
9221 fi
9222 done
9223 done
9224 IFS=$as_save_IFS
9225
9226 fi
9227 fi
9228 OBJCOPY=$ac_cv_prog_OBJCOPY
9229 if test -n "$OBJCOPY"; then
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9231 $as_echo "$OBJCOPY" >&6; }
9232 else
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9235 fi
9236
9237
9238 fi
9239 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9241 set dummy ${ncn_progname}; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 if test -n "$OBJCOPY"; then
9248 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9249 else
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9252 do
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_prog_OBJCOPY="${ncn_progname}"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9260 fi
9261 done
9262 done
9263 IFS=$as_save_IFS
9264
9265 fi
9266 fi
9267 OBJCOPY=$ac_cv_prog_OBJCOPY
9268 if test -n "$OBJCOPY"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9270 $as_echo "$OBJCOPY" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9274 fi
9275
9276
9277 fi
9278 test -n "$ac_cv_prog_OBJCOPY" && break
9279 done
9280
9281 if test -z "$ac_cv_prog_OBJCOPY" ; then
9282 set dummy objcopy
9283 if test $build = $host ; then
9284 OBJCOPY="$2"
9285 else
9286 OBJCOPY="${ncn_tool_prefix}$2"
9287 fi
9288 fi
9289
9290
9291
9292 if test -n "$OBJDUMP"; then
9293 ac_cv_prog_OBJDUMP=$OBJDUMP
9294 elif test -n "$ac_cv_prog_OBJDUMP"; then
9295 OBJDUMP=$ac_cv_prog_OBJDUMP
9296 fi
9297
9298 if test -n "$ac_cv_prog_OBJDUMP"; then
9299 for ncn_progname in objdump; do
9300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9301 set dummy ${ncn_progname}; ac_word=$2
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303 $as_echo_n "checking for $ac_word... " >&6; }
9304 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 if test -n "$OBJDUMP"; then
9308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9309 else
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311 for as_dir in $PATH
9312 do
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9317 ac_cv_prog_OBJDUMP="${ncn_progname}"
9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 break 2
9320 fi
9321 done
9322 done
9323 IFS=$as_save_IFS
9324
9325 fi
9326 fi
9327 OBJDUMP=$ac_cv_prog_OBJDUMP
9328 if test -n "$OBJDUMP"; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9330 $as_echo "$OBJDUMP" >&6; }
9331 else
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 $as_echo "no" >&6; }
9334 fi
9335
9336
9337 done
9338 fi
9339
9340 for ncn_progname in objdump; do
9341 if test -n "$ncn_tool_prefix"; then
9342 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9343 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345 $as_echo_n "checking for $ac_word... " >&6; }
9346 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9347 $as_echo_n "(cached) " >&6
9348 else
9349 if test -n "$OBJDUMP"; then
9350 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9351 else
9352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353 for as_dir in $PATH
9354 do
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9359 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9362 fi
9363 done
9364 done
9365 IFS=$as_save_IFS
9366
9367 fi
9368 fi
9369 OBJDUMP=$ac_cv_prog_OBJDUMP
9370 if test -n "$OBJDUMP"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9372 $as_echo "$OBJDUMP" >&6; }
9373 else
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9376 fi
9377
9378
9379 fi
9380 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9382 set dummy ${ncn_progname}; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 if test -n "$OBJDUMP"; then
9389 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9390 else
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9393 do
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9398 ac_cv_prog_OBJDUMP="${ncn_progname}"
9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 break 2
9401 fi
9402 done
9403 done
9404 IFS=$as_save_IFS
9405
9406 fi
9407 fi
9408 OBJDUMP=$ac_cv_prog_OBJDUMP
9409 if test -n "$OBJDUMP"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9411 $as_echo "$OBJDUMP" >&6; }
9412 else
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9415 fi
9416
9417
9418 fi
9419 test -n "$ac_cv_prog_OBJDUMP" && break
9420 done
9421
9422 if test -z "$ac_cv_prog_OBJDUMP" ; then
9423 set dummy objdump
9424 if test $build = $host ; then
9425 OBJDUMP="$2"
9426 else
9427 OBJDUMP="${ncn_tool_prefix}$2"
9428 fi
9429 fi
9430
9431
9432
9433 if test -n "$READELF"; then
9434 ac_cv_prog_READELF=$READELF
9435 elif test -n "$ac_cv_prog_READELF"; then
9436 READELF=$ac_cv_prog_READELF
9437 fi
9438
9439 if test -n "$ac_cv_prog_READELF"; then
9440 for ncn_progname in readelf; do
9441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9442 set dummy ${ncn_progname}; ac_word=$2
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9444 $as_echo_n "checking for $ac_word... " >&6; }
9445 if test "${ac_cv_prog_READELF+set}" = set; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 if test -n "$READELF"; then
9449 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9450 else
9451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452 for as_dir in $PATH
9453 do
9454 IFS=$as_save_IFS
9455 test -z "$as_dir" && as_dir=.
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9458 ac_cv_prog_READELF="${ncn_progname}"
9459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9460 break 2
9461 fi
9462 done
9463 done
9464 IFS=$as_save_IFS
9465
9466 fi
9467 fi
9468 READELF=$ac_cv_prog_READELF
9469 if test -n "$READELF"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9471 $as_echo "$READELF" >&6; }
9472 else
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 $as_echo "no" >&6; }
9475 fi
9476
9477
9478 done
9479 fi
9480
9481 for ncn_progname in readelf; do
9482 if test -n "$ncn_tool_prefix"; then
9483 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9484 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 $as_echo_n "checking for $ac_word... " >&6; }
9487 if test "${ac_cv_prog_READELF+set}" = set; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 if test -n "$READELF"; then
9491 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9492 else
9493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494 for as_dir in $PATH
9495 do
9496 IFS=$as_save_IFS
9497 test -z "$as_dir" && as_dir=.
9498 for ac_exec_ext in '' $ac_executable_extensions; do
9499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9500 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 break 2
9503 fi
9504 done
9505 done
9506 IFS=$as_save_IFS
9507
9508 fi
9509 fi
9510 READELF=$ac_cv_prog_READELF
9511 if test -n "$READELF"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9513 $as_echo "$READELF" >&6; }
9514 else
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9517 fi
9518
9519
9520 fi
9521 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9523 set dummy ${ncn_progname}; ac_word=$2
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if test "${ac_cv_prog_READELF+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 if test -n "$READELF"; then
9530 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9531 else
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 for as_dir in $PATH
9534 do
9535 IFS=$as_save_IFS
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_prog_READELF="${ncn_progname}"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 break 2
9542 fi
9543 done
9544 done
9545 IFS=$as_save_IFS
9546
9547 fi
9548 fi
9549 READELF=$ac_cv_prog_READELF
9550 if test -n "$READELF"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9552 $as_echo "$READELF" >&6; }
9553 else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9556 fi
9557
9558
9559 fi
9560 test -n "$ac_cv_prog_READELF" && break
9561 done
9562
9563 if test -z "$ac_cv_prog_READELF" ; then
9564 set dummy readelf
9565 if test $build = $host ; then
9566 READELF="$2"
9567 else
9568 READELF="${ncn_tool_prefix}$2"
9569 fi
9570 fi
9571
9572
9573
9574
9575
9576
9577 # Target tools.
9578
9579 # Check whether --with-build-time-tools was given.
9580 if test "${with_build_time_tools+set}" = set; then :
9581 withval=$with_build_time_tools; case x"$withval" in
9582 x/*) ;;
9583 *)
9584 with_build_time_tools=
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9586 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9587 ;;
9588 esac
9589 else
9590 with_build_time_tools=
9591 fi
9592
9593
9594
9595
9596 if test -n "$CC_FOR_TARGET"; then
9597 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9598 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9599 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9600 fi
9601
9602 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9603 for ncn_progname in cc gcc; do
9604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9605 set dummy ${ncn_progname}; ac_word=$2
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 $as_echo_n "checking for $ac_word... " >&6; }
9608 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 if test -n "$CC_FOR_TARGET"; then
9612 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9613 else
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 for as_dir in $PATH
9616 do
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9621 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 break 2
9624 fi
9625 done
9626 done
9627 IFS=$as_save_IFS
9628
9629 fi
9630 fi
9631 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9632 if test -n "$CC_FOR_TARGET"; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9634 $as_echo "$CC_FOR_TARGET" >&6; }
9635 else
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637 $as_echo "no" >&6; }
9638 fi
9639
9640
9641 done
9642 fi
9643
9644 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9645 for ncn_progname in cc gcc; do
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9647 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9648 if test -x $with_build_time_tools/${ncn_progname}; then
9649 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9651 $as_echo "yes" >&6; }
9652 break
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9656 fi
9657 done
9658 fi
9659
9660 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9661 for ncn_progname in cc gcc; do
9662 if test -n "$ncn_target_tool_prefix"; then
9663 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9664 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 if test -n "$CC_FOR_TARGET"; then
9671 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9672 else
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9675 do
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9680 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9683 fi
9684 done
9685 done
9686 IFS=$as_save_IFS
9687
9688 fi
9689 fi
9690 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9691 if test -n "$CC_FOR_TARGET"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9693 $as_echo "$CC_FOR_TARGET" >&6; }
9694 else
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9697 fi
9698
9699
9700 fi
9701 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9703 set dummy ${ncn_progname}; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 if test -n "$CC_FOR_TARGET"; then
9710 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9714 do
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9722 fi
9723 done
9724 done
9725 IFS=$as_save_IFS
9726
9727 fi
9728 fi
9729 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9730 if test -n "$CC_FOR_TARGET"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9732 $as_echo "$CC_FOR_TARGET" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9736 fi
9737
9738
9739 fi
9740 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9741 done
9742 fi
9743
9744 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9745 set dummy cc gcc
9746 if test $build = $target ; then
9747 CC_FOR_TARGET="$2"
9748 else
9749 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9750 fi
9751 else
9752 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9753 fi
9754
9755
9756
9757 if test -n "$CXX_FOR_TARGET"; then
9758 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9759 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9760 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9761 fi
9762
9763 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9764 for ncn_progname in c++ g++ cxx gxx; do
9765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9766 set dummy ${ncn_progname}; ac_word=$2
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9768 $as_echo_n "checking for $ac_word... " >&6; }
9769 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9770 $as_echo_n "(cached) " >&6
9771 else
9772 if test -n "$CXX_FOR_TARGET"; then
9773 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9774 else
9775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 for as_dir in $PATH
9777 do
9778 IFS=$as_save_IFS
9779 test -z "$as_dir" && as_dir=.
9780 for ac_exec_ext in '' $ac_executable_extensions; do
9781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9782 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9784 break 2
9785 fi
9786 done
9787 done
9788 IFS=$as_save_IFS
9789
9790 fi
9791 fi
9792 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9793 if test -n "$CXX_FOR_TARGET"; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9795 $as_echo "$CXX_FOR_TARGET" >&6; }
9796 else
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798 $as_echo "no" >&6; }
9799 fi
9800
9801
9802 done
9803 fi
9804
9805 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9806 for ncn_progname in c++ g++ cxx gxx; do
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9808 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9809 if test -x $with_build_time_tools/${ncn_progname}; then
9810 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9812 $as_echo "yes" >&6; }
9813 break
9814 else
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816 $as_echo "no" >&6; }
9817 fi
9818 done
9819 fi
9820
9821 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9822 for ncn_progname in c++ g++ cxx gxx; do
9823 if test -n "$ncn_target_tool_prefix"; then
9824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9825 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 if test -n "$CXX_FOR_TARGET"; then
9832 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9833 else
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 for as_dir in $PATH
9836 do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9844 fi
9845 done
9846 done
9847 IFS=$as_save_IFS
9848
9849 fi
9850 fi
9851 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9852 if test -n "$CXX_FOR_TARGET"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9854 $as_echo "$CXX_FOR_TARGET" >&6; }
9855 else
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9858 fi
9859
9860
9861 fi
9862 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9864 set dummy ${ncn_progname}; ac_word=$2
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9866 $as_echo_n "checking for $ac_word... " >&6; }
9867 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 if test -n "$CXX_FOR_TARGET"; then
9871 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9872 else
9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874 for as_dir in $PATH
9875 do
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 break 2
9883 fi
9884 done
9885 done
9886 IFS=$as_save_IFS
9887
9888 fi
9889 fi
9890 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9891 if test -n "$CXX_FOR_TARGET"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9893 $as_echo "$CXX_FOR_TARGET" >&6; }
9894 else
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9897 fi
9898
9899
9900 fi
9901 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9902 done
9903 fi
9904
9905 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9906 set dummy c++ g++ cxx gxx
9907 if test $build = $target ; then
9908 CXX_FOR_TARGET="$2"
9909 else
9910 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9911 fi
9912 else
9913 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9914 fi
9915
9916
9917
9918 if test -n "$GCC_FOR_TARGET"; then
9919 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9920 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9921 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9922 fi
9923
9924 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9925 for ncn_progname in gcc; do
9926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9927 set dummy ${ncn_progname}; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 if test -n "$GCC_FOR_TARGET"; then
9934 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9935 else
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9938 do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 break 2
9946 fi
9947 done
9948 done
9949 IFS=$as_save_IFS
9950
9951 fi
9952 fi
9953 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9954 if test -n "$GCC_FOR_TARGET"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9956 $as_echo "$GCC_FOR_TARGET" >&6; }
9957 else
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9960 fi
9961
9962
9963 done
9964 fi
9965
9966 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9967 for ncn_progname in gcc; do
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9969 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9970 if test -x $with_build_time_tools/${ncn_progname}; then
9971 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9973 $as_echo "yes" >&6; }
9974 break
9975 else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9978 fi
9979 done
9980 fi
9981
9982 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9983 for ncn_progname in gcc; do
9984 if test -n "$ncn_target_tool_prefix"; then
9985 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9986 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9988 $as_echo_n "checking for $ac_word... " >&6; }
9989 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 if test -n "$GCC_FOR_TARGET"; then
9993 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9994 else
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9997 do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10002 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10005 fi
10006 done
10007 done
10008 IFS=$as_save_IFS
10009
10010 fi
10011 fi
10012 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10013 if test -n "$GCC_FOR_TARGET"; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10015 $as_echo "$GCC_FOR_TARGET" >&6; }
10016 else
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10019 fi
10020
10021
10022 fi
10023 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10025 set dummy ${ncn_progname}; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 if test -n "$GCC_FOR_TARGET"; then
10032 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10033 else
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10036 do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10041 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10044 fi
10045 done
10046 done
10047 IFS=$as_save_IFS
10048
10049 fi
10050 fi
10051 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10052 if test -n "$GCC_FOR_TARGET"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10054 $as_echo "$GCC_FOR_TARGET" >&6; }
10055 else
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10058 fi
10059
10060
10061 fi
10062 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10063 done
10064 fi
10065
10066 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10067 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10068 else
10069 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10070 fi
10071
10072
10073
10074 if test -n "$GCJ_FOR_TARGET"; then
10075 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10076 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10077 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10078 fi
10079
10080 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10081 for ncn_progname in gcj; do
10082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10083 set dummy ${ncn_progname}; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 if test -n "$GCJ_FOR_TARGET"; then
10090 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10091 else
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10094 do
10095 IFS=$as_save_IFS
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10099 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 break 2
10102 fi
10103 done
10104 done
10105 IFS=$as_save_IFS
10106
10107 fi
10108 fi
10109 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10110 if test -n "$GCJ_FOR_TARGET"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10112 $as_echo "$GCJ_FOR_TARGET" >&6; }
10113 else
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10116 fi
10117
10118
10119 done
10120 fi
10121
10122 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10123 for ncn_progname in gcj; do
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10125 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10126 if test -x $with_build_time_tools/${ncn_progname}; then
10127 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10129 $as_echo "yes" >&6; }
10130 break
10131 else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10134 fi
10135 done
10136 fi
10137
10138 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10139 for ncn_progname in gcj; do
10140 if test -n "$ncn_target_tool_prefix"; then
10141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10142 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 if test -n "$GCJ_FOR_TARGET"; then
10149 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10150 else
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10153 do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10161 fi
10162 done
10163 done
10164 IFS=$as_save_IFS
10165
10166 fi
10167 fi
10168 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10169 if test -n "$GCJ_FOR_TARGET"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10171 $as_echo "$GCJ_FOR_TARGET" >&6; }
10172 else
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10175 fi
10176
10177
10178 fi
10179 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10181 set dummy ${ncn_progname}; ac_word=$2
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183 $as_echo_n "checking for $ac_word... " >&6; }
10184 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 if test -n "$GCJ_FOR_TARGET"; then
10188 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10189 else
10190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191 for as_dir in $PATH
10192 do
10193 IFS=$as_save_IFS
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10197 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10199 break 2
10200 fi
10201 done
10202 done
10203 IFS=$as_save_IFS
10204
10205 fi
10206 fi
10207 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10208 if test -n "$GCJ_FOR_TARGET"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10210 $as_echo "$GCJ_FOR_TARGET" >&6; }
10211 else
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10214 fi
10215
10216
10217 fi
10218 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10219 done
10220 fi
10221
10222 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10223 set dummy gcj
10224 if test $build = $target ; then
10225 GCJ_FOR_TARGET="$2"
10226 else
10227 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10228 fi
10229 else
10230 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10231 fi
10232
10233
10234
10235 if test -n "$GFORTRAN_FOR_TARGET"; then
10236 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10237 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10238 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10239 fi
10240
10241 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10242 for ncn_progname in gfortran; do
10243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10244 set dummy ${ncn_progname}; ac_word=$2
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246 $as_echo_n "checking for $ac_word... " >&6; }
10247 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 if test -n "$GFORTRAN_FOR_TARGET"; then
10251 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10252 else
10253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254 for as_dir in $PATH
10255 do
10256 IFS=$as_save_IFS
10257 test -z "$as_dir" && as_dir=.
10258 for ac_exec_ext in '' $ac_executable_extensions; do
10259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10260 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10262 break 2
10263 fi
10264 done
10265 done
10266 IFS=$as_save_IFS
10267
10268 fi
10269 fi
10270 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10271 if test -n "$GFORTRAN_FOR_TARGET"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10273 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10277 fi
10278
10279
10280 done
10281 fi
10282
10283 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10284 for ncn_progname in gfortran; do
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10286 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10287 if test -x $with_build_time_tools/${ncn_progname}; then
10288 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10290 $as_echo "yes" >&6; }
10291 break
10292 else
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294 $as_echo "no" >&6; }
10295 fi
10296 done
10297 fi
10298
10299 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10300 for ncn_progname in gfortran; do
10301 if test -n "$ncn_target_tool_prefix"; then
10302 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10303 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 if test -n "$GFORTRAN_FOR_TARGET"; then
10310 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10314 do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323 done
10324 done
10325 IFS=$as_save_IFS
10326
10327 fi
10328 fi
10329 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10330 if test -n "$GFORTRAN_FOR_TARGET"; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10332 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10336 fi
10337
10338
10339 fi
10340 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10342 set dummy ${ncn_progname}; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10347 else
10348 if test -n "$GFORTRAN_FOR_TARGET"; then
10349 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10350 else
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10353 do
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10360 break 2
10361 fi
10362 done
10363 done
10364 IFS=$as_save_IFS
10365
10366 fi
10367 fi
10368 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10369 if test -n "$GFORTRAN_FOR_TARGET"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10371 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10372 else
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10375 fi
10376
10377
10378 fi
10379 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10380 done
10381 fi
10382
10383 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10384 set dummy gfortran
10385 if test $build = $target ; then
10386 GFORTRAN_FOR_TARGET="$2"
10387 else
10388 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10389 fi
10390 else
10391 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10392 fi
10393
10394
10395
10396 if test -n "$GOC_FOR_TARGET"; then
10397 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10398 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10399 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10400 fi
10401
10402 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10403 for ncn_progname in gccgo; do
10404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10405 set dummy ${ncn_progname}; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 if test -n "$GOC_FOR_TARGET"; then
10412 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10413 else
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10416 do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10421 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10424 fi
10425 done
10426 done
10427 IFS=$as_save_IFS
10428
10429 fi
10430 fi
10431 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10432 if test -n "$GOC_FOR_TARGET"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10434 $as_echo "$GOC_FOR_TARGET" >&6; }
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438 fi
10439
10440
10441 done
10442 fi
10443
10444 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10445 for ncn_progname in gccgo; do
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10447 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10448 if test -x $with_build_time_tools/${ncn_progname}; then
10449 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451 $as_echo "yes" >&6; }
10452 break
10453 else
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10456 fi
10457 done
10458 fi
10459
10460 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10461 for ncn_progname in gccgo; do
10462 if test -n "$ncn_target_tool_prefix"; then
10463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10464 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 if test -n "$GOC_FOR_TARGET"; then
10471 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10472 else
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10475 do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484 done
10485 done
10486 IFS=$as_save_IFS
10487
10488 fi
10489 fi
10490 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10491 if test -n "$GOC_FOR_TARGET"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10493 $as_echo "$GOC_FOR_TARGET" >&6; }
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10497 fi
10498
10499
10500 fi
10501 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10503 set dummy ${ncn_progname}; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 if test -n "$GOC_FOR_TARGET"; then
10510 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10511 else
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10514 do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10519 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 break 2
10522 fi
10523 done
10524 done
10525 IFS=$as_save_IFS
10526
10527 fi
10528 fi
10529 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10530 if test -n "$GOC_FOR_TARGET"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10532 $as_echo "$GOC_FOR_TARGET" >&6; }
10533 else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10536 fi
10537
10538
10539 fi
10540 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10541 done
10542 fi
10543
10544 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10545 set dummy gccgo
10546 if test $build = $target ; then
10547 GOC_FOR_TARGET="$2"
10548 else
10549 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10550 fi
10551 else
10552 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10553 fi
10554
10555
10556
10557 cat > conftest.c << \EOF
10558 #ifdef __GNUC__
10559 gcc_yay;
10560 #endif
10561 EOF
10562 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10563 have_gcc_for_target=yes
10564 else
10565 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10566 have_gcc_for_target=no
10567 fi
10568 rm conftest.c
10569
10570
10571
10572
10573 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10574 if test -n "$with_build_time_tools"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10576 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10577 if test -x $with_build_time_tools/ar; then
10578 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10579 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10581 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10582 else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 fi
10586 elif test $build != $host && test $have_gcc_for_target = yes; then
10587 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10588 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10589 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10590 fi
10591 fi
10592 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10593 # Extract the first word of "ar", so it can be a program name with args.
10594 set dummy ar; ac_word=$2
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596 $as_echo_n "checking for $ac_word... " >&6; }
10597 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10598 $as_echo_n "(cached) " >&6
10599 else
10600 case $AR_FOR_TARGET in
10601 [\\/]* | ?:[\\/]*)
10602 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10603 ;;
10604 *)
10605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606 for as_dir in $gcc_cv_tool_dirs
10607 do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10612 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10614 break 2
10615 fi
10616 done
10617 done
10618 IFS=$as_save_IFS
10619
10620 ;;
10621 esac
10622 fi
10623 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10624 if test -n "$AR_FOR_TARGET"; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10626 $as_echo "$AR_FOR_TARGET" >&6; }
10627 else
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629 $as_echo "no" >&6; }
10630 fi
10631
10632
10633 fi
10634 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10635
10636
10637 if test -n "$AR_FOR_TARGET"; then
10638 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10639 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10640 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10641 fi
10642
10643 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10644 for ncn_progname in ar; do
10645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10646 set dummy ${ncn_progname}; ac_word=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648 $as_echo_n "checking for $ac_word... " >&6; }
10649 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 if test -n "$AR_FOR_TARGET"; then
10653 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10654 else
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656 for as_dir in $PATH
10657 do
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10662 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10664 break 2
10665 fi
10666 done
10667 done
10668 IFS=$as_save_IFS
10669
10670 fi
10671 fi
10672 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10673 if test -n "$AR_FOR_TARGET"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10675 $as_echo "$AR_FOR_TARGET" >&6; }
10676 else
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10679 fi
10680
10681
10682 done
10683 fi
10684
10685 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10686 for ncn_progname in ar; do
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10688 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10689 if test -x $with_build_time_tools/${ncn_progname}; then
10690 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10692 $as_echo "yes" >&6; }
10693 break
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10697 fi
10698 done
10699 fi
10700
10701 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10702 for ncn_progname in ar; do
10703 if test -n "$ncn_target_tool_prefix"; then
10704 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10705 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10707 $as_echo_n "checking for $ac_word... " >&6; }
10708 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 if test -n "$AR_FOR_TARGET"; then
10712 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10713 else
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10716 do
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10721 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 break 2
10724 fi
10725 done
10726 done
10727 IFS=$as_save_IFS
10728
10729 fi
10730 fi
10731 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10732 if test -n "$AR_FOR_TARGET"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10734 $as_echo "$AR_FOR_TARGET" >&6; }
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10738 fi
10739
10740
10741 fi
10742 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10744 set dummy ${ncn_progname}; ac_word=$2
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10746 $as_echo_n "checking for $ac_word... " >&6; }
10747 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 if test -n "$AR_FOR_TARGET"; then
10751 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10752 else
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10755 do
10756 IFS=$as_save_IFS
10757 test -z "$as_dir" && as_dir=.
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10760 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762 break 2
10763 fi
10764 done
10765 done
10766 IFS=$as_save_IFS
10767
10768 fi
10769 fi
10770 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10771 if test -n "$AR_FOR_TARGET"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10773 $as_echo "$AR_FOR_TARGET" >&6; }
10774 else
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10777 fi
10778
10779
10780 fi
10781 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10782 done
10783 fi
10784
10785 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10786 set dummy ar
10787 if test $build = $target ; then
10788 AR_FOR_TARGET="$2"
10789 else
10790 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10791 fi
10792 else
10793 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10794 fi
10795
10796 else
10797 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10798 fi
10799
10800
10801
10802
10803 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10804 if test -n "$with_build_time_tools"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10806 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10807 if test -x $with_build_time_tools/as; then
10808 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10809 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10811 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 fi
10816 elif test $build != $host && test $have_gcc_for_target = yes; then
10817 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10818 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10819 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10820 fi
10821 fi
10822 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10823 # Extract the first word of "as", so it can be a program name with args.
10824 set dummy as; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 case $AS_FOR_TARGET in
10831 [\\/]* | ?:[\\/]*)
10832 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10833 ;;
10834 *)
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $gcc_cv_tool_dirs
10837 do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10842 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10845 fi
10846 done
10847 done
10848 IFS=$as_save_IFS
10849
10850 ;;
10851 esac
10852 fi
10853 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10854 if test -n "$AS_FOR_TARGET"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10856 $as_echo "$AS_FOR_TARGET" >&6; }
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10860 fi
10861
10862
10863 fi
10864 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10865
10866
10867 if test -n "$AS_FOR_TARGET"; then
10868 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10869 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10870 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10871 fi
10872
10873 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10874 for ncn_progname in as; do
10875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10876 set dummy ${ncn_progname}; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 if test -n "$AS_FOR_TARGET"; then
10883 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10884 else
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10887 do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10892 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10895 fi
10896 done
10897 done
10898 IFS=$as_save_IFS
10899
10900 fi
10901 fi
10902 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10903 if test -n "$AS_FOR_TARGET"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10905 $as_echo "$AS_FOR_TARGET" >&6; }
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10909 fi
10910
10911
10912 done
10913 fi
10914
10915 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10916 for ncn_progname in as; do
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10918 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10919 if test -x $with_build_time_tools/${ncn_progname}; then
10920 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10922 $as_echo "yes" >&6; }
10923 break
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10927 fi
10928 done
10929 fi
10930
10931 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10932 for ncn_progname in as; do
10933 if test -n "$ncn_target_tool_prefix"; then
10934 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10935 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 if test -n "$AS_FOR_TARGET"; then
10942 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10943 else
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10946 do
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10954 fi
10955 done
10956 done
10957 IFS=$as_save_IFS
10958
10959 fi
10960 fi
10961 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10962 if test -n "$AS_FOR_TARGET"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10964 $as_echo "$AS_FOR_TARGET" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10968 fi
10969
10970
10971 fi
10972 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10974 set dummy ${ncn_progname}; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 if test -n "$AS_FOR_TARGET"; then
10981 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10982 else
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10985 do
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10990 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 break 2
10993 fi
10994 done
10995 done
10996 IFS=$as_save_IFS
10997
10998 fi
10999 fi
11000 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11001 if test -n "$AS_FOR_TARGET"; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11003 $as_echo "$AS_FOR_TARGET" >&6; }
11004 else
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11007 fi
11008
11009
11010 fi
11011 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11012 done
11013 fi
11014
11015 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11016 set dummy as
11017 if test $build = $target ; then
11018 AS_FOR_TARGET="$2"
11019 else
11020 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11021 fi
11022 else
11023 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11024 fi
11025
11026 else
11027 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11028 fi
11029
11030
11031
11032
11033 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11034 if test -n "$with_build_time_tools"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11036 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11037 if test -x $with_build_time_tools/dlltool; then
11038 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11039 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11041 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11042 else
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11045 fi
11046 elif test $build != $host && test $have_gcc_for_target = yes; then
11047 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11048 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11049 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11050 fi
11051 fi
11052 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11053 # Extract the first word of "dlltool", so it can be a program name with args.
11054 set dummy dlltool; ac_word=$2
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11056 $as_echo_n "checking for $ac_word... " >&6; }
11057 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 case $DLLTOOL_FOR_TARGET in
11061 [\\/]* | ?:[\\/]*)
11062 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11063 ;;
11064 *)
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $gcc_cv_tool_dirs
11067 do
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11072 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11075 fi
11076 done
11077 done
11078 IFS=$as_save_IFS
11079
11080 ;;
11081 esac
11082 fi
11083 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11084 if test -n "$DLLTOOL_FOR_TARGET"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11086 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11087 else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11090 fi
11091
11092
11093 fi
11094 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11095
11096
11097 if test -n "$DLLTOOL_FOR_TARGET"; then
11098 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11099 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11100 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11101 fi
11102
11103 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11104 for ncn_progname in dlltool; do
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 if test -n "$DLLTOOL_FOR_TARGET"; then
11113 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126 done
11127 done
11128 IFS=$as_save_IFS
11129
11130 fi
11131 fi
11132 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11133 if test -n "$DLLTOOL_FOR_TARGET"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11135 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11139 fi
11140
11141
11142 done
11143 fi
11144
11145 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11146 for ncn_progname in dlltool; do
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11148 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11149 if test -x $with_build_time_tools/${ncn_progname}; then
11150 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11152 $as_echo "yes" >&6; }
11153 break
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157 fi
11158 done
11159 fi
11160
11161 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11162 for ncn_progname in dlltool; do
11163 if test -n "$ncn_target_tool_prefix"; then
11164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11165 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 if test -n "$DLLTOOL_FOR_TARGET"; then
11172 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11173 else
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11176 do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11184 fi
11185 done
11186 done
11187 IFS=$as_save_IFS
11188
11189 fi
11190 fi
11191 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11192 if test -n "$DLLTOOL_FOR_TARGET"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11194 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11198 fi
11199
11200
11201 fi
11202 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11204 set dummy ${ncn_progname}; ac_word=$2
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206 $as_echo_n "checking for $ac_word... " >&6; }
11207 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 if test -n "$DLLTOOL_FOR_TARGET"; then
11211 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11212 else
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11215 do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11220 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224 done
11225 done
11226 IFS=$as_save_IFS
11227
11228 fi
11229 fi
11230 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11231 if test -n "$DLLTOOL_FOR_TARGET"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11233 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11234 else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11237 fi
11238
11239
11240 fi
11241 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11242 done
11243 fi
11244
11245 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11246 set dummy dlltool
11247 if test $build = $target ; then
11248 DLLTOOL_FOR_TARGET="$2"
11249 else
11250 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11251 fi
11252 else
11253 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11254 fi
11255
11256 else
11257 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11258 fi
11259
11260
11261
11262
11263 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11264 if test -n "$with_build_time_tools"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11266 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11267 if test -x $with_build_time_tools/ld; then
11268 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11269 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11271 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11275 fi
11276 elif test $build != $host && test $have_gcc_for_target = yes; then
11277 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11278 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11279 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11280 fi
11281 fi
11282 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11283 # Extract the first word of "ld", so it can be a program name with args.
11284 set dummy ld; ac_word=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 $as_echo_n "checking for $ac_word... " >&6; }
11287 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 case $LD_FOR_TARGET in
11291 [\\/]* | ?:[\\/]*)
11292 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11293 ;;
11294 *)
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $gcc_cv_tool_dirs
11297 do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11305 fi
11306 done
11307 done
11308 IFS=$as_save_IFS
11309
11310 ;;
11311 esac
11312 fi
11313 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11314 if test -n "$LD_FOR_TARGET"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11316 $as_echo "$LD_FOR_TARGET" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11320 fi
11321
11322
11323 fi
11324 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11325
11326
11327 if test -n "$LD_FOR_TARGET"; then
11328 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11329 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11330 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11331 fi
11332
11333 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11334 for ncn_progname in ld; do
11335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11336 set dummy ${ncn_progname}; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 $as_echo_n "checking for $ac_word... " >&6; }
11339 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test -n "$LD_FOR_TARGET"; then
11343 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11344 else
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11347 do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11352 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11355 fi
11356 done
11357 done
11358 IFS=$as_save_IFS
11359
11360 fi
11361 fi
11362 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11363 if test -n "$LD_FOR_TARGET"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11365 $as_echo "$LD_FOR_TARGET" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369 fi
11370
11371
11372 done
11373 fi
11374
11375 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11376 for ncn_progname in ld; do
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11378 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11379 if test -x $with_build_time_tools/${ncn_progname}; then
11380 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11382 $as_echo "yes" >&6; }
11383 break
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388 done
11389 fi
11390
11391 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11392 for ncn_progname in ld; do
11393 if test -n "$ncn_target_tool_prefix"; then
11394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 if test -n "$LD_FOR_TARGET"; then
11402 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11414 fi
11415 done
11416 done
11417 IFS=$as_save_IFS
11418
11419 fi
11420 fi
11421 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11422 if test -n "$LD_FOR_TARGET"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11424 $as_echo "$LD_FOR_TARGET" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428 fi
11429
11430
11431 fi
11432 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11434 set dummy ${ncn_progname}; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 if test -n "$LD_FOR_TARGET"; then
11441 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11442 else
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11445 do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11453 fi
11454 done
11455 done
11456 IFS=$as_save_IFS
11457
11458 fi
11459 fi
11460 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11461 if test -n "$LD_FOR_TARGET"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11463 $as_echo "$LD_FOR_TARGET" >&6; }
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11467 fi
11468
11469
11470 fi
11471 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11472 done
11473 fi
11474
11475 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11476 set dummy ld
11477 if test $build = $target ; then
11478 LD_FOR_TARGET="$2"
11479 else
11480 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11481 fi
11482 else
11483 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11484 fi
11485
11486 else
11487 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11488 fi
11489
11490
11491
11492
11493 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11494 if test -n "$with_build_time_tools"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11496 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11497 if test -x $with_build_time_tools/lipo; then
11498 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11499 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11501 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505 fi
11506 elif test $build != $host && test $have_gcc_for_target = yes; then
11507 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11508 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11509 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11510 fi
11511 fi
11512 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11513 # Extract the first word of "lipo", so it can be a program name with args.
11514 set dummy lipo; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 case $LIPO_FOR_TARGET in
11521 [\\/]* | ?:[\\/]*)
11522 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11523 ;;
11524 *)
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $gcc_cv_tool_dirs
11527 do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11535 fi
11536 done
11537 done
11538 IFS=$as_save_IFS
11539
11540 ;;
11541 esac
11542 fi
11543 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11544 if test -n "$LIPO_FOR_TARGET"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11546 $as_echo "$LIPO_FOR_TARGET" >&6; }
11547 else
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11550 fi
11551
11552
11553 fi
11554 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11555
11556
11557 if test -n "$LIPO_FOR_TARGET"; then
11558 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11559 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11560 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11561 fi
11562
11563 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11564 for ncn_progname in lipo; do
11565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11566 set dummy ${ncn_progname}; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 if test -n "$LIPO_FOR_TARGET"; then
11573 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11574 else
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11577 do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11585 fi
11586 done
11587 done
11588 IFS=$as_save_IFS
11589
11590 fi
11591 fi
11592 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11593 if test -n "$LIPO_FOR_TARGET"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11595 $as_echo "$LIPO_FOR_TARGET" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 fi
11600
11601
11602 done
11603 fi
11604
11605 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11606 for ncn_progname in lipo; do
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11608 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11609 if test -x $with_build_time_tools/${ncn_progname}; then
11610 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612 $as_echo "yes" >&6; }
11613 break
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 fi
11618 done
11619 fi
11620
11621 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11622 for ncn_progname in lipo; do
11623 if test -n "$ncn_target_tool_prefix"; then
11624 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11625 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test -n "$LIPO_FOR_TARGET"; then
11632 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11633 else
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11636 do
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11644 fi
11645 done
11646 done
11647 IFS=$as_save_IFS
11648
11649 fi
11650 fi
11651 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11652 if test -n "$LIPO_FOR_TARGET"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11654 $as_echo "$LIPO_FOR_TARGET" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660
11661 fi
11662 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11664 set dummy ${ncn_progname}; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 if test -n "$LIPO_FOR_TARGET"; then
11671 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11672 else
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674 for as_dir in $PATH
11675 do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11680 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11683 fi
11684 done
11685 done
11686 IFS=$as_save_IFS
11687
11688 fi
11689 fi
11690 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11691 if test -n "$LIPO_FOR_TARGET"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11693 $as_echo "$LIPO_FOR_TARGET" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11697 fi
11698
11699
11700 fi
11701 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11702 done
11703 fi
11704
11705 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11706 set dummy lipo
11707 if test $build = $target ; then
11708 LIPO_FOR_TARGET="$2"
11709 else
11710 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11711 fi
11712 else
11713 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11714 fi
11715
11716 else
11717 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11718 fi
11719
11720
11721
11722
11723 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11724 if test -n "$with_build_time_tools"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11726 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11727 if test -x $with_build_time_tools/nm; then
11728 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11729 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11731 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 fi
11736 elif test $build != $host && test $have_gcc_for_target = yes; then
11737 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11738 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11739 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11740 fi
11741 fi
11742 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11743 # Extract the first word of "nm", so it can be a program name with args.
11744 set dummy nm; ac_word=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 case $NM_FOR_TARGET in
11751 [\\/]* | ?:[\\/]*)
11752 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11753 ;;
11754 *)
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $gcc_cv_tool_dirs
11757 do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11762 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11765 fi
11766 done
11767 done
11768 IFS=$as_save_IFS
11769
11770 ;;
11771 esac
11772 fi
11773 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11774 if test -n "$NM_FOR_TARGET"; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11776 $as_echo "$NM_FOR_TARGET" >&6; }
11777 else
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 $as_echo "no" >&6; }
11780 fi
11781
11782
11783 fi
11784 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11785
11786
11787 if test -n "$NM_FOR_TARGET"; then
11788 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11789 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11790 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11791 fi
11792
11793 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11794 for ncn_progname in nm; do
11795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11796 set dummy ${ncn_progname}; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test -n "$NM_FOR_TARGET"; then
11803 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11804 else
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11807 do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11815 fi
11816 done
11817 done
11818 IFS=$as_save_IFS
11819
11820 fi
11821 fi
11822 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11823 if test -n "$NM_FOR_TARGET"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11825 $as_echo "$NM_FOR_TARGET" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830
11831
11832 done
11833 fi
11834
11835 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11836 for ncn_progname in nm; do
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11838 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11839 if test -x $with_build_time_tools/${ncn_progname}; then
11840 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842 $as_echo "yes" >&6; }
11843 break
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11847 fi
11848 done
11849 fi
11850
11851 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11852 for ncn_progname in nm; do
11853 if test -n "$ncn_target_tool_prefix"; then
11854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11855 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test -n "$NM_FOR_TARGET"; then
11862 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11866 do
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11871 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11874 fi
11875 done
11876 done
11877 IFS=$as_save_IFS
11878
11879 fi
11880 fi
11881 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11882 if test -n "$NM_FOR_TARGET"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11884 $as_echo "$NM_FOR_TARGET" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889
11890
11891 fi
11892 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11894 set dummy ${ncn_progname}; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 if test -n "$NM_FOR_TARGET"; then
11901 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11902 else
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11905 do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11910 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 break 2
11913 fi
11914 done
11915 done
11916 IFS=$as_save_IFS
11917
11918 fi
11919 fi
11920 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11921 if test -n "$NM_FOR_TARGET"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11923 $as_echo "$NM_FOR_TARGET" >&6; }
11924 else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11927 fi
11928
11929
11930 fi
11931 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11932 done
11933 fi
11934
11935 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11936 set dummy nm
11937 if test $build = $target ; then
11938 NM_FOR_TARGET="$2"
11939 else
11940 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11941 fi
11942 else
11943 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11944 fi
11945
11946 else
11947 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11948 fi
11949
11950
11951
11952
11953 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11954 if test -n "$with_build_time_tools"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11956 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11957 if test -x $with_build_time_tools/objdump; then
11958 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11959 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11961 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11962 else
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 fi
11966 elif test $build != $host && test $have_gcc_for_target = yes; then
11967 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11968 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11969 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11970 fi
11971 fi
11972 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11973 # Extract the first word of "objdump", so it can be a program name with args.
11974 set dummy objdump; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 case $OBJDUMP_FOR_TARGET in
11981 [\\/]* | ?:[\\/]*)
11982 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11983 ;;
11984 *)
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $gcc_cv_tool_dirs
11987 do
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11992 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 break 2
11995 fi
11996 done
11997 done
11998 IFS=$as_save_IFS
11999
12000 ;;
12001 esac
12002 fi
12003 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12004 if test -n "$OBJDUMP_FOR_TARGET"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12006 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 fi
12011
12012
12013 fi
12014 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12015
12016
12017 if test -n "$OBJDUMP_FOR_TARGET"; then
12018 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12019 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12020 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12021 fi
12022
12023 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12024 for ncn_progname in objdump; do
12025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12026 set dummy ${ncn_progname}; ac_word=$2
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028 $as_echo_n "checking for $ac_word... " >&6; }
12029 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 if test -n "$OBJDUMP_FOR_TARGET"; then
12033 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12034 else
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12037 do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12042 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 break 2
12045 fi
12046 done
12047 done
12048 IFS=$as_save_IFS
12049
12050 fi
12051 fi
12052 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12053 if test -n "$OBJDUMP_FOR_TARGET"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12055 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12059 fi
12060
12061
12062 done
12063 fi
12064
12065 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12066 for ncn_progname in objdump; do
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12068 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12069 if test -x $with_build_time_tools/${ncn_progname}; then
12070 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; }
12073 break
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077 fi
12078 done
12079 fi
12080
12081 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12082 for ncn_progname in objdump; do
12083 if test -n "$ncn_target_tool_prefix"; then
12084 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12085 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 if test -n "$OBJDUMP_FOR_TARGET"; then
12092 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12104 fi
12105 done
12106 done
12107 IFS=$as_save_IFS
12108
12109 fi
12110 fi
12111 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12112 if test -n "$OBJDUMP_FOR_TARGET"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12114 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121 fi
12122 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12124 set dummy ${ncn_progname}; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 if test -n "$OBJDUMP_FOR_TARGET"; then
12131 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12132 else
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12135 do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 break 2
12143 fi
12144 done
12145 done
12146 IFS=$as_save_IFS
12147
12148 fi
12149 fi
12150 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12151 if test -n "$OBJDUMP_FOR_TARGET"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12153 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12154 else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12157 fi
12158
12159
12160 fi
12161 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12162 done
12163 fi
12164
12165 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12166 set dummy objdump
12167 if test $build = $target ; then
12168 OBJDUMP_FOR_TARGET="$2"
12169 else
12170 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12171 fi
12172 else
12173 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12174 fi
12175
12176 else
12177 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12178 fi
12179
12180
12181
12182
12183 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12184 if test -n "$with_build_time_tools"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12186 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12187 if test -x $with_build_time_tools/ranlib; then
12188 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12189 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12191 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12195 fi
12196 elif test $build != $host && test $have_gcc_for_target = yes; then
12197 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12198 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12199 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12200 fi
12201 fi
12202 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12203 # Extract the first word of "ranlib", so it can be a program name with args.
12204 set dummy ranlib; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 case $RANLIB_FOR_TARGET in
12211 [\\/]* | ?:[\\/]*)
12212 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12213 ;;
12214 *)
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $gcc_cv_tool_dirs
12217 do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12225 fi
12226 done
12227 done
12228 IFS=$as_save_IFS
12229
12230 ;;
12231 esac
12232 fi
12233 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12234 if test -n "$RANLIB_FOR_TARGET"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12236 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12240 fi
12241
12242
12243 fi
12244 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12245
12246
12247 if test -n "$RANLIB_FOR_TARGET"; then
12248 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12249 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12250 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12251 fi
12252
12253 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12254 for ncn_progname in ranlib; do
12255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12256 set dummy ${ncn_progname}; ac_word=$2
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258 $as_echo_n "checking for $ac_word... " >&6; }
12259 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 if test -n "$RANLIB_FOR_TARGET"; then
12263 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12264 else
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH
12267 do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12272 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12275 fi
12276 done
12277 done
12278 IFS=$as_save_IFS
12279
12280 fi
12281 fi
12282 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12283 if test -n "$RANLIB_FOR_TARGET"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12285 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 fi
12290
12291
12292 done
12293 fi
12294
12295 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12296 for ncn_progname in ranlib; do
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12299 if test -x $with_build_time_tools/${ncn_progname}; then
12300 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302 $as_echo "yes" >&6; }
12303 break
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12307 fi
12308 done
12309 fi
12310
12311 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12312 for ncn_progname in ranlib; do
12313 if test -n "$ncn_target_tool_prefix"; then
12314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if test -n "$RANLIB_FOR_TARGET"; then
12322 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12334 fi
12335 done
12336 done
12337 IFS=$as_save_IFS
12338
12339 fi
12340 fi
12341 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12342 if test -n "$RANLIB_FOR_TARGET"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12344 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349
12350
12351 fi
12352 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12354 set dummy ${ncn_progname}; ac_word=$2
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356 $as_echo_n "checking for $ac_word... " >&6; }
12357 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 if test -n "$RANLIB_FOR_TARGET"; then
12361 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12362 else
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12365 do
12366 IFS=$as_save_IFS
12367 test -z "$as_dir" && as_dir=.
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12370 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 break 2
12373 fi
12374 done
12375 done
12376 IFS=$as_save_IFS
12377
12378 fi
12379 fi
12380 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12381 if test -n "$RANLIB_FOR_TARGET"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12383 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12387 fi
12388
12389
12390 fi
12391 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12392 done
12393 fi
12394
12395 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12396 set dummy ranlib
12397 if test $build = $target ; then
12398 RANLIB_FOR_TARGET="$2"
12399 else
12400 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12401 fi
12402 else
12403 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12404 fi
12405
12406 else
12407 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12408 fi
12409
12410
12411
12412
12413 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12414 if test -n "$with_build_time_tools"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12416 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12417 if test -x $with_build_time_tools/readelf; then
12418 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12419 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12421 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12422 else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12425 fi
12426 elif test $build != $host && test $have_gcc_for_target = yes; then
12427 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12428 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12429 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12430 fi
12431 fi
12432 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12433 # Extract the first word of "readelf", so it can be a program name with args.
12434 set dummy readelf; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 case $READELF_FOR_TARGET in
12441 [\\/]* | ?:[\\/]*)
12442 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12443 ;;
12444 *)
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $gcc_cv_tool_dirs
12447 do
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12452 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12455 fi
12456 done
12457 done
12458 IFS=$as_save_IFS
12459
12460 ;;
12461 esac
12462 fi
12463 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12464 if test -n "$READELF_FOR_TARGET"; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12466 $as_echo "$READELF_FOR_TARGET" >&6; }
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12470 fi
12471
12472
12473 fi
12474 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12475
12476
12477 if test -n "$READELF_FOR_TARGET"; then
12478 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12479 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12480 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12481 fi
12482
12483 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12484 for ncn_progname in readelf; do
12485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12486 set dummy ${ncn_progname}; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test -n "$READELF_FOR_TARGET"; then
12493 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12502 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12505 fi
12506 done
12507 done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12513 if test -n "$READELF_FOR_TARGET"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12515 $as_echo "$READELF_FOR_TARGET" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521
12522 done
12523 fi
12524
12525 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12526 for ncn_progname in readelf; do
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12528 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/${ncn_progname}; then
12530 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12533 break
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537 fi
12538 done
12539 fi
12540
12541 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12542 for ncn_progname in readelf; do
12543 if test -n "$ncn_target_tool_prefix"; then
12544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 if test -n "$READELF_FOR_TARGET"; then
12552 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12553 else
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12556 do
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12561 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 break 2
12564 fi
12565 done
12566 done
12567 IFS=$as_save_IFS
12568
12569 fi
12570 fi
12571 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12572 if test -n "$READELF_FOR_TARGET"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12574 $as_echo "$READELF_FOR_TARGET" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12578 fi
12579
12580
12581 fi
12582 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12584 set dummy ${ncn_progname}; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 if test -n "$READELF_FOR_TARGET"; then
12591 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12592 else
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12595 do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12603 fi
12604 done
12605 done
12606 IFS=$as_save_IFS
12607
12608 fi
12609 fi
12610 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12611 if test -n "$READELF_FOR_TARGET"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12613 $as_echo "$READELF_FOR_TARGET" >&6; }
12614 else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12617 fi
12618
12619
12620 fi
12621 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12622 done
12623 fi
12624
12625 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12626 set dummy readelf
12627 if test $build = $target ; then
12628 READELF_FOR_TARGET="$2"
12629 else
12630 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12631 fi
12632 else
12633 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12634 fi
12635
12636 else
12637 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12638 fi
12639
12640
12641
12642
12643 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12644 if test -n "$with_build_time_tools"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12646 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12647 if test -x $with_build_time_tools/strip; then
12648 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12649 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12651 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12655 fi
12656 elif test $build != $host && test $have_gcc_for_target = yes; then
12657 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12658 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12659 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12660 fi
12661 fi
12662 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12663 # Extract the first word of "strip", so it can be a program name with args.
12664 set dummy strip; ac_word=$2
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 case $STRIP_FOR_TARGET in
12671 [\\/]* | ?:[\\/]*)
12672 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12673 ;;
12674 *)
12675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676 for as_dir in $gcc_cv_tool_dirs
12677 do
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12682 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 break 2
12685 fi
12686 done
12687 done
12688 IFS=$as_save_IFS
12689
12690 ;;
12691 esac
12692 fi
12693 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12694 if test -n "$STRIP_FOR_TARGET"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12696 $as_echo "$STRIP_FOR_TARGET" >&6; }
12697 else
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699 $as_echo "no" >&6; }
12700 fi
12701
12702
12703 fi
12704 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12705
12706
12707 if test -n "$STRIP_FOR_TARGET"; then
12708 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12709 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12710 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12711 fi
12712
12713 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12714 for ncn_progname in strip; do
12715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12716 set dummy ${ncn_progname}; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 if test -n "$STRIP_FOR_TARGET"; then
12723 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12724 else
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12727 do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12735 fi
12736 done
12737 done
12738 IFS=$as_save_IFS
12739
12740 fi
12741 fi
12742 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12743 if test -n "$STRIP_FOR_TARGET"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12745 $as_echo "$STRIP_FOR_TARGET" >&6; }
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12749 fi
12750
12751
12752 done
12753 fi
12754
12755 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12756 for ncn_progname in strip; do
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12758 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12759 if test -x $with_build_time_tools/${ncn_progname}; then
12760 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762 $as_echo "yes" >&6; }
12763 break
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12767 fi
12768 done
12769 fi
12770
12771 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12772 for ncn_progname in strip; do
12773 if test -n "$ncn_target_tool_prefix"; then
12774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12775 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 if test -n "$STRIP_FOR_TARGET"; then
12782 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12783 else
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795 done
12796 done
12797 IFS=$as_save_IFS
12798
12799 fi
12800 fi
12801 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12802 if test -n "$STRIP_FOR_TARGET"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12804 $as_echo "$STRIP_FOR_TARGET" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809
12810
12811 fi
12812 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12814 set dummy ${ncn_progname}; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 if test -n "$STRIP_FOR_TARGET"; then
12821 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12822 else
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12825 do
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12830 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12833 fi
12834 done
12835 done
12836 IFS=$as_save_IFS
12837
12838 fi
12839 fi
12840 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12841 if test -n "$STRIP_FOR_TARGET"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12843 $as_echo "$STRIP_FOR_TARGET" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12847 fi
12848
12849
12850 fi
12851 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12852 done
12853 fi
12854
12855 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12856 set dummy strip
12857 if test $build = $target ; then
12858 STRIP_FOR_TARGET="$2"
12859 else
12860 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12861 fi
12862 else
12863 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12864 fi
12865
12866 else
12867 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12868 fi
12869
12870
12871
12872
12873 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12874 if test -n "$with_build_time_tools"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12876 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12877 if test -x $with_build_time_tools/windres; then
12878 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12879 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12881 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12885 fi
12886 elif test $build != $host && test $have_gcc_for_target = yes; then
12887 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12888 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12889 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12890 fi
12891 fi
12892 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12893 # Extract the first word of "windres", so it can be a program name with args.
12894 set dummy windres; ac_word=$2
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12896 $as_echo_n "checking for $ac_word... " >&6; }
12897 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 case $WINDRES_FOR_TARGET in
12901 [\\/]* | ?:[\\/]*)
12902 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12903 ;;
12904 *)
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $gcc_cv_tool_dirs
12907 do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916 done
12917 done
12918 IFS=$as_save_IFS
12919
12920 ;;
12921 esac
12922 fi
12923 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12924 if test -n "$WINDRES_FOR_TARGET"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12926 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12930 fi
12931
12932
12933 fi
12934 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12935
12936
12937 if test -n "$WINDRES_FOR_TARGET"; then
12938 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12939 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12940 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12941 fi
12942
12943 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12944 for ncn_progname in windres; do
12945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12946 set dummy ${ncn_progname}; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 if test -n "$WINDRES_FOR_TARGET"; then
12953 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12954 else
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12957 do
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12962 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12965 fi
12966 done
12967 done
12968 IFS=$as_save_IFS
12969
12970 fi
12971 fi
12972 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12973 if test -n "$WINDRES_FOR_TARGET"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12975 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979 fi
12980
12981
12982 done
12983 fi
12984
12985 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12986 for ncn_progname in windres; do
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12988 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12989 if test -x $with_build_time_tools/${ncn_progname}; then
12990 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12992 $as_echo "yes" >&6; }
12993 break
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12997 fi
12998 done
12999 fi
13000
13001 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13002 for ncn_progname in windres; do
13003 if test -n "$ncn_target_tool_prefix"; then
13004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 if test -n "$WINDRES_FOR_TARGET"; then
13012 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13016 do
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13024 fi
13025 done
13026 done
13027 IFS=$as_save_IFS
13028
13029 fi
13030 fi
13031 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13032 if test -n "$WINDRES_FOR_TARGET"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13034 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13038 fi
13039
13040
13041 fi
13042 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13044 set dummy ${ncn_progname}; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 if test -n "$WINDRES_FOR_TARGET"; then
13051 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13052 else
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13055 do
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 break 2
13063 fi
13064 done
13065 done
13066 IFS=$as_save_IFS
13067
13068 fi
13069 fi
13070 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13071 if test -n "$WINDRES_FOR_TARGET"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13073 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13074 else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13077 fi
13078
13079
13080 fi
13081 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13082 done
13083 fi
13084
13085 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13086 set dummy windres
13087 if test $build = $target ; then
13088 WINDRES_FOR_TARGET="$2"
13089 else
13090 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13091 fi
13092 else
13093 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13094 fi
13095
13096 else
13097 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13098 fi
13099
13100
13101
13102
13103 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13104 if test -n "$with_build_time_tools"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13106 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13107 if test -x $with_build_time_tools/windmc; then
13108 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13109 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13111 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13112 else
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13115 fi
13116 elif test $build != $host && test $have_gcc_for_target = yes; then
13117 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13118 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13119 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13120 fi
13121 fi
13122 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13123 # Extract the first word of "windmc", so it can be a program name with args.
13124 set dummy windmc; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 case $WINDMC_FOR_TARGET in
13131 [\\/]* | ?:[\\/]*)
13132 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13133 ;;
13134 *)
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $gcc_cv_tool_dirs
13137 do
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13142 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 break 2
13145 fi
13146 done
13147 done
13148 IFS=$as_save_IFS
13149
13150 ;;
13151 esac
13152 fi
13153 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13154 if test -n "$WINDMC_FOR_TARGET"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13156 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13157 else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13160 fi
13161
13162
13163 fi
13164 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13165
13166
13167 if test -n "$WINDMC_FOR_TARGET"; then
13168 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13169 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13170 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13171 fi
13172
13173 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13174 for ncn_progname in windmc; do
13175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13176 set dummy ${ncn_progname}; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 if test -n "$WINDMC_FOR_TARGET"; then
13183 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13184 else
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13187 do
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13192 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13194 break 2
13195 fi
13196 done
13197 done
13198 IFS=$as_save_IFS
13199
13200 fi
13201 fi
13202 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13203 if test -n "$WINDMC_FOR_TARGET"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13205 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13206 else
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13209 fi
13210
13211
13212 done
13213 fi
13214
13215 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13216 for ncn_progname in windmc; do
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13218 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13219 if test -x $with_build_time_tools/${ncn_progname}; then
13220 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13222 $as_echo "yes" >&6; }
13223 break
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 fi
13228 done
13229 fi
13230
13231 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13232 for ncn_progname in windmc; do
13233 if test -n "$ncn_target_tool_prefix"; then
13234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13235 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 if test -n "$WINDMC_FOR_TARGET"; then
13242 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13243 else
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13246 do
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2
13254 fi
13255 done
13256 done
13257 IFS=$as_save_IFS
13258
13259 fi
13260 fi
13261 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13262 if test -n "$WINDMC_FOR_TARGET"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13264 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 fi
13269
13270
13271 fi
13272 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13274 set dummy ${ncn_progname}; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 if test -n "$WINDMC_FOR_TARGET"; then
13281 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13285 do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13293 fi
13294 done
13295 done
13296 IFS=$as_save_IFS
13297
13298 fi
13299 fi
13300 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13301 if test -n "$WINDMC_FOR_TARGET"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13303 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13307 fi
13308
13309
13310 fi
13311 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13312 done
13313 fi
13314
13315 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13316 set dummy windmc
13317 if test $build = $target ; then
13318 WINDMC_FOR_TARGET="$2"
13319 else
13320 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13321 fi
13322 else
13323 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13324 fi
13325
13326 else
13327 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13328 fi
13329
13330
13331 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13334 $as_echo_n "checking where to find the target ar... " >&6; }
13335 if test "x${build}" != "x${host}" ; then
13336 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13337 # We already found the complete path
13338 ac_dir=`dirname $AR_FOR_TARGET`
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13340 $as_echo "pre-installed in $ac_dir" >&6; }
13341 else
13342 # Canadian cross, just use what we found
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13344 $as_echo "pre-installed" >&6; }
13345 fi
13346 else
13347 ok=yes
13348 case " ${configdirs} " in
13349 *" binutils "*) ;;
13350 *) ok=no ;;
13351 esac
13352
13353 if test $ok = yes; then
13354 # An in-tree tool is available and we can use it
13355 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13357 $as_echo "just compiled" >&6; }
13358 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13359 # We already found the complete path
13360 ac_dir=`dirname $AR_FOR_TARGET`
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13362 $as_echo "pre-installed in $ac_dir" >&6; }
13363 elif test "x$target" = "x$host"; then
13364 # We can use an host tool
13365 AR_FOR_TARGET='$(AR)'
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13367 $as_echo "host tool" >&6; }
13368 else
13369 # We need a cross tool
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371 $as_echo "pre-installed" >&6; }
13372 fi
13373 fi
13374
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13376 $as_echo_n "checking where to find the target as... " >&6; }
13377 if test "x${build}" != "x${host}" ; then
13378 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13379 # We already found the complete path
13380 ac_dir=`dirname $AS_FOR_TARGET`
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13382 $as_echo "pre-installed in $ac_dir" >&6; }
13383 else
13384 # Canadian cross, just use what we found
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386 $as_echo "pre-installed" >&6; }
13387 fi
13388 else
13389 ok=yes
13390 case " ${configdirs} " in
13391 *" gas "*) ;;
13392 *) ok=no ;;
13393 esac
13394
13395 if test $ok = yes; then
13396 # An in-tree tool is available and we can use it
13397 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13399 $as_echo "just compiled" >&6; }
13400 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13401 # We already found the complete path
13402 ac_dir=`dirname $AS_FOR_TARGET`
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13404 $as_echo "pre-installed in $ac_dir" >&6; }
13405 elif test "x$target" = "x$host"; then
13406 # We can use an host tool
13407 AS_FOR_TARGET='$(AS)'
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13409 $as_echo "host tool" >&6; }
13410 else
13411 # We need a cross tool
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13413 $as_echo "pre-installed" >&6; }
13414 fi
13415 fi
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13418 $as_echo_n "checking where to find the target cc... " >&6; }
13419 if test "x${build}" != "x${host}" ; then
13420 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13421 # We already found the complete path
13422 ac_dir=`dirname $CC_FOR_TARGET`
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13424 $as_echo "pre-installed in $ac_dir" >&6; }
13425 else
13426 # Canadian cross, just use what we found
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13428 $as_echo "pre-installed" >&6; }
13429 fi
13430 else
13431 ok=yes
13432 case " ${configdirs} " in
13433 *" gcc "*) ;;
13434 *) ok=no ;;
13435 esac
13436
13437 if test $ok = yes; then
13438 # An in-tree tool is available and we can use it
13439 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13441 $as_echo "just compiled" >&6; }
13442 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13443 # We already found the complete path
13444 ac_dir=`dirname $CC_FOR_TARGET`
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13446 $as_echo "pre-installed in $ac_dir" >&6; }
13447 elif test "x$target" = "x$host"; then
13448 # We can use an host tool
13449 CC_FOR_TARGET='$(CC)'
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13451 $as_echo "host tool" >&6; }
13452 else
13453 # We need a cross tool
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455 $as_echo "pre-installed" >&6; }
13456 fi
13457 fi
13458
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13460 $as_echo_n "checking where to find the target c++... " >&6; }
13461 if test "x${build}" != "x${host}" ; then
13462 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13463 # We already found the complete path
13464 ac_dir=`dirname $CXX_FOR_TARGET`
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13466 $as_echo "pre-installed in $ac_dir" >&6; }
13467 else
13468 # Canadian cross, just use what we found
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13470 $as_echo "pre-installed" >&6; }
13471 fi
13472 else
13473 ok=yes
13474 case " ${configdirs} " in
13475 *" gcc "*) ;;
13476 *) ok=no ;;
13477 esac
13478 case ,${enable_languages}, in
13479 *,c++,*) ;;
13480 *) ok=no ;;
13481 esac
13482 if test $ok = yes; then
13483 # An in-tree tool is available and we can use it
13484 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13486 $as_echo "just compiled" >&6; }
13487 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13488 # We already found the complete path
13489 ac_dir=`dirname $CXX_FOR_TARGET`
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13491 $as_echo "pre-installed in $ac_dir" >&6; }
13492 elif test "x$target" = "x$host"; then
13493 # We can use an host tool
13494 CXX_FOR_TARGET='$(CXX)'
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13496 $as_echo "host tool" >&6; }
13497 else
13498 # We need a cross tool
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13500 $as_echo "pre-installed" >&6; }
13501 fi
13502 fi
13503
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13505 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13506 if test "x${build}" != "x${host}" ; then
13507 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13508 # We already found the complete path
13509 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13511 $as_echo "pre-installed in $ac_dir" >&6; }
13512 else
13513 # Canadian cross, just use what we found
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13515 $as_echo "pre-installed" >&6; }
13516 fi
13517 else
13518 ok=yes
13519 case " ${configdirs} " in
13520 *" gcc "*) ;;
13521 *) ok=no ;;
13522 esac
13523 case ,${enable_languages}, in
13524 *,c++,*) ;;
13525 *) ok=no ;;
13526 esac
13527 if test $ok = yes; then
13528 # An in-tree tool is available and we can use it
13529 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'
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13531 $as_echo "just compiled" >&6; }
13532 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13533 # We already found the complete path
13534 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536 $as_echo "pre-installed in $ac_dir" >&6; }
13537 elif test "x$target" = "x$host"; then
13538 # We can use an host tool
13539 RAW_CXX_FOR_TARGET='$(CXX)'
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13541 $as_echo "host tool" >&6; }
13542 else
13543 # We need a cross tool
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545 $as_echo "pre-installed" >&6; }
13546 fi
13547 fi
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13550 $as_echo_n "checking where to find the target dlltool... " >&6; }
13551 if test "x${build}" != "x${host}" ; then
13552 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13553 # We already found the complete path
13554 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13556 $as_echo "pre-installed in $ac_dir" >&6; }
13557 else
13558 # Canadian cross, just use what we found
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13560 $as_echo "pre-installed" >&6; }
13561 fi
13562 else
13563 ok=yes
13564 case " ${configdirs} " in
13565 *" binutils "*) ;;
13566 *) ok=no ;;
13567 esac
13568
13569 if test $ok = yes; then
13570 # An in-tree tool is available and we can use it
13571 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13573 $as_echo "just compiled" >&6; }
13574 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13575 # We already found the complete path
13576 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13578 $as_echo "pre-installed in $ac_dir" >&6; }
13579 elif test "x$target" = "x$host"; then
13580 # We can use an host tool
13581 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13583 $as_echo "host tool" >&6; }
13584 else
13585 # We need a cross tool
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13587 $as_echo "pre-installed" >&6; }
13588 fi
13589 fi
13590
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13592 $as_echo_n "checking where to find the target gcc... " >&6; }
13593 if test "x${build}" != "x${host}" ; then
13594 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13595 # We already found the complete path
13596 ac_dir=`dirname $GCC_FOR_TARGET`
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13598 $as_echo "pre-installed in $ac_dir" >&6; }
13599 else
13600 # Canadian cross, just use what we found
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13602 $as_echo "pre-installed" >&6; }
13603 fi
13604 else
13605 ok=yes
13606 case " ${configdirs} " in
13607 *" gcc "*) ;;
13608 *) ok=no ;;
13609 esac
13610
13611 if test $ok = yes; then
13612 # An in-tree tool is available and we can use it
13613 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13615 $as_echo "just compiled" >&6; }
13616 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13617 # We already found the complete path
13618 ac_dir=`dirname $GCC_FOR_TARGET`
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13620 $as_echo "pre-installed in $ac_dir" >&6; }
13621 elif test "x$target" = "x$host"; then
13622 # We can use an host tool
13623 GCC_FOR_TARGET='$()'
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13625 $as_echo "host tool" >&6; }
13626 else
13627 # We need a cross tool
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13629 $as_echo "pre-installed" >&6; }
13630 fi
13631 fi
13632
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13634 $as_echo_n "checking where to find the target gcj... " >&6; }
13635 if test "x${build}" != "x${host}" ; then
13636 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13637 # We already found the complete path
13638 ac_dir=`dirname $GCJ_FOR_TARGET`
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13640 $as_echo "pre-installed in $ac_dir" >&6; }
13641 else
13642 # Canadian cross, just use what we found
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13644 $as_echo "pre-installed" >&6; }
13645 fi
13646 else
13647 ok=yes
13648 case " ${configdirs} " in
13649 *" gcc "*) ;;
13650 *) ok=no ;;
13651 esac
13652 case ,${enable_languages}, in
13653 *,java,*) ;;
13654 *) ok=no ;;
13655 esac
13656 if test $ok = yes; then
13657 # An in-tree tool is available and we can use it
13658 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13660 $as_echo "just compiled" >&6; }
13661 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13662 # We already found the complete path
13663 ac_dir=`dirname $GCJ_FOR_TARGET`
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13665 $as_echo "pre-installed in $ac_dir" >&6; }
13666 elif test "x$target" = "x$host"; then
13667 # We can use an host tool
13668 GCJ_FOR_TARGET='$(GCJ)'
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13670 $as_echo "host tool" >&6; }
13671 else
13672 # We need a cross tool
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13674 $as_echo "pre-installed" >&6; }
13675 fi
13676 fi
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13679 $as_echo_n "checking where to find the target gfortran... " >&6; }
13680 if test "x${build}" != "x${host}" ; then
13681 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13682 # We already found the complete path
13683 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13685 $as_echo "pre-installed in $ac_dir" >&6; }
13686 else
13687 # Canadian cross, just use what we found
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13689 $as_echo "pre-installed" >&6; }
13690 fi
13691 else
13692 ok=yes
13693 case " ${configdirs} " in
13694 *" gcc "*) ;;
13695 *) ok=no ;;
13696 esac
13697 case ,${enable_languages}, in
13698 *,fortran,*) ;;
13699 *) ok=no ;;
13700 esac
13701 if test $ok = yes; then
13702 # An in-tree tool is available and we can use it
13703 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13705 $as_echo "just compiled" >&6; }
13706 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13707 # We already found the complete path
13708 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13710 $as_echo "pre-installed in $ac_dir" >&6; }
13711 elif test "x$target" = "x$host"; then
13712 # We can use an host tool
13713 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13715 $as_echo "host tool" >&6; }
13716 else
13717 # We need a cross tool
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13719 $as_echo "pre-installed" >&6; }
13720 fi
13721 fi
13722
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13724 $as_echo_n "checking where to find the target gccgo... " >&6; }
13725 if test "x${build}" != "x${host}" ; then
13726 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
13728 ac_dir=`dirname $GOC_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 else
13732 # Canadian cross, just use what we found
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13734 $as_echo "pre-installed" >&6; }
13735 fi
13736 else
13737 ok=yes
13738 case " ${configdirs} " in
13739 *" gcc "*) ;;
13740 *) ok=no ;;
13741 esac
13742 case ,${enable_languages}, in
13743 *,go,*) ;;
13744 *) ok=no ;;
13745 esac
13746 if test $ok = yes; then
13747 # An in-tree tool is available and we can use it
13748 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13750 $as_echo "just compiled" >&6; }
13751 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13752 # We already found the complete path
13753 ac_dir=`dirname $GOC_FOR_TARGET`
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13755 $as_echo "pre-installed in $ac_dir" >&6; }
13756 elif test "x$target" = "x$host"; then
13757 # We can use an host tool
13758 GOC_FOR_TARGET='$(GOC)'
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13760 $as_echo "host tool" >&6; }
13761 else
13762 # We need a cross tool
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13764 $as_echo "pre-installed" >&6; }
13765 fi
13766 fi
13767
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13769 $as_echo_n "checking where to find the target ld... " >&6; }
13770 if test "x${build}" != "x${host}" ; then
13771 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13772 # We already found the complete path
13773 ac_dir=`dirname $LD_FOR_TARGET`
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13775 $as_echo "pre-installed in $ac_dir" >&6; }
13776 else
13777 # Canadian cross, just use what we found
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13779 $as_echo "pre-installed" >&6; }
13780 fi
13781 else
13782 ok=yes
13783 case " ${configdirs} " in
13784 *" ld "*) ;;
13785 *) ok=no ;;
13786 esac
13787
13788 if test $ok = yes; then
13789 # An in-tree tool is available and we can use it
13790 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13792 $as_echo "just compiled" >&6; }
13793 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13794 # We already found the complete path
13795 ac_dir=`dirname $LD_FOR_TARGET`
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13797 $as_echo "pre-installed in $ac_dir" >&6; }
13798 elif test "x$target" = "x$host"; then
13799 # We can use an host tool
13800 LD_FOR_TARGET='$(LD)'
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13802 $as_echo "host tool" >&6; }
13803 else
13804 # We need a cross tool
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806 $as_echo "pre-installed" >&6; }
13807 fi
13808 fi
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13811 $as_echo_n "checking where to find the target lipo... " >&6; }
13812 if test "x${build}" != "x${host}" ; then
13813 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13814 # We already found the complete path
13815 ac_dir=`dirname $LIPO_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 else
13819 # Canadian cross, just use what we found
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13821 $as_echo "pre-installed" >&6; }
13822 fi
13823 else
13824 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13825 # We already found the complete path
13826 ac_dir=`dirname $LIPO_FOR_TARGET`
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13828 $as_echo "pre-installed in $ac_dir" >&6; }
13829 elif test "x$target" = "x$host"; then
13830 # We can use an host tool
13831 LIPO_FOR_TARGET='$(LIPO)'
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13833 $as_echo "host tool" >&6; }
13834 else
13835 # We need a cross tool
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837 $as_echo "pre-installed" >&6; }
13838 fi
13839 fi
13840
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13842 $as_echo_n "checking where to find the target nm... " >&6; }
13843 if test "x${build}" != "x${host}" ; then
13844 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13845 # We already found the complete path
13846 ac_dir=`dirname $NM_FOR_TARGET`
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13848 $as_echo "pre-installed in $ac_dir" >&6; }
13849 else
13850 # Canadian cross, just use what we found
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13852 $as_echo "pre-installed" >&6; }
13853 fi
13854 else
13855 ok=yes
13856 case " ${configdirs} " in
13857 *" binutils "*) ;;
13858 *) ok=no ;;
13859 esac
13860
13861 if test $ok = yes; then
13862 # An in-tree tool is available and we can use it
13863 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13865 $as_echo "just compiled" >&6; }
13866 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13867 # We already found the complete path
13868 ac_dir=`dirname $NM_FOR_TARGET`
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870 $as_echo "pre-installed in $ac_dir" >&6; }
13871 elif test "x$target" = "x$host"; then
13872 # We can use an host tool
13873 NM_FOR_TARGET='$(NM)'
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13875 $as_echo "host tool" >&6; }
13876 else
13877 # We need a cross tool
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879 $as_echo "pre-installed" >&6; }
13880 fi
13881 fi
13882
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13884 $as_echo_n "checking where to find the target objdump... " >&6; }
13885 if test "x${build}" != "x${host}" ; then
13886 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13887 # We already found the complete path
13888 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13890 $as_echo "pre-installed in $ac_dir" >&6; }
13891 else
13892 # Canadian cross, just use what we found
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13894 $as_echo "pre-installed" >&6; }
13895 fi
13896 else
13897 ok=yes
13898 case " ${configdirs} " in
13899 *" binutils "*) ;;
13900 *) ok=no ;;
13901 esac
13902
13903 if test $ok = yes; then
13904 # An in-tree tool is available and we can use it
13905 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13907 $as_echo "just compiled" >&6; }
13908 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
13910 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912 $as_echo "pre-installed in $ac_dir" >&6; }
13913 elif test "x$target" = "x$host"; then
13914 # We can use an host tool
13915 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13917 $as_echo "host tool" >&6; }
13918 else
13919 # We need a cross tool
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921 $as_echo "pre-installed" >&6; }
13922 fi
13923 fi
13924
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13926 $as_echo_n "checking where to find the target ranlib... " >&6; }
13927 if test "x${build}" != "x${host}" ; then
13928 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13929 # We already found the complete path
13930 ac_dir=`dirname $RANLIB_FOR_TARGET`
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13932 $as_echo "pre-installed in $ac_dir" >&6; }
13933 else
13934 # Canadian cross, just use what we found
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13936 $as_echo "pre-installed" >&6; }
13937 fi
13938 else
13939 ok=yes
13940 case " ${configdirs} " in
13941 *" binutils "*) ;;
13942 *) ok=no ;;
13943 esac
13944
13945 if test $ok = yes; then
13946 # An in-tree tool is available and we can use it
13947 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13949 $as_echo "just compiled" >&6; }
13950 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13951 # We already found the complete path
13952 ac_dir=`dirname $RANLIB_FOR_TARGET`
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13954 $as_echo "pre-installed in $ac_dir" >&6; }
13955 elif test "x$target" = "x$host"; then
13956 # We can use an host tool
13957 RANLIB_FOR_TARGET='$(RANLIB)'
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13959 $as_echo "host tool" >&6; }
13960 else
13961 # We need a cross tool
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963 $as_echo "pre-installed" >&6; }
13964 fi
13965 fi
13966
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13968 $as_echo_n "checking where to find the target readelf... " >&6; }
13969 if test "x${build}" != "x${host}" ; then
13970 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13971 # We already found the complete path
13972 ac_dir=`dirname $READELF_FOR_TARGET`
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13974 $as_echo "pre-installed in $ac_dir" >&6; }
13975 else
13976 # Canadian cross, just use what we found
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13978 $as_echo "pre-installed" >&6; }
13979 fi
13980 else
13981 ok=yes
13982 case " ${configdirs} " in
13983 *" binutils "*) ;;
13984 *) ok=no ;;
13985 esac
13986
13987 if test $ok = yes; then
13988 # An in-tree tool is available and we can use it
13989 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13991 $as_echo "just compiled" >&6; }
13992 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13993 # We already found the complete path
13994 ac_dir=`dirname $READELF_FOR_TARGET`
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13996 $as_echo "pre-installed in $ac_dir" >&6; }
13997 elif test "x$target" = "x$host"; then
13998 # We can use an host tool
13999 READELF_FOR_TARGET='$(READELF)'
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14001 $as_echo "host tool" >&6; }
14002 else
14003 # We need a cross tool
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14005 $as_echo "pre-installed" >&6; }
14006 fi
14007 fi
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14010 $as_echo_n "checking where to find the target strip... " >&6; }
14011 if test "x${build}" != "x${host}" ; then
14012 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14013 # We already found the complete path
14014 ac_dir=`dirname $STRIP_FOR_TARGET`
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14016 $as_echo "pre-installed in $ac_dir" >&6; }
14017 else
14018 # Canadian cross, just use what we found
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020 $as_echo "pre-installed" >&6; }
14021 fi
14022 else
14023 ok=yes
14024 case " ${configdirs} " in
14025 *" binutils "*) ;;
14026 *) ok=no ;;
14027 esac
14028
14029 if test $ok = yes; then
14030 # An in-tree tool is available and we can use it
14031 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14033 $as_echo "just compiled" >&6; }
14034 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14035 # We already found the complete path
14036 ac_dir=`dirname $STRIP_FOR_TARGET`
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14038 $as_echo "pre-installed in $ac_dir" >&6; }
14039 elif test "x$target" = "x$host"; then
14040 # We can use an host tool
14041 STRIP_FOR_TARGET='$(STRIP)'
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14043 $as_echo "host tool" >&6; }
14044 else
14045 # We need a cross tool
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14047 $as_echo "pre-installed" >&6; }
14048 fi
14049 fi
14050
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14052 $as_echo_n "checking where to find the target windres... " >&6; }
14053 if test "x${build}" != "x${host}" ; then
14054 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
14056 ac_dir=`dirname $WINDRES_FOR_TARGET`
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058 $as_echo "pre-installed in $ac_dir" >&6; }
14059 else
14060 # Canadian cross, just use what we found
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14062 $as_echo "pre-installed" >&6; }
14063 fi
14064 else
14065 ok=yes
14066 case " ${configdirs} " in
14067 *" binutils "*) ;;
14068 *) ok=no ;;
14069 esac
14070
14071 if test $ok = yes; then
14072 # An in-tree tool is available and we can use it
14073 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14075 $as_echo "just compiled" >&6; }
14076 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14077 # We already found the complete path
14078 ac_dir=`dirname $WINDRES_FOR_TARGET`
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080 $as_echo "pre-installed in $ac_dir" >&6; }
14081 elif test "x$target" = "x$host"; then
14082 # We can use an host tool
14083 WINDRES_FOR_TARGET='$(WINDRES)'
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14085 $as_echo "host tool" >&6; }
14086 else
14087 # We need a cross tool
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14089 $as_echo "pre-installed" >&6; }
14090 fi
14091 fi
14092
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14094 $as_echo_n "checking where to find the target windmc... " >&6; }
14095 if test "x${build}" != "x${host}" ; then
14096 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $WINDMC_FOR_TARGET`
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100 $as_echo "pre-installed in $ac_dir" >&6; }
14101 else
14102 # Canadian cross, just use what we found
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104 $as_echo "pre-installed" >&6; }
14105 fi
14106 else
14107 ok=yes
14108 case " ${configdirs} " in
14109 *" binutils "*) ;;
14110 *) ok=no ;;
14111 esac
14112
14113 if test $ok = yes; then
14114 # An in-tree tool is available and we can use it
14115 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14117 $as_echo "just compiled" >&6; }
14118 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $WINDMC_FOR_TARGET`
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122 $as_echo "pre-installed in $ac_dir" >&6; }
14123 elif test "x$target" = "x$host"; then
14124 # We can use an host tool
14125 WINDMC_FOR_TARGET='$(WINDMC)'
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14127 $as_echo "host tool" >&6; }
14128 else
14129 # We need a cross tool
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14131 $as_echo "pre-installed" >&6; }
14132 fi
14133 fi
14134
14135
14136
14137
14138
14139 # Certain tools may need extra flags.
14140 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14141 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14142 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14143
14144 # When building target libraries, except in a Canadian cross, we use
14145 # the same toolchain as the compiler we just built.
14146 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14147 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14148 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14149 if test $host = $build; then
14150 case " $configdirs " in
14151 *" gcc "*)
14152 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14153 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14154 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14155 ;;
14156 esac
14157 fi
14158
14159
14160
14161
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14164 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14165 # Check whether --enable-maintainer-mode was given.
14166 if test "${enable_maintainer_mode+set}" = set; then :
14167 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14168 else
14169 USE_MAINTAINER_MODE=no
14170 fi
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14173 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14174
14175
14176 if test "$USE_MAINTAINER_MODE" = yes; then
14177 MAINTAINER_MODE_TRUE=
14178 MAINTAINER_MODE_FALSE='#'
14179 else
14180 MAINTAINER_MODE_TRUE='#'
14181 MAINTAINER_MODE_FALSE=
14182 fi
14183 MAINT=$MAINTAINER_MODE_TRUE
14184
14185 # ---------------------
14186 # GCC bootstrap support
14187 # ---------------------
14188
14189 # Stage specific cflags for build.
14190 stage1_cflags="-g"
14191 case $build in
14192 vax-*-*)
14193 case ${GCC} in
14194 yes) stage1_cflags="-g -Wa,-J" ;;
14195 *) stage1_cflags="-g -J" ;;
14196 esac ;;
14197 esac
14198
14199
14200
14201 # Enable --enable-checking in stage1 of the compiler.
14202 # Check whether --enable-stage1-checking was given.
14203 if test "${enable_stage1_checking+set}" = set; then :
14204 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14205 else
14206 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14207 stage1_checking=--enable-checking=yes,types
14208 else
14209 stage1_checking=--enable-checking=$enable_checking,types
14210 fi
14211 fi
14212
14213
14214
14215 # Enable -Werror in bootstrap stage2 and later.
14216 # Check whether --enable-werror was given.
14217 if test "${enable_werror+set}" = set; then :
14218 enableval=$enable_werror;
14219 else
14220 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14221 enable_werror=yes
14222 else
14223 enable_werror=no
14224 fi
14225 fi
14226
14227 case ${enable_werror} in
14228 yes) stage2_werror_flag="--enable-werror-always" ;;
14229 *) stage2_werror_flag="" ;;
14230 esac
14231
14232
14233 # Specify what files to not compare during bootstrap.
14234
14235 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14236 case "$target" in
14237 hppa*64*-*-hpux*) ;;
14238 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14239 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14240 esac
14241
14242
14243 ac_config_files="$ac_config_files Makefile"
14244
14245 cat >confcache <<\_ACEOF
14246 # This file is a shell script that caches the results of configure
14247 # tests run on this system so they can be shared between configure
14248 # scripts and configure runs, see configure's option --config-cache.
14249 # It is not useful on other systems. If it contains results you don't
14250 # want to keep, you may remove or edit it.
14251 #
14252 # config.status only pays attention to the cache file if you give it
14253 # the --recheck option to rerun configure.
14254 #
14255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14257 # following values.
14258
14259 _ACEOF
14260
14261 # The following way of writing the cache mishandles newlines in values,
14262 # but we know of no workaround that is simple, portable, and efficient.
14263 # So, we kill variables containing newlines.
14264 # Ultrix sh set writes to stderr and can't be redirected directly,
14265 # and sets the high bit in the cache file unless we assign to the vars.
14266 (
14267 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14268 eval ac_val=\$$ac_var
14269 case $ac_val in #(
14270 *${as_nl}*)
14271 case $ac_var in #(
14272 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14273 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14274 esac
14275 case $ac_var in #(
14276 _ | IFS | as_nl) ;; #(
14277 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14278 *) { eval $ac_var=; unset $ac_var;} ;;
14279 esac ;;
14280 esac
14281 done
14282
14283 (set) 2>&1 |
14284 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14285 *${as_nl}ac_space=\ *)
14286 # `set' does not quote correctly, so add quotes: double-quote
14287 # substitution turns \\\\ into \\, and sed turns \\ into \.
14288 sed -n \
14289 "s/'/'\\\\''/g;
14290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14291 ;; #(
14292 *)
14293 # `set' quotes correctly as required by POSIX, so do not add quotes.
14294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14295 ;;
14296 esac |
14297 sort
14298 ) |
14299 sed '
14300 /^ac_cv_env_/b end
14301 t clear
14302 :clear
14303 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14304 t end
14305 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14306 :end' >>confcache
14307 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14308 if test -w "$cache_file"; then
14309 test "x$cache_file" != "x/dev/null" &&
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14311 $as_echo "$as_me: updating cache $cache_file" >&6;}
14312 cat confcache >$cache_file
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14315 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14316 fi
14317 fi
14318 rm -f confcache
14319
14320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14321 # Let make expand exec_prefix.
14322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14323
14324 # Transform confdefs.h into DEFS.
14325 # Protect against shell expansion while executing Makefile rules.
14326 # Protect against Makefile macro expansion.
14327 #
14328 # If the first sed substitution is executed (which looks for macros that
14329 # take arguments), then branch to the quote section. Otherwise,
14330 # look for a macro that doesn't take arguments.
14331 ac_script='
14332 :mline
14333 /\\$/{
14334 N
14335 s,\\\n,,
14336 b mline
14337 }
14338 t clear
14339 :clear
14340 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14341 t quote
14342 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14343 t quote
14344 b any
14345 :quote
14346 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14347 s/\[/\\&/g
14348 s/\]/\\&/g
14349 s/\$/$$/g
14350 H
14351 :any
14352 ${
14353 g
14354 s/^\n//
14355 s/\n/ /g
14356 p
14357 }
14358 '
14359 DEFS=`sed -n "$ac_script" confdefs.h`
14360
14361
14362 ac_libobjs=
14363 ac_ltlibobjs=
14364 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14365 # 1. Remove the extension, and $U if already installed.
14366 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14367 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14368 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14369 # will be set to the directory where LIBOBJS objects are built.
14370 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14371 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14372 done
14373 LIBOBJS=$ac_libobjs
14374
14375 LTLIBOBJS=$ac_ltlibobjs
14376
14377
14378
14379 : ${CONFIG_STATUS=./config.status}
14380 ac_write_fail=0
14381 ac_clean_files_save=$ac_clean_files
14382 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14384 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14385 as_write_fail=0
14386 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14387 #! $SHELL
14388 # Generated by $as_me.
14389 # Run this file to recreate the current configuration.
14390 # Compiler output produced by configure, useful for debugging
14391 # configure, is in config.log if it exists.
14392
14393 debug=false
14394 ac_cs_recheck=false
14395 ac_cs_silent=false
14396
14397 SHELL=\${CONFIG_SHELL-$SHELL}
14398 export SHELL
14399 _ASEOF
14400 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14401 ## -------------------- ##
14402 ## M4sh Initialization. ##
14403 ## -------------------- ##
14404
14405 # Be more Bourne compatible
14406 DUALCASE=1; export DUALCASE # for MKS sh
14407 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14408 emulate sh
14409 NULLCMD=:
14410 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14411 # is contrary to our usage. Disable this feature.
14412 alias -g '${1+"$@"}'='"$@"'
14413 setopt NO_GLOB_SUBST
14414 else
14415 case `(set -o) 2>/dev/null` in #(
14416 *posix*) :
14417 set -o posix ;; #(
14418 *) :
14419 ;;
14420 esac
14421 fi
14422
14423
14424 as_nl='
14425 '
14426 export as_nl
14427 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14428 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14431 # Prefer a ksh shell builtin over an external printf program on Solaris,
14432 # but without wasting forks for bash or zsh.
14433 if test -z "$BASH_VERSION$ZSH_VERSION" \
14434 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14435 as_echo='print -r --'
14436 as_echo_n='print -rn --'
14437 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14438 as_echo='printf %s\n'
14439 as_echo_n='printf %s'
14440 else
14441 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14442 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14443 as_echo_n='/usr/ucb/echo -n'
14444 else
14445 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14446 as_echo_n_body='eval
14447 arg=$1;
14448 case $arg in #(
14449 *"$as_nl"*)
14450 expr "X$arg" : "X\\(.*\\)$as_nl";
14451 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14452 esac;
14453 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14454 '
14455 export as_echo_n_body
14456 as_echo_n='sh -c $as_echo_n_body as_echo'
14457 fi
14458 export as_echo_body
14459 as_echo='sh -c $as_echo_body as_echo'
14460 fi
14461
14462 # The user is always right.
14463 if test "${PATH_SEPARATOR+set}" != set; then
14464 PATH_SEPARATOR=:
14465 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14466 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14467 PATH_SEPARATOR=';'
14468 }
14469 fi
14470
14471
14472 # IFS
14473 # We need space, tab and new line, in precisely that order. Quoting is
14474 # there to prevent editors from complaining about space-tab.
14475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14476 # splitting by setting IFS to empty value.)
14477 IFS=" "" $as_nl"
14478
14479 # Find who we are. Look in the path if we contain no directory separator.
14480 case $0 in #((
14481 *[\\/]* ) as_myself=$0 ;;
14482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483 for as_dir in $PATH
14484 do
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
14487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14488 done
14489 IFS=$as_save_IFS
14490
14491 ;;
14492 esac
14493 # We did not find ourselves, most probably we were run as `sh COMMAND'
14494 # in which case we are not to be found in the path.
14495 if test "x$as_myself" = x; then
14496 as_myself=$0
14497 fi
14498 if test ! -f "$as_myself"; then
14499 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14500 exit 1
14501 fi
14502
14503 # Unset variables that we do not need and which cause bugs (e.g. in
14504 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14505 # suppresses any "Segmentation fault" message there. '((' could
14506 # trigger a bug in pdksh 5.2.14.
14507 for as_var in BASH_ENV ENV MAIL MAILPATH
14508 do eval test x\${$as_var+set} = xset \
14509 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14510 done
14511 PS1='$ '
14512 PS2='> '
14513 PS4='+ '
14514
14515 # NLS nuisances.
14516 LC_ALL=C
14517 export LC_ALL
14518 LANGUAGE=C
14519 export LANGUAGE
14520
14521 # CDPATH.
14522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14523
14524
14525 # as_fn_error ERROR [LINENO LOG_FD]
14526 # ---------------------------------
14527 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14528 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14529 # script with status $?, using 1 if that was 0.
14530 as_fn_error ()
14531 {
14532 as_status=$?; test $as_status -eq 0 && as_status=1
14533 if test "$3"; then
14534 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14535 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14536 fi
14537 $as_echo "$as_me: error: $1" >&2
14538 as_fn_exit $as_status
14539 } # as_fn_error
14540
14541
14542 # as_fn_set_status STATUS
14543 # -----------------------
14544 # Set $? to STATUS, without forking.
14545 as_fn_set_status ()
14546 {
14547 return $1
14548 } # as_fn_set_status
14549
14550 # as_fn_exit STATUS
14551 # -----------------
14552 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14553 as_fn_exit ()
14554 {
14555 set +e
14556 as_fn_set_status $1
14557 exit $1
14558 } # as_fn_exit
14559
14560 # as_fn_unset VAR
14561 # ---------------
14562 # Portably unset VAR.
14563 as_fn_unset ()
14564 {
14565 { eval $1=; unset $1;}
14566 }
14567 as_unset=as_fn_unset
14568 # as_fn_append VAR VALUE
14569 # ----------------------
14570 # Append the text in VALUE to the end of the definition contained in VAR. Take
14571 # advantage of any shell optimizations that allow amortized linear growth over
14572 # repeated appends, instead of the typical quadratic growth present in naive
14573 # implementations.
14574 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14575 eval 'as_fn_append ()
14576 {
14577 eval $1+=\$2
14578 }'
14579 else
14580 as_fn_append ()
14581 {
14582 eval $1=\$$1\$2
14583 }
14584 fi # as_fn_append
14585
14586 # as_fn_arith ARG...
14587 # ------------------
14588 # Perform arithmetic evaluation on the ARGs, and store the result in the
14589 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14590 # must be portable across $(()) and expr.
14591 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14592 eval 'as_fn_arith ()
14593 {
14594 as_val=$(( $* ))
14595 }'
14596 else
14597 as_fn_arith ()
14598 {
14599 as_val=`expr "$@" || test $? -eq 1`
14600 }
14601 fi # as_fn_arith
14602
14603
14604 if expr a : '\(a\)' >/dev/null 2>&1 &&
14605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14606 as_expr=expr
14607 else
14608 as_expr=false
14609 fi
14610
14611 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14612 as_basename=basename
14613 else
14614 as_basename=false
14615 fi
14616
14617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14618 as_dirname=dirname
14619 else
14620 as_dirname=false
14621 fi
14622
14623 as_me=`$as_basename -- "$0" ||
14624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14625 X"$0" : 'X\(//\)$' \| \
14626 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14627 $as_echo X/"$0" |
14628 sed '/^.*\/\([^/][^/]*\)\/*$/{
14629 s//\1/
14630 q
14631 }
14632 /^X\/\(\/\/\)$/{
14633 s//\1/
14634 q
14635 }
14636 /^X\/\(\/\).*/{
14637 s//\1/
14638 q
14639 }
14640 s/.*/./; q'`
14641
14642 # Avoid depending upon Character Ranges.
14643 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14644 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14645 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14646 as_cr_digits='0123456789'
14647 as_cr_alnum=$as_cr_Letters$as_cr_digits
14648
14649 ECHO_C= ECHO_N= ECHO_T=
14650 case `echo -n x` in #(((((
14651 -n*)
14652 case `echo 'xy\c'` in
14653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14654 xy) ECHO_C='\c';;
14655 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14656 ECHO_T=' ';;
14657 esac;;
14658 *)
14659 ECHO_N='-n';;
14660 esac
14661
14662 rm -f conf$$ conf$$.exe conf$$.file
14663 if test -d conf$$.dir; then
14664 rm -f conf$$.dir/conf$$.file
14665 else
14666 rm -f conf$$.dir
14667 mkdir conf$$.dir 2>/dev/null
14668 fi
14669 if (echo >conf$$.file) 2>/dev/null; then
14670 if ln -s conf$$.file conf$$ 2>/dev/null; then
14671 as_ln_s='ln -s'
14672 # ... but there are two gotchas:
14673 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14674 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14675 # In both cases, we have to default to `cp -p'.
14676 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14677 as_ln_s='cp -p'
14678 elif ln conf$$.file conf$$ 2>/dev/null; then
14679 as_ln_s=ln
14680 else
14681 as_ln_s='cp -p'
14682 fi
14683 else
14684 as_ln_s='cp -p'
14685 fi
14686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14687 rmdir conf$$.dir 2>/dev/null
14688
14689
14690 # as_fn_mkdir_p
14691 # -------------
14692 # Create "$as_dir" as a directory, including parents if necessary.
14693 as_fn_mkdir_p ()
14694 {
14695
14696 case $as_dir in #(
14697 -*) as_dir=./$as_dir;;
14698 esac
14699 test -d "$as_dir" || eval $as_mkdir_p || {
14700 as_dirs=
14701 while :; do
14702 case $as_dir in #(
14703 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14704 *) as_qdir=$as_dir;;
14705 esac
14706 as_dirs="'$as_qdir' $as_dirs"
14707 as_dir=`$as_dirname -- "$as_dir" ||
14708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14709 X"$as_dir" : 'X\(//\)[^/]' \| \
14710 X"$as_dir" : 'X\(//\)$' \| \
14711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14712 $as_echo X"$as_dir" |
14713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14714 s//\1/
14715 q
14716 }
14717 /^X\(\/\/\)[^/].*/{
14718 s//\1/
14719 q
14720 }
14721 /^X\(\/\/\)$/{
14722 s//\1/
14723 q
14724 }
14725 /^X\(\/\).*/{
14726 s//\1/
14727 q
14728 }
14729 s/.*/./; q'`
14730 test -d "$as_dir" && break
14731 done
14732 test -z "$as_dirs" || eval "mkdir $as_dirs"
14733 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14734
14735
14736 } # as_fn_mkdir_p
14737 if mkdir -p . 2>/dev/null; then
14738 as_mkdir_p='mkdir -p "$as_dir"'
14739 else
14740 test -d ./-p && rmdir ./-p
14741 as_mkdir_p=false
14742 fi
14743
14744 if test -x / >/dev/null 2>&1; then
14745 as_test_x='test -x'
14746 else
14747 if ls -dL / >/dev/null 2>&1; then
14748 as_ls_L_option=L
14749 else
14750 as_ls_L_option=
14751 fi
14752 as_test_x='
14753 eval sh -c '\''
14754 if test -d "$1"; then
14755 test -d "$1/.";
14756 else
14757 case $1 in #(
14758 -*)set "./$1";;
14759 esac;
14760 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14761 ???[sx]*):;;*)false;;esac;fi
14762 '\'' sh
14763 '
14764 fi
14765 as_executable_p=$as_test_x
14766
14767 # Sed expression to map a string onto a valid CPP name.
14768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14769
14770 # Sed expression to map a string onto a valid variable name.
14771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14772
14773
14774 exec 6>&1
14775 ## ----------------------------------- ##
14776 ## Main body of $CONFIG_STATUS script. ##
14777 ## ----------------------------------- ##
14778 _ASEOF
14779 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14780
14781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14782 # Save the log message, to keep $0 and so on meaningful, and to
14783 # report actual input values of CONFIG_FILES etc. instead of their
14784 # values after options handling.
14785 ac_log="
14786 This file was extended by $as_me, which was
14787 generated by GNU Autoconf 2.64. Invocation command line was
14788
14789 CONFIG_FILES = $CONFIG_FILES
14790 CONFIG_HEADERS = $CONFIG_HEADERS
14791 CONFIG_LINKS = $CONFIG_LINKS
14792 CONFIG_COMMANDS = $CONFIG_COMMANDS
14793 $ $0 $@
14794
14795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14796 "
14797
14798 _ACEOF
14799
14800 case $ac_config_files in *"
14801 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14802 esac
14803
14804
14805
14806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14807 # Files that config.status was made for.
14808 config_files="$ac_config_files"
14809
14810 _ACEOF
14811
14812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14813 ac_cs_usage="\
14814 \`$as_me' instantiates files and other configuration actions
14815 from templates according to the current configuration. Unless the files
14816 and actions are specified as TAGs, all are instantiated by default.
14817
14818 Usage: $0 [OPTION]... [TAG]...
14819
14820 -h, --help print this help, then exit
14821 -V, --version print version number and configuration settings, then exit
14822 -q, --quiet, --silent
14823 do not print progress messages
14824 -d, --debug don't remove temporary files
14825 --recheck update $as_me by reconfiguring in the same conditions
14826 --file=FILE[:TEMPLATE]
14827 instantiate the configuration file FILE
14828
14829 Configuration files:
14830 $config_files
14831
14832 Report bugs to the package provider."
14833
14834 _ACEOF
14835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14836 ac_cs_version="\\
14837 config.status
14838 configured by $0, generated by GNU Autoconf 2.64,
14839 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14840
14841 Copyright (C) 2009 Free Software Foundation, Inc.
14842 This config.status script is free software; the Free Software Foundation
14843 gives unlimited permission to copy, distribute and modify it."
14844
14845 ac_pwd='$ac_pwd'
14846 srcdir='$srcdir'
14847 INSTALL='$INSTALL'
14848 AWK='$AWK'
14849 test -n "\$AWK" || AWK=awk
14850 _ACEOF
14851
14852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14853 # The default lists apply if the user does not specify any file.
14854 ac_need_defaults=:
14855 while test $# != 0
14856 do
14857 case $1 in
14858 --*=*)
14859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14861 ac_shift=:
14862 ;;
14863 *)
14864 ac_option=$1
14865 ac_optarg=$2
14866 ac_shift=shift
14867 ;;
14868 esac
14869
14870 case $ac_option in
14871 # Handling of the options.
14872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14873 ac_cs_recheck=: ;;
14874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14875 $as_echo "$ac_cs_version"; exit ;;
14876 --debug | --debu | --deb | --de | --d | -d )
14877 debug=: ;;
14878 --file | --fil | --fi | --f )
14879 $ac_shift
14880 case $ac_optarg in
14881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14882 esac
14883 as_fn_append CONFIG_FILES " '$ac_optarg'"
14884 ac_need_defaults=false;;
14885 --he | --h | --help | --hel | -h )
14886 $as_echo "$ac_cs_usage"; exit ;;
14887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14889 ac_cs_silent=: ;;
14890
14891 # This is an error.
14892 -*) as_fn_error "unrecognized option: \`$1'
14893 Try \`$0 --help' for more information." ;;
14894
14895 *) as_fn_append ac_config_targets " $1"
14896 ac_need_defaults=false ;;
14897
14898 esac
14899 shift
14900 done
14901
14902 ac_configure_extra_args=
14903
14904 if $ac_cs_silent; then
14905 exec 6>/dev/null
14906 ac_configure_extra_args="$ac_configure_extra_args --silent"
14907 fi
14908
14909 _ACEOF
14910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14911 if \$ac_cs_recheck; then
14912 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14913 shift
14914 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14915 CONFIG_SHELL='$SHELL'
14916 export CONFIG_SHELL
14917 exec "\$@"
14918 fi
14919
14920 _ACEOF
14921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14922 exec 5>>config.log
14923 {
14924 echo
14925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14926 ## Running $as_me. ##
14927 _ASBOX
14928 $as_echo "$ac_log"
14929 } >&5
14930
14931 _ACEOF
14932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14933 #
14934 # INIT-COMMANDS
14935 #
14936 extrasub_build="$extrasub_build"
14937 extrasub_host="$extrasub_host"
14938 extrasub_target="$extrasub_target"
14939
14940 _ACEOF
14941
14942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14943
14944 # Handling of arguments.
14945 for ac_config_target in $ac_config_targets
14946 do
14947 case $ac_config_target in
14948 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14949
14950 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14951 esac
14952 done
14953
14954
14955 # If the user did not use the arguments to specify the items to instantiate,
14956 # then the envvar interface is used. Set only those that are not.
14957 # We use the long form for the default assignment because of an extremely
14958 # bizarre bug on SunOS 4.1.3.
14959 if $ac_need_defaults; then
14960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14961 fi
14962
14963 # Have a temporary directory for convenience. Make it in the build tree
14964 # simply because there is no reason against having it here, and in addition,
14965 # creating and moving files from /tmp can sometimes cause problems.
14966 # Hook for its removal unless debugging.
14967 # Note that there is a small window in which the directory will not be cleaned:
14968 # after its creation but before its name has been assigned to `$tmp'.
14969 $debug ||
14970 {
14971 tmp=
14972 trap 'exit_status=$?
14973 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14974 ' 0
14975 trap 'as_fn_exit 1' 1 2 13 15
14976 }
14977 # Create a (secure) tmp directory for tmp files.
14978
14979 {
14980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14981 test -n "$tmp" && test -d "$tmp"
14982 } ||
14983 {
14984 tmp=./conf$$-$RANDOM
14985 (umask 077 && mkdir "$tmp")
14986 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14987
14988 # Set up the scripts for CONFIG_FILES section.
14989 # No need to generate them if there are no CONFIG_FILES.
14990 # This happens for instance with `./config.status config.h'.
14991 if test -n "$CONFIG_FILES"; then
14992
14993 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14994 ac_cs_awk_getline=:
14995 ac_cs_awk_pipe_init=
14996 ac_cs_awk_read_file='
14997 while ((getline aline < (F[key])) > 0)
14998 print(aline)
14999 close(F[key])'
15000 ac_cs_awk_pipe_fini=
15001 else
15002 ac_cs_awk_getline=false
15003 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15004 ac_cs_awk_read_file='
15005 print "|#_!!_#|"
15006 print "cat " F[key] " &&"
15007 '$ac_cs_awk_pipe_init
15008 # The final `:' finishes the AND list.
15009 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15010 fi
15011 ac_cr=`echo X | tr X '\015'`
15012 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15013 # But we know of no other shell where ac_cr would be empty at this
15014 # point, so we can use a bashism as a fallback.
15015 if test "x$ac_cr" = x; then
15016 eval ac_cr=\$\'\\r\'
15017 fi
15018 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15019 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15020 ac_cs_awk_cr='\r'
15021 else
15022 ac_cs_awk_cr=$ac_cr
15023 fi
15024
15025 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15026 _ACEOF
15027
15028 # Create commands to substitute file output variables.
15029 {
15030 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15031 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15032 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15033 echo "_ACAWK" &&
15034 echo "_ACEOF"
15035 } >conf$$files.sh &&
15036 . ./conf$$files.sh ||
15037 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15038 rm -f conf$$files.sh
15039
15040 {
15041 echo "cat >conf$$subs.awk <<_ACEOF" &&
15042 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15043 echo "_ACEOF"
15044 } >conf$$subs.sh ||
15045 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15046 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15047 ac_delim='%!_!# '
15048 for ac_last_try in false false false false false :; do
15049 . ./conf$$subs.sh ||
15050 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15051
15052 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15053 if test $ac_delim_n = $ac_delim_num; then
15054 break
15055 elif $ac_last_try; then
15056 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15057 else
15058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15059 fi
15060 done
15061 rm -f conf$$subs.sh
15062
15063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15064 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15065 _ACEOF
15066 sed -n '
15067 h
15068 s/^/S["/; s/!.*/"]=/
15069 p
15070 g
15071 s/^[^!]*!//
15072 :repl
15073 t repl
15074 s/'"$ac_delim"'$//
15075 t delim
15076 :nl
15077 h
15078 s/\(.\{148\}\).*/\1/
15079 t more1
15080 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15081 p
15082 n
15083 b repl
15084 :more1
15085 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15086 p
15087 g
15088 s/.\{148\}//
15089 t nl
15090 :delim
15091 h
15092 s/\(.\{148\}\).*/\1/
15093 t more2
15094 s/["\\]/\\&/g; s/^/"/; s/$/"/
15095 p
15096 b
15097 :more2
15098 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15099 p
15100 g
15101 s/.\{148\}//
15102 t delim
15103 ' <conf$$subs.awk | sed '
15104 /^[^""]/{
15105 N
15106 s/\n//
15107 }
15108 ' >>$CONFIG_STATUS || ac_write_fail=1
15109 rm -f conf$$subs.awk
15110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15111 _ACAWK
15112 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15113 for (key in S) S_is_set[key] = 1
15114 FS = "\a"
15115 \$ac_cs_awk_pipe_init
15116 }
15117 {
15118 line = $ 0
15119 nfields = split(line, field, "@")
15120 substed = 0
15121 len = length(field[1])
15122 for (i = 2; i < nfields; i++) {
15123 key = field[i]
15124 keylen = length(key)
15125 if (S_is_set[key]) {
15126 value = S[key]
15127 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15128 len += length(value) + length(field[++i])
15129 substed = 1
15130 } else
15131 len += 1 + keylen
15132 }
15133 if (nfields == 3 && !substed) {
15134 key = field[2]
15135 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15136 \$ac_cs_awk_read_file
15137 next
15138 }
15139 }
15140 print line
15141 }
15142 \$ac_cs_awk_pipe_fini
15143 _ACAWK
15144 _ACEOF
15145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15146 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15147 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15148 else
15149 cat
15150 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15151 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15152 _ACEOF
15153
15154 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15155 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15156 # trailing colons and then remove the whole line if VPATH becomes empty
15157 # (actually we leave an empty line to preserve line numbers).
15158 if test "x$srcdir" = x.; then
15159 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15160 s/:*\$(srcdir):*/:/
15161 s/:*\${srcdir}:*/:/
15162 s/:*@srcdir@:*/:/
15163 s/^\([^=]*=[ ]*\):*/\1/
15164 s/:*$//
15165 s/^[^=]*=[ ]*$//
15166 }'
15167 fi
15168
15169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15170 fi # test -n "$CONFIG_FILES"
15171
15172
15173 eval set X " :F $CONFIG_FILES "
15174 shift
15175 for ac_tag
15176 do
15177 case $ac_tag in
15178 :[FHLC]) ac_mode=$ac_tag; continue;;
15179 esac
15180 case $ac_mode$ac_tag in
15181 :[FHL]*:*);;
15182 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15183 :[FH]-) ac_tag=-:-;;
15184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15185 esac
15186 ac_save_IFS=$IFS
15187 IFS=:
15188 set x $ac_tag
15189 IFS=$ac_save_IFS
15190 shift
15191 ac_file=$1
15192 shift
15193
15194 case $ac_mode in
15195 :L) ac_source=$1;;
15196 :[FH])
15197 ac_file_inputs=
15198 for ac_f
15199 do
15200 case $ac_f in
15201 -) ac_f="$tmp/stdin";;
15202 *) # Look for the file first in the build tree, then in the source tree
15203 # (if the path is not absolute). The absolute path cannot be DOS-style,
15204 # because $ac_f cannot contain `:'.
15205 test -f "$ac_f" ||
15206 case $ac_f in
15207 [\\/$]*) false;;
15208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15209 esac ||
15210 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15211 esac
15212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15213 as_fn_append ac_file_inputs " '$ac_f'"
15214 done
15215
15216 # Let's still pretend it is `configure' which instantiates (i.e., don't
15217 # use $as_me), people would be surprised to read:
15218 # /* config.h. Generated by config.status. */
15219 configure_input='Generated from '`
15220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15221 `' by configure.'
15222 if test x"$ac_file" != x-; then
15223 configure_input="$ac_file. $configure_input"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15225 $as_echo "$as_me: creating $ac_file" >&6;}
15226 fi
15227 # Neutralize special characters interpreted by sed in replacement strings.
15228 case $configure_input in #(
15229 *\&* | *\|* | *\\* )
15230 ac_sed_conf_input=`$as_echo "$configure_input" |
15231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15232 *) ac_sed_conf_input=$configure_input;;
15233 esac
15234
15235 case $ac_tag in
15236 *:-:* | *:-) cat >"$tmp/stdin" \
15237 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15238 esac
15239 ;;
15240 esac
15241
15242 ac_dir=`$as_dirname -- "$ac_file" ||
15243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15244 X"$ac_file" : 'X\(//\)[^/]' \| \
15245 X"$ac_file" : 'X\(//\)$' \| \
15246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15247 $as_echo X"$ac_file" |
15248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15249 s//\1/
15250 q
15251 }
15252 /^X\(\/\/\)[^/].*/{
15253 s//\1/
15254 q
15255 }
15256 /^X\(\/\/\)$/{
15257 s//\1/
15258 q
15259 }
15260 /^X\(\/\).*/{
15261 s//\1/
15262 q
15263 }
15264 s/.*/./; q'`
15265 as_dir="$ac_dir"; as_fn_mkdir_p
15266 ac_builddir=.
15267
15268 case "$ac_dir" in
15269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15270 *)
15271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15272 # A ".." for each directory in $ac_dir_suffix.
15273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15274 case $ac_top_builddir_sub in
15275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15277 esac ;;
15278 esac
15279 ac_abs_top_builddir=$ac_pwd
15280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15281 # for backward compatibility:
15282 ac_top_builddir=$ac_top_build_prefix
15283
15284 case $srcdir in
15285 .) # We are building in place.
15286 ac_srcdir=.
15287 ac_top_srcdir=$ac_top_builddir_sub
15288 ac_abs_top_srcdir=$ac_pwd ;;
15289 [\\/]* | ?:[\\/]* ) # Absolute name.
15290 ac_srcdir=$srcdir$ac_dir_suffix;
15291 ac_top_srcdir=$srcdir
15292 ac_abs_top_srcdir=$srcdir ;;
15293 *) # Relative name.
15294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15295 ac_top_srcdir=$ac_top_build_prefix$srcdir
15296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15297 esac
15298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15299
15300
15301 case $ac_mode in
15302 :F)
15303 #
15304 # CONFIG_FILE
15305 #
15306
15307 case $INSTALL in
15308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15310 esac
15311 _ACEOF
15312
15313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15314 # If the template does not know about datarootdir, expand it.
15315 # FIXME: This hack should be removed a few years after 2.60.
15316 ac_datarootdir_hack=; ac_datarootdir_seen=
15317 ac_sed_dataroot='
15318 /datarootdir/ {
15319 p
15320 q
15321 }
15322 /@datadir@/p
15323 /@docdir@/p
15324 /@infodir@/p
15325 /@localedir@/p
15326 /@mandir@/p'
15327 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15328 *datarootdir*) ac_datarootdir_seen=yes;;
15329 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15331 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15332 _ACEOF
15333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15334 ac_datarootdir_hack='
15335 s&@datadir@&$datadir&g
15336 s&@docdir@&$docdir&g
15337 s&@infodir@&$infodir&g
15338 s&@localedir@&$localedir&g
15339 s&@mandir@&$mandir&g
15340 s&\\\${datarootdir}&$datarootdir&g' ;;
15341 esac
15342 _ACEOF
15343
15344 # Neutralize VPATH when `$srcdir' = `.'.
15345 # Shell code in configure.ac might set extrasub.
15346 # FIXME: do we really want to maintain this feature?
15347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348 ac_sed_extra="$ac_vpsub
15349 $extrasub
15350 _ACEOF
15351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15352 :t
15353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15354 s|@configure_input@|$ac_sed_conf_input|;t t
15355 s&@top_builddir@&$ac_top_builddir_sub&;t t
15356 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15357 s&@srcdir@&$ac_srcdir&;t t
15358 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15359 s&@top_srcdir@&$ac_top_srcdir&;t t
15360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15361 s&@builddir@&$ac_builddir&;t t
15362 s&@abs_builddir@&$ac_abs_builddir&;t t
15363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15364 s&@INSTALL@&$ac_INSTALL&;t t
15365 $ac_datarootdir_hack
15366 "
15367 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15368 if $ac_cs_awk_getline; then
15369 $AWK -f "$tmp/subs.awk"
15370 else
15371 $AWK -f "$tmp/subs.awk" | $SHELL
15372 fi >$tmp/out \
15373 || as_fn_error "could not create $ac_file" "$LINENO" 5
15374
15375 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15376 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15379 which seems to be undefined. Please make sure it is defined." >&5
15380 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15381 which seems to be undefined. Please make sure it is defined." >&2;}
15382
15383 rm -f "$tmp/stdin"
15384 case $ac_file in
15385 -) cat "$tmp/out" && rm -f "$tmp/out";;
15386 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15387 esac \
15388 || as_fn_error "could not create $ac_file" "$LINENO" 5
15389 ;;
15390
15391
15392
15393 esac
15394
15395
15396 case $ac_file$ac_mode in
15397 "Makefile":F) sed "$extrasub_build" Makefile |
15398 sed "$extrasub_host" |
15399 sed "$extrasub_target" > mf$$
15400 mv -f mf$$ Makefile ;;
15401
15402 esac
15403 done # for ac_tag
15404
15405
15406 as_fn_exit 0
15407 _ACEOF
15408 ac_clean_files=$ac_clean_files_save
15409
15410 test $ac_write_fail = 0 ||
15411 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15412
15413
15414 # configure is writing to config.log, and then calls config.status.
15415 # config.status does its own redirection, appending to config.log.
15416 # Unfortunately, on DOS this fails, as config.log is still kept open
15417 # by configure, so config.status won't be able to write to it; its
15418 # output is simply discarded. So we exec the FD to /dev/null,
15419 # effectively closing config.log, so it can be properly (re)opened and
15420 # appended to by config.status. When coming back to configure, we
15421 # need to make the FD available again.
15422 if test "$no_create" != yes; then
15423 ac_cs_success=:
15424 ac_config_status_args=
15425 test "$silent" = yes &&
15426 ac_config_status_args="$ac_config_status_args --quiet"
15427 exec 5>/dev/null
15428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15429 exec 5>>config.log
15430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15431 # would make configure fail if this is the last instruction.
15432 $ac_cs_success || as_fn_exit $?
15433 fi
15434 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15436 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15437 fi
15438
This page took 0.394233 seconds and 5 git commands to generate.