]> gcc.gnu.org Git - gcc.git/blob - configure
spu: Use the FMA rtx code.
[gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 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 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GFORTRAN_FOR_TARGET
582 GCJ_FOR_TARGET
583 GCC_FOR_TARGET
584 CXX_FOR_TARGET
585 CC_FOR_TARGET
586 OBJDUMP
587 OBJCOPY
588 WINDMC
589 WINDRES
590 STRIP
591 RANLIB
592 NM
593 LIPO
594 LD
595 DLLTOOL
596 AS
597 AR
598 RUNTEST
599 EXPECT
600 MAKEINFO
601 FLEX
602 LEX
603 M4
604 BISON
605 YACC
606 config_shell
607 WINDRES_FOR_BUILD
608 WINDMC_FOR_BUILD
609 RANLIB_FOR_BUILD
610 NM_FOR_BUILD
611 LD_FOR_BUILD
612 LDFLAGS_FOR_BUILD
613 GFORTRAN_FOR_BUILD
614 GCJ_FOR_BUILD
615 DLLTOOL_FOR_BUILD
616 CXX_FOR_BUILD
617 CXXFLAGS_FOR_BUILD
618 CFLAGS_FOR_BUILD
619 CC_FOR_BUILD
620 AS_FOR_BUILD
621 AR_FOR_BUILD
622 target_configdirs
623 configdirs
624 build_configdirs
625 INSTALL_GDB_TK
626 GDB_TK
627 CONFIGURE_GDB_TK
628 build_tooldir
629 tooldir
630 GCC_SHLIB_SUBDIR
631 RPATH_ENVVAR
632 target_configargs
633 host_configargs
634 build_configargs
635 BUILD_CONFIG
636 CXXFLAGS_FOR_TARGET
637 CFLAGS_FOR_TARGET
638 DEBUG_PREFIX_CFLAGS_FOR_TARGET
639 SYSROOT_CFLAGS_FOR_TARGET
640 stage1_languages
641 extra_host_libiberty_configure_flags
642 clooginc
643 clooglibs
644 pplinc
645 ppllibs
646 poststage1_ldflags
647 poststage1_libs
648 stage1_libs
649 stage1_ldflags
650 extra_mpc_mpfr_configure_flags
651 extra_mpc_gmp_configure_flags
652 extra_mpfr_configure_flags
653 gmpinc
654 gmplibs
655 do_compare
656 GNATMAKE
657 GNATBIND
658 ac_ct_CXX
659 CXXFLAGS
660 CXX
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
667 CC
668 target_subdir
669 host_subdir
670 build_subdir
671 build_libsubdir
672 AWK
673 SED
674 LN_S
675 LN
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 target_noncanonical
688 host_noncanonical
689 build_noncanonical
690 build_os
691 build_vendor
692 build_cpu
693 build
694 TOPLEVEL_CONFIGURE_ARGUMENTS
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files='serialization_dependencies
734 host_makefile_frag
735 target_makefile_frag
736 alphaieee_frag
737 ospace_frag'
738 ac_user_opts='
739 enable_option_checking
740 with_build_libsubdir
741 enable_gold
742 enable_libada
743 enable_libssp
744 enable_build_with_cxx
745 with_mpc
746 with_mpc_include
747 with_mpc_lib
748 with_mpfr_dir
749 with_mpfr
750 with_mpfr_include
751 with_mpfr_lib
752 with_gmp_dir
753 with_gmp
754 with_gmp_include
755 with_gmp_lib
756 with_host_libstdcxx
757 with_stage1_ldflags
758 with_stage1_libs
759 with_boot_libs
760 with_boot_ldflags
761 with_ppl
762 with_ppl_include
763 with_ppl_lib
764 enable_ppl_version_check
765 with_cloog
766 with_cloog_include
767 with_cloog_lib
768 enable_cloog_backend
769 enable_cloog_version_check
770 enable_lto
771 enable_stage1_languages
772 enable_objc_gc
773 with_build_sysroot
774 with_debug_prefix_map
775 enable_bootstrap
776 with_build_config
777 enable_serial_configure
778 with_build_time_tools
779 enable_maintainer_mode
780 enable_stage1_checking
781 enable_werror
782 '
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CXX
792 CXXFLAGS
793 CCC
794 build_configargs
795 host_configargs
796 target_configargs
797 AR
798 AS
799 DLLTOOL
800 LD
801 LIPO
802 NM
803 RANLIB
804 STRIP
805 WINDRES
806 WINDMC
807 OBJCOPY
808 OBJDUMP
809 CC_FOR_TARGET
810 CXX_FOR_TARGET
811 GCC_FOR_TARGET
812 GCJ_FOR_TARGET
813 GFORTRAN_FOR_TARGET
814 AR_FOR_TARGET
815 AS_FOR_TARGET
816 DLLTOOL_FOR_TARGET
817 LD_FOR_TARGET
818 LIPO_FOR_TARGET
819 NM_FOR_TARGET
820 OBJDUMP_FOR_TARGET
821 RANLIB_FOR_TARGET
822 STRIP_FOR_TARGET
823 WINDRES_FOR_TARGET
824 WINDMC_FOR_TARGET'
825
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
882 ac_prev=
883 continue
884 fi
885
886 case $ac_option in
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *) ac_optarg=yes ;;
889 esac
890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
921
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
944
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
949
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
954
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
970
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
979
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
983
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
990
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
995
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1001
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1008
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1013
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1018
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1025
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1030
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1037
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1042
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1046
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1050
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1054
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1063
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1068
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1075
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1082
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1099
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1104
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1109
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1113
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 ac_prev=sbindir ;;
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 | --sbi=* | --sb=*)
1118 sbindir=$ac_optarg ;;
1119
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1123 | --sha | --sh)
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 | --sha=* | --sh=*)
1129 sharedstatedir=$ac_optarg ;;
1130
1131 -site | --site | --sit)
1132 ac_prev=site ;;
1133 -site=* | --site=* | --sit=*)
1134 site=$ac_optarg ;;
1135
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 ac_prev=srcdir ;;
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139 srcdir=$ac_optarg ;;
1140
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146 sysconfdir=$ac_optarg ;;
1147
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1149 ac_prev=target_alias ;;
1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151 target_alias=$ac_optarg ;;
1152
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154 verbose=yes ;;
1155
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
1158
1159 -with-* | --with-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1174
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=no ;;
1190
1191 --x)
1192 # Obsolete; use --with-x.
1193 with_x=yes ;;
1194
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1201
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1208
1209 -*) as_fn_error "unrecognized option: \`$ac_option'
1210 Try \`$0 --help' for more information."
1211 ;;
1212
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 case $ac_envvar in #(
1217 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1219 esac
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1222
1223 *)
1224 # FIXME: should be removed in autoconf 3.0.
1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1229 ;;
1230
1231 esac
1232 done
1233
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 as_fn_error "missing argument to $ac_option"
1237 fi
1238
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 esac
1245 fi
1246
1247 # Check all directory arguments for consistency.
1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1252 do
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1266 done
1267
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1271 build=$build_alias
1272 host=$host_alias
1273 target=$target_alias
1274
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1280 If a cross compiler is detected then cross compile mode will be used." >&2
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1283 fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1330 fi
1331 else
1332 ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 case $srcdir in
1353 *" "*)
1354 as_fn_error "path to source, $srcdir, contains spaces"
1355 ;;
1356 esac
1357 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1358
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures this package to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 --target=TARGET configure for building compilers for TARGET [HOST]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1451 --enable-libada build libada directory
1452 --enable-libssp build libssp directory
1453 --enable-build-with-cxx build with C++ compiler instead of C compiler
1454 --disable-ppl-version-check disable check for PPL version
1455 --enable-cloog-backend=backend
1456 isl: The cloog.org isl backend
1457 ppl-legacy: The legacy ppl backend - default
1458 ppl: The cloog.org ppl backend
1459 --disable-cloog-version-check
1460 disable check for CLooG version
1461 --enable-lto enable link time optimization support
1462 --enable-stage1-languages[=all] choose additional languages to build during
1463 stage1. Mostly useful for compiler development.
1464 --enable-objc-gc enable use of Boehm's garbage collector with the
1465 GNU Objective-C runtime
1466 --enable-bootstrap enable bootstrapping [yes if native build]
1467 --enable-serial-[{host,target,build}-]configure
1468 force sequential configuration of
1469 sub-packages for the host, target or build
1470 machine, or all sub-packages
1471 --enable-maintainer-mode enable make rules and dependencies not useful
1472 (and sometimes confusing) to the casual installer
1473 --enable-stage1-checking[=all] choose additional checking for stage1
1474 of the compiler
1475 --enable-werror enable -Werror in bootstrap stage2 and later
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-build-libsubdir=DIR Directory where to find libraries for build system
1481 --with-mpc=PATH specify prefix directory for installed MPC package.
1482 Equivalent to --with-mpc-include=PATH/include
1483 plus --with-mpc-lib=PATH/lib
1484 --with-mpc-include=PATH
1485 specify directory for installed MPC include files
1486 --with-mpc-lib=PATH specify directory for the installed MPC library
1487 --with-mpfr-dir=PATH this option has been REMOVED
1488 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1489 Equivalent to --with-mpfr-include=PATH/include
1490 plus --with-mpfr-lib=PATH/lib
1491 --with-mpfr-include=PATH
1492 specify directory for installed MPFR include files
1493 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1494 --with-gmp-dir=PATH this option has been REMOVED
1495 --with-gmp=PATH specify prefix directory for the installed GMP package.
1496 Equivalent to --with-gmp-include=PATH/include
1497 plus --with-gmp-lib=PATH/lib
1498 --with-gmp-include=PATH specify directory for installed GMP include files
1499 --with-gmp-lib=PATH specify directory for the installed GMP library
1500 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1501 when linking with PPL
1502 --with-stage1-ldflags=FLAGS Linker flags for stage1
1503 -with-stage1-libs=LIBS Libraries for stage1
1504 --with-boot-libs=LIBS Libraries for stage2 and later
1505 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1506 --with-ppl=PATH Specify prefix directory for the installed PPL package
1507 Equivalent to --with-ppl-include=PATH/include
1508 plus --with-ppl-lib=PATH/lib
1509 --with-ppl-include=PATH Specify directory for installed PPL include files
1510 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1511 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1512 package. Equivalent to
1513 --with-cloog-include=PATH/include plus
1514 --with-cloog-lib=PATH/lib
1515 --with-cloog-include=PATH
1516 Specify directory for installed CLooG include files
1517 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1518 library
1519 --with-build-sysroot=SYSROOT
1520 use sysroot as the system root during the build
1521 --with-debug-prefix-map='A=B C=D ...'
1522 map A to B, C to D ... in debug information
1523 --with-build-config='NAME NAME2...'
1524 Use config/NAME.mk build configuration
1525 --with-build-time-tools=PATH
1526 use given path to find target tools during the build
1527
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 CXX C++ compiler command
1537 CXXFLAGS C++ compiler flags
1538 build_configargs
1539 additional configure arguments for build directories
1540 host_configargs
1541 additional configure arguments for host directories
1542 target_configargs
1543 additional configure arguments for target directories
1544 AR AR for the host
1545 AS AS for the host
1546 DLLTOOL DLLTOOL for the host
1547 LD LD for the host
1548 LIPO LIPO for the host
1549 NM NM for the host
1550 RANLIB RANLIB for the host
1551 STRIP STRIP for the host
1552 WINDRES WINDRES for the host
1553 WINDMC WINDMC for the host
1554 OBJCOPY OBJCOPY for the host
1555 OBJDUMP OBJDUMP for the host
1556 CC_FOR_TARGET
1557 CC for the target
1558 CXX_FOR_TARGET
1559 CXX for the target
1560 GCC_FOR_TARGET
1561 GCC for the target
1562 GCJ_FOR_TARGET
1563 GCJ for the target
1564 GFORTRAN_FOR_TARGET
1565 GFORTRAN for the target
1566 AR_FOR_TARGET
1567 AR for the target
1568 AS_FOR_TARGET
1569 AS for the target
1570 DLLTOOL_FOR_TARGET
1571 DLLTOOL for the target
1572 LD_FOR_TARGET
1573 LD for the target
1574 LIPO_FOR_TARGET
1575 LIPO for the target
1576 NM_FOR_TARGET
1577 NM for the target
1578 OBJDUMP_FOR_TARGET
1579 OBJDUMP for the target
1580 RANLIB_FOR_TARGET
1581 RANLIB for the target
1582 STRIP_FOR_TARGET
1583 STRIP for the target
1584 WINDRES_FOR_TARGET
1585 WINDRES for the target
1586 WINDMC_FOR_TARGET
1587 WINDMC for the target
1588
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1591
1592 Report bugs to the package provider.
1593 _ACEOF
1594 ac_status=$?
1595 fi
1596
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 configure
1656 generated by GNU Autoconf 2.64
1657
1658 Copyright (C) 2009 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662 exit
1663 fi
1664
1665 ## ------------------------ ##
1666 ## Autoconf initialization. ##
1667 ## ------------------------ ##
1668
1669 # ac_fn_c_try_compile LINENO
1670 # --------------------------
1671 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_compile ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 return $ac_retval
1704
1705 } # ac_fn_c_try_compile
1706
1707 # ac_fn_cxx_try_compile LINENO
1708 # ----------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_cxx_try_compile ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_cxx_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739 fi
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1742
1743 } # ac_fn_cxx_try_compile
1744
1745 # ac_fn_c_try_link LINENO
1746 # -----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_link ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 $as_test_x conftest$ac_exeext
1773 }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780 fi
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 return $ac_retval
1788
1789 } # ac_fn_c_try_link
1790 cat >config.log <<_ACEOF
1791 This file contains any messages produced by compilers while
1792 running configure, to aid debugging if configure makes a mistake.
1793
1794 It was created by $as_me, which was
1795 generated by GNU Autoconf 2.64. Invocation command line was
1796
1797 $ $0 $@
1798
1799 _ACEOF
1800 exec 5>>config.log
1801 {
1802 cat <<_ASUNAME
1803 ## --------- ##
1804 ## Platform. ##
1805 ## --------- ##
1806
1807 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1808 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1809 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1810 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1811 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1812
1813 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1814 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1815
1816 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1817 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1818 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1819 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1820 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1821 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1822 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1823
1824 _ASUNAME
1825
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 $as_echo "PATH: $as_dir"
1832 done
1833 IFS=$as_save_IFS
1834
1835 } >&5
1836
1837 cat >&5 <<_ACEOF
1838
1839
1840 ## ----------- ##
1841 ## Core tests. ##
1842 ## ----------- ##
1843
1844 _ACEOF
1845
1846
1847 # Keep a trace of the command line.
1848 # Strip out --no-create and --no-recursion so they do not pile up.
1849 # Strip out --silent because we don't want to record it for future runs.
1850 # Also quote any args containing shell meta-characters.
1851 # Make two passes to allow for proper duplicate-argument suppression.
1852 ac_configure_args=
1853 ac_configure_args0=
1854 ac_configure_args1=
1855 ac_must_keep_next=false
1856 for ac_pass in 1 2
1857 do
1858 for ac_arg
1859 do
1860 case $ac_arg in
1861 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863 | -silent | --silent | --silen | --sile | --sil)
1864 continue ;;
1865 *\'*)
1866 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1867 esac
1868 case $ac_pass in
1869 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1870 2)
1871 as_fn_append ac_configure_args1 " '$ac_arg'"
1872 if test $ac_must_keep_next = true; then
1873 ac_must_keep_next=false # Got value, back to normal.
1874 else
1875 case $ac_arg in
1876 *=* | --config-cache | -C | -disable-* | --disable-* \
1877 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1878 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1879 | -with-* | --with-* | -without-* | --without-* | --x)
1880 case "$ac_configure_args0 " in
1881 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1882 esac
1883 ;;
1884 -* ) ac_must_keep_next=true ;;
1885 esac
1886 fi
1887 as_fn_append ac_configure_args " '$ac_arg'"
1888 ;;
1889 esac
1890 done
1891 done
1892 { ac_configure_args0=; unset ac_configure_args0;}
1893 { ac_configure_args1=; unset ac_configure_args1;}
1894
1895 # When interrupted or exit'd, cleanup temporary files, and complete
1896 # config.log. We remove comments because anyway the quotes in there
1897 # would cause problems or look ugly.
1898 # WARNING: Use '\'' to represent an apostrophe within the trap.
1899 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1900 trap 'exit_status=$?
1901 # Save into config.log some information that might help in debugging.
1902 {
1903 echo
1904
1905 cat <<\_ASBOX
1906 ## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##
1909 _ASBOX
1910 echo
1911 # The following way of writing the cache mishandles newlines in values,
1912 (
1913 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in #(
1916 *${as_nl}*)
1917 case $ac_var in #(
1918 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1920 esac
1921 case $ac_var in #(
1922 _ | IFS | as_nl) ;; #(
1923 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1924 *) { eval $ac_var=; unset $ac_var;} ;;
1925 esac ;;
1926 esac
1927 done
1928 (set) 2>&1 |
1929 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1930 *${as_nl}ac_space=\ *)
1931 sed -n \
1932 "s/'\''/'\''\\\\'\'''\''/g;
1933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934 ;; #(
1935 *)
1936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1937 ;;
1938 esac |
1939 sort
1940 )
1941 echo
1942
1943 cat <<\_ASBOX
1944 ## ----------------- ##
1945 ## Output variables. ##
1946 ## ----------------- ##
1947 _ASBOX
1948 echo
1949 for ac_var in $ac_subst_vars
1950 do
1951 eval ac_val=\$$ac_var
1952 case $ac_val in
1953 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 esac
1955 $as_echo "$ac_var='\''$ac_val'\''"
1956 done | sort
1957 echo
1958
1959 if test -n "$ac_subst_files"; then
1960 cat <<\_ASBOX
1961 ## ------------------- ##
1962 ## File substitutions. ##
1963 ## ------------------- ##
1964 _ASBOX
1965 echo
1966 for ac_var in $ac_subst_files
1967 do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1975 fi
1976
1977 if test -s confdefs.h; then
1978 cat <<\_ASBOX
1979 ## ----------- ##
1980 ## confdefs.h. ##
1981 ## ----------- ##
1982 _ASBOX
1983 echo
1984 cat confdefs.h
1985 echo
1986 fi
1987 test "$ac_signal" != 0 &&
1988 $as_echo "$as_me: caught signal $ac_signal"
1989 $as_echo "$as_me: exit $exit_status"
1990 } >&5
1991 rm -f core *.core core.conftest.* &&
1992 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1993 exit $exit_status
1994 ' 0
1995 for ac_signal in 1 2 13 15; do
1996 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1997 done
1998 ac_signal=0
1999
2000 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2001 rm -f -r conftest* confdefs.h
2002
2003 $as_echo "/* confdefs.h */" > confdefs.h
2004
2005 # Predefined preprocessor variables.
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_NAME "$PACKAGE_NAME"
2009 _ACEOF
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013 _ACEOF
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_STRING "$PACKAGE_STRING"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_URL "$PACKAGE_URL"
2029 _ACEOF
2030
2031
2032 # Let the site file select an alternate cache file if it wants to.
2033 # Prefer an explicitly selected file to automatically selected ones.
2034 ac_site_file1=NONE
2035 ac_site_file2=NONE
2036 if test -n "$CONFIG_SITE"; then
2037 ac_site_file1=$CONFIG_SITE
2038 elif test "x$prefix" != xNONE; then
2039 ac_site_file1=$prefix/share/config.site
2040 ac_site_file2=$prefix/etc/config.site
2041 else
2042 ac_site_file1=$ac_default_prefix/share/config.site
2043 ac_site_file2=$ac_default_prefix/etc/config.site
2044 fi
2045 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2046 do
2047 test "x$ac_site_file" = xNONE && continue
2048 if test -r "$ac_site_file"; then
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2050 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2051 sed 's/^/| /' "$ac_site_file" >&5
2052 . "$ac_site_file"
2053 fi
2054 done
2055
2056 if test -r "$cache_file"; then
2057 # Some versions of bash will fail to source /dev/null (special
2058 # files actually), so we avoid doing that.
2059 if test -f "$cache_file"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2061 $as_echo "$as_me: loading cache $cache_file" >&6;}
2062 case $cache_file in
2063 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2064 *) . "./$cache_file";;
2065 esac
2066 fi
2067 else
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2069 $as_echo "$as_me: creating cache $cache_file" >&6;}
2070 >$cache_file
2071 fi
2072
2073 # Check that the precious variables saved in the cache have kept the same
2074 # value.
2075 ac_cache_corrupted=false
2076 for ac_var in $ac_precious_vars; do
2077 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2078 eval ac_new_set=\$ac_env_${ac_var}_set
2079 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2080 eval ac_new_val=\$ac_env_${ac_var}_value
2081 case $ac_old_set,$ac_new_set in
2082 set,)
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2084 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2085 ac_cache_corrupted=: ;;
2086 ,set)
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2088 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2089 ac_cache_corrupted=: ;;
2090 ,);;
2091 *)
2092 if test "x$ac_old_val" != "x$ac_new_val"; then
2093 # differences in whitespace do not lead to failure.
2094 ac_old_val_w=`echo x $ac_old_val`
2095 ac_new_val_w=`echo x $ac_new_val`
2096 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2098 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2099 ac_cache_corrupted=:
2100 else
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2102 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2103 eval $ac_var=\$ac_old_val
2104 fi
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2106 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2108 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2109 fi;;
2110 esac
2111 # Pass precious variables to config.status.
2112 if test "$ac_new_set" = set; then
2113 case $ac_new_val in
2114 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2115 *) ac_arg=$ac_var=$ac_new_val ;;
2116 esac
2117 case " $ac_configure_args " in
2118 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2119 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2120 esac
2121 fi
2122 done
2123 if $ac_cache_corrupted; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2127 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2128 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2129 fi
2130 ## -------------------- ##
2131 ## Main body of script. ##
2132 ## -------------------- ##
2133
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148 progname=$0
2149 # if PWD already has a value, it is probably wrong.
2150 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2151
2152 # Export original configure arguments for use by sub-configures.
2153 # Quote arguments with shell meta charatcers.
2154 TOPLEVEL_CONFIGURE_ARGUMENTS=
2155 set -- "$progname" "$@"
2156 for ac_arg
2157 do
2158 case "$ac_arg" in
2159 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2160 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2161 # if the argument is of the form -foo=baz, quote the baz part only
2162 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2163 *) ;;
2164 esac
2165 # Add the quoted argument to the list.
2166 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2167 done
2168 if test "$silent" = yes; then
2169 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2170 fi
2171 # Remove the initial space we just introduced and, as these will be
2172 # expanded by make, quote '$'.
2173 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2174
2175
2176 # Find the build, host, and target systems.
2177 ac_aux_dir=
2178 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2179 for ac_t in install-sh install.sh shtool; do
2180 if test -f "$ac_dir/$ac_t"; then
2181 ac_aux_dir=$ac_dir
2182 ac_install_sh="$ac_aux_dir/$ac_t -c"
2183 break 2
2184 fi
2185 done
2186 done
2187 if test -z "$ac_aux_dir"; then
2188 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2189 fi
2190
2191 # These three variables are undocumented and unsupported,
2192 # and are intended to be withdrawn in a future Autoconf release.
2193 # They can cause serious problems if a builder's source tree is in a directory
2194 # whose full name contains unusual characters.
2195 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2196 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2197 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2198
2199
2200 # Make sure we can run config.sub.
2201 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2202 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2203
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2205 $as_echo_n "checking build system type... " >&6; }
2206 if test "${ac_cv_build+set}" = set; then :
2207 $as_echo_n "(cached) " >&6
2208 else
2209 ac_build_alias=$build_alias
2210 test "x$ac_build_alias" = x &&
2211 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2212 test "x$ac_build_alias" = x &&
2213 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2214 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2215 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2216
2217 fi
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2219 $as_echo "$ac_cv_build" >&6; }
2220 case $ac_cv_build in
2221 *-*-*) ;;
2222 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2223 esac
2224 build=$ac_cv_build
2225 ac_save_IFS=$IFS; IFS='-'
2226 set x $ac_cv_build
2227 shift
2228 build_cpu=$1
2229 build_vendor=$2
2230 shift; shift
2231 # Remember, the first character of IFS is used to create $*,
2232 # except with old shells:
2233 build_os=$*
2234 IFS=$ac_save_IFS
2235 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2236
2237
2238 case ${build_alias} in
2239 "") build_noncanonical=${build} ;;
2240 *) build_noncanonical=${build_alias} ;;
2241 esac
2242
2243
2244
2245 case ${host_alias} in
2246 "") host_noncanonical=${build_noncanonical} ;;
2247 *) host_noncanonical=${host_alias} ;;
2248 esac
2249
2250
2251
2252 case ${target_alias} in
2253 "") target_noncanonical=${host_noncanonical} ;;
2254 *) target_noncanonical=${target_alias} ;;
2255 esac
2256
2257
2258
2259
2260 test "$host_noncanonical" = "$target_noncanonical" &&
2261 test "$program_prefix$program_suffix$program_transform_name" = \
2262 NONENONEs,x,x, &&
2263 program_transform_name=s,y,y,
2264
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2266 $as_echo_n "checking host system type... " >&6; }
2267 if test "${ac_cv_host+set}" = set; then :
2268 $as_echo_n "(cached) " >&6
2269 else
2270 if test "x$host_alias" = x; then
2271 ac_cv_host=$ac_cv_build
2272 else
2273 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2274 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2275 fi
2276
2277 fi
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2279 $as_echo "$ac_cv_host" >&6; }
2280 case $ac_cv_host in
2281 *-*-*) ;;
2282 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2283 esac
2284 host=$ac_cv_host
2285 ac_save_IFS=$IFS; IFS='-'
2286 set x $ac_cv_host
2287 shift
2288 host_cpu=$1
2289 host_vendor=$2
2290 shift; shift
2291 # Remember, the first character of IFS is used to create $*,
2292 # except with old shells:
2293 host_os=$*
2294 IFS=$ac_save_IFS
2295 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2296
2297
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2299 $as_echo_n "checking target system type... " >&6; }
2300 if test "${ac_cv_target+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test "x$target_alias" = x; then
2304 ac_cv_target=$ac_cv_host
2305 else
2306 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2308 fi
2309
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2312 $as_echo "$ac_cv_target" >&6; }
2313 case $ac_cv_target in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2316 esac
2317 target=$ac_cv_target
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_target
2320 shift
2321 target_cpu=$1
2322 target_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 target_os=$*
2327 IFS=$ac_save_IFS
2328 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2329
2330
2331 # The aliases save the names the user supplied, while $host etc.
2332 # will get canonicalized.
2333 test -n "$target_alias" &&
2334 test "$program_prefix$program_suffix$program_transform_name" = \
2335 NONENONEs,x,x, &&
2336 program_prefix=${target_alias}-
2337
2338 test "$program_prefix" != NONE &&
2339 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2340 # Use a double $ so make ignores it.
2341 test "$program_suffix" != NONE &&
2342 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2343 # Double any \ or $.
2344 # By default was `s,x,x', remove it if useless.
2345 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2346 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2347
2348
2349
2350 # Get 'install' or 'install-sh' and its variants.
2351 # Find a good install program. We prefer a C program (faster),
2352 # so one script is as good as another. But avoid the broken or
2353 # incompatible versions:
2354 # SysV /etc/install, /usr/sbin/install
2355 # SunOS /usr/etc/install
2356 # IRIX /sbin/install
2357 # AIX /bin/install
2358 # AmigaOS /C/install, which installs bootblocks on floppy discs
2359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2362 # OS/2's system install, which has a completely different semantic
2363 # ./install, which can be erroneously created by make from ./install.sh.
2364 # Reject install programs that cannot install multiple files.
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2366 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2367 if test -z "$INSTALL"; then
2368 if test "${ac_cv_path_install+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 # Account for people who put trailing slashes in PATH elements.
2377 case $as_dir/ in #((
2378 ./ | .// | /[cC]/* | \
2379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2380 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2381 /usr/ucb/* ) ;;
2382 *)
2383 # OSF1 and SCO ODT 3.0 have their own names for install.
2384 # Don't use installbsd from OSF since it installs stuff as root
2385 # by default.
2386 for ac_prog in ginstall scoinst install; do
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2389 if test $ac_prog = install &&
2390 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391 # AIX install. It has an incompatible calling convention.
2392 :
2393 elif test $ac_prog = install &&
2394 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395 # program-specific install script used by HP pwplus--don't use.
2396 :
2397 else
2398 rm -rf conftest.one conftest.two conftest.dir
2399 echo one > conftest.one
2400 echo two > conftest.two
2401 mkdir conftest.dir
2402 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2403 test -s conftest.one && test -s conftest.two &&
2404 test -s conftest.dir/conftest.one &&
2405 test -s conftest.dir/conftest.two
2406 then
2407 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2408 break 3
2409 fi
2410 fi
2411 fi
2412 done
2413 done
2414 ;;
2415 esac
2416
2417 done
2418 IFS=$as_save_IFS
2419
2420 rm -rf conftest.one conftest.two conftest.dir
2421
2422 fi
2423 if test "${ac_cv_path_install+set}" = set; then
2424 INSTALL=$ac_cv_path_install
2425 else
2426 # As a last resort, use the slow shell script. Don't cache a
2427 # value for INSTALL within a source directory, because that will
2428 # break other packages using the cache if that directory is
2429 # removed, or if the value is a relative name.
2430 INSTALL=$ac_install_sh
2431 fi
2432 fi
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2434 $as_echo "$INSTALL" >&6; }
2435
2436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2437 # It thinks the first close brace ends the variable substitution.
2438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2439
2440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2441
2442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2443
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2445 $as_echo_n "checking whether ln works... " >&6; }
2446 if test "${acx_cv_prog_LN+set}" = set; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 rm -f conftestdata_t
2450 echo >conftestdata_f
2451 if ln conftestdata_f conftestdata_t 2>/dev/null
2452 then
2453 acx_cv_prog_LN=ln
2454 else
2455 acx_cv_prog_LN=no
2456 fi
2457 rm -f conftestdata_f conftestdata_t
2458
2459 fi
2460 if test $acx_cv_prog_LN = no; then
2461 LN="cp"
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2463 $as_echo "no, using $LN" >&6; }
2464 else
2465 LN="$acx_cv_prog_LN"
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467 $as_echo "yes" >&6; }
2468 fi
2469
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2471 $as_echo_n "checking whether ln -s works... " >&6; }
2472 LN_S=$as_ln_s
2473 if test "$LN_S" = "ln -s"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475 $as_echo "yes" >&6; }
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2478 $as_echo "no, using $LN_S" >&6; }
2479 fi
2480
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2482 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2483 if test "${ac_cv_path_SED+set}" = set; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2487 for ac_i in 1 2 3 4 5 6 7; do
2488 ac_script="$ac_script$as_nl$ac_script"
2489 done
2490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2491 { ac_script=; unset ac_script;}
2492 if test -z "$SED"; then
2493 ac_path_SED_found=false
2494 # Loop through the user's path and test for each of PROGNAME-LIST
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_prog in sed gsed; do
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2503 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2504 # Check for GNU ac_path_SED and select it if it is found.
2505 # Check for GNU $ac_path_SED
2506 case `"$ac_path_SED" --version 2>&1` in
2507 *GNU*)
2508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2509 *)
2510 ac_count=0
2511 $as_echo_n 0123456789 >"conftest.in"
2512 while :
2513 do
2514 cat "conftest.in" "conftest.in" >"conftest.tmp"
2515 mv "conftest.tmp" "conftest.in"
2516 cp "conftest.in" "conftest.nl"
2517 $as_echo '' >> "conftest.nl"
2518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2520 as_fn_arith $ac_count + 1 && ac_count=$as_val
2521 if test $ac_count -gt ${ac_path_SED_max-0}; then
2522 # Best one so far, save it but keep looking for a better one
2523 ac_cv_path_SED="$ac_path_SED"
2524 ac_path_SED_max=$ac_count
2525 fi
2526 # 10*(2^10) chars as input seems more than enough
2527 test $ac_count -gt 10 && break
2528 done
2529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2530 esac
2531
2532 $ac_path_SED_found && break 3
2533 done
2534 done
2535 done
2536 IFS=$as_save_IFS
2537 if test -z "$ac_cv_path_SED"; then
2538 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2539 fi
2540 else
2541 ac_cv_path_SED=$SED
2542 fi
2543
2544 fi
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2546 $as_echo "$ac_cv_path_SED" >&6; }
2547 SED="$ac_cv_path_SED"
2548 rm -f conftest.sed
2549
2550 for ac_prog in gawk mawk nawk awk
2551 do
2552 # Extract the first word of "$ac_prog", so it can be a program name with args.
2553 set dummy $ac_prog; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if test "${ac_cv_prog_AWK+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$AWK"; then
2560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_AWK="$ac_prog"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 AWK=$ac_cv_prog_AWK
2580 if test -n "$AWK"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2582 $as_echo "$AWK" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 test -n "$AWK" && break
2590 done
2591
2592
2593 ### we might need to use some other shell than /bin/sh for running subshells
2594 ### If we are on Windows, search for the shell. This will permit people
2595 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2596 ### without also having to set CONFIG_SHELL. This code will work when
2597 ### using bash, which sets OSTYPE.
2598 case "${OSTYPE}" in
2599 *win32*)
2600 if test x${CONFIG_SHELL} = x ; then
2601 if test ! -f /bin/sh ; then
2602 if test x${SHELL} != x && test -f ${SHELL} ; then
2603 CONFIG_SHELL=${SHELL}
2604 export CONFIG_SHELL
2605 else
2606 for prog in sh sh.exe bash bash.exe; do
2607 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2608 for dir in $PATH; do
2609 test -z "$dir" && dir=.
2610 if test -f $dir/$prog; then
2611 CONFIG_SHELL=$dir/$prog
2612 export CONFIG_SHELL
2613 break
2614 fi
2615 done
2616 IFS="$save_ifs"
2617 test -n "${CONFIG_SHELL}" && break
2618 done
2619 fi
2620 fi
2621 fi
2622 ;;
2623 esac
2624
2625 config_shell=${CONFIG_SHELL-/bin/sh}
2626
2627 moveifchange=${srcdir}/move-if-change
2628
2629 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2630
2631 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2632 # a relative path.
2633 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2634 INSTALL="${srcpwd}/install-sh -c"
2635 fi
2636
2637 # Set srcdir to "." if that's what it is.
2638 # This is important for multilib support.
2639 pwd=`${PWDCMD-pwd}`
2640 if test "${pwd}" = "${srcpwd}" ; then
2641 srcdir=.
2642 fi
2643
2644 topsrcdir=$srcpwd
2645
2646 extra_host_args=
2647
2648 ### To add a new directory to the tree, first choose whether it is a target
2649 ### or a host dependent tool. Then put it into the appropriate list
2650 ### (library or tools, host or target), doing a dependency sort.
2651
2652 # Subdirs will be configured in the order listed in build_configdirs,
2653 # configdirs, or target_configdirs; see the serialization section below.
2654
2655 # Dependency sorting is only needed when *configuration* must be done in
2656 # a particular order. In all cases a dependency should be specified in
2657 # the Makefile, whether or not it's implicitly specified here.
2658
2659 # Double entries in build_configdirs, configdirs, or target_configdirs may
2660 # cause circular dependencies and break everything horribly.
2661
2662 # these library is used by various programs built for the build
2663 # environment
2664 #
2665 build_libs="build-libiberty"
2666
2667 # these tools are built for the build environment
2668 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2669
2670 # these libraries are used by various programs built for the host environment
2671 #
2672 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2673
2674 # these tools are built for the host environment
2675 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2676 # know that we are building the simulator.
2677 # binutils, gas and ld appear in that order because it makes sense to run
2678 # "make check" in that particular order.
2679 # If --enable-gold is used, "gold" may replace "ld".
2680 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2681
2682 # libgcj represents the runtime libraries only used by gcj.
2683 libgcj="target-libffi \
2684 target-zlib \
2685 target-qthreads \
2686 target-libjava"
2687
2688 # these libraries are built for the target environment, and are built after
2689 # the host libraries and the host tools (which may be a cross compiler)
2690 #
2691 target_libraries="target-libgcc \
2692 target-libiberty \
2693 target-libgloss \
2694 target-newlib \
2695 target-libgomp \
2696 target-libstdc++-v3 \
2697 target-libmudflap \
2698 target-libssp \
2699 target-libquadmath \
2700 target-libgfortran \
2701 target-boehm-gc \
2702 ${libgcj} \
2703 target-libobjc \
2704 target-libada"
2705
2706 # these tools are built using the target libraries, and are intended to
2707 # run only in the target environment
2708 #
2709 # note: any program that *uses* libraries that are in the "target_libraries"
2710 # list belongs in this list. those programs are also very likely
2711 # candidates for the "native_only" list which follows
2712 #
2713 target_tools="target-examples target-groff target-gperf target-rda"
2714
2715 ################################################################################
2716
2717 ## All tools belong in one of the four categories, and are assigned above
2718 ## We assign ${configdirs} this way to remove all embedded newlines. This
2719 ## is important because configure will choke if they ever get through.
2720 ## ${configdirs} is directories we build using the host tools.
2721 ## ${target_configdirs} is directories we build using the target tools.
2722 configdirs=`echo ${host_libs} ${host_tools}`
2723 target_configdirs=`echo ${target_libraries} ${target_tools}`
2724 build_configdirs=`echo ${build_libs} ${build_tools}`
2725
2726
2727
2728 ################################################################################
2729
2730 srcname="gnu development package"
2731
2732 # This gets set non-empty for some net releases of packages.
2733 appdirs=""
2734
2735 # Define is_cross_compiler to save on calls to 'test'.
2736 is_cross_compiler=
2737 if test x"${host}" = x"${target}" ; then
2738 is_cross_compiler=no
2739 else
2740 is_cross_compiler=yes
2741 fi
2742
2743 # Find the build and target subdir names.
2744
2745 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2746 # have matching libraries, they should use host libraries: Makefile.tpl
2747 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2748 # However, they still use the build modules, because the corresponding
2749 # host modules (e.g. bison) are only built for the host when bootstrap
2750 # finishes. So:
2751 # - build_subdir is where we find build modules, and never changes.
2752 # - build_libsubdir is where we find build libraries, and can be overridden.
2753
2754 # Prefix 'build-' so this never conflicts with target_subdir.
2755 build_subdir="build-${build_noncanonical}"
2756
2757 # Check whether --with-build-libsubdir was given.
2758 if test "${with_build_libsubdir+set}" = set; then :
2759 withval=$with_build_libsubdir; build_libsubdir="$withval"
2760 else
2761 build_libsubdir="$build_subdir"
2762 fi
2763
2764 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2765 if ( test $srcdir = . && test -d gcc ) \
2766 || test -d $srcdir/../host-${host_noncanonical}; then
2767 host_subdir="host-${host_noncanonical}"
2768 else
2769 host_subdir=.
2770 fi
2771 # No prefix.
2772 target_subdir=${target_noncanonical}
2773
2774 # Be sure to cover against remnants of an in-tree build.
2775 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2776 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2777 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2778 fi
2779
2780 # Skipdirs are removed silently.
2781 skipdirs=
2782 # Noconfigdirs are removed loudly.
2783 noconfigdirs=""
2784
2785 use_gnu_ld=
2786 # Make sure we don't let GNU ld be added if we didn't want it.
2787 if test x$with_gnu_ld = xno ; then
2788 use_gnu_ld=no
2789 noconfigdirs="$noconfigdirs ld gold"
2790 fi
2791
2792 use_gnu_as=
2793 # Make sure we don't let GNU as be added if we didn't want it.
2794 if test x$with_gnu_as = xno ; then
2795 use_gnu_as=no
2796 noconfigdirs="$noconfigdirs gas"
2797 fi
2798
2799 use_included_zlib=
2800 # Make sure we don't let ZLIB be added if we didn't want it.
2801 if test x$with_system_zlib = xyes ; then
2802 use_included_zlib=no
2803 noconfigdirs="$noconfigdirs zlib"
2804 fi
2805
2806 # some tools are so dependent upon X11 that if we're not building with X,
2807 # it's not even worth trying to configure, much less build, that tool.
2808
2809 case ${with_x} in
2810 yes | "") ;; # the default value for this tree is that X11 is available
2811 no)
2812 skipdirs="${skipdirs} tk itcl libgui"
2813 # We won't be able to build gdbtk without X.
2814 enable_gdbtk=no
2815 ;;
2816 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2817 esac
2818
2819 # Some tools are only suitable for building in a "native" situation.
2820 # Remove these if host!=target.
2821 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2822
2823 # Similarly, some are only suitable for cross toolchains.
2824 # Remove these if host=target.
2825 cross_only="target-libgloss target-newlib target-opcodes"
2826
2827 case $is_cross_compiler in
2828 no) skipdirs="${skipdirs} ${cross_only}" ;;
2829 yes) skipdirs="${skipdirs} ${native_only}" ;;
2830 esac
2831
2832 # If both --with-headers and --with-libs are specified, default to
2833 # --without-newlib.
2834 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2835 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2836 if test x"${with_newlib}" = x ; then
2837 with_newlib=no
2838 fi
2839 fi
2840
2841 # Recognize --with-newlib/--without-newlib.
2842 case ${with_newlib} in
2843 no) skipdirs="${skipdirs} target-newlib" ;;
2844 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2845 esac
2846
2847 # Handle --enable-gold.
2848 # --enable-gold Build only gold
2849 # --disable-gold [default] Build only ld
2850 # --enable-gold=both Build both gold and ld, ld is default
2851 # --enable-gold=both/ld Same
2852 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
2853
2854 # Check whether --enable-gold was given.
2855 if test "${enable_gold+set}" = set; then :
2856 enableval=$enable_gold; ENABLE_GOLD=$enableval
2857 else
2858 ENABLE_GOLD=no
2859 fi
2860
2861 case "${ENABLE_GOLD}" in
2862 yes|both|both/gold|both/ld)
2863 # Check for ELF target.
2864 is_elf=no
2865 case "${target}" in
2866 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2867 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2868 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2869 case "${target}" in
2870 *-*-linux*aout* | *-*-linux*oldld*)
2871 ;;
2872 *)
2873 is_elf=yes
2874 ;;
2875 esac
2876 esac
2877
2878 if test "$is_elf" = "yes"; then
2879 # Check for target supported by gold.
2880 case "${target}" in
2881 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2882 case "${ENABLE_GOLD}" in
2883 both*)
2884 configdirs="$configdirs gold"
2885 ;;
2886 *)
2887 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2888 ;;
2889 esac
2890 ENABLE_GOLD=yes
2891 ;;
2892 esac
2893 fi
2894 ;;
2895 no)
2896 ;;
2897 *)
2898 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2899 ;;
2900 esac
2901
2902 # Configure extra directories which are host specific
2903
2904 case "${host}" in
2905 *-cygwin*)
2906 configdirs="$configdirs libtermcap" ;;
2907 esac
2908
2909 # A target can indicate whether a language isn't supported for some reason.
2910 # Only spaces may be used in this macro; not newlines or tabs.
2911 unsupported_languages=
2912
2913 # Remove more programs from consideration, based on the host or
2914 # target this usually means that a port of the program doesn't
2915 # exist yet.
2916
2917 case "${host}" in
2918 hppa*64*-*-*)
2919 noconfigdirs="$noconfigdirs byacc"
2920 ;;
2921 i[3456789]86-*-vsta)
2922 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2923 ;;
2924 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2925 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2926 ;;
2927 x86_64-*-mingw*)
2928 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2929 ;;
2930 i[3456789]86-*-mingw32*)
2931 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2932 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2933 ;;
2934 i[3456789]86-*-beos*)
2935 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2936 ;;
2937 *-*-cygwin*)
2938 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2939 ;;
2940 *-*-netbsd*)
2941 noconfigdirs="$noconfigdirs rcs"
2942 ;;
2943 ppc*-*-pe)
2944 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2945 ;;
2946 powerpc-*-beos*)
2947 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2948 ;;
2949 esac
2950
2951
2952 # Check whether --enable-libada was given.
2953 if test "${enable_libada+set}" = set; then :
2954 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2955 else
2956 ENABLE_LIBADA=yes
2957 fi
2958
2959 if test "${ENABLE_LIBADA}" != "yes" ; then
2960 noconfigdirs="$noconfigdirs gnattools"
2961 fi
2962
2963 # Check whether --enable-libssp was given.
2964 if test "${enable_libssp+set}" = set; then :
2965 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2966 else
2967 ENABLE_LIBSSP=yes
2968 fi
2969
2970
2971 # Save it here so that, even in case of --enable-libgcj, if the Java
2972 # front-end isn't enabled, we still get libgcj disabled.
2973 libgcj_saved=$libgcj
2974 case $enable_libgcj in
2975 yes)
2976 # If we reset it here, it won't get added to noconfigdirs in the
2977 # target-specific build rules, so it will be forcibly enabled
2978 # (unless the Java language itself isn't enabled).
2979 libgcj=
2980 ;;
2981 no)
2982 # Make sure we get it printed in the list of not supported target libs.
2983 noconfigdirs="$noconfigdirs ${libgcj}"
2984 ;;
2985 esac
2986
2987
2988 # Disable libmudflap on some systems.
2989 if test x$enable_libmudflap = x ; then
2990 case "${target}" in
2991 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2992 # Enable libmudflap by default in GNU and friends.
2993 ;;
2994 *-*-freebsd*)
2995 # Enable libmudflap by default in FreeBSD.
2996 ;;
2997 *)
2998 # Disable it by default everywhere else.
2999 noconfigdirs="$noconfigdirs target-libmudflap"
3000 ;;
3001 esac
3002 fi
3003
3004 # Disable libgomp on non POSIX hosted systems.
3005 if test x$enable_libgomp = x ; then
3006 # Enable libgomp by default on hosted POSIX systems.
3007 case "${target}" in
3008 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3009 ;;
3010 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3011 ;;
3012 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3013 ;;
3014 *-*-darwin* | *-*-aix*)
3015 ;;
3016 *)
3017 noconfigdirs="$noconfigdirs target-libgomp"
3018 ;;
3019 esac
3020 fi
3021
3022 # Default libgloss CPU subdirectory.
3023 libgloss_dir="$target_cpu"
3024
3025 case "${target}" in
3026 *-*-chorusos)
3027 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3028 ;;
3029 powerpc-*-darwin*)
3030 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3031 noconfigdirs="$noconfigdirs sim target-rda"
3032 ;;
3033 i[3456789]86-*-darwin*)
3034 noconfigdirs="$noconfigdirs ld gprof"
3035 noconfigdirs="$noconfigdirs sim target-rda"
3036 ;;
3037 x86_64-*-darwin[912]*)
3038 noconfigdirs="$noconfigdirs ld gas gprof"
3039 noconfigdirs="$noconfigdirs sim target-rda"
3040 ;;
3041 *-*-darwin*)
3042 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3043 noconfigdirs="$noconfigdirs sim target-rda"
3044 noconfigdirs="$noconfigdirs ${libgcj}"
3045 ;;
3046 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3047 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3048 ;;
3049 *-*-freebsd*)
3050 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3051 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3052 && test -f /usr/local/include/gmp.h; then
3053 with_gmp=/usr/local
3054 fi
3055
3056 # Skip some stuff that's unsupported on some FreeBSD configurations.
3057 case "${target}" in
3058 i*86-*-*) ;;
3059 alpha*-*-*) ;;
3060 x86_64-*-*) ;;
3061 *)
3062 noconfigdirs="$noconfigdirs ${libgcj}"
3063 ;;
3064 esac
3065 ;;
3066 *-*-kaos*)
3067 # Remove unsupported stuff on all kaOS configurations.
3068 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3069 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3070 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3071 noconfigdirs="$noconfigdirs target-libgloss"
3072 ;;
3073 *-*-netbsd*)
3074 # Skip some stuff on all NetBSD configurations.
3075 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3076
3077 # Skip some stuff that's unsupported on some NetBSD configurations.
3078 case "${target}" in
3079 i*86-*-netbsdelf*) ;;
3080 arm*-*-netbsdelf*) ;;
3081 *)
3082 noconfigdirs="$noconfigdirs ${libgcj}"
3083 ;;
3084 esac
3085 ;;
3086 *-*-netware*)
3087 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3088 ;;
3089 *-*-rtems*)
3090 skipdirs="${skipdirs} target-libiberty"
3091 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3092 ;;
3093 # The tpf target doesn't support gdb yet.
3094 *-*-tpf*)
3095 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3096 ;;
3097 *-*-uclinux*)
3098 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3099 ;;
3100 *-*-vxworks*)
3101 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3102 ;;
3103 alpha*-dec-osf*)
3104 # ld works, but does not support shared libraries.
3105 # newlib is not 64 bit ready. I'm not sure about fileutils.
3106 # gas doesn't generate exception information.
3107 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3108 ;;
3109 alpha*-*-*vms*)
3110 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3111 ;;
3112 alpha*-*-linux*)
3113 # newlib is not 64 bit ready
3114 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3115 ;;
3116 alpha*-*-*)
3117 # newlib is not 64 bit ready
3118 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3119 ;;
3120 am33_2.0-*-linux*)
3121 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3122 ;;
3123 sh-*-linux*)
3124 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3125 ;;
3126 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3127 noconfigdirs="$noconfigdirs ${libgcj}"
3128 noconfigdirs="$noconfigdirs target-examples"
3129 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3130 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3131 noconfigdirs="$noconfigdirs expect dejagnu"
3132 # the C++ libraries don't build on top of CE's C libraries
3133 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3134 noconfigdirs="$noconfigdirs target-newlib"
3135 case "${host}" in
3136 *-*-cygwin*) ;; # keep gdb and readline
3137 *) noconfigdirs="$noconfigdirs gdb readline"
3138 ;;
3139 esac
3140 libgloss_dir=wince
3141 ;;
3142 arc-*-*)
3143 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3144 ;;
3145 arm-semi-aof )
3146 ;;
3147 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3148 noconfigdirs="$noconfigdirs ${libgcj}"
3149 libgloss_dir=arm
3150 ;;
3151 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3152 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3153 libgloss_dir=arm
3154 ;;
3155 arm*-*-linux-gnueabi)
3156 noconfigdirs="$noconfigdirs target-qthreads"
3157 case ${with_newlib} in
3158 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3159 esac
3160 libgloss_dir=arm
3161 ;;
3162 arm*-*-symbianelf*)
3163 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3164 libgloss_dir=arm
3165 ;;
3166 arm-*-pe*)
3167 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3168 ;;
3169 thumb-*-coff)
3170 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3171 ;;
3172 thumb-*-elf)
3173 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3174 ;;
3175 thumb-*-pe)
3176 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3177 ;;
3178 arm-*-riscix*)
3179 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3180 ;;
3181 avr-*-*)
3182 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3183 ;;
3184 bfin-*-*)
3185 unsupported_languages="$unsupported_languages java"
3186 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3187 if test x${is_cross_compiler} != xno ; then
3188 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3189 fi
3190 ;;
3191 c4x-*-* | tic4x-*-*)
3192 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3193 ;;
3194 c54x*-*-* | tic54x-*-*)
3195 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3196 ;;
3197 cr16-*-*)
3198 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3199 ;;
3200 cris-*-* | crisv32-*-*)
3201 unsupported_languages="$unsupported_languages java"
3202 case "${target}" in
3203 *-*-aout)
3204 unsupported_languages="$unsupported_languages fortran"
3205 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3206 *-*-elf)
3207 noconfigdirs="$noconfigdirs target-boehm-gc";;
3208 *-*-linux*)
3209 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3210 *)
3211 unsupported_languages="$unsupported_languages fortran"
3212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3213 esac
3214 libgloss_dir=cris
3215 ;;
3216 crx-*-*)
3217 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3218 ;;
3219 d10v-*-*)
3220 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3221 ;;
3222 d30v-*-*)
3223 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3224 ;;
3225 ep9312-*-elf | ep9312-*-coff)
3226 libgloss_dir=arm
3227 ;;
3228 fr30-*-elf*)
3229 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3230 ;;
3231 frv-*-*)
3232 noconfigdirs="$noconfigdirs ${libgcj}"
3233 ;;
3234 moxie-*-*)
3235 noconfigdirs="$noconfigdirs ${libgcj}"
3236 noconfigdirs="$noconfigdirs gprof"
3237 ;;
3238 h8300*-*-*)
3239 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3240 ;;
3241 h8500-*-*)
3242 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3243 ;;
3244 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3245 ;;
3246 hppa*64*-*-linux* | parisc*64*-*-linux*)
3247 # In this case, it's because the hppa64-linux target is for
3248 # the kernel only at this point and has no libc, and thus no
3249 # headers, crt*.o, etc., all of which are needed by these.
3250 noconfigdirs="$noconfigdirs target-zlib"
3251 ;;
3252 parisc*-*-linux* | hppa*-*-linux*)
3253 ;;
3254 hppa*-*-*elf* | \
3255 hppa*-*-lites* | \
3256 hppa*-*-openbsd* | \
3257 hppa*64*-*-*)
3258 noconfigdirs="$noconfigdirs ${libgcj}"
3259 ;;
3260 hppa*-hp-hpux11*)
3261 noconfigdirs="$noconfigdirs ld shellutils"
3262 ;;
3263 hppa*-*-pro*)
3264 libgloss_dir=pa
3265 ;;
3266 hppa*-*-*)
3267 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3268 # build on HP-UX 10.20.
3269 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3270 ;;
3271 i960-*-*)
3272 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3273 ;;
3274 ia64*-*-elf*)
3275 # No gdb support yet.
3276 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3277 ;;
3278 ia64*-**-hpux*)
3279 # No gdb or ld support yet.
3280 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3281 ;;
3282 ia64*-*-*vms*)
3283 # No gdb or ld support yet.
3284 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3285 ;;
3286 i370-*-opened*)
3287 ;;
3288 i[3456789]86-*-coff | i[3456789]86-*-elf)
3289 noconfigdirs="$noconfigdirs ${libgcj}"
3290 libgloss_dir=i386
3291 ;;
3292 i[3456789]86-*-linux*)
3293 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3294 # not build java stuff by default.
3295 case "${target}" in
3296 *-*-*libc1*)
3297 noconfigdirs="$noconfigdirs ${libgcj}";;
3298 esac
3299
3300 # This section makes it possible to build newlib natively on linux.
3301 # If we are using a cross compiler then don't configure newlib.
3302 if test x${is_cross_compiler} != xno ; then
3303 noconfigdirs="$noconfigdirs target-newlib"
3304 fi
3305 noconfigdirs="$noconfigdirs target-libgloss"
3306 # If we are not using a cross compiler, do configure newlib.
3307 # Note however, that newlib will only be configured in this situation
3308 # if the --with-newlib option has been given, because otherwise
3309 # 'target-newlib' will appear in skipdirs.
3310 ;;
3311 i[3456789]86-w64-mingw*)
3312 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3313 ;;
3314 i[3456789]86-*-mingw*)
3315 target_configdirs="$target_configdirs target-winsup"
3316 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3317 ;;
3318 x86_64-*-mingw*)
3319 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3320 ;;
3321 *-*-cygwin*)
3322 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3323 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3324 # always build newlib if winsup directory is present.
3325 if test -d "$srcdir/winsup/cygwin"; then
3326 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3327 elif test -d "$srcdir/newlib"; then
3328 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3329 fi
3330 ;;
3331 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3332 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3333 ;;
3334 i[3456789]86-*-pe)
3335 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3336 ;;
3337 i[3456789]86-*-sco3.2v5*)
3338 # The linker does not yet know about weak symbols in COFF,
3339 # and is not configured to handle mixed ELF and COFF.
3340 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3341 ;;
3342 i[3456789]86-*-sco*)
3343 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3344 ;;
3345 i[3456789]86-*-solaris2*)
3346 noconfigdirs="$noconfigdirs target-libgloss"
3347 ;;
3348 i[3456789]86-*-sysv4*)
3349 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3350 ;;
3351 i[3456789]86-*-beos*)
3352 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3353 ;;
3354 i[3456789]86-*-rdos*)
3355 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3356 ;;
3357 m32r-*-*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3359 ;;
3360 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3361 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3362 libgloss_dir=m68hc11
3363 ;;
3364 m68k-*-elf*)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3366 ;;
3367 m68k-*-coff*)
3368 noconfigdirs="$noconfigdirs ${libgcj}"
3369 ;;
3370 m68*-*-* | fido-*-*)
3371 libgloss_dir=m68k
3372 ;;
3373 mcore-*-pe*)
3374 # The EPOC C++ environment does not support exceptions or rtti,
3375 # and so building libstdc++-v3 tends not to always work.
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 ;;
3378 mmix-*-*)
3379 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3380 unsupported_languages="$unsupported_languages fortran java"
3381 ;;
3382 mn10200-*-*)
3383 noconfigdirs="$noconfigdirs ${libgcj}"
3384 ;;
3385 mn10300-*-*)
3386 noconfigdirs="$noconfigdirs ${libgcj}"
3387 ;;
3388 mt-*-*)
3389 noconfigdirs="$noconfigdirs sim"
3390 ;;
3391 powerpc-*-aix*)
3392 # copied from rs6000-*-* entry
3393 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3394 ;;
3395 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3396 target_configdirs="$target_configdirs target-winsup"
3397 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3398 # always build newlib.
3399 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3400 ;;
3401 # This is temporary until we can link against shared libraries
3402 powerpcle-*-solaris*)
3403 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3404 libgloss_dir=rs6000
3405 ;;
3406 powerpc-*-beos*)
3407 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3408 ;;
3409 powerpc-*-eabi)
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3411 libgloss_dir=rs6000
3412 ;;
3413 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3414 libgloss_dir=rs6000
3415 ;;
3416 rs6000-*-lynxos*)
3417 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3418 ;;
3419 rs6000-*-aix*)
3420 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3421 ;;
3422 rs6000-*-*)
3423 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3424 ;;
3425 m68k-apollo-*)
3426 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3427 ;;
3428 microblaze*)
3429 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3430 ;;
3431 mips*-sde-elf*)
3432 skipdirs="$skipdirs target-libiberty"
3433 noconfigdirs="$noconfigdirs ${libgcj}"
3434 if test x$with_newlib = xyes; then
3435 noconfigdirs="$noconfigdirs gprof"
3436 fi
3437 libgloss_dir=mips
3438 ;;
3439 mips*-*-irix5*)
3440 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3441 ;;
3442 mips*-*-irix6*)
3443 # Linking libjava exceeds command-line length limits on at least
3444 # IRIX 6.2, but not on IRIX 6.5.
3445 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3446 # <oldham@codesourcery.com>
3447 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3448 ;;
3449 mips*-*-bsd*)
3450 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3451 ;;
3452 mips*-*-linux*)
3453 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3454 ;;
3455 mips*-*-*)
3456 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3457 libgloss_dir=mips
3458 ;;
3459 romp-*-*)
3460 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3461 ;;
3462 sh-*-* | sh64-*-*)
3463 case "${host}" in
3464 i[3456789]86-*-vsta) ;; # don't add gprof back in
3465 i[3456789]86-*-go32*) ;; # don't add gprof back in
3466 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3467 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3468 esac
3469 case "${target}" in
3470 sh*-*-elf)
3471 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3472 *)
3473 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3474 esac
3475 ;;
3476 sparclet-*-aout* | sparc86x-*-*)
3477 libgloss_dir=sparc
3478 ;;
3479 sparc-*-elf*)
3480 noconfigdirs="$noconfigdirs ${libgcj}"
3481 ;;
3482 sparc64-*-elf*)
3483 noconfigdirs="$noconfigdirs ${libgcj}"
3484 libgloss_dir=sparc
3485 ;;
3486 sparclite-*-*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3488 libgloss_dir=sparc
3489 ;;
3490 sparc-*-sunos4*)
3491 noconfigdirs="$noconfigdirs ${libgcj}"
3492 if test x${is_cross_compiler} != xno ; then
3493 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3494 else
3495 use_gnu_ld=no
3496 fi
3497 ;;
3498 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3499 noconfigdirs="$noconfigdirs ${libgcj}"
3500 ;;
3501 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3502 ;;
3503 tic6x-*-*)
3504 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3505 ;;
3506 v810-*-*)
3507 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3508 ;;
3509 v850*-*-*)
3510 noconfigdirs="$noconfigdirs ${libgcj}"
3511 ;;
3512 vax-*-vms)
3513 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3514 ;;
3515 vax-*-*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3517 ;;
3518 xtensa*-*-*)
3519 noconfigdirs="$noconfigdirs ${libgcj}"
3520 ;;
3521 ip2k-*-*)
3522 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3523 ;;
3524 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3526 ;;
3527 *-*-lynxos*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3529 ;;
3530 *-*-*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3532 ;;
3533 esac
3534
3535 # If we aren't building newlib, then don't build libgloss, since libgloss
3536 # depends upon some newlib header files.
3537 case "${noconfigdirs}" in
3538 *target-libgloss*) ;;
3539 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3540 esac
3541
3542 # Work in distributions that contain no compiler tools, like Autoconf.
3543 tentative_cc=""
3544 host_makefile_frag=/dev/null
3545 if test -d ${srcdir}/config ; then
3546 case "${host}" in
3547 m68k-hp-hpux*)
3548 # Avoid "too much defining" errors from HPUX compiler.
3549 tentative_cc="cc -Wp,-H256000"
3550 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3551 # If it's HP/UX ar, this should be harmless.
3552 RANLIB="ar ts"
3553 ;;
3554 m68k-apollo-sysv*)
3555 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3556 ;;
3557 m68k-apollo-bsd*)
3558 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3559 # chokes on bfd, the compiler won't let you assign integers to enums, and
3560 # other problems. Defining CC to gcc is a questionable way to say "don't use
3561 # the apollo compiler" (the preferred version of GCC could be called cc,
3562 # or whatever), but I'm not sure leaving CC as cc is any better...
3563 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3564 # Used to have BISON=yacc.
3565 tentative_cc=gcc
3566 ;;
3567 m88k-dg-dgux*)
3568 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3569 ;;
3570 m88k-harris-cxux*)
3571 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3572 tentative_cc="cc -Xa"
3573 host_makefile_frag="config/mh-cxux"
3574 ;;
3575 m88k-motorola-sysv*)
3576 ;;
3577 mips*-dec-ultrix*)
3578 tentative_cc="cc -Wf,-XNg1000"
3579 host_makefile_frag="config/mh-decstation"
3580 ;;
3581 mips*-nec-sysv4*)
3582 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3583 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3584 host_makefile_frag="config/mh-necv4"
3585 ;;
3586 mips*-sgi-irix4*)
3587 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3588 # environment. Also bump switch table size so that cp-parse will
3589 # compile. Bump string length limit so linker builds.
3590 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3591 ;;
3592 mips*-*-sysv4*)
3593 host_makefile_frag="config/mh-sysv4"
3594 ;;
3595 mips*-*-sysv*)
3596 # This is for a MIPS running RISC/os 4.52C.
3597
3598 # This is needed for GDB, but needs to be in the top-level make because
3599 # if a library is compiled with the bsd headers and gets linked with the
3600 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3601 # a different size).
3602 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3603 # known except to select the sysv environment. Could we use /proc instead?
3604 # These "sysv environments" and "bsd environments" often end up being a pain.
3605 #
3606 # This is not part of CFLAGS because perhaps not all C compilers have this
3607 # option.
3608 tentative_cc="cc -systype sysv"
3609 ;;
3610 i370-ibm-opened*)
3611 tentative_cc="c89"
3612 ;;
3613 i[3456789]86-*-sysv5*)
3614 host_makefile_frag="config/mh-sysv5"
3615 ;;
3616 i[3456789]86-*-dgux*)
3617 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3618 host_makefile_frag="config/mh-dgux386"
3619 ;;
3620 i[3456789]86-ncr-sysv4.3*)
3621 # The MetaWare compiler will generate a copyright message unless you
3622 # turn it off by adding the -Hnocopyr flag.
3623 tentative_cc="cc -Hnocopyr"
3624 ;;
3625 i[3456789]86-ncr-sysv4*)
3626 # for an NCR 3000 (i486/SVR4) system.
3627 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3628 # This compiler not only emits obnoxious copyright messages every time
3629 # you run it, but it chokes and dies on a whole bunch of GNU source
3630 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3631 tentative_cc="/usr/ccs/ATT/cc"
3632 host_makefile_frag="config/mh-ncr3000"
3633 ;;
3634 i[3456789]86-*-sco3.2v5*)
3635 ;;
3636 i[3456789]86-*-sco*)
3637 # The native C compiler botches some simple uses of const. Unfortunately,
3638 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3639 tentative_cc="cc -Dconst="
3640 host_makefile_frag="config/mh-sco"
3641 ;;
3642 i[3456789]86-*-udk*)
3643 host_makefile_frag="config/mh-sysv5"
3644 ;;
3645 i[3456789]86-*-solaris2*)
3646 host_makefile_frag="config/mh-sysv4"
3647 ;;
3648 i[3456789]86-*-msdosdjgpp*)
3649 host_makefile_frag="config/mh-djgpp"
3650 ;;
3651 *-cygwin*)
3652
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3654 $as_echo_n "checking to see if cat works as expected... " >&6; }
3655 echo a >cygwin-cat-check
3656 if test `cat cygwin-cat-check` = a ; then
3657 rm cygwin-cat-check
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3659 $as_echo "yes" >&6; }
3660 else
3661 rm cygwin-cat-check
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 as_fn_error "The cat command does not ignore carriage return characters.
3665 Please either mount the build directory in binary mode or run the following
3666 commands before running any configure script:
3667 set -o igncr
3668 export SHELLOPTS
3669 " "$LINENO" 5
3670 fi
3671
3672 host_makefile_frag="config/mh-cygwin"
3673 ;;
3674 *-mingw*)
3675 host_makefile_frag="config/mh-mingw"
3676 ;;
3677 *-interix*)
3678 host_makefile_frag="config/mh-interix"
3679 ;;
3680 vax-*-ultrix2*)
3681 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3682 tentative_cc=gcc
3683 ;;
3684 *-*-solaris2*)
3685 host_makefile_frag="config/mh-solaris"
3686 ;;
3687 m68k-sun-sunos*)
3688 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3689 # without overflowing the jump tables (-J says to use a 32 bit table)
3690 tentative_cc="cc -J"
3691 ;;
3692 hppa*-hp-hpux10*)
3693 tentative_cc="cc -Wp,-H256000"
3694 host_makefile_frag="config/mh-pa-hpux10"
3695 ;;
3696 hppa*-hp-hpux* | hppa*-*-hiux*)
3697 tentative_cc="cc -Wp,-H256000"
3698 host_makefile_frag="config/mh-pa"
3699 ;;
3700 hppa*-*)
3701 host_makefile_frag="config/mh-pa"
3702 ;;
3703 *-hp-hpux* | *-*-hiux*)
3704 tentative_cc="cc -Wp,-H256000"
3705 ;;
3706 rs6000-*-lynxos*)
3707 # /bin/cc is less than useful for our purposes. Always use GCC
3708 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3709 host_makefile_frag="config/mh-lynxrs6k"
3710 ;;
3711 *-*-darwin*)
3712 host_makefile_frag="config/mh-darwin"
3713 ;;
3714 powerpc-*-aix*)
3715 host_makefile_frag="config/mh-ppc-aix"
3716 ;;
3717 rs6000-*-aix*)
3718 host_makefile_frag="config/mh-ppc-aix"
3719 ;;
3720 *-*-lynxos*)
3721 # /bin/cc is less than useful for our purposes. Always use GCC
3722 tentative_cc="/bin/gcc"
3723 ;;
3724 *-*-sysv4*)
3725 host_makefile_frag="config/mh-sysv4"
3726 ;;
3727 # This is placed last to prevent interfering with the cases above.
3728 i[3456789]86-*-*)
3729 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3730 host_makefile_frag="config/mh-x86omitfp"
3731 ;;
3732 esac
3733 fi
3734
3735 # If we aren't going to be using gcc, see if we can extract a definition
3736 # of CC from the fragment.
3737 # Actually, use the 'pre-extracted' version above.
3738 if test -z "${CC}" && test "${build}" = "${host}" ; then
3739 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3740 found=
3741 for dir in $PATH; do
3742 test -z "$dir" && dir=.
3743 if test -f $dir/gcc; then
3744 found=yes
3745 break
3746 fi
3747 done
3748 IFS="$save_ifs"
3749 if test -z "${found}" && test -n "${tentative_cc}" ; then
3750 CC=$tentative_cc
3751 fi
3752 fi
3753
3754 if test "${build}" != "${host}" ; then
3755 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3756 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3757 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3758 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3759 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3760 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3761 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3762 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3763 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3764 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3765 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3766 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3767 else
3768 AR_FOR_BUILD="\$(AR)"
3769 AS_FOR_BUILD="\$(AS)"
3770 CC_FOR_BUILD="\$(CC)"
3771 CXX_FOR_BUILD="\$(CXX)"
3772 GCJ_FOR_BUILD="\$(GCJ)"
3773 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3774 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3775 LD_FOR_BUILD="\$(LD)"
3776 NM_FOR_BUILD="\$(NM)"
3777 RANLIB_FOR_BUILD="\$(RANLIB)"
3778 WINDRES_FOR_BUILD="\$(WINDRES)"
3779 WINDMC_FOR_BUILD="\$(WINDMC)"
3780 fi
3781
3782 ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_CC+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -n "$CC"; then
3796 ac_cv_prog_CC="$CC" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809 done
3810 done
3811 IFS=$as_save_IFS
3812
3813 fi
3814 fi
3815 CC=$ac_cv_prog_CC
3816 if test -n "$CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818 $as_echo "$CC" >&6; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3822 fi
3823
3824
3825 fi
3826 if test -z "$ac_cv_prog_CC"; then
3827 ac_ct_CC=$CC
3828 # Extract the first word of "gcc", so it can be a program name with args.
3829 set dummy gcc; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 if test -n "$ac_ct_CC"; then
3836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_ac_ct_CC="gcc"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3848 fi
3849 done
3850 done
3851 IFS=$as_save_IFS
3852
3853 fi
3854 fi
3855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3856 if test -n "$ac_ct_CC"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3858 $as_echo "$ac_ct_CC" >&6; }
3859 else
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 fi
3863
3864 if test "x$ac_ct_CC" = x; then
3865 CC=""
3866 else
3867 case $cross_compiling:$ac_tool_warned in
3868 yes:)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3871 ac_tool_warned=yes ;;
3872 esac
3873 CC=$ac_ct_CC
3874 fi
3875 else
3876 CC="$ac_cv_prog_CC"
3877 fi
3878
3879 if test -z "$CC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}cc; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_CC+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 if test -n "$CC"; then
3889 ac_cv_prog_CC="$CC" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_CC="${ac_tool_prefix}cc"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902 done
3903 done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 CC=$ac_cv_prog_CC
3909 if test -n "$CC"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911 $as_echo "$CC" >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917
3918 fi
3919 fi
3920 if test -z "$CC"; then
3921 # Extract the first word of "cc", so it can be a program name with args.
3922 set dummy cc; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 $as_echo_n "checking for $ac_word... " >&6; }
3925 if test "${ac_cv_prog_CC+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -n "$CC"; then
3929 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 else
3931 ac_prog_rejected=no
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3940 ac_prog_rejected=yes
3941 continue
3942 fi
3943 ac_cv_prog_CC="cc"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947 done
3948 done
3949 IFS=$as_save_IFS
3950
3951 if test $ac_prog_rejected = yes; then
3952 # We found a bogon in the path, so make sure we never use it.
3953 set dummy $ac_cv_prog_CC
3954 shift
3955 if test $# != 0; then
3956 # We chose a different compiler from the bogus one.
3957 # However, it has the same basename, so the bogon will be chosen
3958 # first if we set CC to just the basename; use the full file name.
3959 shift
3960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3961 fi
3962 fi
3963 fi
3964 fi
3965 CC=$ac_cv_prog_CC
3966 if test -n "$CC"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968 $as_echo "$CC" >&6; }
3969 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3972 fi
3973
3974
3975 fi
3976 if test -z "$CC"; then
3977 if test -n "$ac_tool_prefix"; then
3978 for ac_prog in cl.exe
3979 do
3980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if test "${ac_cv_prog_CC+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4000 fi
4001 done
4002 done
4003 IFS=$as_save_IFS
4004
4005 fi
4006 fi
4007 CC=$ac_cv_prog_CC
4008 if test -n "$CC"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010 $as_echo "$CC" >&6; }
4011 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4014 fi
4015
4016
4017 test -n "$CC" && break
4018 done
4019 fi
4020 if test -z "$CC"; then
4021 ac_ct_CC=$CC
4022 for ac_prog in cl.exe
4023 do
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$ac_ct_CC"; then
4032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4036 do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4041 ac_cv_prog_ac_ct_CC="$ac_prog"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4044 fi
4045 done
4046 done
4047 IFS=$as_save_IFS
4048
4049 fi
4050 fi
4051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4052 if test -n "$ac_ct_CC"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4054 $as_echo "$ac_ct_CC" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4058 fi
4059
4060
4061 test -n "$ac_ct_CC" && break
4062 done
4063
4064 if test "x$ac_ct_CC" = x; then
4065 CC=""
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 CC=$ac_ct_CC
4074 fi
4075 fi
4076
4077 fi
4078
4079
4080 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error "no acceptable C compiler found in \$PATH
4083 See \`config.log' for more details." "$LINENO" 5; }
4084
4085 # Provide some information about the compiler.
4086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4087 set X $ac_compile
4088 ac_compiler=$2
4089 for ac_option in --version -v -V -qversion; do
4090 { { ac_try="$ac_compiler $ac_option >&5"
4091 case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096 $as_echo "$ac_try_echo"; } >&5
4097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4098 ac_status=$?
4099 if test -s conftest.err; then
4100 sed '10a\
4101 ... rest of stderr output deleted ...
4102 10q' conftest.err >conftest.er1
4103 cat conftest.er1 >&5
4104 rm -f conftest.er1 conftest.err
4105 fi
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }
4108 done
4109
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 int
4114 main ()
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 ac_clean_files_save=$ac_clean_files
4122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4123 # Try to create an executable without -o first, disregard a.out.
4124 # It will help us diagnose broken compilers, and finding out an intuition
4125 # of exeext.
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4127 $as_echo_n "checking for C compiler default output file name... " >&6; }
4128 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4129
4130 # The possible output files:
4131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4132
4133 ac_rmfiles=
4134 for ac_file in $ac_files
4135 do
4136 case $ac_file in
4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4139 esac
4140 done
4141 rm -f $ac_rmfiles
4142
4143 if { { ac_try="$ac_link_default"
4144 case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 $as_echo "$ac_try_echo"; } >&5
4150 (eval "$ac_link_default") 2>&5
4151 ac_status=$?
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; then :
4154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4157 # so that the user can short-circuit this test for compilers unknown to
4158 # Autoconf.
4159 for ac_file in $ac_files ''
4160 do
4161 test -f "$ac_file" || continue
4162 case $ac_file in
4163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4164 ;;
4165 [ab].out )
4166 # We found the default executable, but exeext='' is most
4167 # certainly right.
4168 break;;
4169 *.* )
4170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4171 then :; else
4172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4173 fi
4174 # We set ac_cv_exeext here because the later test for it is not
4175 # safe: cross compilers may not add the suffix if given an `-o'
4176 # argument, so we may need to know it at that point already.
4177 # Even if this section looks crufty: it has the advantage of
4178 # actually working.
4179 break;;
4180 * )
4181 break;;
4182 esac
4183 done
4184 test "$ac_cv_exeext" = no && ac_cv_exeext=
4185
4186 else
4187 ac_file=''
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4190 $as_echo "$ac_file" >&6; }
4191 if test -z "$ac_file"; then :
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197 { as_fn_set_status 77
4198 as_fn_error "C compiler cannot create executables
4199 See \`config.log' for more details." "$LINENO" 5; }; }
4200 fi
4201 ac_exeext=$ac_cv_exeext
4202
4203 # Check that the compiler produces executables we can run. If not, either
4204 # the compiler is broken, or we cross compile.
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4206 $as_echo_n "checking whether the C compiler works... " >&6; }
4207 # If not cross compiling, check that we can run a simple program.
4208 if test "$cross_compiling" != yes; then
4209 if { ac_try='./$ac_file'
4210 { { case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 $as_echo "$ac_try_echo"; } >&5
4216 (eval "$ac_try") 2>&5
4217 ac_status=$?
4218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }; }; then
4220 cross_compiling=no
4221 else
4222 if test "$cross_compiling" = maybe; then
4223 cross_compiling=yes
4224 else
4225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error "cannot run C compiled programs.
4228 If you meant to cross compile, use \`--host'.
4229 See \`config.log' for more details." "$LINENO" 5; }
4230 fi
4231 fi
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4234 $as_echo "yes" >&6; }
4235
4236 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4237 ac_clean_files=$ac_clean_files_save
4238 # Check that the compiler produces executables we can run. If not, either
4239 # the compiler is broken, or we cross compile.
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4241 $as_echo_n "checking whether we are cross compiling... " >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4243 $as_echo "$cross_compiling" >&6; }
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4246 $as_echo_n "checking for suffix of executables... " >&6; }
4247 if { { ac_try="$ac_link"
4248 case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_link") 2>&5
4255 ac_status=$?
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }; then :
4258 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4259 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4260 # work properly (i.e., refer to `conftest.exe'), while it won't with
4261 # `rm'.
4262 for ac_file in conftest.exe conftest conftest.*; do
4263 test -f "$ac_file" || continue
4264 case $ac_file in
4265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4267 break;;
4268 * ) break;;
4269 esac
4270 done
4271 else
4272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4274 as_fn_error "cannot compute suffix of executables: cannot compile and link
4275 See \`config.log' for more details." "$LINENO" 5; }
4276 fi
4277 rm -f conftest$ac_cv_exeext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4279 $as_echo "$ac_cv_exeext" >&6; }
4280
4281 rm -f conftest.$ac_ext
4282 EXEEXT=$ac_cv_exeext
4283 ac_exeext=$EXEEXT
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4285 $as_echo_n "checking for suffix of object files... " >&6; }
4286 if test "${ac_cv_objext+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291
4292 int
4293 main ()
4294 {
4295
4296 ;
4297 return 0;
4298 }
4299 _ACEOF
4300 rm -f conftest.o conftest.obj
4301 if { { ac_try="$ac_compile"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_compile") 2>&5
4309 ac_status=$?
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }; then :
4312 for ac_file in conftest.o conftest.obj conftest.*; do
4313 test -f "$ac_file" || continue;
4314 case $ac_file in
4315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4317 break;;
4318 esac
4319 done
4320 else
4321 $as_echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error "cannot compute suffix of object files: cannot compile
4327 See \`config.log' for more details." "$LINENO" 5; }
4328 fi
4329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4332 $as_echo "$ac_cv_objext" >&6; }
4333 OBJEXT=$ac_cv_objext
4334 ac_objext=$OBJEXT
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4337 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 int
4344 main ()
4345 {
4346 #ifndef __GNUC__
4347 choke me
4348 #endif
4349
4350 ;
4351 return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355 ac_compiler_gnu=yes
4356 else
4357 ac_compiler_gnu=no
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4361
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4364 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4365 if test $ac_compiler_gnu = yes; then
4366 GCC=yes
4367 else
4368 GCC=
4369 fi
4370 ac_test_CFLAGS=${CFLAGS+set}
4371 ac_save_CFLAGS=$CFLAGS
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4373 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4374 if test "${ac_cv_prog_cc_g+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 ac_save_c_werror_flag=$ac_c_werror_flag
4378 ac_c_werror_flag=yes
4379 ac_cv_prog_cc_g=no
4380 CFLAGS="-g"
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383
4384 int
4385 main ()
4386 {
4387
4388 ;
4389 return 0;
4390 }
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_g=yes
4394 else
4395 CFLAGS=""
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398
4399 int
4400 main ()
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408
4409 else
4410 ac_c_werror_flag=$ac_save_c_werror_flag
4411 CFLAGS="-g"
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414
4415 int
4416 main ()
4417 {
4418
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 if ac_fn_c_try_compile "$LINENO"; then :
4424 ac_cv_prog_cc_g=yes
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 fi
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 ac_c_werror_flag=$ac_save_c_werror_flag
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4434 $as_echo "$ac_cv_prog_cc_g" >&6; }
4435 if test "$ac_test_CFLAGS" = set; then
4436 CFLAGS=$ac_save_CFLAGS
4437 elif test $ac_cv_prog_cc_g = yes; then
4438 if test "$GCC" = yes; then
4439 CFLAGS="-g -O2"
4440 else
4441 CFLAGS="-g"
4442 fi
4443 else
4444 if test "$GCC" = yes; then
4445 CFLAGS="-O2"
4446 else
4447 CFLAGS=
4448 fi
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4452 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 ac_cv_prog_cc_c89=no
4456 ac_save_CC=$CC
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <stdarg.h>
4460 #include <stdio.h>
4461 #include <sys/types.h>
4462 #include <sys/stat.h>
4463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4464 struct buf { int x; };
4465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4466 static char *e (p, i)
4467 char **p;
4468 int i;
4469 {
4470 return p[i];
4471 }
4472 static char *f (char * (*g) (char **, int), char **p, ...)
4473 {
4474 char *s;
4475 va_list v;
4476 va_start (v,p);
4477 s = g (p, va_arg (v,int));
4478 va_end (v);
4479 return s;
4480 }
4481
4482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4483 function prototypes and stuff, but not '\xHH' hex character constants.
4484 These don't provoke an error unfortunately, instead are silently treated
4485 as 'x'. The following induces an error, until -std is added to get
4486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4487 array size at least. It's necessary to write '\x00'==0 to get something
4488 that's true only with -std. */
4489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4490
4491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4492 inside strings and character constants. */
4493 #define FOO(x) 'x'
4494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4495
4496 int test (int i, double x);
4497 struct s1 {int (*f) (int a);};
4498 struct s2 {int (*f) (double a);};
4499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4500 int argc;
4501 char **argv;
4502 int
4503 main ()
4504 {
4505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4512 do
4513 CC="$ac_save_CC $ac_arg"
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515 ac_cv_prog_cc_c89=$ac_arg
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext
4518 test "x$ac_cv_prog_cc_c89" != "xno" && break
4519 done
4520 rm -f conftest.$ac_ext
4521 CC=$ac_save_CC
4522
4523 fi
4524 # AC_CACHE_VAL
4525 case "x$ac_cv_prog_cc_c89" in
4526 x)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4528 $as_echo "none needed" >&6; } ;;
4529 xno)
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4531 $as_echo "unsupported" >&6; } ;;
4532 *)
4533 CC="$CC $ac_cv_prog_cc_c89"
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4536 esac
4537 if test "x$ac_cv_prog_cc_c89" != xno; then :
4538
4539 fi
4540
4541 ac_ext=c
4542 ac_cpp='$CPP $CPPFLAGS'
4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546
4547 ac_ext=cpp
4548 ac_cpp='$CXXCPP $CPPFLAGS'
4549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552 if test -z "$CXX"; then
4553 if test -n "$CCC"; then
4554 CXX=$CCC
4555 else
4556 if test -n "$ac_tool_prefix"; then
4557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4558 do
4559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CXX+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -n "$CXX"; then
4567 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4579 fi
4580 done
4581 done
4582 IFS=$as_save_IFS
4583
4584 fi
4585 fi
4586 CXX=$ac_cv_prog_CXX
4587 if test -n "$CXX"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4589 $as_echo "$CXX" >&6; }
4590 else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4593 fi
4594
4595
4596 test -n "$CXX" && break
4597 done
4598 fi
4599 if test -z "$CXX"; then
4600 ac_ct_CXX=$CXX
4601 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4602 do
4603 # Extract the first word of "$ac_prog", so it can be a program name with args.
4604 set dummy $ac_prog; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$ac_ct_CXX"; then
4611 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_ac_ct_CXX="$ac_prog"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4631 if test -n "$ac_ct_CXX"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4633 $as_echo "$ac_ct_CXX" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638
4639
4640 test -n "$ac_ct_CXX" && break
4641 done
4642
4643 if test "x$ac_ct_CXX" = x; then
4644 CXX="g++"
4645 else
4646 case $cross_compiling:$ac_tool_warned in
4647 yes:)
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4650 ac_tool_warned=yes ;;
4651 esac
4652 CXX=$ac_ct_CXX
4653 fi
4654 fi
4655
4656 fi
4657 fi
4658 # Provide some information about the compiler.
4659 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4660 set X $ac_compile
4661 ac_compiler=$2
4662 for ac_option in --version -v -V -qversion; do
4663 { { ac_try="$ac_compiler $ac_option >&5"
4664 case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667 esac
4668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669 $as_echo "$ac_try_echo"; } >&5
4670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4671 ac_status=$?
4672 if test -s conftest.err; then
4673 sed '10a\
4674 ... rest of stderr output deleted ...
4675 10q' conftest.err >conftest.er1
4676 cat conftest.er1 >&5
4677 rm -f conftest.er1 conftest.err
4678 fi
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }
4681 done
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4684 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4685 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690
4691 int
4692 main ()
4693 {
4694 #ifndef __GNUC__
4695 choke me
4696 #endif
4697
4698 ;
4699 return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_cxx_try_compile "$LINENO"; then :
4703 ac_compiler_gnu=yes
4704 else
4705 ac_compiler_gnu=no
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4709
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4712 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4713 if test $ac_compiler_gnu = yes; then
4714 GXX=yes
4715 else
4716 GXX=
4717 fi
4718 ac_test_CXXFLAGS=${CXXFLAGS+set}
4719 ac_save_CXXFLAGS=$CXXFLAGS
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4721 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4722 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4726 ac_cxx_werror_flag=yes
4727 ac_cv_prog_cxx_g=no
4728 CXXFLAGS="-g"
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731
4732 int
4733 main ()
4734 {
4735
4736 ;
4737 return 0;
4738 }
4739 _ACEOF
4740 if ac_fn_cxx_try_compile "$LINENO"; then :
4741 ac_cv_prog_cxx_g=yes
4742 else
4743 CXXFLAGS=""
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746
4747 int
4748 main ()
4749 {
4750
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_cxx_try_compile "$LINENO"; then :
4756
4757 else
4758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4759 CXXFLAGS="-g"
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762
4763 int
4764 main ()
4765 {
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_cxx_try_compile "$LINENO"; then :
4772 ac_cv_prog_cxx_g=yes
4773 fi
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4782 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4783 if test "$ac_test_CXXFLAGS" = set; then
4784 CXXFLAGS=$ac_save_CXXFLAGS
4785 elif test $ac_cv_prog_cxx_g = yes; then
4786 if test "$GXX" = yes; then
4787 CXXFLAGS="-g -O2"
4788 else
4789 CXXFLAGS="-g"
4790 fi
4791 else
4792 if test "$GXX" = yes; then
4793 CXXFLAGS="-O2"
4794 else
4795 CXXFLAGS=
4796 fi
4797 fi
4798 ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803
4804
4805 # We must set the default linker to the linker used by gcc for the correct
4806 # operation of libtool. If LD is not defined and we are using gcc, try to
4807 # set the LD default to the ld used by gcc.
4808 if test -z "$LD"; then
4809 if test "$GCC" = yes; then
4810 case $build in
4811 *-*-mingw*)
4812 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4813 *)
4814 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4815 esac
4816 case $gcc_prog_ld in
4817 # Accept absolute paths.
4818 [\\/]* | [A-Za-z]:[\\/]*)
4819 LD="$gcc_prog_ld" ;;
4820 esac
4821 fi
4822 fi
4823
4824
4825
4826
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$GNATBIND"; then
4836 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849 done
4850 done
4851 IFS=$as_save_IFS
4852
4853 fi
4854 fi
4855 GNATBIND=$ac_cv_prog_GNATBIND
4856 if test -n "$GNATBIND"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4858 $as_echo "$GNATBIND" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862 fi
4863
4864
4865 fi
4866 if test -z "$ac_cv_prog_GNATBIND"; then
4867 ac_ct_GNATBIND=$GNATBIND
4868 # Extract the first word of "gnatbind", so it can be a program name with args.
4869 set dummy gnatbind; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$ac_ct_GNATBIND"; then
4876 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889 done
4890 done
4891 IFS=$as_save_IFS
4892
4893 fi
4894 fi
4895 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4896 if test -n "$ac_ct_GNATBIND"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4898 $as_echo "$ac_ct_GNATBIND" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903
4904 if test "x$ac_ct_GNATBIND" = x; then
4905 GNATBIND="no"
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 GNATBIND=$ac_ct_GNATBIND
4914 fi
4915 else
4916 GNATBIND="$ac_cv_prog_GNATBIND"
4917 fi
4918
4919 if test -n "$ac_tool_prefix"; then
4920 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4921 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -n "$GNATMAKE"; then
4928 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4940 fi
4941 done
4942 done
4943 IFS=$as_save_IFS
4944
4945 fi
4946 fi
4947 GNATMAKE=$ac_cv_prog_GNATMAKE
4948 if test -n "$GNATMAKE"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4950 $as_echo "$GNATMAKE" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4954 fi
4955
4956
4957 fi
4958 if test -z "$ac_cv_prog_GNATMAKE"; then
4959 ac_ct_GNATMAKE=$GNATMAKE
4960 # Extract the first word of "gnatmake", so it can be a program name with args.
4961 set dummy gnatmake; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -n "$ac_ct_GNATMAKE"; then
4968 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2
4980 fi
4981 done
4982 done
4983 IFS=$as_save_IFS
4984
4985 fi
4986 fi
4987 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4988 if test -n "$ac_ct_GNATMAKE"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4990 $as_echo "$ac_ct_GNATMAKE" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 fi
4995
4996 if test "x$ac_ct_GNATMAKE" = x; then
4997 GNATMAKE="no"
4998 else
4999 case $cross_compiling:$ac_tool_warned in
5000 yes:)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003 ac_tool_warned=yes ;;
5004 esac
5005 GNATMAKE=$ac_ct_GNATMAKE
5006 fi
5007 else
5008 GNATMAKE="$ac_cv_prog_GNATMAKE"
5009 fi
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5012 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5013 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 cat >conftest.adb <<EOF
5017 procedure conftest is begin null; end conftest;
5018 EOF
5019 acx_cv_cc_gcc_supports_ada=no
5020 # There is a bug in old released versions of GCC which causes the
5021 # driver to exit successfully when the appropriate language module
5022 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5023 # Therefore we must check for the error message as well as an
5024 # unsuccessful exit.
5025 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5026 # given a .adb file, but produce no object file. So we must check
5027 # if an object file was really produced to guard against this.
5028 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5029 if test x"$errors" = x && test -f conftest.$ac_objext; then
5030 acx_cv_cc_gcc_supports_ada=yes
5031 fi
5032 rm -f conftest.*
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5035 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5036
5037 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5038 have_gnat=yes
5039 else
5040 have_gnat=no
5041 fi
5042
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5044 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5045 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 echo abfoo >t1
5049 echo cdfoo >t2
5050 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5051 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5052 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5053 :
5054 else
5055 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5056 fi
5057 fi
5058 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5059 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5060 :
5061 else
5062 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5063 fi
5064 fi
5065 rm t1 t2
5066
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5069 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5070 do_compare="$gcc_cv_prog_cmp_skip"
5071
5072
5073
5074 # See if we are building gcc with C++.
5075 # Check whether --enable-build-with-cxx was given.
5076 if test "${enable_build_with_cxx+set}" = set; then :
5077 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5078 else
5079 ENABLE_BUILD_WITH_CXX=no
5080 fi
5081
5082
5083 # Used for setting $lt_cv_objdir
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5085 $as_echo_n "checking for objdir... " >&6; }
5086 if test "${lt_cv_objdir+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 rm -f .libs 2>/dev/null
5090 mkdir .libs 2>/dev/null
5091 if test -d .libs; then
5092 lt_cv_objdir=.libs
5093 else
5094 # MS-DOS does not allow filenames that begin with a dot.
5095 lt_cv_objdir=_libs
5096 fi
5097 rmdir .libs 2>/dev/null
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5100 $as_echo "$lt_cv_objdir" >&6; }
5101 objdir=$lt_cv_objdir
5102
5103
5104
5105
5106
5107 cat >>confdefs.h <<_ACEOF
5108 #define LT_OBJDIR "$lt_cv_objdir/"
5109 _ACEOF
5110
5111
5112
5113 # Check for GMP, MPFR and MPC
5114 gmplibs="-lmpc -lmpfr -lgmp"
5115 gmpinc=
5116 have_gmp=no
5117
5118 # Specify a location for mpc
5119 # check for this first so it ends up on the link line before mpfr.
5120
5121 # Check whether --with-mpc was given.
5122 if test "${with_mpc+set}" = set; then :
5123 withval=$with_mpc;
5124 fi
5125
5126
5127 # Check whether --with-mpc-include was given.
5128 if test "${with_mpc_include+set}" = set; then :
5129 withval=$with_mpc_include;
5130 fi
5131
5132
5133 # Check whether --with-mpc-lib was given.
5134 if test "${with_mpc_lib+set}" = set; then :
5135 withval=$with_mpc_lib;
5136 fi
5137
5138
5139 if test "x$with_mpc" != x; then
5140 gmplibs="-L$with_mpc/lib $gmplibs"
5141 gmpinc="-I$with_mpc/include $gmpinc"
5142 fi
5143 if test "x$with_mpc_include" != x; then
5144 gmpinc="-I$with_mpc_include $gmpinc"
5145 fi
5146 if test "x$with_mpc_lib" != x; then
5147 gmplibs="-L$with_mpc_lib $gmplibs"
5148 fi
5149 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5150 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5151 gmpinc='-I$$s/mpc/src '"$gmpinc"
5152 # Do not test the mpc version. Assume that it is sufficient, since
5153 # it is in the source tree, and the library has not been built yet
5154 # but it would be included on the link line in the version check below
5155 # hence making the test fail.
5156 have_gmp=yes
5157 fi
5158
5159 # Specify a location for mpfr
5160 # check for this first so it ends up on the link line before gmp.
5161
5162 # Check whether --with-mpfr-dir was given.
5163 if test "${with_mpfr_dir+set}" = set; then :
5164 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5165 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5166 fi
5167
5168
5169
5170 # Check whether --with-mpfr was given.
5171 if test "${with_mpfr+set}" = set; then :
5172 withval=$with_mpfr;
5173 fi
5174
5175
5176 # Check whether --with-mpfr-include was given.
5177 if test "${with_mpfr_include+set}" = set; then :
5178 withval=$with_mpfr_include;
5179 fi
5180
5181
5182 # Check whether --with-mpfr-lib was given.
5183 if test "${with_mpfr_lib+set}" = set; then :
5184 withval=$with_mpfr_lib;
5185 fi
5186
5187
5188 if test "x$with_mpfr" != x; then
5189 gmplibs="-L$with_mpfr/lib $gmplibs"
5190 gmpinc="-I$with_mpfr/include $gmpinc"
5191 fi
5192 if test "x$with_mpfr_include" != x; then
5193 gmpinc="-I$with_mpfr_include $gmpinc"
5194 fi
5195 if test "x$with_mpfr_lib" != x; then
5196 gmplibs="-L$with_mpfr_lib $gmplibs"
5197 fi
5198 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5199 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5200 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5201 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5202 # Do not test the mpfr version. Assume that it is sufficient, since
5203 # it is in the source tree, and the library has not been built yet
5204 # but it would be included on the link line in the version check below
5205 # hence making the test fail.
5206 have_gmp=yes
5207 fi
5208
5209 # Specify a location for gmp
5210
5211 # Check whether --with-gmp-dir was given.
5212 if test "${with_gmp_dir+set}" = set; then :
5213 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5214 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5215 fi
5216
5217
5218
5219 # Check whether --with-gmp was given.
5220 if test "${with_gmp+set}" = set; then :
5221 withval=$with_gmp;
5222 fi
5223
5224
5225 # Check whether --with-gmp-include was given.
5226 if test "${with_gmp_include+set}" = set; then :
5227 withval=$with_gmp_include;
5228 fi
5229
5230
5231 # Check whether --with-gmp-lib was given.
5232 if test "${with_gmp_lib+set}" = set; then :
5233 withval=$with_gmp_lib;
5234 fi
5235
5236
5237
5238 if test "x$with_gmp" != x; then
5239 gmplibs="-L$with_gmp/lib $gmplibs"
5240 gmpinc="-I$with_gmp/include $gmpinc"
5241 fi
5242 if test "x$with_gmp_include" != x; then
5243 gmpinc="-I$with_gmp_include $gmpinc"
5244 fi
5245 if test "x$with_gmp_lib" != x; then
5246 gmplibs="-L$with_gmp_lib $gmplibs"
5247 fi
5248 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5249 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5250 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5251 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5252 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5253 # Do not test the gmp version. Assume that it is sufficient, since
5254 # it is in the source tree, and the library has not been built yet
5255 # but it would be included on the link line in the version check below
5256 # hence making the test fail.
5257 have_gmp=yes
5258 fi
5259
5260 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5261 have_gmp=yes
5262 saved_CFLAGS="$CFLAGS"
5263 CFLAGS="$CFLAGS $gmpinc"
5264 # Check for the recommended and required versions of GMP.
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5266 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5267
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 #include "gmp.h"
5271 int
5272 main ()
5273 {
5274
5275 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5276 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5277 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5278 choke me
5279 #endif
5280
5281 ;
5282 return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <gmp.h>
5289 int
5290 main ()
5291 {
5292
5293 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5294 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5295 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5296 choke me
5297 #endif
5298
5299 ;
5300 return 0;
5301 }
5302 _ACEOF
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5305 $as_echo "yes" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5308 $as_echo "buggy but acceptable" >&6; }
5309 fi
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }; have_gmp=no
5314 fi
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316
5317 # If we have GMP, check the MPFR version.
5318 if test x"$have_gmp" = xyes; then
5319 # Check for the recommended and required versions of MPFR.
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5321 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 #include <gmp.h>
5325 #include <mpfr.h>
5326 int
5327 main ()
5328 {
5329
5330 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5331 choke me
5332 #endif
5333
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 #include <gmp.h>
5342 #include <mpfr.h>
5343 int
5344 main ()
5345 {
5346
5347 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5348 choke me
5349 #endif
5350
5351 ;
5352 return 0;
5353 }
5354 _ACEOF
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5357 $as_echo "yes" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5360 $as_echo "buggy but acceptable" >&6; }
5361 fi
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }; have_gmp=no
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 fi
5369
5370 # Check for the MPC header version.
5371 if test x"$have_gmp" = xyes ; then
5372 # Check for the recommended and required versions of MPC.
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5374 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <mpc.h>
5378 int
5379 main ()
5380 {
5381
5382 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5383 choke me
5384 #endif
5385
5386 ;
5387 return 0;
5388 }
5389 _ACEOF
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 #include <mpc.h>
5394 int
5395 main ()
5396 {
5397
5398 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5399 choke me
5400 #endif
5401
5402 ;
5403 return 0;
5404 }
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 $as_echo "yes" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5411 $as_echo "buggy but acceptable" >&6; }
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }; have_gmp=no
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 fi
5420
5421 # Now check the MPFR library.
5422 if test x"$have_gmp" = xyes; then
5423 saved_LIBS="$LIBS"
5424 LIBS="$LIBS $gmplibs"
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5426 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #include <mpc.h>
5430 int
5431 main ()
5432 {
5433
5434 mpfr_t n;
5435 mpfr_t x;
5436 mpc_t c;
5437 int t;
5438 mpfr_init (n);
5439 mpfr_init (x);
5440 mpfr_atan2 (n, n, x, GMP_RNDN);
5441 mpfr_erfc (n, x, GMP_RNDN);
5442 mpfr_subnormalize (x, t, GMP_RNDN);
5443 mpfr_clear(n);
5444 mpfr_clear(x);
5445 mpc_init2 (c, 53);
5446 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5447 mpc_cosh (c, c, MPC_RNDNN);
5448 mpc_pow (c, c, c, MPC_RNDNN);
5449 mpc_acosh (c, c, MPC_RNDNN);
5450 mpc_clear (c);
5451
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_link "$LINENO"; then :
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }; have_gmp=no
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
5465 LIBS="$saved_LIBS"
5466 fi
5467
5468 CFLAGS="$saved_CFLAGS"
5469
5470 # The library versions listed in the error message below should match
5471 # the HARD-minimums enforced above.
5472 if test x$have_gmp != xyes; then
5473 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5474 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5475 their locations. Source code for these libraries can be found at
5476 their respective hosting sites as well as at
5477 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5478 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5479 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5480 make sure that you have installed both the libraries and the header
5481 files. They may be located in separate packages." "$LINENO" 5
5482 fi
5483 fi
5484
5485 # Flags needed for both GMP, MPFR and/or MPC.
5486
5487
5488
5489
5490
5491
5492 # Allow host libstdc++ to be specified for static linking with PPL.
5493
5494 # Check whether --with-host-libstdcxx was given.
5495 if test "${with_host_libstdcxx+set}" = set; then :
5496 withval=$with_host_libstdcxx;
5497 fi
5498
5499
5500 case $with_host_libstdcxx in
5501 no|yes)
5502 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5503 ;;
5504 esac
5505
5506 # Linker flags to use for stage1 or when not boostrapping.
5507
5508 # Check whether --with-stage1-ldflags was given.
5509 if test "${with_stage1_ldflags+set}" = set; then :
5510 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5511 stage1_ldflags=
5512 else
5513 stage1_ldflags=$withval
5514 fi
5515 else
5516 stage1_ldflags=
5517 fi
5518
5519
5520
5521 # Libraries to use for stage1 or when not bootstrapping.
5522
5523 # Check whether --with-stage1-libs was given.
5524 if test "${with_stage1_libs+set}" = set; then :
5525 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5526 stage1_libs=
5527 else
5528 stage1_libs=$withval
5529 fi
5530 else
5531 stage1_libs=$with_host_libstdcxx
5532 fi
5533
5534
5535
5536 # Libraries to use for stage2 and later builds. This defaults to the
5537 # argument passed to --with-host-libstdcxx.
5538
5539 # Check whether --with-boot-libs was given.
5540 if test "${with_boot_libs+set}" = set; then :
5541 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5542 poststage1_libs=
5543 else
5544 poststage1_libs=$withval
5545 fi
5546 else
5547 poststage1_libs=$with_host_libstdcxx
5548 fi
5549
5550
5551
5552 # Linker flags to use for stage2 and later builds.
5553
5554 # Check whether --with-boot-ldflags was given.
5555 if test "${with_boot_ldflags+set}" = set; then :
5556 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5557 poststage1_ldflags=
5558 else
5559 poststage1_ldflags=$withval
5560 fi
5561 else
5562 poststage1_ldflags=
5563 # With --enable-build-with-cxx, default to linking libstdc++ and
5564 # libgcc statically. But if the user explicitly specified the
5565 # libraries to use, trust that they are doing what they want.
5566 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5567 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5568 fi
5569 fi
5570
5571
5572
5573 # Check for PPL
5574 ppllibs=" -lppl_c -lppl -lgmpxx"
5575 pplinc=
5576
5577
5578 # Check whether --with-ppl was given.
5579 if test "${with_ppl+set}" = set; then :
5580 withval=$with_ppl;
5581 fi
5582
5583
5584 # Check whether --with-ppl-include was given.
5585 if test "${with_ppl_include+set}" = set; then :
5586 withval=$with_ppl_include;
5587 fi
5588
5589
5590 # Check whether --with-ppl-lib was given.
5591 if test "${with_ppl_lib+set}" = set; then :
5592 withval=$with_ppl_lib;
5593 fi
5594
5595
5596 case $with_ppl in
5597 no)
5598 ppllibs=
5599 ;;
5600 "" | yes)
5601 ;;
5602 *)
5603 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5604 pplinc="-I$with_ppl/include $pplinc"
5605 ;;
5606 esac
5607 if test "x$with_ppl_include" != x; then
5608 pplinc="-I$with_ppl_include $pplinc"
5609 fi
5610 if test "x$with_ppl_lib" != x; then
5611 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5612 fi
5613 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5614 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5615 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5616 enable_ppl_version_check=no
5617 fi
5618
5619 # Check whether --enable-ppl-version-check was given.
5620 if test "${enable_ppl_version_check+set}" = set; then :
5621 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5622 else
5623 ENABLE_PPL_CHECK=yes
5624 fi
5625
5626
5627 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5628 saved_CFLAGS="$CFLAGS"
5629 CFLAGS="$CFLAGS $pplinc $gmpinc"
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5631 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #include "ppl_c.h"
5635 int
5636 main ()
5637 {
5638
5639 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5640 choke me
5641 #endif
5642
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 CFLAGS="$saved_CFLAGS"
5656 fi
5657
5658 # Flags needed for PPL
5659
5660
5661
5662
5663 # Check for CLOOG
5664
5665
5666
5667 # Check whether --with-cloog was given.
5668 if test "${with_cloog+set}" = set; then :
5669 withval=$with_cloog;
5670 fi
5671
5672
5673 # Check whether --with-cloog-include was given.
5674 if test "${with_cloog_include+set}" = set; then :
5675 withval=$with_cloog_include;
5676 fi
5677
5678
5679 # Check whether --with-cloog-lib was given.
5680 if test "${with_cloog_lib+set}" = set; then :
5681 withval=$with_cloog_lib;
5682 fi
5683
5684
5685 # Check whether --enable-cloog-backend was given.
5686 if test "${enable_cloog_backend+set}" = set; then :
5687 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5688 cloog_backend=isl
5689 elif test "x${enableval}" = "xppl"; then
5690 cloog_backend=ppl
5691 else
5692 cloog_backend=ppl-legacy
5693 fi
5694 else
5695 cloog_backend=ppl-legacy
5696 fi
5697
5698 # Check whether --enable-cloog-version-check was given.
5699 if test "${enable_cloog_version_check+set}" = set; then :
5700 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5701 else
5702 ENABLE_CLOOG_CHECK=yes
5703 fi
5704
5705
5706 # Initialize clooglibs and clooginc.
5707 case $with_cloog in
5708 no)
5709 clooglibs=
5710 clooginc=
5711 ;;
5712 "" | yes)
5713 ;;
5714 *)
5715 clooglibs="-L$with_cloog/lib"
5716 clooginc="-I$with_cloog/include"
5717 ;;
5718 esac
5719 if test "x${with_cloog_include}" != x ; then
5720 clooginc="-I$with_cloog_include"
5721 fi
5722 if test "x${with_cloog_lib}" != x; then
5723 clooglibs="-L$with_cloog_lib"
5724 fi
5725
5726
5727
5728
5729
5730 if test "x$with_ppl" = "xno"; then
5731 with_cloog=no
5732 fi
5733 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5734 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5735 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5736 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5737 fi
5738 if test "x$with_cloog" != "xno"; then
5739
5740
5741
5742 _cloog_saved_CFLAGS=$CFLAGS
5743 _cloog_saved_CPPFLAGS=$CPPFLAGS
5744 _cloog_saved_LDFLAGS=$LDFLAGS
5745 _cloog_saved_LIBS=$LIBS
5746
5747 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5748
5749 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5750 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5751 LDFLAGS="${LDFLAGS} ${clooglibs}"
5752
5753 case $cloog_backend in
5754 "ppl-legacy")
5755 CFLAGS="${CFLAGS} ${pplinc}"
5756 LDFLAGS="${LDFLAGS} ${ppllibs}"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5758 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5759 if test "${gcc_cv_cloog_type+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 LIBS="-lcloog ${_cloog_saved_LIBS}"
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include "cloog/cloog.h"
5766 int
5767 main ()
5768 {
5769 #ifndef CLOOG_PPL_BACKEND
5770 choke me
5771 #endif
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_c_try_link "$LINENO"; then :
5777 gcc_cv_cloog_type="PPL Legacy"
5778 else
5779 gcc_cv_cloog_type=no
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5783 fi
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5785 $as_echo "$gcc_cv_cloog_type" >&6; }
5786 ;;
5787 "isl")
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5789 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5790 if test "${gcc_cv_cloog_type+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #include "cloog/cloog.h"
5797 int
5798 main ()
5799 {
5800 cloog_version ()
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_c_try_link "$LINENO"; then :
5806 gcc_cv_cloog_type="ISL"
5807 else
5808 gcc_cv_cloog_type=no
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5814 $as_echo "$gcc_cv_cloog_type" >&6; }
5815 ;;
5816 "ppl")
5817 CFLAGS="${CFLAGS} ${pplinc}"
5818 LDFLAGS="${LDFLAGS} ${ppllibs}"
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5820 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5821 if test "${gcc_cv_cloog_type+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 #include "cloog/cloog.h"
5828 #include "cloog/ppl/cloog.h"
5829 int
5830 main ()
5831 {
5832 cloog_version ()
5833 ;
5834 return 0;
5835 }
5836 _ACEOF
5837 if ac_fn_c_try_link "$LINENO"; then :
5838 gcc_cv_cloog_type="PPL"
5839 else
5840 gcc_cv_cloog_type=no
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext \
5843 conftest$ac_exeext conftest.$ac_ext
5844 fi
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5846 $as_echo "$gcc_cv_cloog_type" >&6; }
5847 ;;
5848 *)
5849 gcc_cv_cloog_type=""
5850 esac
5851
5852 case $gcc_cv_cloog_type in
5853 "PPL Legacy")
5854 clooginc="${clooginc}"
5855 clooglibs="${clooglibs} -lcloog"
5856 cloog_org=no
5857 ;;
5858 "ISL")
5859 clooginc="${clooginc} ${_cloogorginc}"
5860 clooglibs="${clooglibs} -lcloog-isl"
5861 cloog_org=yes
5862 ;;
5863 "PPL")
5864 clooginc="${clooginc} ${_cloogorginc}"
5865 clooglibs="${clooglibs} -lcloog-ppl"
5866 cloog_org=yes
5867 ;;
5868 *)
5869 clooglibs=
5870 clooginc=
5871 cloog_org=
5872 ;;
5873 esac
5874
5875 LIBS=$_cloog_saved_LIBS
5876 CFLAGS=$_cloog_saved_CFLAGS
5877 CPPFLAGS=$_cloog_saved_CPPFLAGS
5878 LDFLAGS=$_cloog_saved_LDFLAGS
5879
5880
5881
5882
5883
5884 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5885 _cloog_saved_CFLAGS=$CFLAGS
5886 _cloog_saved_LDFLAGS=$LDFLAGS
5887
5888 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5889 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5890
5891 if test "${cloog_org}" = yes ; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5893 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5894 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 #include "cloog/cloog.h"
5900 int
5901 main ()
5902 {
5903 #if CLOOG_VERSION_MAJOR != 0 \
5904 || CLOOG_VERSION_MINOR != 14 \
5905 || CLOOG_VERSION_REVISION < 0
5906 choke me
5907 #endif
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"; then :
5913 gcc_cv_cloog_ct_0_14_0=yes
5914 else
5915 gcc_cv_cloog_ct_0_14_0=no
5916 fi
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5920 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5921 elif test "${cloog_org}" = no ; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5923 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5924 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929 #include "cloog/cloog.h"
5930 int
5931 main ()
5932 {
5933 #if CLOOG_VERSION_MAJOR != 0 \
5934 || CLOOG_VERSION_MINOR != 15 \
5935 || CLOOG_VERSION_REVISION < 5
5936 choke me
5937 #endif
5938 ;
5939 return 0;
5940 }
5941 _ACEOF
5942 if ac_fn_c_try_compile "$LINENO"; then :
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include "cloog/cloog.h"
5946 int
5947 main ()
5948 {
5949 #if CLOOG_VERSION_MAJOR != 0 \
5950 || CLOOG_VERSION_MINOR != 15 \
5951 || CLOOG_VERSION_REVISION < 9
5952 choke me
5953 #endif
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 gcc_cv_cloog_ct_0_15_5=yes
5960 else
5961 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 else
5965 gcc_cv_cloog_ct_0_15_5=no
5966 fi
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5970 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5971 fi
5972
5973 CFLAGS=$_cloog_saved_CFLAGS
5974 LDFLAGS=$_cloog_saved_LDFLAGS
5975 fi
5976
5977
5978
5979
5980
5981
5982
5983 if test "x${with_cloog}" != x \
5984 || test "x${with_cloog_include}" != x \
5985 || test "x${with_cloog_lib}" != x ; then
5986 graphite_requested=yes
5987 else
5988 graphite_requested=no
5989 fi
5990
5991
5992
5993 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5994 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5995 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5996 clooglibs=
5997 clooginc=
5998 fi
5999
6000 if test "${graphite_requested}" = yes \
6001 && test "x${clooglibs}" = x \
6002 && test "x${clooginc}" = x ; then
6003
6004 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6005 fi
6006
6007
6008 fi
6009
6010 # Check for LTO support.
6011 # Check whether --enable-lto was given.
6012 if test "${enable_lto+set}" = set; then :
6013 enableval=$enable_lto; enable_lto=$enableval
6014 else
6015 enable_lto=yes; default_enable_lto=yes
6016 fi
6017
6018
6019
6020
6021
6022 target_elf=no
6023 case $target in
6024 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6025 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6026 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6027 target_elf=no
6028 ;;
6029 *)
6030 target_elf=yes
6031 ;;
6032 esac
6033
6034 if test $target_elf = yes; then :
6035 # ELF platforms build the lto-plugin always.
6036 build_lto_plugin=yes
6037
6038 else
6039 if test x"$default_enable_lto" = x"yes" ; then
6040 case $target in
6041 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6042 # On other non-ELF platforms, LTO has yet to be validated.
6043 *) enable_lto=no ;;
6044 esac
6045 else
6046 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6047 # It would also be nice to check the binutils support, but we don't
6048 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6049 # warn during gcc/ subconfigure; unless you're bootstrapping with
6050 # -flto it won't be needed until after installation anyway.
6051 case $target in
6052 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6053 *) if test x"$enable_lto" = x"yes"; then
6054 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6055 fi
6056 ;;
6057 esac
6058 fi
6059 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6060 # Build it unless LTO was explicitly disabled.
6061 case $target in
6062 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6063 *) ;;
6064 esac
6065
6066 fi
6067
6068
6069
6070 # By default, C is the only stage 1 language.
6071 stage1_languages=,c,
6072
6073 # Target libraries that we bootstrap.
6074 bootstrap_target_libs=,target-libgcc,
6075
6076 # Figure out what language subdirectories are present.
6077 # Look if the user specified --enable-languages="..."; if not, use
6078 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6079 # go away some day.
6080 # NB: embedded tabs in this IF block -- do not untabify
6081 if test -d ${srcdir}/gcc; then
6082 if test x"${enable_languages+set}" != xset; then
6083 if test x"${LANGUAGES+set}" = xset; then
6084 enable_languages="${LANGUAGES}"
6085 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6086 else
6087 enable_languages=all
6088 fi
6089 else
6090 if test x"${enable_languages}" = x ||
6091 test x"${enable_languages}" = xyes;
6092 then
6093 echo configure.in: --enable-languages needs at least one language argument 1>&2
6094 exit 1
6095 fi
6096 fi
6097 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6098
6099 # 'f95' is the old name for the 'fortran' language. We issue a warning
6100 # and make the substitution.
6101 case ,${enable_languages}, in
6102 *,f95,*)
6103 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6104 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6105 ;;
6106 esac
6107
6108 # First scan to see if an enabled language requires some other language.
6109 # We assume that a given config-lang.in will list all the language
6110 # front ends it requires, even if some are required indirectly.
6111 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6112 case ${lang_frag} in
6113 ..) ;;
6114 # The odd quoting in the next line works around
6115 # an apparent bug in bash 1.12 on linux.
6116 ${srcdir}/gcc/[*]/config-lang.in) ;;
6117 *)
6118 # From the config-lang.in, get $language, $lang_requires
6119 language=
6120 lang_requires=
6121 . ${lang_frag}
6122 for other in ${lang_requires} ; do
6123 case ,${enable_languages}, in
6124 *,$other,*) ;;
6125 *,all,*) ;;
6126 *,$language,*)
6127 echo " \`$other' language required by \`$language'; enabling" 1>&2
6128 enable_languages="${enable_languages},${other}"
6129 ;;
6130 esac
6131 done
6132 ;;
6133 esac
6134 done
6135
6136 new_enable_languages=,c,
6137
6138 # If LTO is enabled, add the LTO front end.
6139 extra_host_libiberty_configure_flags=
6140 if test "$enable_lto" = "yes" ; then
6141 case ,${enable_languages}, in
6142 *,lto,*) ;;
6143 *) enable_languages="${enable_languages},lto" ;;
6144 esac
6145 if test "${build_lto_plugin}" = "yes" ; then
6146 configdirs="$configdirs lto-plugin"
6147 extra_host_libiberty_configure_flags=--enable-shared
6148 fi
6149 fi
6150
6151
6152 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6153 potential_languages=,c,
6154
6155 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6156 case ${lang_frag} in
6157 ..) ;;
6158 # The odd quoting in the next line works around
6159 # an apparent bug in bash 1.12 on linux.
6160 ${srcdir}/gcc/[*]/config-lang.in) ;;
6161 *)
6162 # From the config-lang.in, get $language, $target_libs,
6163 # $lang_dirs, $boot_language, and $build_by_default
6164 language=
6165 target_libs=
6166 lang_dirs=
6167 subdir_requires=
6168 boot_language=no
6169 build_by_default=yes
6170 . ${lang_frag}
6171 if test x${language} = x; then
6172 echo "${lang_frag} doesn't set \$language." 1>&2
6173 exit 1
6174 fi
6175
6176 if test "$language" = "c++" \
6177 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6178 boot_language=yes
6179 fi
6180
6181 case ,${enable_languages}, in
6182 *,${language},*)
6183 # Language was explicitly selected; include it.
6184 add_this_lang=yes
6185 ;;
6186 *,all,*)
6187 # 'all' was selected, select it if it is a default language
6188 add_this_lang=${build_by_default}
6189 ;;
6190 *)
6191 add_this_lang=no
6192 ;;
6193 esac
6194
6195 # Disable languages that need other directories if these aren't available.
6196 for i in $subdir_requires; do
6197 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6198 case ,${enable_languages}, in
6199 *,${language},*)
6200 # Specifically requested language; tell them.
6201 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6202 ;;
6203 *)
6204 # Silently disable.
6205 add_this_lang=unsupported
6206 ;;
6207 esac
6208 done
6209
6210 # Disable Ada if no preexisting GNAT is available.
6211 case ,${enable_languages},:${language}:${have_gnat} in
6212 *,${language},*:ada:no)
6213 # Specifically requested language; tell them.
6214 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6215 ;;
6216 *:ada:no)
6217 # Silently disable.
6218 add_this_lang=unsupported
6219 ;;
6220 esac
6221
6222 # Disable a language that is unsupported by the target.
6223 case " $unsupported_languages " in
6224 *" $language "*)
6225 add_this_lang=unsupported
6226 ;;
6227 esac
6228
6229 case $add_this_lang in
6230 unsupported)
6231 # Remove language-dependent dirs.
6232 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6233 ;;
6234 no)
6235 # Remove language-dependent dirs; still show language as supported.
6236 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6237 potential_languages="${potential_languages}${language},"
6238 ;;
6239 yes)
6240 new_enable_languages="${new_enable_languages}${language},"
6241 potential_languages="${potential_languages}${language},"
6242 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6243 case "${boot_language}:,$enable_stage1_languages," in
6244 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6245 # Add to (comma-separated) list of stage 1 languages.
6246 case ",$stage1_languages," in
6247 *,$language,* | ,yes, | ,all,) ;;
6248 *) stage1_languages="${stage1_languages}${language}," ;;
6249 esac
6250 # We need to bootstrap any supporting libraries.
6251 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6252 ;;
6253 esac
6254 ;;
6255 esac
6256 ;;
6257 esac
6258 done
6259
6260 # Check whether --enable-stage1-languages was given.
6261 if test "${enable_stage1_languages+set}" = set; then :
6262 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6263 ,no,|,,)
6264 # Set it to something that will have no effect in the loop below
6265 enable_stage1_languages=c ;;
6266 ,yes,)
6267 enable_stage1_languages=`echo $new_enable_languages | \
6268 sed -e "s/^,//" -e "s/,$//" ` ;;
6269 *,all,*)
6270 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6271 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6272 esac
6273
6274 # Add "good" languages from enable_stage1_languages to stage1_languages,
6275 # while "bad" languages go in missing_languages. Leave no duplicates.
6276 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6277 case $potential_languages in
6278 *,$i,*)
6279 case $stage1_languages in
6280 *,$i,*) ;;
6281 *) stage1_languages="$stage1_languages$i," ;;
6282 esac ;;
6283 *)
6284 case $missing_languages in
6285 *,$i,*) ;;
6286 *) missing_languages="$missing_languages$i," ;;
6287 esac ;;
6288 esac
6289 done
6290 fi
6291
6292
6293 # Remove leading/trailing commas that were added for simplicity
6294 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6295 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6296 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6297 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6298
6299 if test "x$missing_languages" != x; then
6300 as_fn_error "
6301 The following requested languages could not be built: ${missing_languages}
6302 Supported languages are: ${potential_languages}" "$LINENO" 5
6303 fi
6304 if test "x$new_enable_languages" != "x$enable_languages"; then
6305 echo The following languages will be built: ${new_enable_languages}
6306 enable_languages="$new_enable_languages"
6307 fi
6308
6309
6310 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6311 fi
6312
6313 # Handle --disable-<component> generically.
6314 for dir in $configdirs $build_configdirs $target_configdirs ; do
6315 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6316 varname=`echo $dirname | sed -e s/+/_/g`
6317 if eval test x\${enable_${varname}} "=" xno ; then
6318 noconfigdirs="$noconfigdirs $dir"
6319 fi
6320 done
6321
6322 # Check for Boehm's garbage collector
6323 # Check whether --enable-objc-gc was given.
6324 if test "${enable_objc_gc+set}" = set; then :
6325 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6326 *,objc,*:*:yes:*target-boehm-gc*)
6327 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6328 ;;
6329 esac
6330 fi
6331
6332
6333 # Make sure we only build Boehm's garbage collector if required.
6334 case ,${enable_languages},:${enable_objc_gc} in
6335 *,objc,*:yes)
6336 # Keep target-boehm-gc if requested for Objective-C.
6337 ;;
6338 *)
6339 # Otherwise remove target-boehm-gc depending on target-libjava.
6340 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6341 noconfigdirs="$noconfigdirs target-boehm-gc"
6342 fi
6343 ;;
6344 esac
6345
6346 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6347 # $build_configdirs and $target_configdirs.
6348 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6349
6350 notsupp=""
6351 for dir in . $skipdirs $noconfigdirs ; do
6352 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6353 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6354 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6355 if test -r $srcdir/$dirname/configure ; then
6356 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6357 true
6358 else
6359 notsupp="$notsupp $dir"
6360 fi
6361 fi
6362 fi
6363 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6364 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6365 if test -r $srcdir/$dirname/configure ; then
6366 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6367 true
6368 else
6369 notsupp="$notsupp $dir"
6370 fi
6371 fi
6372 fi
6373 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6374 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6375 if test -r $srcdir/$dirname/configure ; then
6376 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6377 true
6378 else
6379 notsupp="$notsupp $dir"
6380 fi
6381 fi
6382 fi
6383 done
6384
6385 # Sometimes the tools are distributed with libiberty but with no other
6386 # libraries. In that case, we don't want to build target-libiberty.
6387 # Don't let libgcc imply libiberty either.
6388 if test -n "${target_configdirs}" ; then
6389 libgcc=
6390 others=
6391 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6392 if test "$i" = "libgcc"; then
6393 libgcc=target-libgcc
6394 elif test "$i" != "libiberty" ; then
6395 if test -r $srcdir/$i/configure ; then
6396 others=yes;
6397 break;
6398 fi
6399 fi
6400 done
6401 if test -z "${others}" ; then
6402 target_configdirs=$libgcc
6403 fi
6404 fi
6405
6406 # Quietly strip out all directories which aren't configurable in this tree.
6407 # This relies on all configurable subdirectories being autoconfiscated, which
6408 # is now the case.
6409 build_configdirs_all="$build_configdirs"
6410 build_configdirs=
6411 for i in ${build_configdirs_all} ; do
6412 j=`echo $i | sed -e s/build-//g`
6413 if test -f ${srcdir}/$j/configure ; then
6414 build_configdirs="${build_configdirs} $i"
6415 fi
6416 done
6417
6418 configdirs_all="$configdirs"
6419 configdirs=
6420 for i in ${configdirs_all} ; do
6421 if test -f ${srcdir}/$i/configure ; then
6422 configdirs="${configdirs} $i"
6423 fi
6424 done
6425
6426 target_configdirs_all="$target_configdirs"
6427 target_configdirs=
6428 for i in ${target_configdirs_all} ; do
6429 j=`echo $i | sed -e s/target-//g`
6430 if test -f ${srcdir}/$j/configure ; then
6431 target_configdirs="${target_configdirs} $i"
6432 fi
6433 done
6434
6435 # Produce a warning message for the subdirs we can't configure.
6436 # This isn't especially interesting in the Cygnus tree, but in the individual
6437 # FSF releases, it's important to let people know when their machine isn't
6438 # supported by the one or two programs in a package.
6439
6440 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6441 # If $appdirs is non-empty, at least one of those directories must still
6442 # be configured, or we error out. (E.g., if the gas release supports a
6443 # specified target in some subdirs but not the gas subdir, we shouldn't
6444 # pretend that all is well.)
6445 if test -n "$appdirs" ; then
6446 for dir in $appdirs ; do
6447 if test -r $dir/Makefile.in ; then
6448 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6449 appdirs=""
6450 break
6451 fi
6452 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6453 appdirs=""
6454 break
6455 fi
6456 fi
6457 done
6458 if test -n "$appdirs" ; then
6459 echo "*** This configuration is not supported by this package." 1>&2
6460 exit 1
6461 fi
6462 fi
6463 # Okay, some application will build, or we don't care to check. Still
6464 # notify of subdirs not getting built.
6465 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6466 echo " ${notsupp}" 1>&2
6467 echo " (Any other directories should still work fine.)" 1>&2
6468 fi
6469
6470 case "$host" in
6471 *msdosdjgpp*)
6472 enable_gdbtk=no ;;
6473 esac
6474
6475 # To find our prefix, in gcc_cv_tool_prefix.
6476
6477 # The user is always right.
6478 if test "${PATH_SEPARATOR+set}" != set; then
6479 echo "#! /bin/sh" >conf$$.sh
6480 echo "exit 0" >>conf$$.sh
6481 chmod +x conf$$.sh
6482 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6483 PATH_SEPARATOR=';'
6484 else
6485 PATH_SEPARATOR=:
6486 fi
6487 rm -f conf$$.sh
6488 fi
6489
6490
6491
6492 if test "x$exec_prefix" = xNONE; then
6493 if test "x$prefix" = xNONE; then
6494 gcc_cv_tool_prefix=$ac_default_prefix
6495 else
6496 gcc_cv_tool_prefix=$prefix
6497 fi
6498 else
6499 gcc_cv_tool_prefix=$exec_prefix
6500 fi
6501
6502 # If there is no compiler in the tree, use the PATH only. In any
6503 # case, if there is no compiler in the tree nobody should use
6504 # AS_FOR_TARGET and LD_FOR_TARGET.
6505 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6506 gcc_version=`cat $srcdir/gcc/BASE-VER`
6507 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6508 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6509 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6510 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6511 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6512 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6513 else
6514 gcc_cv_tool_dirs=
6515 fi
6516
6517 if test x$build = x$target && test -n "$md_exec_prefix"; then
6518 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6519 fi
6520
6521
6522
6523 copy_dirs=
6524
6525
6526 # Check whether --with-build-sysroot was given.
6527 if test "${with_build_sysroot+set}" = set; then :
6528 withval=$with_build_sysroot; if test x"$withval" != x ; then
6529 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6530 fi
6531 else
6532 SYSROOT_CFLAGS_FOR_TARGET=
6533 fi
6534
6535
6536
6537
6538 # Check whether --with-debug-prefix-map was given.
6539 if test "${with_debug_prefix_map+set}" = set; then :
6540 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6541 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6542 for debug_map in $withval; do
6543 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6544 done
6545 fi
6546 else
6547 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6548 fi
6549
6550
6551
6552 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6553 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6554 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6555 # We want to ensure that TARGET libraries (which we know are built with
6556 # gcc) are built with "-O2 -g", so include those options when setting
6557 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6558 if test "x$CFLAGS_FOR_TARGET" = x; then
6559 CFLAGS_FOR_TARGET=$CFLAGS
6560 case " $CFLAGS " in
6561 *" -O2 "*) ;;
6562 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6563 esac
6564 case " $CFLAGS " in
6565 *" -g "* | *" -g3 "*) ;;
6566 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6567 esac
6568 fi
6569
6570
6571 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6572 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6573 case " $CXXFLAGS " in
6574 *" -O2 "*) ;;
6575 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6576 esac
6577 case " $CXXFLAGS " in
6578 *" -g "* | *" -g3 "*) ;;
6579 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6580 esac
6581 fi
6582
6583
6584 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6585 # the named directory are copied to $(tooldir)/sys-include.
6586 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6587 if test x${is_cross_compiler} = xno ; then
6588 echo 1>&2 '***' --with-headers is only supported when cross compiling
6589 exit 1
6590 fi
6591 if test x"${with_headers}" != xyes ; then
6592 x=${gcc_cv_tool_prefix}
6593 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6594 fi
6595 fi
6596
6597 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6598 # the name directories are copied to $(tooldir)/lib. Multiple directories
6599 # are permitted.
6600 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6601 if test x${is_cross_compiler} = xno ; then
6602 echo 1>&2 '***' --with-libs is only supported when cross compiling
6603 exit 1
6604 fi
6605 if test x"${with_libs}" != xyes ; then
6606 # Copy the libraries in reverse order, so that files in the first named
6607 # library override files in subsequent libraries.
6608 x=${gcc_cv_tool_prefix}
6609 for l in ${with_libs}; do
6610 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6611 done
6612 fi
6613 fi
6614
6615 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6616 #
6617 # This is done by determining whether or not the appropriate directory
6618 # is available, and by checking whether or not specific configurations
6619 # have requested that this magic not happen.
6620 #
6621 # The command line options always override the explicit settings in
6622 # configure.in, and the settings in configure.in override this magic.
6623 #
6624 # If the default for a toolchain is to use GNU as and ld, and you don't
6625 # want to do that, then you should use the --without-gnu-as and
6626 # --without-gnu-ld options for the configure script. Similarly, if
6627 # the default is to use the included zlib and you don't want to do that,
6628 # you should use the --with-system-zlib option for the configure script.
6629
6630 if test x${use_gnu_as} = x &&
6631 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6632 with_gnu_as=yes
6633 extra_host_args="$extra_host_args --with-gnu-as"
6634 fi
6635
6636 if test x${use_gnu_ld} = x &&
6637 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6638 with_gnu_ld=yes
6639 extra_host_args="$extra_host_args --with-gnu-ld"
6640 fi
6641
6642 if test x${use_included_zlib} = x &&
6643 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6644 :
6645 else
6646 with_system_zlib=yes
6647 extra_host_args="$extra_host_args --with-system-zlib"
6648 fi
6649
6650 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6651 # can detect this case.
6652
6653 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6654 with_newlib=yes
6655 extra_host_args="$extra_host_args --with-newlib"
6656 fi
6657
6658 # Handle ${copy_dirs}
6659 set fnord ${copy_dirs}
6660 shift
6661 while test $# != 0 ; do
6662 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6663 :
6664 else
6665 echo Copying $1 to $2
6666
6667 # Use the install script to create the directory and all required
6668 # parent directories.
6669 if test -d $2 ; then
6670 :
6671 else
6672 echo >config.temp
6673 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6674 fi
6675
6676 # Copy the directory, assuming we have tar.
6677 # FIXME: Should we use B in the second tar? Not all systems support it.
6678 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6679
6680 # It is the responsibility of the user to correctly adjust all
6681 # symlinks. If somebody can figure out how to handle them correctly
6682 # here, feel free to add the code.
6683
6684 echo $1 > $2/COPIED
6685 fi
6686 shift; shift
6687 done
6688
6689 # Determine a target-dependent exec_prefix that the installed
6690 # gcc will search in. Keep this list sorted by triplet, with
6691 # the *-*-osname triplets last.
6692 md_exec_prefix=
6693 case "${target}" in
6694 alpha*-*-*vms*)
6695 md_exec_prefix=/gnu/lib/gcc-lib
6696 ;;
6697 i[34567]86-pc-msdosdjgpp*)
6698 md_exec_prefix=/dev/env/DJDIR/bin
6699 ;;
6700 i[34567]86-*-sco3.2v5*)
6701 if test $with_gnu_as = yes; then
6702 md_exec_prefix=/usr/gnu/bin
6703 else
6704 md_exec_prefix=/usr/ccs/bin/elf
6705 fi
6706 ;;
6707
6708 mn10300-*-* | \
6709 powerpc-*-chorusos* | \
6710 powerpc*-*-eabi* | \
6711 powerpc*-*-sysv* | \
6712 powerpc*-*-kaos* | \
6713 s390x-ibm-tpf*)
6714 md_exec_prefix=/usr/ccs/bin
6715 ;;
6716 sparc64-*-elf*)
6717 ;;
6718 v850*-*-*)
6719 md_exec_prefix=/usr/ccs/bin
6720 ;;
6721 xtensa*-*-elf*)
6722 ;;
6723
6724 *-*-beos* | \
6725 *-*-elf* | \
6726 *-*-hpux* | \
6727 *-*-netware* | \
6728 *-*-nto-qnx* | \
6729 *-*-rtems* | \
6730 *-*-solaris2* | \
6731 *-*-sysv[45]* | \
6732 *-*-vxworks* | \
6733 *-wrs-windiss)
6734 md_exec_prefix=/usr/ccs/bin
6735 ;;
6736 esac
6737
6738 extra_arflags_for_target=
6739 extra_nmflags_for_target=
6740 extra_ranlibflags_for_target=
6741 target_makefile_frag=/dev/null
6742 case "${target}" in
6743 mep*-*-*)
6744 target_makefile_frag="config/mt-mep"
6745 ;;
6746 spu-*-*)
6747 target_makefile_frag="config/mt-spu"
6748 ;;
6749 mips*-sde-elf*)
6750 target_makefile_frag="config/mt-sde"
6751 ;;
6752 mipsisa*-*-elfoabi*)
6753 target_makefile_frag="config/mt-mips-elfoabi"
6754 ;;
6755 mips*-*-*linux* | mips*-*-gnu*)
6756 target_makefile_frag="config/mt-mips-gnu"
6757 ;;
6758 *-*-netware*)
6759 target_makefile_frag="config/mt-netware"
6760 ;;
6761 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6762 target_makefile_frag="config/mt-gnu"
6763 ;;
6764 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6765 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6766 # commands to handle both 32-bit and 64-bit objects. These flags are
6767 # harmless if we're using GNU nm or ar.
6768 extra_arflags_for_target=" -X32_64"
6769 extra_nmflags_for_target=" -B -X32_64"
6770 ;;
6771 *-*-darwin[3-9]*)
6772 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6773 extra_ranlibflags_for_target=" -c"
6774 ;;
6775 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6776 target_makefile_frag="config/mt-wince"
6777 ;;
6778 esac
6779
6780 alphaieee_frag=/dev/null
6781 case $target in
6782 alpha*-*-*)
6783 # This just makes sure to use the -mieee option to build target libs.
6784 # This should probably be set individually by each library.
6785 alphaieee_frag="config/mt-alphaieee"
6786 ;;
6787 esac
6788
6789 # If --enable-target-optspace always use -Os instead of -O2 to build
6790 # the target libraries, similarly if it is not specified, use -Os
6791 # on selected platforms.
6792 ospace_frag=/dev/null
6793 case "${enable_target_optspace}:${target}" in
6794 yes:*)
6795 ospace_frag="config/mt-ospace"
6796 ;;
6797 :d30v-*)
6798 ospace_frag="config/mt-d30v"
6799 ;;
6800 :m32r-* | :d10v-* | :fr30-*)
6801 ospace_frag="config/mt-ospace"
6802 ;;
6803 no:* | :*)
6804 ;;
6805 *)
6806 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6807 ;;
6808 esac
6809
6810 # Default to using --with-stabs for certain targets.
6811 if test x${with_stabs} = x ; then
6812 case "${target}" in
6813 mips*-*-irix[56]*)
6814 ;;
6815 mips*-*-* | alpha*-*-osf*)
6816 with_stabs=yes;
6817 extra_host_args="${extra_host_args} --with-stabs"
6818 ;;
6819 esac
6820 fi
6821
6822 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6823 # them automatically.
6824 case "${host}" in
6825 hppa*64*-*-hpux11*)
6826 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6827 ;;
6828 esac
6829
6830 # Some systems (e.g., one of the i386-aix systems the gas testers are
6831 # using) don't handle "\$" correctly, so don't use it here.
6832 tooldir='${exec_prefix}'/${target_noncanonical}
6833 build_tooldir=${tooldir}
6834
6835 # Create a .gdbinit file which runs the one in srcdir
6836 # and tells GDB to look there for source files.
6837
6838 if test -r ${srcdir}/.gdbinit ; then
6839 case ${srcdir} in
6840 .) ;;
6841 *) cat > ./.gdbinit <<EOF
6842 # ${NO_EDIT}
6843 dir ${srcdir}
6844 dir .
6845 source ${srcdir}/.gdbinit
6846 EOF
6847 ;;
6848 esac
6849 fi
6850
6851 # Make sure that the compiler is able to generate an executable. If it
6852 # can't, we are probably in trouble. We don't care whether we can run the
6853 # executable--we might be using a cross compiler--we only care whether it
6854 # can be created. At this point the main configure script has set CC.
6855 we_are_ok=no
6856 echo "int main () { return 0; }" > conftest.c
6857 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6858 if test $? = 0 ; then
6859 if test -s conftest || test -s conftest.exe ; then
6860 we_are_ok=yes
6861 fi
6862 fi
6863 case $we_are_ok in
6864 no)
6865 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6866 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6867 rm -f conftest*
6868 exit 1
6869 ;;
6870 esac
6871 rm -f conftest*
6872
6873 # The Solaris /usr/ucb/cc compiler does not appear to work.
6874 case "${host}" in
6875 sparc-sun-solaris2*)
6876 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6877 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6878 could_use=
6879 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6880 if test -d /opt/cygnus/bin ; then
6881 if test "$could_use" = "" ; then
6882 could_use="/opt/cygnus/bin"
6883 else
6884 could_use="$could_use or /opt/cygnus/bin"
6885 fi
6886 fi
6887 if test "$could_use" = "" ; then
6888 echo "Warning: compilation may fail because you're using"
6889 echo "/usr/ucb/cc. You should change your PATH or CC "
6890 echo "variable and rerun configure."
6891 else
6892 echo "Warning: compilation may fail because you're using"
6893 echo "/usr/ucb/cc, when you should use the C compiler from"
6894 echo "$could_use. You should change your"
6895 echo "PATH or CC variable and rerun configure."
6896 fi
6897 fi
6898 ;;
6899 esac
6900
6901 # Decide which environment variable is used to find dynamic libraries.
6902 case "${host}" in
6903 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6904 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6905 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6906 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6907 esac
6908
6909 # On systems where the dynamic library environment variable is PATH,
6910 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6911 # built executables to PATH.
6912 if test "$RPATH_ENVVAR" = PATH; then
6913 GCC_SHLIB_SUBDIR=/shlib
6914 else
6915 GCC_SHLIB_SUBDIR=
6916 fi
6917
6918 # Record target_configdirs and the configure arguments for target and
6919 # build configuration in Makefile.
6920 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6921 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6922
6923 # If we are building libgomp, bootstrap it.
6924 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6925 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6926 fi
6927
6928 # Determine whether gdb needs tk/tcl or not.
6929 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6930 # and in that case we want gdb to be built without tk. Ugh!
6931 # In fact I believe gdb is the *only* package directly dependent on tk,
6932 # so we should be able to put the 'maybe's in unconditionally and
6933 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6934 # 100% sure that that's safe though.
6935
6936 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6937 case "$enable_gdbtk" in
6938 no)
6939 GDB_TK="" ;;
6940 yes)
6941 GDB_TK="${gdb_tk}" ;;
6942 *)
6943 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6944 # distro. Eventually someone will fix this and move Insight, nee
6945 # gdbtk to a separate directory.
6946 if test -d ${srcdir}/gdb/gdbtk ; then
6947 GDB_TK="${gdb_tk}"
6948 else
6949 GDB_TK=""
6950 fi
6951 ;;
6952 esac
6953 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6954 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6955
6956 # Strip out unwanted targets.
6957
6958 # While at that, we remove Makefiles if we were started for recursive
6959 # configuration, so that the top-level Makefile reconfigures them,
6960 # like we used to do when configure itself was recursive.
6961
6962 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6963 # but now we're fixing up the Makefile ourselves with the additional
6964 # commands passed to AC_CONFIG_FILES. Use separate variables
6965 # extrasub-{build,host,target} not because there is any reason to split
6966 # the substitutions up that way, but only to remain below the limit of
6967 # 99 commands in a script, for HP-UX sed.
6968 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6969
6970 # Check whether --enable-bootstrap was given.
6971 if test "${enable_bootstrap+set}" = set; then :
6972 enableval=$enable_bootstrap;
6973 else
6974 enable_bootstrap=default
6975 fi
6976
6977
6978 # Issue errors and warnings for invalid/strange bootstrap combinations.
6979 case "$configdirs" in
6980 *gcc*) have_compiler=yes ;;
6981 *) have_compiler=no ;;
6982 esac
6983
6984 case "$have_compiler:$host:$target:$enable_bootstrap" in
6985 *:*:*:no) ;;
6986
6987 # Default behavior. Enable bootstrap if we have a compiler
6988 # and we are in a native configuration.
6989 yes:$build:$build:default)
6990 enable_bootstrap=yes ;;
6991
6992 *:*:*:default)
6993 enable_bootstrap=no ;;
6994
6995 # We have a compiler and we are in a native configuration, bootstrap is ok
6996 yes:$build:$build:yes)
6997 ;;
6998
6999 # Other configurations, but we have a compiler. Assume the user knows
7000 # what he's doing.
7001 yes:*:*:yes)
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7003 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7004 ;;
7005
7006 # No compiler: if they passed --enable-bootstrap explicitly, fail
7007 no:*:*:yes)
7008 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7009
7010 # Fail if wrong command line
7011 *)
7012 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7013 ;;
7014 esac
7015
7016 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7017 *,c++,*:yes:yes) ;;
7018 *:yes:yes)
7019 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7020 ;;
7021 esac
7022
7023 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7024 yes:yes:*\ gold\ *:*,c++,*) ;;
7025 yes:yes:*\ gold\ *:*)
7026 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7027 ;;
7028 esac
7029
7030 # Adjust the toplevel makefile according to whether bootstrap was selected.
7031 case $enable_bootstrap in
7032 yes)
7033 bootstrap_suffix=bootstrap
7034 BUILD_CONFIG=bootstrap-debug
7035 ;;
7036 no)
7037 bootstrap_suffix=no-bootstrap
7038 BUILD_CONFIG=
7039 ;;
7040 esac
7041
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7043 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7044
7045
7046 # Check whether --with-build-config was given.
7047 if test "${with_build_config+set}" = set; then :
7048 withval=$with_build_config; case $with_build_config in
7049 yes) with_build_config= ;;
7050 no) with_build_config= BUILD_CONFIG= ;;
7051 esac
7052 fi
7053
7054
7055 if test "x${with_build_config}" != x; then
7056 BUILD_CONFIG=$with_build_config
7057 else
7058 case $BUILD_CONFIG in
7059 bootstrap-debug)
7060 if echo "int f (void) { return 0; }" > conftest.c &&
7061 ${CC} -c conftest.c &&
7062 mv conftest.o conftest.o.g0 &&
7063 ${CC} -c -g conftest.c &&
7064 mv conftest.o conftest.o.g &&
7065 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7066 :
7067 else
7068 BUILD_CONFIG=
7069 fi
7070 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7071 ;;
7072 esac
7073 fi
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7075 $as_echo "$BUILD_CONFIG" >&6; }
7076
7077
7078 extrasub_build=
7079 for module in ${build_configdirs} ; do
7080 if test -z "${no_recursion}" \
7081 && test -f ${build_subdir}/${module}/Makefile; then
7082 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7083 rm -f ${build_subdir}/${module}/Makefile
7084 fi
7085 extrasub_build="$extrasub_build
7086 /^@if build-$module\$/d
7087 /^@endif build-$module\$/d
7088 /^@if build-$module-$bootstrap_suffix\$/d
7089 /^@endif build-$module-$bootstrap_suffix\$/d"
7090 done
7091 extrasub_host=
7092 for module in ${configdirs} ; do
7093 if test -z "${no_recursion}"; then
7094 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7095 if test -f ${file}; then
7096 echo 1>&2 "*** removing ${file} to force reconfigure"
7097 rm -f ${file}
7098 fi
7099 done
7100 fi
7101 extrasub_host="$extrasub_host
7102 /^@if $module\$/d
7103 /^@endif $module\$/d
7104 /^@if $module-$bootstrap_suffix\$/d
7105 /^@endif $module-$bootstrap_suffix\$/d"
7106 done
7107 extrasub_target=
7108 for module in ${target_configdirs} ; do
7109 if test -z "${no_recursion}" \
7110 && test -f ${target_subdir}/${module}/Makefile; then
7111 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7112 rm -f ${target_subdir}/${module}/Makefile
7113 fi
7114
7115 # We only bootstrap target libraries listed in bootstrap_target_libs.
7116 case $bootstrap_target_libs in
7117 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7118 *) target_bootstrap_suffix=no-bootstrap ;;
7119 esac
7120
7121 extrasub_target="$extrasub_target
7122 /^@if target-$module\$/d
7123 /^@endif target-$module\$/d
7124 /^@if target-$module-$target_bootstrap_suffix\$/d
7125 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7126 done
7127
7128 # Do the final fixup along with target modules.
7129 extrasub_target="$extrasub_target
7130 /^@if /,/^@endif /d"
7131
7132 # Create the serialization dependencies. This uses a temporary file.
7133
7134 # Check whether --enable-serial-configure was given.
7135 if test "${enable_serial_configure+set}" = set; then :
7136 enableval=$enable_serial_configure;
7137 fi
7138
7139
7140 case ${enable_serial_configure} in
7141 yes)
7142 enable_serial_build_configure=yes
7143 enable_serial_host_configure=yes
7144 enable_serial_target_configure=yes
7145 ;;
7146 esac
7147
7148 # These force 'configure's to be done one at a time, to avoid problems
7149 # with contention over a shared config.cache.
7150 rm -f serdep.tmp
7151 echo '# serdep.tmp' > serdep.tmp
7152 olditem=
7153 test "x${enable_serial_build_configure}" = xyes &&
7154 for item in ${build_configdirs} ; do
7155 case ${olditem} in
7156 "") ;;
7157 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7158 esac
7159 olditem=${item}
7160 done
7161 olditem=
7162 test "x${enable_serial_host_configure}" = xyes &&
7163 for item in ${configdirs} ; do
7164 case ${olditem} in
7165 "") ;;
7166 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7167 esac
7168 olditem=${item}
7169 done
7170 olditem=
7171 test "x${enable_serial_target_configure}" = xyes &&
7172 for item in ${target_configdirs} ; do
7173 case ${olditem} in
7174 "") ;;
7175 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7176 esac
7177 olditem=${item}
7178 done
7179 serialization_dependencies=serdep.tmp
7180
7181
7182 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7183 # target, nonopt, and variable assignments. These are the ones we
7184 # might not want to pass down to subconfigures. The exception being
7185 # --cache-file=/dev/null, which is used to turn off the use of cache
7186 # files altogether, and which should be passed on to subconfigures.
7187 # Also strip program-prefix, program-suffix, and program-transform-name,
7188 # so that we can pass down a consistent program-transform-name.
7189 baseargs=
7190 keep_next=no
7191 skip_next=no
7192 eval "set -- $ac_configure_args"
7193 for ac_arg
7194 do
7195 if test X"$skip_next" = X"yes"; then
7196 skip_next=no
7197 continue
7198 fi
7199 if test X"$keep_next" = X"yes"; then
7200 case $ac_arg in
7201 *\'*)
7202 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7203 esac
7204 baseargs="$baseargs '$ac_arg'"
7205 keep_next=no
7206 continue
7207 fi
7208
7209 # Handle separated arguments. Based on the logic generated by
7210 # autoconf 2.59.
7211 case $ac_arg in
7212 *=* | --config-cache | -C | -disable-* | --disable-* \
7213 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7214 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7215 | -with-* | --with-* | -without-* | --without-* | --x)
7216 separate_arg=no
7217 ;;
7218 -*)
7219 separate_arg=yes
7220 ;;
7221 *)
7222 separate_arg=no
7223 ;;
7224 esac
7225
7226 case "$ac_arg" in
7227 --cache-file=/dev/null | \
7228 -cache-file=/dev/null )
7229 # Handled here to avoid the test to skip args below.
7230 baseargs="$baseargs '$ac_arg'"
7231 # Assert: $separate_arg should always be no.
7232 keep_next=$separate_arg
7233 ;;
7234 --no*)
7235 continue
7236 ;;
7237 --c* | \
7238 --sr* | \
7239 --ho* | \
7240 --bu* | \
7241 --t* | \
7242 --program-* | \
7243 -cache_file* | \
7244 -srcdir* | \
7245 -host* | \
7246 -build* | \
7247 -target* | \
7248 -program-prefix* | \
7249 -program-suffix* | \
7250 -program-transform-name* )
7251 skip_next=$separate_arg
7252 continue
7253 ;;
7254 -*)
7255 # An option. Add it.
7256 case $ac_arg in
7257 *\'*)
7258 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7259 esac
7260 baseargs="$baseargs '$ac_arg'"
7261 keep_next=$separate_arg
7262 ;;
7263 *)
7264 # Either a variable assignment, or a nonopt (triplet). Don't
7265 # pass it down; let the Makefile handle this.
7266 continue
7267 ;;
7268 esac
7269 done
7270 # Remove the initial space we just introduced and, as these will be
7271 # expanded by make, quote '$'.
7272 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7273
7274 # Add in --program-transform-name, after --program-prefix and
7275 # --program-suffix have been applied to it. Autoconf has already
7276 # doubled dollar signs and backslashes in program_transform_name; we want
7277 # the backslashes un-doubled, and then the entire thing wrapped in single
7278 # quotes, because this will be expanded first by make and then by the shell.
7279 # Also, because we want to override the logic in subdir configure scripts to
7280 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7281 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7282 ${program_transform_name}
7283 EOF_SED
7284 gcc_transform_name=`cat conftestsed.out`
7285 rm -f conftestsed.out
7286 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7287 if test "$silent" = yes; then
7288 baseargs="$baseargs --silent"
7289 fi
7290 baseargs="$baseargs --disable-option-checking"
7291
7292 # Record and document user additions to sub configure arguments.
7293
7294
7295
7296
7297 # For the build-side libraries, we just need to pretend we're native,
7298 # and not use the same cache file. Multilibs are neither needed nor
7299 # desired.
7300 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7301
7302 # For host modules, accept cache file option, or specification as blank.
7303 case "${cache_file}" in
7304 "") # empty
7305 cache_file_option="" ;;
7306 /* | [A-Za-z]:[\\/]* ) # absolute path
7307 cache_file_option="--cache-file=${cache_file}" ;;
7308 *) # relative path
7309 cache_file_option="--cache-file=../${cache_file}" ;;
7310 esac
7311
7312 # Host dirs don't like to share a cache file either, horribly enough.
7313 # This seems to be due to autoconf 2.5x stupidity.
7314 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7315
7316 target_configargs="$target_configargs ${baseargs}"
7317
7318 # Passing a --with-cross-host argument lets the target libraries know
7319 # whether they are being built with a cross-compiler or being built
7320 # native. However, it would be better to use other mechanisms to make the
7321 # sorts of decisions they want to make on this basis. Please consider
7322 # this option to be deprecated. FIXME.
7323 if test x${is_cross_compiler} = xyes ; then
7324 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7325 fi
7326
7327 # Default to --enable-multilib.
7328 if test x${enable_multilib} = x ; then
7329 target_configargs="--enable-multilib ${target_configargs}"
7330 fi
7331
7332 # Pass --with-newlib if appropriate. Note that target_configdirs has
7333 # changed from the earlier setting of with_newlib.
7334 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7335 target_configargs="--with-newlib ${target_configargs}"
7336 fi
7337
7338 # Different target subdirs use different values of certain variables
7339 # (notably CXX). Worse, multilibs use *lots* of different values.
7340 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7341 # it doesn't automatically accept command-line overrides of them.
7342 # This means it's not safe for target subdirs to share a cache file,
7343 # which is disgusting, but there you have it. Hopefully this can be
7344 # fixed in future. It's still worthwhile to use a cache file for each
7345 # directory. I think.
7346
7347 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7348 # We need to pass --target, as newer autoconf's requires consistency
7349 # for target_alias and gcc doesn't manage it consistently.
7350 target_configargs="--cache-file=./config.cache ${target_configargs}"
7351
7352 FLAGS_FOR_TARGET=
7353 case " $target_configdirs " in
7354 *" newlib "*)
7355 case " $target_configargs " in
7356 *" --with-newlib "*)
7357 case "$target" in
7358 *-cygwin*)
7359 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'
7360 ;;
7361 esac
7362
7363 # If we're not building GCC, don't discard standard headers.
7364 if test -d ${srcdir}/gcc; then
7365 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7366
7367 if test "${build}" != "${host}"; then
7368 # On Canadian crosses, CC_FOR_TARGET will have already been set
7369 # by `configure', so we won't have an opportunity to add -Bgcc/
7370 # to it. This is right: we don't want to search that directory
7371 # for binaries, but we want the header files in there, so add
7372 # them explicitly.
7373 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7374
7375 # Someone might think of using the pre-installed headers on
7376 # Canadian crosses, in case the installed compiler is not fully
7377 # compatible with the compiler being built. In this case, it
7378 # would be better to flag an error than risking having
7379 # incompatible object files being constructed. We can't
7380 # guarantee that an error will be flagged, but let's hope the
7381 # compiler will do it, when presented with incompatible header
7382 # files.
7383 fi
7384 fi
7385
7386 case "${target}-${is_cross_compiler}" in
7387 i[3456789]86-*-linux*-no)
7388 # Here host == target, so we don't need to build gcc,
7389 # so we don't want to discard standard headers.
7390 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7391 ;;
7392 *)
7393 # If we're building newlib, use its generic headers last, but search
7394 # for any libc-related directories first (so make it the last -B
7395 # switch).
7396 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7397
7398 # If we're building libgloss, find the startup file, simulator library
7399 # and linker script.
7400 case " $target_configdirs " in
7401 *" libgloss "*)
7402 # Look for startup file, simulator library and maybe linker script.
7403 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7404 # Look for libnosys.a in case the target needs it.
7405 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7406 # Most targets have the linker script in the source directory.
7407 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7408 ;;
7409 esac
7410 ;;
7411 esac
7412 ;;
7413 esac
7414 ;;
7415 esac
7416
7417 case "$target" in
7418 x86_64-*mingw* | *-w64-mingw*)
7419 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7420 # however, use a symlink named 'mingw' in ${prefix} .
7421 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7422 ;;
7423 *-mingw*)
7424 # MinGW can't be handled as Cygwin above since it does not use newlib.
7425 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'
7426 ;;
7427 esac
7428
7429 # Allow the user to override the flags for
7430 # our build compiler if desired.
7431 if test x"${build}" = x"${host}" ; then
7432 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7433 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7434 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7435 fi
7436
7437 # On Canadian crosses, we'll be searching the right directories for
7438 # the previously-installed cross compiler, so don't bother to add
7439 # flags for directories within the install tree of the compiler
7440 # being built; programs in there won't even run.
7441 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7442 # Search for pre-installed headers if nothing else fits.
7443 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7444 fi
7445
7446 if test "x${use_gnu_ld}" = x &&
7447 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7448 # Arrange for us to find uninstalled linker scripts.
7449 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7450 fi
7451
7452 # Search for other target-specific linker scripts and such.
7453 case "${target}" in
7454 mep*)
7455 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7456 ;;
7457 esac
7458
7459 # Makefile fragments.
7460 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7461 do
7462 eval fragval=\$$frag
7463 if test $fragval != /dev/null; then
7464 eval $frag=${srcdir}/$fragval
7465 fi
7466 done
7467
7468
7469
7470
7471
7472 # Miscellanea: directories, flags, etc.
7473
7474
7475
7476
7477
7478
7479
7480
7481 # Build module lists & subconfigure args.
7482
7483
7484
7485 # Host module lists & subconfigure args.
7486
7487
7488
7489
7490 # Target module lists & subconfigure args.
7491
7492
7493
7494 # Build tools.
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512 # Generate default definitions for YACC, M4, LEX and other programs that run
7513 # on the build machine. These are used if the Makefile can't locate these
7514 # programs in objdir.
7515 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7516
7517 for ac_prog in 'bison -y' byacc yacc
7518 do
7519 # Extract the first word of "$ac_prog", so it can be a program name with args.
7520 set dummy $ac_prog; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if test "${ac_cv_prog_YACC+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 if test -n "$YACC"; then
7527 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7528 else
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7531 do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_prog_YACC="$ac_prog"
7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7539 fi
7540 done
7541 done
7542 IFS=$as_save_IFS
7543
7544 fi
7545 fi
7546 YACC=$ac_cv_prog_YACC
7547 if test -n "$YACC"; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7549 $as_echo "$YACC" >&6; }
7550 else
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7553 fi
7554
7555
7556 test -n "$YACC" && break
7557 done
7558 test -n "$YACC" || YACC="$MISSING bison -y"
7559
7560 case " $build_configdirs " in
7561 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7562 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7563 esac
7564
7565 for ac_prog in bison
7566 do
7567 # Extract the first word of "$ac_prog", so it can be a program name with args.
7568 set dummy $ac_prog; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if test "${ac_cv_prog_BISON+set}" = set; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$BISON"; then
7575 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_prog_BISON="$ac_prog"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 BISON=$ac_cv_prog_BISON
7595 if test -n "$BISON"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7597 $as_echo "$BISON" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603
7604 test -n "$BISON" && break
7605 done
7606 test -n "$BISON" || BISON="$MISSING bison"
7607
7608 case " $build_configdirs " in
7609 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7610 esac
7611
7612 for ac_prog in gm4 gnum4 m4
7613 do
7614 # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if test "${ac_cv_prog_M4+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 if test -n "$M4"; then
7622 ac_cv_prog_M4="$M4" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_prog_M4="$ac_prog"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635 done
7636 done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 M4=$ac_cv_prog_M4
7642 if test -n "$M4"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7644 $as_echo "$M4" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650
7651 test -n "$M4" && break
7652 done
7653 test -n "$M4" || M4="$MISSING m4"
7654
7655 case " $build_configdirs " in
7656 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7657 esac
7658
7659 for ac_prog in flex lex
7660 do
7661 # Extract the first word of "$ac_prog", so it can be a program name with args.
7662 set dummy $ac_prog; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if test "${ac_cv_prog_LEX+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 if test -n "$LEX"; then
7669 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_prog_LEX="$ac_prog"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7681 fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7685
7686 fi
7687 fi
7688 LEX=$ac_cv_prog_LEX
7689 if test -n "$LEX"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7691 $as_echo "$LEX" >&6; }
7692 else
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697
7698 test -n "$LEX" && break
7699 done
7700 test -n "$LEX" || LEX="$MISSING flex"
7701
7702 case " $build_configdirs " in
7703 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7704 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7705 esac
7706
7707 for ac_prog in flex
7708 do
7709 # Extract the first word of "$ac_prog", so it can be a program name with args.
7710 set dummy $ac_prog; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_FLEX+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$FLEX"; then
7717 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_FLEX="$ac_prog"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 FLEX=$ac_cv_prog_FLEX
7737 if test -n "$FLEX"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7739 $as_echo "$FLEX" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746 test -n "$FLEX" && break
7747 done
7748 test -n "$FLEX" || FLEX="$MISSING flex"
7749
7750 case " $build_configdirs " in
7751 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7752 esac
7753
7754 for ac_prog in makeinfo
7755 do
7756 # Extract the first word of "$ac_prog", so it can be a program name with args.
7757 set dummy $ac_prog; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 if test -n "$MAKEINFO"; then
7764 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 ac_cv_prog_MAKEINFO="$ac_prog"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777 done
7778 done
7779 IFS=$as_save_IFS
7780
7781 fi
7782 fi
7783 MAKEINFO=$ac_cv_prog_MAKEINFO
7784 if test -n "$MAKEINFO"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7786 $as_echo "$MAKEINFO" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791
7792
7793 test -n "$MAKEINFO" && break
7794 done
7795 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7796
7797 case " $build_configdirs " in
7798 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7799 *)
7800
7801 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7802 # higher, else we use the "missing" dummy.
7803 if ${MAKEINFO} --version \
7804 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7805 :
7806 else
7807 MAKEINFO="$MISSING makeinfo"
7808 fi
7809 ;;
7810
7811 esac
7812
7813 # FIXME: expect and dejagnu may become build tools?
7814
7815 for ac_prog in expect
7816 do
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy $ac_prog; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$EXPECT"; then
7825 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_EXPECT="$ac_prog"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842 fi
7843 fi
7844 EXPECT=$ac_cv_prog_EXPECT
7845 if test -n "$EXPECT"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7847 $as_echo "$EXPECT" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 fi
7852
7853
7854 test -n "$EXPECT" && break
7855 done
7856 test -n "$EXPECT" || EXPECT="expect"
7857
7858 case " $configdirs " in
7859 *" expect "*)
7860 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7861 ;;
7862 esac
7863
7864 for ac_prog in runtest
7865 do
7866 # Extract the first word of "$ac_prog", so it can be a program name with args.
7867 set dummy $ac_prog; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 if test -n "$RUNTEST"; then
7874 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_RUNTEST="$ac_prog"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887 done
7888 done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 RUNTEST=$ac_cv_prog_RUNTEST
7894 if test -n "$RUNTEST"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7896 $as_echo "$RUNTEST" >&6; }
7897 else
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 fi
7901
7902
7903 test -n "$RUNTEST" && break
7904 done
7905 test -n "$RUNTEST" || RUNTEST="runtest"
7906
7907 case " $configdirs " in
7908 *" dejagnu "*)
7909 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7910 ;;
7911 esac
7912
7913
7914 # Host tools.
7915 ncn_tool_prefix=
7916 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7917 ncn_target_tool_prefix=
7918 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7919
7920
7921
7922 if test -n "$AR"; then
7923 ac_cv_prog_AR=$AR
7924 elif test -n "$ac_cv_prog_AR"; then
7925 AR=$ac_cv_prog_AR
7926 fi
7927
7928 if test -n "$ac_cv_prog_AR"; then
7929 for ncn_progname in ar; do
7930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7931 set dummy ${ncn_progname}; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if test "${ac_cv_prog_AR+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 if test -n "$AR"; then
7938 ac_cv_prog_AR="$AR" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_prog_AR="${ncn_progname}"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951 done
7952 done
7953 IFS=$as_save_IFS
7954
7955 fi
7956 fi
7957 AR=$ac_cv_prog_AR
7958 if test -n "$AR"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7960 $as_echo "$AR" >&6; }
7961 else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7964 fi
7965
7966
7967 done
7968 fi
7969
7970 for ncn_progname in ar; do
7971 if test -n "$ncn_tool_prefix"; then
7972 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7973 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if test "${ac_cv_prog_AR+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 if test -n "$AR"; then
7980 ac_cv_prog_AR="$AR" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7984 do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993 done
7994 done
7995 IFS=$as_save_IFS
7996
7997 fi
7998 fi
7999 AR=$ac_cv_prog_AR
8000 if test -n "$AR"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8002 $as_echo "$AR" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007
8008
8009 fi
8010 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8012 set dummy ${ncn_progname}; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if test "${ac_cv_prog_AR+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 if test -n "$AR"; then
8019 ac_cv_prog_AR="$AR" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8028 ac_cv_prog_AR="${ncn_progname}"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032 done
8033 done
8034 IFS=$as_save_IFS
8035
8036 fi
8037 fi
8038 AR=$ac_cv_prog_AR
8039 if test -n "$AR"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8041 $as_echo "$AR" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047
8048 fi
8049 test -n "$ac_cv_prog_AR" && break
8050 done
8051
8052 if test -z "$ac_cv_prog_AR" ; then
8053 set dummy ar
8054 if test $build = $host ; then
8055 AR="$2"
8056 else
8057 AR="${ncn_tool_prefix}$2"
8058 fi
8059 fi
8060
8061
8062
8063 if test -n "$AS"; then
8064 ac_cv_prog_AS=$AS
8065 elif test -n "$ac_cv_prog_AS"; then
8066 AS=$ac_cv_prog_AS
8067 fi
8068
8069 if test -n "$ac_cv_prog_AS"; then
8070 for ncn_progname in as; do
8071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8072 set dummy ${ncn_progname}; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if test "${ac_cv_prog_AS+set}" = set; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 if test -n "$AS"; then
8079 ac_cv_prog_AS="$AS" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8083 do
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_prog_AS="${ncn_progname}"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 AS=$ac_cv_prog_AS
8099 if test -n "$AS"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8101 $as_echo "$AS" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107
8108 done
8109 fi
8110
8111 for ncn_progname in as; do
8112 if test -n "$ncn_tool_prefix"; then
8113 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8114 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if test "${ac_cv_prog_AS+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 if test -n "$AS"; then
8121 ac_cv_prog_AS="$AS" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8130 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134 done
8135 done
8136 IFS=$as_save_IFS
8137
8138 fi
8139 fi
8140 AS=$ac_cv_prog_AS
8141 if test -n "$AS"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8143 $as_echo "$AS" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149
8150 fi
8151 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8153 set dummy ${ncn_progname}; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if test "${ac_cv_prog_AS+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 if test -n "$AS"; then
8160 ac_cv_prog_AS="$AS" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_prog_AS="${ncn_progname}"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173 done
8174 done
8175 IFS=$as_save_IFS
8176
8177 fi
8178 fi
8179 AS=$ac_cv_prog_AS
8180 if test -n "$AS"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8182 $as_echo "$AS" >&6; }
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186 fi
8187
8188
8189 fi
8190 test -n "$ac_cv_prog_AS" && break
8191 done
8192
8193 if test -z "$ac_cv_prog_AS" ; then
8194 set dummy as
8195 if test $build = $host ; then
8196 AS="$2"
8197 else
8198 AS="${ncn_tool_prefix}$2"
8199 fi
8200 fi
8201
8202
8203
8204 if test -n "$DLLTOOL"; then
8205 ac_cv_prog_DLLTOOL=$DLLTOOL
8206 elif test -n "$ac_cv_prog_DLLTOOL"; then
8207 DLLTOOL=$ac_cv_prog_DLLTOOL
8208 fi
8209
8210 if test -n "$ac_cv_prog_DLLTOOL"; then
8211 for ncn_progname in dlltool; do
8212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8213 set dummy ${ncn_progname}; ac_word=$2
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215 $as_echo_n "checking for $ac_word... " >&6; }
8216 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 if test -n "$DLLTOOL"; then
8220 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8221 else
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8229 ac_cv_prog_DLLTOOL="${ncn_progname}"
8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233 done
8234 done
8235 IFS=$as_save_IFS
8236
8237 fi
8238 fi
8239 DLLTOOL=$ac_cv_prog_DLLTOOL
8240 if test -n "$DLLTOOL"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8242 $as_echo "$DLLTOOL" >&6; }
8243 else
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245 $as_echo "no" >&6; }
8246 fi
8247
8248
8249 done
8250 fi
8251
8252 for ncn_progname in dlltool; do
8253 if test -n "$ncn_tool_prefix"; then
8254 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8255 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 if test -n "$DLLTOOL"; then
8262 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 break 2
8274 fi
8275 done
8276 done
8277 IFS=$as_save_IFS
8278
8279 fi
8280 fi
8281 DLLTOOL=$ac_cv_prog_DLLTOOL
8282 if test -n "$DLLTOOL"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8284 $as_echo "$DLLTOOL" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290
8291 fi
8292 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8294 set dummy ${ncn_progname}; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 if test -n "$DLLTOOL"; then
8301 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310 ac_cv_prog_DLLTOOL="${ncn_progname}"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 break 2
8313 fi
8314 done
8315 done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 DLLTOOL=$ac_cv_prog_DLLTOOL
8321 if test -n "$DLLTOOL"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8323 $as_echo "$DLLTOOL" >&6; }
8324 else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329
8330 fi
8331 test -n "$ac_cv_prog_DLLTOOL" && break
8332 done
8333
8334 if test -z "$ac_cv_prog_DLLTOOL" ; then
8335 set dummy dlltool
8336 if test $build = $host ; then
8337 DLLTOOL="$2"
8338 else
8339 DLLTOOL="${ncn_tool_prefix}$2"
8340 fi
8341 fi
8342
8343
8344
8345 if test -n "$LD"; then
8346 ac_cv_prog_LD=$LD
8347 elif test -n "$ac_cv_prog_LD"; then
8348 LD=$ac_cv_prog_LD
8349 fi
8350
8351 if test -n "$ac_cv_prog_LD"; then
8352 for ncn_progname in ld; do
8353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8354 set dummy ${ncn_progname}; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if test "${ac_cv_prog_LD+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 if test -n "$LD"; then
8361 ac_cv_prog_LD="$LD" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370 ac_cv_prog_LD="${ncn_progname}"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 fi
8379 fi
8380 LD=$ac_cv_prog_LD
8381 if test -n "$LD"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8383 $as_echo "$LD" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8387 fi
8388
8389
8390 done
8391 fi
8392
8393 for ncn_progname in ld; do
8394 if test -n "$ncn_tool_prefix"; then
8395 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8396 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if test "${ac_cv_prog_LD+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 if test -n "$LD"; then
8403 ac_cv_prog_LD="$LD" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8412 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416 done
8417 done
8418 IFS=$as_save_IFS
8419
8420 fi
8421 fi
8422 LD=$ac_cv_prog_LD
8423 if test -n "$LD"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8425 $as_echo "$LD" >&6; }
8426 else
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430
8431
8432 fi
8433 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8435 set dummy ${ncn_progname}; ac_word=$2
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 $as_echo_n "checking for $ac_word... " >&6; }
8438 if test "${ac_cv_prog_LD+set}" = set; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 if test -n "$LD"; then
8442 ac_cv_prog_LD="$LD" # Let the user override the test.
8443 else
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8446 do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8451 ac_cv_prog_LD="${ncn_progname}"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455 done
8456 done
8457 IFS=$as_save_IFS
8458
8459 fi
8460 fi
8461 LD=$ac_cv_prog_LD
8462 if test -n "$LD"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8464 $as_echo "$LD" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8468 fi
8469
8470
8471 fi
8472 test -n "$ac_cv_prog_LD" && break
8473 done
8474
8475 if test -z "$ac_cv_prog_LD" ; then
8476 set dummy ld
8477 if test $build = $host ; then
8478 LD="$2"
8479 else
8480 LD="${ncn_tool_prefix}$2"
8481 fi
8482 fi
8483
8484
8485
8486 if test -n "$LIPO"; then
8487 ac_cv_prog_LIPO=$LIPO
8488 elif test -n "$ac_cv_prog_LIPO"; then
8489 LIPO=$ac_cv_prog_LIPO
8490 fi
8491
8492 if test -n "$ac_cv_prog_LIPO"; then
8493 for ncn_progname in lipo; do
8494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8495 set dummy ${ncn_progname}; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if test "${ac_cv_prog_LIPO+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 if test -n "$LIPO"; then
8502 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8503 else
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8506 do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8511 ac_cv_prog_LIPO="${ncn_progname}"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8514 fi
8515 done
8516 done
8517 IFS=$as_save_IFS
8518
8519 fi
8520 fi
8521 LIPO=$ac_cv_prog_LIPO
8522 if test -n "$LIPO"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8524 $as_echo "$LIPO" >&6; }
8525 else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8528 fi
8529
8530
8531 done
8532 fi
8533
8534 for ncn_progname in lipo; do
8535 if test -n "$ncn_tool_prefix"; then
8536 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8537 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if test "${ac_cv_prog_LIPO+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 if test -n "$LIPO"; then
8544 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8553 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8556 fi
8557 done
8558 done
8559 IFS=$as_save_IFS
8560
8561 fi
8562 fi
8563 LIPO=$ac_cv_prog_LIPO
8564 if test -n "$LIPO"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8566 $as_echo "$LIPO" >&6; }
8567 else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8570 fi
8571
8572
8573 fi
8574 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8576 set dummy ${ncn_progname}; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if test "${ac_cv_prog_LIPO+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 if test -n "$LIPO"; then
8583 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_prog_LIPO="${ncn_progname}"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596 done
8597 done
8598 IFS=$as_save_IFS
8599
8600 fi
8601 fi
8602 LIPO=$ac_cv_prog_LIPO
8603 if test -n "$LIPO"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8605 $as_echo "$LIPO" >&6; }
8606 else
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 fi
8610
8611
8612 fi
8613 test -n "$ac_cv_prog_LIPO" && break
8614 done
8615
8616 if test -z "$ac_cv_prog_LIPO" ; then
8617 set dummy lipo
8618 if test $build = $host ; then
8619 LIPO="$2"
8620 else
8621 LIPO="${ncn_tool_prefix}$2"
8622 fi
8623 fi
8624
8625
8626
8627 if test -n "$NM"; then
8628 ac_cv_prog_NM=$NM
8629 elif test -n "$ac_cv_prog_NM"; then
8630 NM=$ac_cv_prog_NM
8631 fi
8632
8633 if test -n "$ac_cv_prog_NM"; then
8634 for ncn_progname in nm; do
8635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8636 set dummy ${ncn_progname}; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_prog_NM+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 if test -n "$NM"; then
8643 ac_cv_prog_NM="$NM" # Let the user override the test.
8644 else
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8647 do
8648 IFS=$as_save_IFS
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8652 ac_cv_prog_NM="${ncn_progname}"
8653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654 break 2
8655 fi
8656 done
8657 done
8658 IFS=$as_save_IFS
8659
8660 fi
8661 fi
8662 NM=$ac_cv_prog_NM
8663 if test -n "$NM"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8665 $as_echo "$NM" >&6; }
8666 else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8669 fi
8670
8671
8672 done
8673 fi
8674
8675 for ncn_progname in nm; do
8676 if test -n "$ncn_tool_prefix"; then
8677 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8678 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if test "${ac_cv_prog_NM+set}" = set; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 if test -n "$NM"; then
8685 ac_cv_prog_NM="$NM" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8697 fi
8698 done
8699 done
8700 IFS=$as_save_IFS
8701
8702 fi
8703 fi
8704 NM=$ac_cv_prog_NM
8705 if test -n "$NM"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8707 $as_echo "$NM" >&6; }
8708 else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8711 fi
8712
8713
8714 fi
8715 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8717 set dummy ${ncn_progname}; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if test "${ac_cv_prog_NM+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 if test -n "$NM"; then
8724 ac_cv_prog_NM="$NM" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8733 ac_cv_prog_NM="${ncn_progname}"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 break 2
8736 fi
8737 done
8738 done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 NM=$ac_cv_prog_NM
8744 if test -n "$NM"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8746 $as_echo "$NM" >&6; }
8747 else
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752
8753 fi
8754 test -n "$ac_cv_prog_NM" && break
8755 done
8756
8757 if test -z "$ac_cv_prog_NM" ; then
8758 set dummy nm
8759 if test $build = $host ; then
8760 NM="$2"
8761 else
8762 NM="${ncn_tool_prefix}$2"
8763 fi
8764 fi
8765
8766
8767
8768 if test -n "$RANLIB"; then
8769 ac_cv_prog_RANLIB=$RANLIB
8770 elif test -n "$ac_cv_prog_RANLIB"; then
8771 RANLIB=$ac_cv_prog_RANLIB
8772 fi
8773
8774 if test -n "$ac_cv_prog_RANLIB"; then
8775 for ncn_progname in ranlib; do
8776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8777 set dummy ${ncn_progname}; ac_word=$2
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779 $as_echo_n "checking for $ac_word... " >&6; }
8780 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 if test -n "$RANLIB"; then
8784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8785 else
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in $PATH
8788 do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8793 ac_cv_prog_RANLIB="${ncn_progname}"
8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797 done
8798 done
8799 IFS=$as_save_IFS
8800
8801 fi
8802 fi
8803 RANLIB=$ac_cv_prog_RANLIB
8804 if test -n "$RANLIB"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8806 $as_echo "$RANLIB" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 fi
8811
8812
8813 done
8814 fi
8815
8816 for ncn_progname in ranlib; do
8817 if test -n "$ncn_tool_prefix"; then
8818 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8819 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 if test -n "$RANLIB"; then
8826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8830 do
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8835 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8838 fi
8839 done
8840 done
8841 IFS=$as_save_IFS
8842
8843 fi
8844 fi
8845 RANLIB=$ac_cv_prog_RANLIB
8846 if test -n "$RANLIB"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8848 $as_echo "$RANLIB" >&6; }
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8852 fi
8853
8854
8855 fi
8856 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8858 set dummy ${ncn_progname}; ac_word=$2
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 $as_echo_n "checking for $ac_word... " >&6; }
8861 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 if test -n "$RANLIB"; then
8865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8866 else
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8869 do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8874 ac_cv_prog_RANLIB="${ncn_progname}"
8875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878 done
8879 done
8880 IFS=$as_save_IFS
8881
8882 fi
8883 fi
8884 RANLIB=$ac_cv_prog_RANLIB
8885 if test -n "$RANLIB"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8887 $as_echo "$RANLIB" >&6; }
8888 else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890 $as_echo "no" >&6; }
8891 fi
8892
8893
8894 fi
8895 test -n "$ac_cv_prog_RANLIB" && break
8896 done
8897
8898 if test -z "$ac_cv_prog_RANLIB" ; then
8899 RANLIB="true"
8900 fi
8901
8902
8903
8904 if test -n "$STRIP"; then
8905 ac_cv_prog_STRIP=$STRIP
8906 elif test -n "$ac_cv_prog_STRIP"; then
8907 STRIP=$ac_cv_prog_STRIP
8908 fi
8909
8910 if test -n "$ac_cv_prog_STRIP"; then
8911 for ncn_progname in strip; do
8912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8913 set dummy ${ncn_progname}; ac_word=$2
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915 $as_echo_n "checking for $ac_word... " >&6; }
8916 if test "${ac_cv_prog_STRIP+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 if test -n "$STRIP"; then
8920 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8921 else
8922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923 for as_dir in $PATH
8924 do
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8929 ac_cv_prog_STRIP="${ncn_progname}"
8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 break 2
8932 fi
8933 done
8934 done
8935 IFS=$as_save_IFS
8936
8937 fi
8938 fi
8939 STRIP=$ac_cv_prog_STRIP
8940 if test -n "$STRIP"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8942 $as_echo "$STRIP" >&6; }
8943 else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945 $as_echo "no" >&6; }
8946 fi
8947
8948
8949 done
8950 fi
8951
8952 for ncn_progname in strip; do
8953 if test -n "$ncn_tool_prefix"; then
8954 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8955 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if test "${ac_cv_prog_STRIP+set}" = set; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 if test -n "$STRIP"; then
8962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8963 else
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8971 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975 done
8976 done
8977 IFS=$as_save_IFS
8978
8979 fi
8980 fi
8981 STRIP=$ac_cv_prog_STRIP
8982 if test -n "$STRIP"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8984 $as_echo "$STRIP" >&6; }
8985 else
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8988 fi
8989
8990
8991 fi
8992 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8994 set dummy ${ncn_progname}; ac_word=$2
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_prog_STRIP+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 if test -n "$STRIP"; then
9001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9002 else
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9005 do
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9010 ac_cv_prog_STRIP="${ncn_progname}"
9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9013 fi
9014 done
9015 done
9016 IFS=$as_save_IFS
9017
9018 fi
9019 fi
9020 STRIP=$ac_cv_prog_STRIP
9021 if test -n "$STRIP"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9023 $as_echo "$STRIP" >&6; }
9024 else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9027 fi
9028
9029
9030 fi
9031 test -n "$ac_cv_prog_STRIP" && break
9032 done
9033
9034 if test -z "$ac_cv_prog_STRIP" ; then
9035 STRIP="true"
9036 fi
9037
9038
9039
9040 if test -n "$WINDRES"; then
9041 ac_cv_prog_WINDRES=$WINDRES
9042 elif test -n "$ac_cv_prog_WINDRES"; then
9043 WINDRES=$ac_cv_prog_WINDRES
9044 fi
9045
9046 if test -n "$ac_cv_prog_WINDRES"; then
9047 for ncn_progname in windres; do
9048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9049 set dummy ${ncn_progname}; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 if test -n "$WINDRES"; then
9056 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9057 else
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 for as_dir in $PATH
9060 do
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9065 ac_cv_prog_WINDRES="${ncn_progname}"
9066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 break 2
9068 fi
9069 done
9070 done
9071 IFS=$as_save_IFS
9072
9073 fi
9074 fi
9075 WINDRES=$ac_cv_prog_WINDRES
9076 if test -n "$WINDRES"; then
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9078 $as_echo "$WINDRES" >&6; }
9079 else
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 $as_echo "no" >&6; }
9082 fi
9083
9084
9085 done
9086 fi
9087
9088 for ncn_progname in windres; do
9089 if test -n "$ncn_tool_prefix"; then
9090 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9091 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093 $as_echo_n "checking for $ac_word... " >&6; }
9094 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 if test -n "$WINDRES"; then
9098 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9099 else
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 for as_dir in $PATH
9102 do
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 break 2
9110 fi
9111 done
9112 done
9113 IFS=$as_save_IFS
9114
9115 fi
9116 fi
9117 WINDRES=$ac_cv_prog_WINDRES
9118 if test -n "$WINDRES"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9120 $as_echo "$WINDRES" >&6; }
9121 else
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9124 fi
9125
9126
9127 fi
9128 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9130 set dummy ${ncn_progname}; ac_word=$2
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9132 $as_echo_n "checking for $ac_word... " >&6; }
9133 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 if test -n "$WINDRES"; then
9137 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9138 else
9139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 for as_dir in $PATH
9141 do
9142 IFS=$as_save_IFS
9143 test -z "$as_dir" && as_dir=.
9144 for ac_exec_ext in '' $ac_executable_extensions; do
9145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9146 ac_cv_prog_WINDRES="${ncn_progname}"
9147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148 break 2
9149 fi
9150 done
9151 done
9152 IFS=$as_save_IFS
9153
9154 fi
9155 fi
9156 WINDRES=$ac_cv_prog_WINDRES
9157 if test -n "$WINDRES"; then
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9159 $as_echo "$WINDRES" >&6; }
9160 else
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }
9163 fi
9164
9165
9166 fi
9167 test -n "$ac_cv_prog_WINDRES" && break
9168 done
9169
9170 if test -z "$ac_cv_prog_WINDRES" ; then
9171 set dummy windres
9172 if test $build = $host ; then
9173 WINDRES="$2"
9174 else
9175 WINDRES="${ncn_tool_prefix}$2"
9176 fi
9177 fi
9178
9179
9180
9181 if test -n "$WINDMC"; then
9182 ac_cv_prog_WINDMC=$WINDMC
9183 elif test -n "$ac_cv_prog_WINDMC"; then
9184 WINDMC=$ac_cv_prog_WINDMC
9185 fi
9186
9187 if test -n "$ac_cv_prog_WINDMC"; then
9188 for ncn_progname in windmc; do
9189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9190 set dummy ${ncn_progname}; ac_word=$2
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192 $as_echo_n "checking for $ac_word... " >&6; }
9193 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 if test -n "$WINDMC"; then
9197 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9198 else
9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 for as_dir in $PATH
9201 do
9202 IFS=$as_save_IFS
9203 test -z "$as_dir" && as_dir=.
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9206 ac_cv_prog_WINDMC="${ncn_progname}"
9207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9208 break 2
9209 fi
9210 done
9211 done
9212 IFS=$as_save_IFS
9213
9214 fi
9215 fi
9216 WINDMC=$ac_cv_prog_WINDMC
9217 if test -n "$WINDMC"; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9219 $as_echo "$WINDMC" >&6; }
9220 else
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9223 fi
9224
9225
9226 done
9227 fi
9228
9229 for ncn_progname in windmc; do
9230 if test -n "$ncn_tool_prefix"; then
9231 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9232 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234 $as_echo_n "checking for $ac_word... " >&6; }
9235 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 if test -n "$WINDMC"; then
9239 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9240 else
9241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242 for as_dir in $PATH
9243 do
9244 IFS=$as_save_IFS
9245 test -z "$as_dir" && as_dir=.
9246 for ac_exec_ext in '' $ac_executable_extensions; do
9247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9248 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9250 break 2
9251 fi
9252 done
9253 done
9254 IFS=$as_save_IFS
9255
9256 fi
9257 fi
9258 WINDMC=$ac_cv_prog_WINDMC
9259 if test -n "$WINDMC"; then
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9261 $as_echo "$WINDMC" >&6; }
9262 else
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264 $as_echo "no" >&6; }
9265 fi
9266
9267
9268 fi
9269 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9271 set dummy ${ncn_progname}; ac_word=$2
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9273 $as_echo_n "checking for $ac_word... " >&6; }
9274 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 if test -n "$WINDMC"; then
9278 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9279 else
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $PATH
9282 do
9283 IFS=$as_save_IFS
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9287 ac_cv_prog_WINDMC="${ncn_progname}"
9288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 break 2
9290 fi
9291 done
9292 done
9293 IFS=$as_save_IFS
9294
9295 fi
9296 fi
9297 WINDMC=$ac_cv_prog_WINDMC
9298 if test -n "$WINDMC"; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9300 $as_echo "$WINDMC" >&6; }
9301 else
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9304 fi
9305
9306
9307 fi
9308 test -n "$ac_cv_prog_WINDMC" && break
9309 done
9310
9311 if test -z "$ac_cv_prog_WINDMC" ; then
9312 set dummy windmc
9313 if test $build = $host ; then
9314 WINDMC="$2"
9315 else
9316 WINDMC="${ncn_tool_prefix}$2"
9317 fi
9318 fi
9319
9320
9321
9322 if test -n "$OBJCOPY"; then
9323 ac_cv_prog_OBJCOPY=$OBJCOPY
9324 elif test -n "$ac_cv_prog_OBJCOPY"; then
9325 OBJCOPY=$ac_cv_prog_OBJCOPY
9326 fi
9327
9328 if test -n "$ac_cv_prog_OBJCOPY"; then
9329 for ncn_progname in objcopy; do
9330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9331 set dummy ${ncn_progname}; ac_word=$2
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 if test -n "$OBJCOPY"; then
9338 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9339 else
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9342 do
9343 IFS=$as_save_IFS
9344 test -z "$as_dir" && as_dir=.
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9347 ac_cv_prog_OBJCOPY="${ncn_progname}"
9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349 break 2
9350 fi
9351 done
9352 done
9353 IFS=$as_save_IFS
9354
9355 fi
9356 fi
9357 OBJCOPY=$ac_cv_prog_OBJCOPY
9358 if test -n "$OBJCOPY"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9360 $as_echo "$OBJCOPY" >&6; }
9361 else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9364 fi
9365
9366
9367 done
9368 fi
9369
9370 for ncn_progname in objcopy; do
9371 if test -n "$ncn_tool_prefix"; then
9372 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9373 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375 $as_echo_n "checking for $ac_word... " >&6; }
9376 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 if test -n "$OBJCOPY"; then
9380 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9381 else
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 for as_dir in $PATH
9384 do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 break 2
9392 fi
9393 done
9394 done
9395 IFS=$as_save_IFS
9396
9397 fi
9398 fi
9399 OBJCOPY=$ac_cv_prog_OBJCOPY
9400 if test -n "$OBJCOPY"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9402 $as_echo "$OBJCOPY" >&6; }
9403 else
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9406 fi
9407
9408
9409 fi
9410 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9412 set dummy ${ncn_progname}; ac_word=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 if test -n "$OBJCOPY"; then
9419 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9420 else
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422 for as_dir in $PATH
9423 do
9424 IFS=$as_save_IFS
9425 test -z "$as_dir" && as_dir=.
9426 for ac_exec_ext in '' $ac_executable_extensions; do
9427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9428 ac_cv_prog_OBJCOPY="${ncn_progname}"
9429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 break 2
9431 fi
9432 done
9433 done
9434 IFS=$as_save_IFS
9435
9436 fi
9437 fi
9438 OBJCOPY=$ac_cv_prog_OBJCOPY
9439 if test -n "$OBJCOPY"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9441 $as_echo "$OBJCOPY" >&6; }
9442 else
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444 $as_echo "no" >&6; }
9445 fi
9446
9447
9448 fi
9449 test -n "$ac_cv_prog_OBJCOPY" && break
9450 done
9451
9452 if test -z "$ac_cv_prog_OBJCOPY" ; then
9453 set dummy objcopy
9454 if test $build = $host ; then
9455 OBJCOPY="$2"
9456 else
9457 OBJCOPY="${ncn_tool_prefix}$2"
9458 fi
9459 fi
9460
9461
9462
9463 if test -n "$OBJDUMP"; then
9464 ac_cv_prog_OBJDUMP=$OBJDUMP
9465 elif test -n "$ac_cv_prog_OBJDUMP"; then
9466 OBJDUMP=$ac_cv_prog_OBJDUMP
9467 fi
9468
9469 if test -n "$ac_cv_prog_OBJDUMP"; then
9470 for ncn_progname in objdump; do
9471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9472 set dummy ${ncn_progname}; ac_word=$2
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9474 $as_echo_n "checking for $ac_word... " >&6; }
9475 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9476 $as_echo_n "(cached) " >&6
9477 else
9478 if test -n "$OBJDUMP"; then
9479 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9480 else
9481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482 for as_dir in $PATH
9483 do
9484 IFS=$as_save_IFS
9485 test -z "$as_dir" && as_dir=.
9486 for ac_exec_ext in '' $ac_executable_extensions; do
9487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9488 ac_cv_prog_OBJDUMP="${ncn_progname}"
9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9490 break 2
9491 fi
9492 done
9493 done
9494 IFS=$as_save_IFS
9495
9496 fi
9497 fi
9498 OBJDUMP=$ac_cv_prog_OBJDUMP
9499 if test -n "$OBJDUMP"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9501 $as_echo "$OBJDUMP" >&6; }
9502 else
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; }
9505 fi
9506
9507
9508 done
9509 fi
9510
9511 for ncn_progname in objdump; do
9512 if test -n "$ncn_tool_prefix"; then
9513 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9514 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516 $as_echo_n "checking for $ac_word... " >&6; }
9517 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 if test -n "$OBJDUMP"; then
9521 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9522 else
9523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524 for as_dir in $PATH
9525 do
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9530 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 break 2
9533 fi
9534 done
9535 done
9536 IFS=$as_save_IFS
9537
9538 fi
9539 fi
9540 OBJDUMP=$ac_cv_prog_OBJDUMP
9541 if test -n "$OBJDUMP"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9543 $as_echo "$OBJDUMP" >&6; }
9544 else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 $as_echo "no" >&6; }
9547 fi
9548
9549
9550 fi
9551 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9553 set dummy ${ncn_progname}; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 if test -n "$OBJDUMP"; then
9560 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9561 else
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in $PATH
9564 do
9565 IFS=$as_save_IFS
9566 test -z "$as_dir" && as_dir=.
9567 for ac_exec_ext in '' $ac_executable_extensions; do
9568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9569 ac_cv_prog_OBJDUMP="${ncn_progname}"
9570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 break 2
9572 fi
9573 done
9574 done
9575 IFS=$as_save_IFS
9576
9577 fi
9578 fi
9579 OBJDUMP=$ac_cv_prog_OBJDUMP
9580 if test -n "$OBJDUMP"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9582 $as_echo "$OBJDUMP" >&6; }
9583 else
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9586 fi
9587
9588
9589 fi
9590 test -n "$ac_cv_prog_OBJDUMP" && break
9591 done
9592
9593 if test -z "$ac_cv_prog_OBJDUMP" ; then
9594 set dummy objdump
9595 if test $build = $host ; then
9596 OBJDUMP="$2"
9597 else
9598 OBJDUMP="${ncn_tool_prefix}$2"
9599 fi
9600 fi
9601
9602
9603
9604
9605
9606
9607 # Target tools.
9608
9609 # Check whether --with-build-time-tools was given.
9610 if test "${with_build_time_tools+set}" = set; then :
9611 withval=$with_build_time_tools; case x"$withval" in
9612 x/*) ;;
9613 *)
9614 with_build_time_tools=
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9616 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9617 ;;
9618 esac
9619 else
9620 with_build_time_tools=
9621 fi
9622
9623
9624
9625
9626 if test -n "$CC_FOR_TARGET"; then
9627 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9628 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9629 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9630 fi
9631
9632 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9633 for ncn_progname in cc gcc; do
9634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9635 set dummy ${ncn_progname}; ac_word=$2
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637 $as_echo_n "checking for $ac_word... " >&6; }
9638 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 if test -n "$CC_FOR_TARGET"; then
9642 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9643 else
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9646 do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9651 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655 done
9656 done
9657 IFS=$as_save_IFS
9658
9659 fi
9660 fi
9661 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9662 if test -n "$CC_FOR_TARGET"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9664 $as_echo "$CC_FOR_TARGET" >&6; }
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9668 fi
9669
9670
9671 done
9672 fi
9673
9674 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9675 for ncn_progname in cc gcc; do
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9677 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9678 if test -x $with_build_time_tools/${ncn_progname}; then
9679 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9681 $as_echo "yes" >&6; }
9682 break
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9686 fi
9687 done
9688 fi
9689
9690 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9691 for ncn_progname in cc gcc; do
9692 if test -n "$ncn_target_tool_prefix"; then
9693 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9694 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696 $as_echo_n "checking for $ac_word... " >&6; }
9697 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9698 $as_echo_n "(cached) " >&6
9699 else
9700 if test -n "$CC_FOR_TARGET"; then
9701 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9702 else
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704 for as_dir in $PATH
9705 do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9710 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9712 break 2
9713 fi
9714 done
9715 done
9716 IFS=$as_save_IFS
9717
9718 fi
9719 fi
9720 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9721 if test -n "$CC_FOR_TARGET"; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9723 $as_echo "$CC_FOR_TARGET" >&6; }
9724 else
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726 $as_echo "no" >&6; }
9727 fi
9728
9729
9730 fi
9731 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9733 set dummy ${ncn_progname}; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 if test -n "$CC_FOR_TARGET"; then
9740 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9741 else
9742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 for as_dir in $PATH
9744 do
9745 IFS=$as_save_IFS
9746 test -z "$as_dir" && as_dir=.
9747 for ac_exec_ext in '' $ac_executable_extensions; do
9748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9749 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9751 break 2
9752 fi
9753 done
9754 done
9755 IFS=$as_save_IFS
9756
9757 fi
9758 fi
9759 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9760 if test -n "$CC_FOR_TARGET"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9762 $as_echo "$CC_FOR_TARGET" >&6; }
9763 else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9766 fi
9767
9768
9769 fi
9770 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9771 done
9772 fi
9773
9774 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9775 set dummy cc gcc
9776 if test $build = $target ; then
9777 CC_FOR_TARGET="$2"
9778 else
9779 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9780 fi
9781 else
9782 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9783 fi
9784
9785
9786
9787 if test -n "$CXX_FOR_TARGET"; then
9788 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9789 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9790 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9791 fi
9792
9793 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9794 for ncn_progname in c++ g++ cxx gxx; do
9795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9796 set dummy ${ncn_progname}; ac_word=$2
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798 $as_echo_n "checking for $ac_word... " >&6; }
9799 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 if test -n "$CXX_FOR_TARGET"; then
9803 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9804 else
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $PATH
9807 do
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9815 fi
9816 done
9817 done
9818 IFS=$as_save_IFS
9819
9820 fi
9821 fi
9822 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9823 if test -n "$CXX_FOR_TARGET"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9825 $as_echo "$CXX_FOR_TARGET" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9829 fi
9830
9831
9832 done
9833 fi
9834
9835 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9836 for ncn_progname in c++ g++ cxx gxx; do
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9838 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9839 if test -x $with_build_time_tools/${ncn_progname}; then
9840 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9842 $as_echo "yes" >&6; }
9843 break
9844 else
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9847 fi
9848 done
9849 fi
9850
9851 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9852 for ncn_progname in c++ g++ cxx gxx; do
9853 if test -n "$ncn_target_tool_prefix"; then
9854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9855 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 if test -n "$CXX_FOR_TARGET"; then
9862 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9863 else
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9866 do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875 done
9876 done
9877 IFS=$as_save_IFS
9878
9879 fi
9880 fi
9881 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9882 if test -n "$CXX_FOR_TARGET"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9884 $as_echo "$CXX_FOR_TARGET" >&6; }
9885 else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9888 fi
9889
9890
9891 fi
9892 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9894 set dummy ${ncn_progname}; ac_word=$2
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 $as_echo_n "checking for $ac_word... " >&6; }
9897 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 if test -n "$CXX_FOR_TARGET"; then
9901 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9902 else
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9905 do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914 done
9915 done
9916 IFS=$as_save_IFS
9917
9918 fi
9919 fi
9920 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9921 if test -n "$CXX_FOR_TARGET"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9923 $as_echo "$CXX_FOR_TARGET" >&6; }
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9927 fi
9928
9929
9930 fi
9931 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9932 done
9933 fi
9934
9935 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9936 set dummy c++ g++ cxx gxx
9937 if test $build = $target ; then
9938 CXX_FOR_TARGET="$2"
9939 else
9940 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9941 fi
9942 else
9943 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9944 fi
9945
9946
9947
9948 if test -n "$GCC_FOR_TARGET"; then
9949 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9950 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9951 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9952 fi
9953
9954 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9955 for ncn_progname in gcc; do
9956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9957 set dummy ${ncn_progname}; ac_word=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 if test -n "$GCC_FOR_TARGET"; then
9964 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9965 else
9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 for as_dir in $PATH
9968 do
9969 IFS=$as_save_IFS
9970 test -z "$as_dir" && as_dir=.
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9973 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9975 break 2
9976 fi
9977 done
9978 done
9979 IFS=$as_save_IFS
9980
9981 fi
9982 fi
9983 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9984 if test -n "$GCC_FOR_TARGET"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9986 $as_echo "$GCC_FOR_TARGET" >&6; }
9987 else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9990 fi
9991
9992
9993 done
9994 fi
9995
9996 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9997 for ncn_progname in gcc; do
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9999 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10000 if test -x $with_build_time_tools/${ncn_progname}; then
10001 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10003 $as_echo "yes" >&6; }
10004 break
10005 else
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10008 fi
10009 done
10010 fi
10011
10012 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10013 for ncn_progname in gcc; do
10014 if test -n "$ncn_target_tool_prefix"; then
10015 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10016 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 if test -n "$GCC_FOR_TARGET"; then
10023 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10024 else
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10027 do
10028 IFS=$as_save_IFS
10029 test -z "$as_dir" && as_dir=.
10030 for ac_exec_ext in '' $ac_executable_extensions; do
10031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 break 2
10035 fi
10036 done
10037 done
10038 IFS=$as_save_IFS
10039
10040 fi
10041 fi
10042 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10043 if test -n "$GCC_FOR_TARGET"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10045 $as_echo "$GCC_FOR_TARGET" >&6; }
10046 else
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10049 fi
10050
10051
10052 fi
10053 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10055 set dummy ${ncn_progname}; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 if test -n "$GCC_FOR_TARGET"; then
10062 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10063 else
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10074 fi
10075 done
10076 done
10077 IFS=$as_save_IFS
10078
10079 fi
10080 fi
10081 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10082 if test -n "$GCC_FOR_TARGET"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10084 $as_echo "$GCC_FOR_TARGET" >&6; }
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 fi
10089
10090
10091 fi
10092 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10093 done
10094 fi
10095
10096 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10097 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10098 else
10099 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10100 fi
10101
10102
10103
10104 if test -n "$GCJ_FOR_TARGET"; then
10105 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10106 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10107 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10108 fi
10109
10110 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10111 for ncn_progname in gcj; do
10112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10113 set dummy ${ncn_progname}; ac_word=$2
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115 $as_echo_n "checking for $ac_word... " >&6; }
10116 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 if test -n "$GCJ_FOR_TARGET"; then
10120 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10121 else
10122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10124 do
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10129 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 break 2
10132 fi
10133 done
10134 done
10135 IFS=$as_save_IFS
10136
10137 fi
10138 fi
10139 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10140 if test -n "$GCJ_FOR_TARGET"; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10142 $as_echo "$GCJ_FOR_TARGET" >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10146 fi
10147
10148
10149 done
10150 fi
10151
10152 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10153 for ncn_progname in gcj; do
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10155 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10156 if test -x $with_build_time_tools/${ncn_progname}; then
10157 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159 $as_echo "yes" >&6; }
10160 break
10161 else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }
10164 fi
10165 done
10166 fi
10167
10168 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10169 for ncn_progname in gcj; do
10170 if test -n "$ncn_target_tool_prefix"; then
10171 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10172 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 $as_echo_n "checking for $ac_word... " >&6; }
10175 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 if test -n "$GCJ_FOR_TARGET"; then
10179 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10180 else
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10183 do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10191 fi
10192 done
10193 done
10194 IFS=$as_save_IFS
10195
10196 fi
10197 fi
10198 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10199 if test -n "$GCJ_FOR_TARGET"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10201 $as_echo "$GCJ_FOR_TARGET" >&6; }
10202 else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10205 fi
10206
10207
10208 fi
10209 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10211 set dummy ${ncn_progname}; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 if test -n "$GCJ_FOR_TARGET"; then
10218 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10219 else
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10222 do
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 break 2
10230 fi
10231 done
10232 done
10233 IFS=$as_save_IFS
10234
10235 fi
10236 fi
10237 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10238 if test -n "$GCJ_FOR_TARGET"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10240 $as_echo "$GCJ_FOR_TARGET" >&6; }
10241 else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10244 fi
10245
10246
10247 fi
10248 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10249 done
10250 fi
10251
10252 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10253 set dummy gcj
10254 if test $build = $target ; then
10255 GCJ_FOR_TARGET="$2"
10256 else
10257 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10258 fi
10259 else
10260 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10261 fi
10262
10263
10264
10265 if test -n "$GFORTRAN_FOR_TARGET"; then
10266 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10267 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10268 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10269 fi
10270
10271 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10272 for ncn_progname in gfortran; do
10273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10274 set dummy ${ncn_progname}; ac_word=$2
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276 $as_echo_n "checking for $ac_word... " >&6; }
10277 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 if test -n "$GFORTRAN_FOR_TARGET"; then
10281 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10282 else
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in $PATH
10285 do
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10290 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10293 fi
10294 done
10295 done
10296 IFS=$as_save_IFS
10297
10298 fi
10299 fi
10300 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10301 if test -n "$GFORTRAN_FOR_TARGET"; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10303 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10304 else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10307 fi
10308
10309
10310 done
10311 fi
10312
10313 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10314 for ncn_progname in gfortran; do
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10316 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10317 if test -x $with_build_time_tools/${ncn_progname}; then
10318 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10320 $as_echo "yes" >&6; }
10321 break
10322 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10325 fi
10326 done
10327 fi
10328
10329 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10330 for ncn_progname in gfortran; do
10331 if test -n "$ncn_target_tool_prefix"; then
10332 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10333 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 if test -n "$GFORTRAN_FOR_TARGET"; then
10340 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10341 else
10342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10344 do
10345 IFS=$as_save_IFS
10346 test -z "$as_dir" && as_dir=.
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10349 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10351 break 2
10352 fi
10353 done
10354 done
10355 IFS=$as_save_IFS
10356
10357 fi
10358 fi
10359 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10360 if test -n "$GFORTRAN_FOR_TARGET"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10362 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10366 fi
10367
10368
10369 fi
10370 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10372 set dummy ${ncn_progname}; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 if test -n "$GFORTRAN_FOR_TARGET"; then
10379 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10380 else
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10383 do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10391 fi
10392 done
10393 done
10394 IFS=$as_save_IFS
10395
10396 fi
10397 fi
10398 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10399 if test -n "$GFORTRAN_FOR_TARGET"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10401 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10402 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10405 fi
10406
10407
10408 fi
10409 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10410 done
10411 fi
10412
10413 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10414 set dummy gfortran
10415 if test $build = $target ; then
10416 GFORTRAN_FOR_TARGET="$2"
10417 else
10418 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10419 fi
10420 else
10421 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10422 fi
10423
10424
10425
10426 cat > conftest.c << \EOF
10427 #ifdef __GNUC__
10428 gcc_yay;
10429 #endif
10430 EOF
10431 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10432 have_gcc_for_target=yes
10433 else
10434 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10435 have_gcc_for_target=no
10436 fi
10437 rm conftest.c
10438
10439
10440
10441
10442 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10443 if test -n "$with_build_time_tools"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10445 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10446 if test -x $with_build_time_tools/ar; then
10447 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10448 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10450 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10454 fi
10455 elif test $build != $host && test $have_gcc_for_target = yes; then
10456 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10457 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10458 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10459 fi
10460 fi
10461 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10462 # Extract the first word of "ar", so it can be a program name with args.
10463 set dummy ar; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 case $AR_FOR_TARGET in
10470 [\\/]* | ?:[\\/]*)
10471 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10472 ;;
10473 *)
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 for as_dir in $gcc_cv_tool_dirs
10476 do
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10481 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10484 fi
10485 done
10486 done
10487 IFS=$as_save_IFS
10488
10489 ;;
10490 esac
10491 fi
10492 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10493 if test -n "$AR_FOR_TARGET"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10495 $as_echo "$AR_FOR_TARGET" >&6; }
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10499 fi
10500
10501
10502 fi
10503 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10504
10505
10506 if test -n "$AR_FOR_TARGET"; then
10507 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10508 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10509 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10510 fi
10511
10512 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10513 for ncn_progname in ar; do
10514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10515 set dummy ${ncn_progname}; ac_word=$2
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10517 $as_echo_n "checking for $ac_word... " >&6; }
10518 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 if test -n "$AR_FOR_TARGET"; then
10522 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10523 else
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10526 do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10534 fi
10535 done
10536 done
10537 IFS=$as_save_IFS
10538
10539 fi
10540 fi
10541 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10542 if test -n "$AR_FOR_TARGET"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10544 $as_echo "$AR_FOR_TARGET" >&6; }
10545 else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10548 fi
10549
10550
10551 done
10552 fi
10553
10554 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10555 for ncn_progname in ar; do
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10557 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10558 if test -x $with_build_time_tools/${ncn_progname}; then
10559 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10561 $as_echo "yes" >&6; }
10562 break
10563 else
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565 $as_echo "no" >&6; }
10566 fi
10567 done
10568 fi
10569
10570 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10571 for ncn_progname in ar; do
10572 if test -n "$ncn_target_tool_prefix"; then
10573 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10574 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 if test -n "$AR_FOR_TARGET"; then
10581 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10582 else
10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584 for as_dir in $PATH
10585 do
10586 IFS=$as_save_IFS
10587 test -z "$as_dir" && as_dir=.
10588 for ac_exec_ext in '' $ac_executable_extensions; do
10589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10590 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10592 break 2
10593 fi
10594 done
10595 done
10596 IFS=$as_save_IFS
10597
10598 fi
10599 fi
10600 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10601 if test -n "$AR_FOR_TARGET"; then
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10603 $as_echo "$AR_FOR_TARGET" >&6; }
10604 else
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10607 fi
10608
10609
10610 fi
10611 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10613 set dummy ${ncn_progname}; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 if test -n "$AR_FOR_TARGET"; then
10620 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10621 else
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10624 do
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10632 fi
10633 done
10634 done
10635 IFS=$as_save_IFS
10636
10637 fi
10638 fi
10639 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10640 if test -n "$AR_FOR_TARGET"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10642 $as_echo "$AR_FOR_TARGET" >&6; }
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10646 fi
10647
10648
10649 fi
10650 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10651 done
10652 fi
10653
10654 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10655 set dummy ar
10656 if test $build = $target ; then
10657 AR_FOR_TARGET="$2"
10658 else
10659 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10660 fi
10661 else
10662 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10663 fi
10664
10665 else
10666 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10667 fi
10668
10669
10670
10671
10672 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10673 if test -n "$with_build_time_tools"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10675 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10676 if test -x $with_build_time_tools/as; then
10677 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10678 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10680 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10681 else
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683 $as_echo "no" >&6; }
10684 fi
10685 elif test $build != $host && test $have_gcc_for_target = yes; then
10686 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10687 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10688 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10689 fi
10690 fi
10691 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10692 # Extract the first word of "as", so it can be a program name with args.
10693 set dummy as; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 case $AS_FOR_TARGET in
10700 [\\/]* | ?:[\\/]*)
10701 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10702 ;;
10703 *)
10704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in $gcc_cv_tool_dirs
10706 do
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10711 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10714 fi
10715 done
10716 done
10717 IFS=$as_save_IFS
10718
10719 ;;
10720 esac
10721 fi
10722 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10723 if test -n "$AS_FOR_TARGET"; then
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10725 $as_echo "$AS_FOR_TARGET" >&6; }
10726 else
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10729 fi
10730
10731
10732 fi
10733 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10734
10735
10736 if test -n "$AS_FOR_TARGET"; then
10737 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10738 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10739 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10740 fi
10741
10742 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10743 for ncn_progname in as; do
10744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10745 set dummy ${ncn_progname}; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 if test -n "$AS_FOR_TARGET"; then
10752 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10756 do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10764 fi
10765 done
10766 done
10767 IFS=$as_save_IFS
10768
10769 fi
10770 fi
10771 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10772 if test -n "$AS_FOR_TARGET"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10774 $as_echo "$AS_FOR_TARGET" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 fi
10779
10780
10781 done
10782 fi
10783
10784 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10785 for ncn_progname in as; do
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10787 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10788 if test -x $with_build_time_tools/${ncn_progname}; then
10789 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10791 $as_echo "yes" >&6; }
10792 break
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10796 fi
10797 done
10798 fi
10799
10800 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10801 for ncn_progname in as; do
10802 if test -n "$ncn_target_tool_prefix"; then
10803 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10804 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 $as_echo_n "checking for $ac_word... " >&6; }
10807 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 if test -n "$AS_FOR_TARGET"; then
10811 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10812 else
10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814 for as_dir in $PATH
10815 do
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10820 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10823 fi
10824 done
10825 done
10826 IFS=$as_save_IFS
10827
10828 fi
10829 fi
10830 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10831 if test -n "$AS_FOR_TARGET"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10833 $as_echo "$AS_FOR_TARGET" >&6; }
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10837 fi
10838
10839
10840 fi
10841 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10843 set dummy ${ncn_progname}; ac_word=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 if test -n "$AS_FOR_TARGET"; then
10850 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10851 else
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10854 do
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10859 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10862 fi
10863 done
10864 done
10865 IFS=$as_save_IFS
10866
10867 fi
10868 fi
10869 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10870 if test -n "$AS_FOR_TARGET"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10872 $as_echo "$AS_FOR_TARGET" >&6; }
10873 else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10876 fi
10877
10878
10879 fi
10880 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10881 done
10882 fi
10883
10884 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10885 set dummy as
10886 if test $build = $target ; then
10887 AS_FOR_TARGET="$2"
10888 else
10889 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10890 fi
10891 else
10892 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10893 fi
10894
10895 else
10896 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10897 fi
10898
10899
10900
10901
10902 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10903 if test -n "$with_build_time_tools"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10905 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10906 if test -x $with_build_time_tools/dlltool; then
10907 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10908 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10910 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10911 else
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10914 fi
10915 elif test $build != $host && test $have_gcc_for_target = yes; then
10916 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10917 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10918 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10919 fi
10920 fi
10921 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10922 # Extract the first word of "dlltool", so it can be a program name with args.
10923 set dummy dlltool; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 case $DLLTOOL_FOR_TARGET in
10930 [\\/]* | ?:[\\/]*)
10931 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10932 ;;
10933 *)
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $gcc_cv_tool_dirs
10936 do
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10941 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10944 fi
10945 done
10946 done
10947 IFS=$as_save_IFS
10948
10949 ;;
10950 esac
10951 fi
10952 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10953 if test -n "$DLLTOOL_FOR_TARGET"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10955 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10959 fi
10960
10961
10962 fi
10963 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10964
10965
10966 if test -n "$DLLTOOL_FOR_TARGET"; then
10967 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10968 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10969 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10970 fi
10971
10972 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10973 for ncn_progname in dlltool; do
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975 set dummy ${ncn_progname}; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 if test -n "$DLLTOOL_FOR_TARGET"; then
10982 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10983 else
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10991 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995 done
10996 done
10997 IFS=$as_save_IFS
10998
10999 fi
11000 fi
11001 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11002 if test -n "$DLLTOOL_FOR_TARGET"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11004 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009
11010
11011 done
11012 fi
11013
11014 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11015 for ncn_progname in dlltool; do
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11017 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11018 if test -x $with_build_time_tools/${ncn_progname}; then
11019 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; }
11022 break
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11026 fi
11027 done
11028 fi
11029
11030 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11031 for ncn_progname in dlltool; do
11032 if test -n "$ncn_target_tool_prefix"; then
11033 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11034 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 $as_echo_n "checking for $ac_word... " >&6; }
11037 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 if test -n "$DLLTOOL_FOR_TARGET"; then
11041 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11042 else
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11045 do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11053 fi
11054 done
11055 done
11056 IFS=$as_save_IFS
11057
11058 fi
11059 fi
11060 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11061 if test -n "$DLLTOOL_FOR_TARGET"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11063 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067 fi
11068
11069
11070 fi
11071 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11073 set dummy ${ncn_progname}; ac_word=$2
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075 $as_echo_n "checking for $ac_word... " >&6; }
11076 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 if test -n "$DLLTOOL_FOR_TARGET"; then
11080 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11081 else
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11084 do
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 break 2
11092 fi
11093 done
11094 done
11095 IFS=$as_save_IFS
11096
11097 fi
11098 fi
11099 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11100 if test -n "$DLLTOOL_FOR_TARGET"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11102 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11106 fi
11107
11108
11109 fi
11110 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11111 done
11112 fi
11113
11114 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11115 set dummy dlltool
11116 if test $build = $target ; then
11117 DLLTOOL_FOR_TARGET="$2"
11118 else
11119 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11120 fi
11121 else
11122 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11123 fi
11124
11125 else
11126 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11127 fi
11128
11129
11130
11131
11132 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11133 if test -n "$with_build_time_tools"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11135 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11136 if test -x $with_build_time_tools/ld; then
11137 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11138 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11140 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11141 else
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; }
11144 fi
11145 elif test $build != $host && test $have_gcc_for_target = yes; then
11146 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11147 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11148 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11149 fi
11150 fi
11151 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11152 # Extract the first word of "ld", so it can be a program name with args.
11153 set dummy ld; ac_word=$2
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155 $as_echo_n "checking for $ac_word... " >&6; }
11156 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 case $LD_FOR_TARGET in
11160 [\\/]* | ?:[\\/]*)
11161 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11162 ;;
11163 *)
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $gcc_cv_tool_dirs
11166 do
11167 IFS=$as_save_IFS
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11171 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 break 2
11174 fi
11175 done
11176 done
11177 IFS=$as_save_IFS
11178
11179 ;;
11180 esac
11181 fi
11182 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11183 if test -n "$LD_FOR_TARGET"; then
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11185 $as_echo "$LD_FOR_TARGET" >&6; }
11186 else
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11189 fi
11190
11191
11192 fi
11193 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11194
11195
11196 if test -n "$LD_FOR_TARGET"; then
11197 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11198 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11199 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11200 fi
11201
11202 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11203 for ncn_progname in ld; do
11204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11205 set dummy ${ncn_progname}; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 if test -n "$LD_FOR_TARGET"; then
11212 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11213 else
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11216 do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11221 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11224 fi
11225 done
11226 done
11227 IFS=$as_save_IFS
11228
11229 fi
11230 fi
11231 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11232 if test -n "$LD_FOR_TARGET"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11234 $as_echo "$LD_FOR_TARGET" >&6; }
11235 else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11238 fi
11239
11240
11241 done
11242 fi
11243
11244 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11245 for ncn_progname in ld; do
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11247 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11248 if test -x $with_build_time_tools/${ncn_progname}; then
11249 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11251 $as_echo "yes" >&6; }
11252 break
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257 done
11258 fi
11259
11260 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11261 for ncn_progname in ld; do
11262 if test -n "$ncn_target_tool_prefix"; then
11263 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11264 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11266 $as_echo_n "checking for $ac_word... " >&6; }
11267 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 if test -n "$LD_FOR_TARGET"; then
11271 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11272 else
11273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274 for as_dir in $PATH
11275 do
11276 IFS=$as_save_IFS
11277 test -z "$as_dir" && as_dir=.
11278 for ac_exec_ext in '' $ac_executable_extensions; do
11279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11280 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 break 2
11283 fi
11284 done
11285 done
11286 IFS=$as_save_IFS
11287
11288 fi
11289 fi
11290 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11291 if test -n "$LD_FOR_TARGET"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11293 $as_echo "$LD_FOR_TARGET" >&6; }
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11297 fi
11298
11299
11300 fi
11301 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11303 set dummy ${ncn_progname}; ac_word=$2
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11305 $as_echo_n "checking for $ac_word... " >&6; }
11306 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 if test -n "$LD_FOR_TARGET"; then
11310 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11311 else
11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11314 do
11315 IFS=$as_save_IFS
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
11318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 break 2
11322 fi
11323 done
11324 done
11325 IFS=$as_save_IFS
11326
11327 fi
11328 fi
11329 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11330 if test -n "$LD_FOR_TARGET"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11332 $as_echo "$LD_FOR_TARGET" >&6; }
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 fi
11337
11338
11339 fi
11340 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11341 done
11342 fi
11343
11344 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11345 set dummy ld
11346 if test $build = $target ; then
11347 LD_FOR_TARGET="$2"
11348 else
11349 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11350 fi
11351 else
11352 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11353 fi
11354
11355 else
11356 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11357 fi
11358
11359
11360
11361
11362 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11363 if test -n "$with_build_time_tools"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11365 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11366 if test -x $with_build_time_tools/lipo; then
11367 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11368 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11370 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11371 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; }
11374 fi
11375 elif test $build != $host && test $have_gcc_for_target = yes; then
11376 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11377 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11378 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11379 fi
11380 fi
11381 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11382 # Extract the first word of "lipo", so it can be a program name with args.
11383 set dummy lipo; ac_word=$2
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 case $LIPO_FOR_TARGET in
11390 [\\/]* | ?:[\\/]*)
11391 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11392 ;;
11393 *)
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $gcc_cv_tool_dirs
11396 do
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403 break 2
11404 fi
11405 done
11406 done
11407 IFS=$as_save_IFS
11408
11409 ;;
11410 esac
11411 fi
11412 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11413 if test -n "$LIPO_FOR_TARGET"; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11415 $as_echo "$LIPO_FOR_TARGET" >&6; }
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11419 fi
11420
11421
11422 fi
11423 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11424
11425
11426 if test -n "$LIPO_FOR_TARGET"; then
11427 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11428 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11429 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11430 fi
11431
11432 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11433 for ncn_progname in lipo; do
11434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11435 set dummy ${ncn_progname}; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 if test -n "$LIPO_FOR_TARGET"; then
11442 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11443 else
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11446 do
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11451 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 break 2
11454 fi
11455 done
11456 done
11457 IFS=$as_save_IFS
11458
11459 fi
11460 fi
11461 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11462 if test -n "$LIPO_FOR_TARGET"; then
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11464 $as_echo "$LIPO_FOR_TARGET" >&6; }
11465 else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468 fi
11469
11470
11471 done
11472 fi
11473
11474 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11475 for ncn_progname in lipo; do
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11477 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11478 if test -x $with_build_time_tools/${ncn_progname}; then
11479 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11481 $as_echo "yes" >&6; }
11482 break
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11486 fi
11487 done
11488 fi
11489
11490 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11491 for ncn_progname in lipo; do
11492 if test -n "$ncn_target_tool_prefix"; then
11493 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11494 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test -n "$LIPO_FOR_TARGET"; then
11501 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi
11519 fi
11520 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11521 if test -n "$LIPO_FOR_TARGET"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11523 $as_echo "$LIPO_FOR_TARGET" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528
11529
11530 fi
11531 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11533 set dummy ${ncn_progname}; ac_word=$2
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 $as_echo_n "checking for $ac_word... " >&6; }
11536 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 if test -n "$LIPO_FOR_TARGET"; then
11540 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11541 else
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11544 do
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11549 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 break 2
11552 fi
11553 done
11554 done
11555 IFS=$as_save_IFS
11556
11557 fi
11558 fi
11559 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11560 if test -n "$LIPO_FOR_TARGET"; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11562 $as_echo "$LIPO_FOR_TARGET" >&6; }
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11566 fi
11567
11568
11569 fi
11570 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11571 done
11572 fi
11573
11574 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11575 set dummy lipo
11576 if test $build = $target ; then
11577 LIPO_FOR_TARGET="$2"
11578 else
11579 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11580 fi
11581 else
11582 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11583 fi
11584
11585 else
11586 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11587 fi
11588
11589
11590
11591
11592 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11593 if test -n "$with_build_time_tools"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11595 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11596 if test -x $with_build_time_tools/nm; then
11597 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11598 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11600 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11604 fi
11605 elif test $build != $host && test $have_gcc_for_target = yes; then
11606 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11607 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11608 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11609 fi
11610 fi
11611 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11612 # Extract the first word of "nm", so it can be a program name with args.
11613 set dummy nm; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 case $NM_FOR_TARGET in
11620 [\\/]* | ?:[\\/]*)
11621 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11622 ;;
11623 *)
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $gcc_cv_tool_dirs
11626 do
11627 IFS=$as_save_IFS
11628 test -z "$as_dir" && as_dir=.
11629 for ac_exec_ext in '' $ac_executable_extensions; do
11630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11631 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 break 2
11634 fi
11635 done
11636 done
11637 IFS=$as_save_IFS
11638
11639 ;;
11640 esac
11641 fi
11642 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11643 if test -n "$NM_FOR_TARGET"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11645 $as_echo "$NM_FOR_TARGET" >&6; }
11646 else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11649 fi
11650
11651
11652 fi
11653 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11654
11655
11656 if test -n "$NM_FOR_TARGET"; then
11657 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11658 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11659 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11660 fi
11661
11662 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11663 for ncn_progname in nm; do
11664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11665 set dummy ${ncn_progname}; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667 $as_echo_n "checking for $ac_word... " >&6; }
11668 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 if test -n "$NM_FOR_TARGET"; then
11672 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11673 else
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11676 do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11684 fi
11685 done
11686 done
11687 IFS=$as_save_IFS
11688
11689 fi
11690 fi
11691 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11692 if test -n "$NM_FOR_TARGET"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11694 $as_echo "$NM_FOR_TARGET" >&6; }
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11698 fi
11699
11700
11701 done
11702 fi
11703
11704 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11705 for ncn_progname in nm; do
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11707 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11708 if test -x $with_build_time_tools/${ncn_progname}; then
11709 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11712 break
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716 fi
11717 done
11718 fi
11719
11720 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11721 for ncn_progname in nm; do
11722 if test -n "$ncn_target_tool_prefix"; then
11723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726 $as_echo_n "checking for $ac_word... " >&6; }
11727 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 if test -n "$NM_FOR_TARGET"; then
11731 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11732 else
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11735 do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744 done
11745 done
11746 IFS=$as_save_IFS
11747
11748 fi
11749 fi
11750 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11751 if test -n "$NM_FOR_TARGET"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11753 $as_echo "$NM_FOR_TARGET" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11757 fi
11758
11759
11760 fi
11761 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11763 set dummy ${ncn_progname}; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 if test -n "$NM_FOR_TARGET"; then
11770 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11771 else
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11774 do
11775 IFS=$as_save_IFS
11776 test -z "$as_dir" && as_dir=.
11777 for ac_exec_ext in '' $ac_executable_extensions; do
11778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11779 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781 break 2
11782 fi
11783 done
11784 done
11785 IFS=$as_save_IFS
11786
11787 fi
11788 fi
11789 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11790 if test -n "$NM_FOR_TARGET"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11792 $as_echo "$NM_FOR_TARGET" >&6; }
11793 else
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11796 fi
11797
11798
11799 fi
11800 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11801 done
11802 fi
11803
11804 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11805 set dummy nm
11806 if test $build = $target ; then
11807 NM_FOR_TARGET="$2"
11808 else
11809 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11810 fi
11811 else
11812 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11813 fi
11814
11815 else
11816 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11817 fi
11818
11819
11820
11821
11822 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11823 if test -n "$with_build_time_tools"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11825 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11826 if test -x $with_build_time_tools/objdump; then
11827 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11828 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11830 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11831 else
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11834 fi
11835 elif test $build != $host && test $have_gcc_for_target = yes; then
11836 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11837 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11838 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11839 fi
11840 fi
11841 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11842 # Extract the first word of "objdump", so it can be a program name with args.
11843 set dummy objdump; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 case $OBJDUMP_FOR_TARGET in
11850 [\\/]* | ?:[\\/]*)
11851 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11852 ;;
11853 *)
11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $gcc_cv_tool_dirs
11856 do
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11861 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 break 2
11864 fi
11865 done
11866 done
11867 IFS=$as_save_IFS
11868
11869 ;;
11870 esac
11871 fi
11872 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11873 if test -n "$OBJDUMP_FOR_TARGET"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11875 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879 fi
11880
11881
11882 fi
11883 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11884
11885
11886 if test -n "$OBJDUMP_FOR_TARGET"; then
11887 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11888 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11889 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11890 fi
11891
11892 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11893 for ncn_progname in objdump; do
11894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11895 set dummy ${ncn_progname}; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 if test -n "$OBJDUMP_FOR_TARGET"; then
11902 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11903 else
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11906 do
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 break 2
11914 fi
11915 done
11916 done
11917 IFS=$as_save_IFS
11918
11919 fi
11920 fi
11921 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11922 if test -n "$OBJDUMP_FOR_TARGET"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11924 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11928 fi
11929
11930
11931 done
11932 fi
11933
11934 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11935 for ncn_progname in objdump; do
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11937 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11938 if test -x $with_build_time_tools/${ncn_progname}; then
11939 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11941 $as_echo "yes" >&6; }
11942 break
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11946 fi
11947 done
11948 fi
11949
11950 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11951 for ncn_progname in objdump; do
11952 if test -n "$ncn_target_tool_prefix"; then
11953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11954 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 if test -n "$OBJDUMP_FOR_TARGET"; then
11961 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11962 else
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11965 do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11973 fi
11974 done
11975 done
11976 IFS=$as_save_IFS
11977
11978 fi
11979 fi
11980 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11981 if test -n "$OBJDUMP_FOR_TARGET"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11983 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988
11989
11990 fi
11991 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11993 set dummy ${ncn_progname}; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 if test -n "$OBJDUMP_FOR_TARGET"; then
12000 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12001 else
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12012 fi
12013 done
12014 done
12015 IFS=$as_save_IFS
12016
12017 fi
12018 fi
12019 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12020 if test -n "$OBJDUMP_FOR_TARGET"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12022 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12026 fi
12027
12028
12029 fi
12030 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12031 done
12032 fi
12033
12034 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12035 set dummy objdump
12036 if test $build = $target ; then
12037 OBJDUMP_FOR_TARGET="$2"
12038 else
12039 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12040 fi
12041 else
12042 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12043 fi
12044
12045 else
12046 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12047 fi
12048
12049
12050
12051
12052 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12053 if test -n "$with_build_time_tools"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12055 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12056 if test -x $with_build_time_tools/ranlib; then
12057 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12058 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12060 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12064 fi
12065 elif test $build != $host && test $have_gcc_for_target = yes; then
12066 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12067 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12068 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12069 fi
12070 fi
12071 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12072 # Extract the first word of "ranlib", so it can be a program name with args.
12073 set dummy ranlib; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 case $RANLIB_FOR_TARGET in
12080 [\\/]* | ?:[\\/]*)
12081 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12082 ;;
12083 *)
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $gcc_cv_tool_dirs
12086 do
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12091 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 break 2
12094 fi
12095 done
12096 done
12097 IFS=$as_save_IFS
12098
12099 ;;
12100 esac
12101 fi
12102 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12103 if test -n "$RANLIB_FOR_TARGET"; then
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12105 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12106 else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12109 fi
12110
12111
12112 fi
12113 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12114
12115
12116 if test -n "$RANLIB_FOR_TARGET"; then
12117 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12118 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12119 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12120 fi
12121
12122 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12123 for ncn_progname in ranlib; do
12124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12125 set dummy ${ncn_progname}; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 if test -n "$RANLIB_FOR_TARGET"; then
12132 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12133 else
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12136 do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12144 fi
12145 done
12146 done
12147 IFS=$as_save_IFS
12148
12149 fi
12150 fi
12151 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12152 if test -n "$RANLIB_FOR_TARGET"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12154 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158 fi
12159
12160
12161 done
12162 fi
12163
12164 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12165 for ncn_progname in ranlib; do
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12167 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12168 if test -x $with_build_time_tools/${ncn_progname}; then
12169 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12171 $as_echo "yes" >&6; }
12172 break
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12176 fi
12177 done
12178 fi
12179
12180 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12181 for ncn_progname in ranlib; do
12182 if test -n "$ncn_target_tool_prefix"; then
12183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 if test -n "$RANLIB_FOR_TARGET"; then
12191 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12195 do
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12200 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
12203 fi
12204 done
12205 done
12206 IFS=$as_save_IFS
12207
12208 fi
12209 fi
12210 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12211 if test -n "$RANLIB_FOR_TARGET"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12213 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 fi
12218
12219
12220 fi
12221 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12223 set dummy ${ncn_progname}; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 if test -n "$RANLIB_FOR_TARGET"; then
12230 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12231 else
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12234 do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243 done
12244 done
12245 IFS=$as_save_IFS
12246
12247 fi
12248 fi
12249 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12250 if test -n "$RANLIB_FOR_TARGET"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12252 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12256 fi
12257
12258
12259 fi
12260 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12261 done
12262 fi
12263
12264 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12265 set dummy ranlib
12266 if test $build = $target ; then
12267 RANLIB_FOR_TARGET="$2"
12268 else
12269 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12270 fi
12271 else
12272 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12273 fi
12274
12275 else
12276 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12277 fi
12278
12279
12280
12281
12282 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12283 if test -n "$with_build_time_tools"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12285 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12286 if test -x $with_build_time_tools/strip; then
12287 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12288 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12290 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294 fi
12295 elif test $build != $host && test $have_gcc_for_target = yes; then
12296 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12297 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12298 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12299 fi
12300 fi
12301 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12302 # Extract the first word of "strip", so it can be a program name with args.
12303 set dummy strip; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 case $STRIP_FOR_TARGET in
12310 [\\/]* | ?:[\\/]*)
12311 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12312 ;;
12313 *)
12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315 for as_dir in $gcc_cv_tool_dirs
12316 do
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12321 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 break 2
12324 fi
12325 done
12326 done
12327 IFS=$as_save_IFS
12328
12329 ;;
12330 esac
12331 fi
12332 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12333 if test -n "$STRIP_FOR_TARGET"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12335 $as_echo "$STRIP_FOR_TARGET" >&6; }
12336 else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12339 fi
12340
12341
12342 fi
12343 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12344
12345
12346 if test -n "$STRIP_FOR_TARGET"; then
12347 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12348 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12349 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12350 fi
12351
12352 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12353 for ncn_progname in strip; do
12354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12355 set dummy ${ncn_progname}; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test -n "$STRIP_FOR_TARGET"; then
12362 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12363 else
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12366 do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375 done
12376 done
12377 IFS=$as_save_IFS
12378
12379 fi
12380 fi
12381 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12382 if test -n "$STRIP_FOR_TARGET"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12384 $as_echo "$STRIP_FOR_TARGET" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12388 fi
12389
12390
12391 done
12392 fi
12393
12394 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12395 for ncn_progname in strip; do
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12397 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12398 if test -x $with_build_time_tools/${ncn_progname}; then
12399 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12402 break
12403 else
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12406 fi
12407 done
12408 fi
12409
12410 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12411 for ncn_progname in strip; do
12412 if test -n "$ncn_target_tool_prefix"; then
12413 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12414 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test -n "$STRIP_FOR_TARGET"; then
12421 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12422 else
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12433 fi
12434 done
12435 done
12436 IFS=$as_save_IFS
12437
12438 fi
12439 fi
12440 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12441 if test -n "$STRIP_FOR_TARGET"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12443 $as_echo "$STRIP_FOR_TARGET" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12447 fi
12448
12449
12450 fi
12451 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12453 set dummy ${ncn_progname}; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 if test -n "$STRIP_FOR_TARGET"; then
12460 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12461 else
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12464 do
12465 IFS=$as_save_IFS
12466 test -z "$as_dir" && as_dir=.
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12469 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12471 break 2
12472 fi
12473 done
12474 done
12475 IFS=$as_save_IFS
12476
12477 fi
12478 fi
12479 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12480 if test -n "$STRIP_FOR_TARGET"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12482 $as_echo "$STRIP_FOR_TARGET" >&6; }
12483 else
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12486 fi
12487
12488
12489 fi
12490 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12491 done
12492 fi
12493
12494 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12495 set dummy strip
12496 if test $build = $target ; then
12497 STRIP_FOR_TARGET="$2"
12498 else
12499 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12500 fi
12501 else
12502 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12503 fi
12504
12505 else
12506 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12507 fi
12508
12509
12510
12511
12512 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12513 if test -n "$with_build_time_tools"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12515 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12516 if test -x $with_build_time_tools/windres; then
12517 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12518 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12520 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523 $as_echo "no" >&6; }
12524 fi
12525 elif test $build != $host && test $have_gcc_for_target = yes; then
12526 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12527 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12528 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12529 fi
12530 fi
12531 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12532 # Extract the first word of "windres", so it can be a program name with args.
12533 set dummy windres; ac_word=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 case $WINDRES_FOR_TARGET in
12540 [\\/]* | ?:[\\/]*)
12541 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12542 ;;
12543 *)
12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545 for as_dir in $gcc_cv_tool_dirs
12546 do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12551 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12554 fi
12555 done
12556 done
12557 IFS=$as_save_IFS
12558
12559 ;;
12560 esac
12561 fi
12562 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12563 if test -n "$WINDRES_FOR_TARGET"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12565 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568 $as_echo "no" >&6; }
12569 fi
12570
12571
12572 fi
12573 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12574
12575
12576 if test -n "$WINDRES_FOR_TARGET"; then
12577 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12578 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12579 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12580 fi
12581
12582 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12583 for ncn_progname in windres; do
12584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12585 set dummy ${ncn_progname}; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587 $as_echo_n "checking for $ac_word... " >&6; }
12588 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 if test -n "$WINDRES_FOR_TARGET"; then
12592 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12593 else
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in $PATH
12596 do
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12601 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12604 fi
12605 done
12606 done
12607 IFS=$as_save_IFS
12608
12609 fi
12610 fi
12611 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12612 if test -n "$WINDRES_FOR_TARGET"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12614 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12618 fi
12619
12620
12621 done
12622 fi
12623
12624 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12625 for ncn_progname in windres; do
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12627 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12628 if test -x $with_build_time_tools/${ncn_progname}; then
12629 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12631 $as_echo "yes" >&6; }
12632 break
12633 else
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636 fi
12637 done
12638 fi
12639
12640 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12641 for ncn_progname in windres; do
12642 if test -n "$ncn_target_tool_prefix"; then
12643 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12644 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$WINDRES_FOR_TARGET"; then
12651 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12655 do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664 done
12665 done
12666 IFS=$as_save_IFS
12667
12668 fi
12669 fi
12670 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12671 if test -n "$WINDRES_FOR_TARGET"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12673 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 fi
12678
12679
12680 fi
12681 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12683 set dummy ${ncn_progname}; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 if test -n "$WINDRES_FOR_TARGET"; then
12690 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12691 else
12692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH
12694 do
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
12698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12699 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 break 2
12702 fi
12703 done
12704 done
12705 IFS=$as_save_IFS
12706
12707 fi
12708 fi
12709 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12710 if test -n "$WINDRES_FOR_TARGET"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12712 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12713 else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715 $as_echo "no" >&6; }
12716 fi
12717
12718
12719 fi
12720 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12721 done
12722 fi
12723
12724 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12725 set dummy windres
12726 if test $build = $target ; then
12727 WINDRES_FOR_TARGET="$2"
12728 else
12729 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12730 fi
12731 else
12732 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12733 fi
12734
12735 else
12736 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12737 fi
12738
12739
12740
12741
12742 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12743 if test -n "$with_build_time_tools"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12745 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12746 if test -x $with_build_time_tools/windmc; then
12747 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12748 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12750 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12754 fi
12755 elif test $build != $host && test $have_gcc_for_target = yes; then
12756 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12757 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12758 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12759 fi
12760 fi
12761 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12762 # Extract the first word of "windmc", so it can be a program name with args.
12763 set dummy windmc; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 case $WINDMC_FOR_TARGET in
12770 [\\/]* | ?:[\\/]*)
12771 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12772 ;;
12773 *)
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $gcc_cv_tool_dirs
12776 do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12781 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785 done
12786 done
12787 IFS=$as_save_IFS
12788
12789 ;;
12790 esac
12791 fi
12792 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12793 if test -n "$WINDMC_FOR_TARGET"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12795 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12796 else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12799 fi
12800
12801
12802 fi
12803 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12804
12805
12806 if test -n "$WINDMC_FOR_TARGET"; then
12807 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12808 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12809 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12810 fi
12811
12812 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12813 for ncn_progname in windmc; do
12814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12815 set dummy ${ncn_progname}; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817 $as_echo_n "checking for $ac_word... " >&6; }
12818 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 if test -n "$WINDMC_FOR_TARGET"; then
12822 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12823 else
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12826 do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12831 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833 break 2
12834 fi
12835 done
12836 done
12837 IFS=$as_save_IFS
12838
12839 fi
12840 fi
12841 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12842 if test -n "$WINDMC_FOR_TARGET"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12844 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12845 else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12848 fi
12849
12850
12851 done
12852 fi
12853
12854 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12855 for ncn_progname in windmc; do
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12857 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12858 if test -x $with_build_time_tools/${ncn_progname}; then
12859 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12861 $as_echo "yes" >&6; }
12862 break
12863 else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12866 fi
12867 done
12868 fi
12869
12870 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12871 for ncn_progname in windmc; do
12872 if test -n "$ncn_target_tool_prefix"; then
12873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$WINDMC_FOR_TARGET"; then
12881 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12885 do
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12890 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12893 fi
12894 done
12895 done
12896 IFS=$as_save_IFS
12897
12898 fi
12899 fi
12900 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12901 if test -n "$WINDMC_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12903 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909
12910 fi
12911 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12913 set dummy ${ncn_progname}; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test -n "$WINDMC_FOR_TARGET"; then
12920 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12924 do
12925 IFS=$as_save_IFS
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 break 2
12932 fi
12933 done
12934 done
12935 IFS=$as_save_IFS
12936
12937 fi
12938 fi
12939 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12940 if test -n "$WINDMC_FOR_TARGET"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12942 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12946 fi
12947
12948
12949 fi
12950 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12951 done
12952 fi
12953
12954 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12955 set dummy windmc
12956 if test $build = $target ; then
12957 WINDMC_FOR_TARGET="$2"
12958 else
12959 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12960 fi
12961 else
12962 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12963 fi
12964
12965 else
12966 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12967 fi
12968
12969
12970 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12971
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12973 $as_echo_n "checking where to find the target ar... " >&6; }
12974 if test "x${build}" != "x${host}" ; then
12975 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12976 # We already found the complete path
12977 ac_dir=`dirname $AR_FOR_TARGET`
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12979 $as_echo "pre-installed in $ac_dir" >&6; }
12980 else
12981 # Canadian cross, just use what we found
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12983 $as_echo "pre-installed" >&6; }
12984 fi
12985 else
12986 ok=yes
12987 case " ${configdirs} " in
12988 *" binutils "*) ;;
12989 *) ok=no ;;
12990 esac
12991
12992 if test $ok = yes; then
12993 # An in-tree tool is available and we can use it
12994 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12996 $as_echo "just compiled" >&6; }
12997 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12998 # We already found the complete path
12999 ac_dir=`dirname $AR_FOR_TARGET`
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13001 $as_echo "pre-installed in $ac_dir" >&6; }
13002 elif test "x$target" = "x$host"; then
13003 # We can use an host tool
13004 AR_FOR_TARGET='$(AR)'
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13006 $as_echo "host tool" >&6; }
13007 else
13008 # We need a cross tool
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13010 $as_echo "pre-installed" >&6; }
13011 fi
13012 fi
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13015 $as_echo_n "checking where to find the target as... " >&6; }
13016 if test "x${build}" != "x${host}" ; then
13017 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13018 # We already found the complete path
13019 ac_dir=`dirname $AS_FOR_TARGET`
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13021 $as_echo "pre-installed in $ac_dir" >&6; }
13022 else
13023 # Canadian cross, just use what we found
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13025 $as_echo "pre-installed" >&6; }
13026 fi
13027 else
13028 ok=yes
13029 case " ${configdirs} " in
13030 *" gas "*) ;;
13031 *) ok=no ;;
13032 esac
13033
13034 if test $ok = yes; then
13035 # An in-tree tool is available and we can use it
13036 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13038 $as_echo "just compiled" >&6; }
13039 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13040 # We already found the complete path
13041 ac_dir=`dirname $AS_FOR_TARGET`
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13043 $as_echo "pre-installed in $ac_dir" >&6; }
13044 elif test "x$target" = "x$host"; then
13045 # We can use an host tool
13046 AS_FOR_TARGET='$(AS)'
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13048 $as_echo "host tool" >&6; }
13049 else
13050 # We need a cross tool
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13052 $as_echo "pre-installed" >&6; }
13053 fi
13054 fi
13055
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13057 $as_echo_n "checking where to find the target cc... " >&6; }
13058 if test "x${build}" != "x${host}" ; then
13059 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13060 # We already found the complete path
13061 ac_dir=`dirname $CC_FOR_TARGET`
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13063 $as_echo "pre-installed in $ac_dir" >&6; }
13064 else
13065 # Canadian cross, just use what we found
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13067 $as_echo "pre-installed" >&6; }
13068 fi
13069 else
13070 ok=yes
13071 case " ${configdirs} " in
13072 *" gcc "*) ;;
13073 *) ok=no ;;
13074 esac
13075
13076 if test $ok = yes; then
13077 # An in-tree tool is available and we can use it
13078 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13080 $as_echo "just compiled" >&6; }
13081 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13082 # We already found the complete path
13083 ac_dir=`dirname $CC_FOR_TARGET`
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13085 $as_echo "pre-installed in $ac_dir" >&6; }
13086 elif test "x$target" = "x$host"; then
13087 # We can use an host tool
13088 CC_FOR_TARGET='$(CC)'
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13090 $as_echo "host tool" >&6; }
13091 else
13092 # We need a cross tool
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13094 $as_echo "pre-installed" >&6; }
13095 fi
13096 fi
13097
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13099 $as_echo_n "checking where to find the target c++... " >&6; }
13100 if test "x${build}" != "x${host}" ; then
13101 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13102 # We already found the complete path
13103 ac_dir=`dirname $CXX_FOR_TARGET`
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13105 $as_echo "pre-installed in $ac_dir" >&6; }
13106 else
13107 # Canadian cross, just use what we found
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13109 $as_echo "pre-installed" >&6; }
13110 fi
13111 else
13112 ok=yes
13113 case " ${configdirs} " in
13114 *" gcc "*) ;;
13115 *) ok=no ;;
13116 esac
13117 case ,${enable_languages}, in
13118 *,c++,*) ;;
13119 *) ok=no ;;
13120 esac
13121 if test $ok = yes; then
13122 # An in-tree tool is available and we can use it
13123 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13125 $as_echo "just compiled" >&6; }
13126 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13127 # We already found the complete path
13128 ac_dir=`dirname $CXX_FOR_TARGET`
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13130 $as_echo "pre-installed in $ac_dir" >&6; }
13131 elif test "x$target" = "x$host"; then
13132 # We can use an host tool
13133 CXX_FOR_TARGET='$(CXX)'
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13135 $as_echo "host tool" >&6; }
13136 else
13137 # We need a cross tool
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13139 $as_echo "pre-installed" >&6; }
13140 fi
13141 fi
13142
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13144 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13145 if test "x${build}" != "x${host}" ; then
13146 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13147 # We already found the complete path
13148 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13150 $as_echo "pre-installed in $ac_dir" >&6; }
13151 else
13152 # Canadian cross, just use what we found
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13154 $as_echo "pre-installed" >&6; }
13155 fi
13156 else
13157 ok=yes
13158 case " ${configdirs} " in
13159 *" gcc "*) ;;
13160 *) ok=no ;;
13161 esac
13162 case ,${enable_languages}, in
13163 *,c++,*) ;;
13164 *) ok=no ;;
13165 esac
13166 if test $ok = yes; then
13167 # An in-tree tool is available and we can use it
13168 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'
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13170 $as_echo "just compiled" >&6; }
13171 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13172 # We already found the complete path
13173 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13175 $as_echo "pre-installed in $ac_dir" >&6; }
13176 elif test "x$target" = "x$host"; then
13177 # We can use an host tool
13178 RAW_CXX_FOR_TARGET='$(CXX)'
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13180 $as_echo "host tool" >&6; }
13181 else
13182 # We need a cross tool
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13184 $as_echo "pre-installed" >&6; }
13185 fi
13186 fi
13187
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13189 $as_echo_n "checking where to find the target dlltool... " >&6; }
13190 if test "x${build}" != "x${host}" ; then
13191 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13192 # We already found the complete path
13193 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13195 $as_echo "pre-installed in $ac_dir" >&6; }
13196 else
13197 # Canadian cross, just use what we found
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13199 $as_echo "pre-installed" >&6; }
13200 fi
13201 else
13202 ok=yes
13203 case " ${configdirs} " in
13204 *" binutils "*) ;;
13205 *) ok=no ;;
13206 esac
13207
13208 if test $ok = yes; then
13209 # An in-tree tool is available and we can use it
13210 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13212 $as_echo "just compiled" >&6; }
13213 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13214 # We already found the complete path
13215 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13217 $as_echo "pre-installed in $ac_dir" >&6; }
13218 elif test "x$target" = "x$host"; then
13219 # We can use an host tool
13220 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13222 $as_echo "host tool" >&6; }
13223 else
13224 # We need a cross tool
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13226 $as_echo "pre-installed" >&6; }
13227 fi
13228 fi
13229
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13231 $as_echo_n "checking where to find the target gcc... " >&6; }
13232 if test "x${build}" != "x${host}" ; then
13233 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13234 # We already found the complete path
13235 ac_dir=`dirname $GCC_FOR_TARGET`
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13237 $as_echo "pre-installed in $ac_dir" >&6; }
13238 else
13239 # Canadian cross, just use what we found
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13241 $as_echo "pre-installed" >&6; }
13242 fi
13243 else
13244 ok=yes
13245 case " ${configdirs} " in
13246 *" gcc "*) ;;
13247 *) ok=no ;;
13248 esac
13249
13250 if test $ok = yes; then
13251 # An in-tree tool is available and we can use it
13252 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13254 $as_echo "just compiled" >&6; }
13255 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13256 # We already found the complete path
13257 ac_dir=`dirname $GCC_FOR_TARGET`
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13259 $as_echo "pre-installed in $ac_dir" >&6; }
13260 elif test "x$target" = "x$host"; then
13261 # We can use an host tool
13262 GCC_FOR_TARGET='$()'
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13264 $as_echo "host tool" >&6; }
13265 else
13266 # We need a cross tool
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13268 $as_echo "pre-installed" >&6; }
13269 fi
13270 fi
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13273 $as_echo_n "checking where to find the target gcj... " >&6; }
13274 if test "x${build}" != "x${host}" ; then
13275 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13276 # We already found the complete path
13277 ac_dir=`dirname $GCJ_FOR_TARGET`
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13279 $as_echo "pre-installed in $ac_dir" >&6; }
13280 else
13281 # Canadian cross, just use what we found
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13283 $as_echo "pre-installed" >&6; }
13284 fi
13285 else
13286 ok=yes
13287 case " ${configdirs} " in
13288 *" gcc "*) ;;
13289 *) ok=no ;;
13290 esac
13291 case ,${enable_languages}, in
13292 *,java,*) ;;
13293 *) ok=no ;;
13294 esac
13295 if test $ok = yes; then
13296 # An in-tree tool is available and we can use it
13297 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13299 $as_echo "just compiled" >&6; }
13300 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13301 # We already found the complete path
13302 ac_dir=`dirname $GCJ_FOR_TARGET`
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13304 $as_echo "pre-installed in $ac_dir" >&6; }
13305 elif test "x$target" = "x$host"; then
13306 # We can use an host tool
13307 GCJ_FOR_TARGET='$(GCJ)'
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13309 $as_echo "host tool" >&6; }
13310 else
13311 # We need a cross tool
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13313 $as_echo "pre-installed" >&6; }
13314 fi
13315 fi
13316
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13318 $as_echo_n "checking where to find the target gfortran... " >&6; }
13319 if test "x${build}" != "x${host}" ; then
13320 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13321 # We already found the complete path
13322 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13324 $as_echo "pre-installed in $ac_dir" >&6; }
13325 else
13326 # Canadian cross, just use what we found
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13328 $as_echo "pre-installed" >&6; }
13329 fi
13330 else
13331 ok=yes
13332 case " ${configdirs} " in
13333 *" gcc "*) ;;
13334 *) ok=no ;;
13335 esac
13336 case ,${enable_languages}, in
13337 *,fortran,*) ;;
13338 *) ok=no ;;
13339 esac
13340 if test $ok = yes; then
13341 # An in-tree tool is available and we can use it
13342 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13344 $as_echo "just compiled" >&6; }
13345 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13346 # We already found the complete path
13347 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13349 $as_echo "pre-installed in $ac_dir" >&6; }
13350 elif test "x$target" = "x$host"; then
13351 # We can use an host tool
13352 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13354 $as_echo "host tool" >&6; }
13355 else
13356 # We need a cross tool
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13358 $as_echo "pre-installed" >&6; }
13359 fi
13360 fi
13361
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13363 $as_echo_n "checking where to find the target ld... " >&6; }
13364 if test "x${build}" != "x${host}" ; then
13365 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13366 # We already found the complete path
13367 ac_dir=`dirname $LD_FOR_TARGET`
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13369 $as_echo "pre-installed in $ac_dir" >&6; }
13370 else
13371 # Canadian cross, just use what we found
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13373 $as_echo "pre-installed" >&6; }
13374 fi
13375 else
13376 ok=yes
13377 case " ${configdirs} " in
13378 *" ld "*) ;;
13379 *) ok=no ;;
13380 esac
13381
13382 if test $ok = yes; then
13383 # An in-tree tool is available and we can use it
13384 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13386 $as_echo "just compiled" >&6; }
13387 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13388 # We already found the complete path
13389 ac_dir=`dirname $LD_FOR_TARGET`
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13391 $as_echo "pre-installed in $ac_dir" >&6; }
13392 elif test "x$target" = "x$host"; then
13393 # We can use an host tool
13394 LD_FOR_TARGET='$(LD)'
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13396 $as_echo "host tool" >&6; }
13397 else
13398 # We need a cross tool
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13400 $as_echo "pre-installed" >&6; }
13401 fi
13402 fi
13403
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13405 $as_echo_n "checking where to find the target lipo... " >&6; }
13406 if test "x${build}" != "x${host}" ; then
13407 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13408 # We already found the complete path
13409 ac_dir=`dirname $LIPO_FOR_TARGET`
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13411 $as_echo "pre-installed in $ac_dir" >&6; }
13412 else
13413 # Canadian cross, just use what we found
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13415 $as_echo "pre-installed" >&6; }
13416 fi
13417 else
13418 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13419 # We already found the complete path
13420 ac_dir=`dirname $LIPO_FOR_TARGET`
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13422 $as_echo "pre-installed in $ac_dir" >&6; }
13423 elif test "x$target" = "x$host"; then
13424 # We can use an host tool
13425 LIPO_FOR_TARGET='$(LIPO)'
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13427 $as_echo "host tool" >&6; }
13428 else
13429 # We need a cross tool
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13431 $as_echo "pre-installed" >&6; }
13432 fi
13433 fi
13434
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13436 $as_echo_n "checking where to find the target nm... " >&6; }
13437 if test "x${build}" != "x${host}" ; then
13438 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13439 # We already found the complete path
13440 ac_dir=`dirname $NM_FOR_TARGET`
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13442 $as_echo "pre-installed in $ac_dir" >&6; }
13443 else
13444 # Canadian cross, just use what we found
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13446 $as_echo "pre-installed" >&6; }
13447 fi
13448 else
13449 ok=yes
13450 case " ${configdirs} " in
13451 *" binutils "*) ;;
13452 *) ok=no ;;
13453 esac
13454
13455 if test $ok = yes; then
13456 # An in-tree tool is available and we can use it
13457 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13459 $as_echo "just compiled" >&6; }
13460 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13461 # We already found the complete path
13462 ac_dir=`dirname $NM_FOR_TARGET`
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13464 $as_echo "pre-installed in $ac_dir" >&6; }
13465 elif test "x$target" = "x$host"; then
13466 # We can use an host tool
13467 NM_FOR_TARGET='$(NM)'
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13469 $as_echo "host tool" >&6; }
13470 else
13471 # We need a cross tool
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13473 $as_echo "pre-installed" >&6; }
13474 fi
13475 fi
13476
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13478 $as_echo_n "checking where to find the target objdump... " >&6; }
13479 if test "x${build}" != "x${host}" ; then
13480 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13481 # We already found the complete path
13482 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13484 $as_echo "pre-installed in $ac_dir" >&6; }
13485 else
13486 # Canadian cross, just use what we found
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13488 $as_echo "pre-installed" >&6; }
13489 fi
13490 else
13491 ok=yes
13492 case " ${configdirs} " in
13493 *" binutils "*) ;;
13494 *) ok=no ;;
13495 esac
13496
13497 if test $ok = yes; then
13498 # An in-tree tool is available and we can use it
13499 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13501 $as_echo "just compiled" >&6; }
13502 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13503 # We already found the complete path
13504 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13506 $as_echo "pre-installed in $ac_dir" >&6; }
13507 elif test "x$target" = "x$host"; then
13508 # We can use an host tool
13509 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13511 $as_echo "host tool" >&6; }
13512 else
13513 # We need a cross tool
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13515 $as_echo "pre-installed" >&6; }
13516 fi
13517 fi
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13520 $as_echo_n "checking where to find the target ranlib... " >&6; }
13521 if test "x${build}" != "x${host}" ; then
13522 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13523 # We already found the complete path
13524 ac_dir=`dirname $RANLIB_FOR_TARGET`
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13526 $as_echo "pre-installed in $ac_dir" >&6; }
13527 else
13528 # Canadian cross, just use what we found
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13530 $as_echo "pre-installed" >&6; }
13531 fi
13532 else
13533 ok=yes
13534 case " ${configdirs} " in
13535 *" binutils "*) ;;
13536 *) ok=no ;;
13537 esac
13538
13539 if test $ok = yes; then
13540 # An in-tree tool is available and we can use it
13541 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13543 $as_echo "just compiled" >&6; }
13544 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13545 # We already found the complete path
13546 ac_dir=`dirname $RANLIB_FOR_TARGET`
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13548 $as_echo "pre-installed in $ac_dir" >&6; }
13549 elif test "x$target" = "x$host"; then
13550 # We can use an host tool
13551 RANLIB_FOR_TARGET='$(RANLIB)'
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13553 $as_echo "host tool" >&6; }
13554 else
13555 # We need a cross tool
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13557 $as_echo "pre-installed" >&6; }
13558 fi
13559 fi
13560
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13562 $as_echo_n "checking where to find the target strip... " >&6; }
13563 if test "x${build}" != "x${host}" ; then
13564 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13565 # We already found the complete path
13566 ac_dir=`dirname $STRIP_FOR_TARGET`
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13568 $as_echo "pre-installed in $ac_dir" >&6; }
13569 else
13570 # Canadian cross, just use what we found
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13572 $as_echo "pre-installed" >&6; }
13573 fi
13574 else
13575 ok=yes
13576 case " ${configdirs} " in
13577 *" binutils "*) ;;
13578 *) ok=no ;;
13579 esac
13580
13581 if test $ok = yes; then
13582 # An in-tree tool is available and we can use it
13583 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13585 $as_echo "just compiled" >&6; }
13586 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13587 # We already found the complete path
13588 ac_dir=`dirname $STRIP_FOR_TARGET`
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13590 $as_echo "pre-installed in $ac_dir" >&6; }
13591 elif test "x$target" = "x$host"; then
13592 # We can use an host tool
13593 STRIP_FOR_TARGET='$(STRIP)'
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13595 $as_echo "host tool" >&6; }
13596 else
13597 # We need a cross tool
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13599 $as_echo "pre-installed" >&6; }
13600 fi
13601 fi
13602
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13604 $as_echo_n "checking where to find the target windres... " >&6; }
13605 if test "x${build}" != "x${host}" ; then
13606 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13607 # We already found the complete path
13608 ac_dir=`dirname $WINDRES_FOR_TARGET`
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13610 $as_echo "pre-installed in $ac_dir" >&6; }
13611 else
13612 # Canadian cross, just use what we found
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13614 $as_echo "pre-installed" >&6; }
13615 fi
13616 else
13617 ok=yes
13618 case " ${configdirs} " in
13619 *" binutils "*) ;;
13620 *) ok=no ;;
13621 esac
13622
13623 if test $ok = yes; then
13624 # An in-tree tool is available and we can use it
13625 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13627 $as_echo "just compiled" >&6; }
13628 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13629 # We already found the complete path
13630 ac_dir=`dirname $WINDRES_FOR_TARGET`
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13632 $as_echo "pre-installed in $ac_dir" >&6; }
13633 elif test "x$target" = "x$host"; then
13634 # We can use an host tool
13635 WINDRES_FOR_TARGET='$(WINDRES)'
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13637 $as_echo "host tool" >&6; }
13638 else
13639 # We need a cross tool
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13641 $as_echo "pre-installed" >&6; }
13642 fi
13643 fi
13644
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13646 $as_echo_n "checking where to find the target windmc... " >&6; }
13647 if test "x${build}" != "x${host}" ; then
13648 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13649 # We already found the complete path
13650 ac_dir=`dirname $WINDMC_FOR_TARGET`
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13652 $as_echo "pre-installed in $ac_dir" >&6; }
13653 else
13654 # Canadian cross, just use what we found
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13656 $as_echo "pre-installed" >&6; }
13657 fi
13658 else
13659 ok=yes
13660 case " ${configdirs} " in
13661 *" binutils "*) ;;
13662 *) ok=no ;;
13663 esac
13664
13665 if test $ok = yes; then
13666 # An in-tree tool is available and we can use it
13667 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13669 $as_echo "just compiled" >&6; }
13670 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13671 # We already found the complete path
13672 ac_dir=`dirname $WINDMC_FOR_TARGET`
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13674 $as_echo "pre-installed in $ac_dir" >&6; }
13675 elif test "x$target" = "x$host"; then
13676 # We can use an host tool
13677 WINDMC_FOR_TARGET='$(WINDMC)'
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13679 $as_echo "host tool" >&6; }
13680 else
13681 # We need a cross tool
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13683 $as_echo "pre-installed" >&6; }
13684 fi
13685 fi
13686
13687
13688
13689
13690
13691 # Certain tools may need extra flags.
13692 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13693 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13694 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13695
13696 # When building target libraries, except in a Canadian cross, we use
13697 # the same toolchain as the compiler we just built.
13698 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13699 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13700 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13701 if test $host = $build; then
13702 case " $configdirs " in
13703 *" gcc "*)
13704 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13705 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13706 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13707 ;;
13708 esac
13709 fi
13710
13711
13712
13713
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13716 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13717 # Check whether --enable-maintainer-mode was given.
13718 if test "${enable_maintainer_mode+set}" = set; then :
13719 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13720 else
13721 USE_MAINTAINER_MODE=no
13722 fi
13723
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13725 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13726
13727
13728 if test "$USE_MAINTAINER_MODE" = yes; then
13729 MAINTAINER_MODE_TRUE=
13730 MAINTAINER_MODE_FALSE='#'
13731 else
13732 MAINTAINER_MODE_TRUE='#'
13733 MAINTAINER_MODE_FALSE=
13734 fi
13735 MAINT=$MAINTAINER_MODE_TRUE
13736
13737 # ---------------------
13738 # GCC bootstrap support
13739 # ---------------------
13740
13741 # Stage specific cflags for build.
13742 stage1_cflags="-g"
13743 case $build in
13744 vax-*-*)
13745 case ${GCC} in
13746 yes) stage1_cflags="-g -Wa,-J" ;;
13747 *) stage1_cflags="-g -J" ;;
13748 esac ;;
13749 esac
13750
13751 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13752 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13753 saved_CFLAGS="$CFLAGS"
13754
13755 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13756 CFLAGS="$CFLAGS -fkeep-inline-functions"
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13758 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13761
13762 #if (__GNUC__ < 3) \
13763 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13764 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13765 #error http://gcc.gnu.org/PR29382
13766 #endif
13767
13768 int
13769 main ()
13770 {
13771
13772 ;
13773 return 0;
13774 }
13775 _ACEOF
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13778 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13779 else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784
13785 CFLAGS="$saved_CFLAGS"
13786 fi
13787
13788
13789
13790 # Enable --enable-checking in stage1 of the compiler.
13791 # Check whether --enable-stage1-checking was given.
13792 if test "${enable_stage1_checking+set}" = set; then :
13793 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13794 else
13795 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13796 stage1_checking=--enable-checking=yes,types
13797 else
13798 stage1_checking=--enable-checking=$enable_checking,types
13799 fi
13800 fi
13801
13802
13803
13804 # Enable -Werror in bootstrap stage2 and later.
13805 # Check whether --enable-werror was given.
13806 if test "${enable_werror+set}" = set; then :
13807 enableval=$enable_werror;
13808 else
13809 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13810 enable_werror=yes
13811 else
13812 enable_werror=no
13813 fi
13814 fi
13815
13816 case ${enable_werror} in
13817 yes) stage2_werror_flag="--enable-werror-always" ;;
13818 *) stage2_werror_flag="" ;;
13819 esac
13820
13821
13822 # Specify what files to not compare during bootstrap.
13823
13824 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13825 case "$target" in
13826 hppa*64*-*-hpux*) ;;
13827 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13828 esac
13829 case " $configdirs " in
13830 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13831 esac
13832
13833
13834 ac_config_files="$ac_config_files Makefile"
13835
13836 cat >confcache <<\_ACEOF
13837 # This file is a shell script that caches the results of configure
13838 # tests run on this system so they can be shared between configure
13839 # scripts and configure runs, see configure's option --config-cache.
13840 # It is not useful on other systems. If it contains results you don't
13841 # want to keep, you may remove or edit it.
13842 #
13843 # config.status only pays attention to the cache file if you give it
13844 # the --recheck option to rerun configure.
13845 #
13846 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13847 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13848 # following values.
13849
13850 _ACEOF
13851
13852 # The following way of writing the cache mishandles newlines in values,
13853 # but we know of no workaround that is simple, portable, and efficient.
13854 # So, we kill variables containing newlines.
13855 # Ultrix sh set writes to stderr and can't be redirected directly,
13856 # and sets the high bit in the cache file unless we assign to the vars.
13857 (
13858 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13859 eval ac_val=\$$ac_var
13860 case $ac_val in #(
13861 *${as_nl}*)
13862 case $ac_var in #(
13863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13865 esac
13866 case $ac_var in #(
13867 _ | IFS | as_nl) ;; #(
13868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13869 *) { eval $ac_var=; unset $ac_var;} ;;
13870 esac ;;
13871 esac
13872 done
13873
13874 (set) 2>&1 |
13875 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13876 *${as_nl}ac_space=\ *)
13877 # `set' does not quote correctly, so add quotes: double-quote
13878 # substitution turns \\\\ into \\, and sed turns \\ into \.
13879 sed -n \
13880 "s/'/'\\\\''/g;
13881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13882 ;; #(
13883 *)
13884 # `set' quotes correctly as required by POSIX, so do not add quotes.
13885 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13886 ;;
13887 esac |
13888 sort
13889 ) |
13890 sed '
13891 /^ac_cv_env_/b end
13892 t clear
13893 :clear
13894 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13895 t end
13896 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13897 :end' >>confcache
13898 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13899 if test -w "$cache_file"; then
13900 test "x$cache_file" != "x/dev/null" &&
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13902 $as_echo "$as_me: updating cache $cache_file" >&6;}
13903 cat confcache >$cache_file
13904 else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13906 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13907 fi
13908 fi
13909 rm -f confcache
13910
13911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13912 # Let make expand exec_prefix.
13913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13914
13915 # Transform confdefs.h into DEFS.
13916 # Protect against shell expansion while executing Makefile rules.
13917 # Protect against Makefile macro expansion.
13918 #
13919 # If the first sed substitution is executed (which looks for macros that
13920 # take arguments), then branch to the quote section. Otherwise,
13921 # look for a macro that doesn't take arguments.
13922 ac_script='
13923 :mline
13924 /\\$/{
13925 N
13926 s,\\\n,,
13927 b mline
13928 }
13929 t clear
13930 :clear
13931 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13932 t quote
13933 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13934 t quote
13935 b any
13936 :quote
13937 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13938 s/\[/\\&/g
13939 s/\]/\\&/g
13940 s/\$/$$/g
13941 H
13942 :any
13943 ${
13944 g
13945 s/^\n//
13946 s/\n/ /g
13947 p
13948 }
13949 '
13950 DEFS=`sed -n "$ac_script" confdefs.h`
13951
13952
13953 ac_libobjs=
13954 ac_ltlibobjs=
13955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13956 # 1. Remove the extension, and $U if already installed.
13957 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13958 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13959 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13960 # will be set to the directory where LIBOBJS objects are built.
13961 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13962 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13963 done
13964 LIBOBJS=$ac_libobjs
13965
13966 LTLIBOBJS=$ac_ltlibobjs
13967
13968
13969
13970 : ${CONFIG_STATUS=./config.status}
13971 ac_write_fail=0
13972 ac_clean_files_save=$ac_clean_files
13973 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13975 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13976 as_write_fail=0
13977 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13978 #! $SHELL
13979 # Generated by $as_me.
13980 # Run this file to recreate the current configuration.
13981 # Compiler output produced by configure, useful for debugging
13982 # configure, is in config.log if it exists.
13983
13984 debug=false
13985 ac_cs_recheck=false
13986 ac_cs_silent=false
13987
13988 SHELL=\${CONFIG_SHELL-$SHELL}
13989 export SHELL
13990 _ASEOF
13991 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13992 ## -------------------- ##
13993 ## M4sh Initialization. ##
13994 ## -------------------- ##
13995
13996 # Be more Bourne compatible
13997 DUALCASE=1; export DUALCASE # for MKS sh
13998 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13999 emulate sh
14000 NULLCMD=:
14001 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14002 # is contrary to our usage. Disable this feature.
14003 alias -g '${1+"$@"}'='"$@"'
14004 setopt NO_GLOB_SUBST
14005 else
14006 case `(set -o) 2>/dev/null` in #(
14007 *posix*) :
14008 set -o posix ;; #(
14009 *) :
14010 ;;
14011 esac
14012 fi
14013
14014
14015 as_nl='
14016 '
14017 export as_nl
14018 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14019 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14020 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14022 # Prefer a ksh shell builtin over an external printf program on Solaris,
14023 # but without wasting forks for bash or zsh.
14024 if test -z "$BASH_VERSION$ZSH_VERSION" \
14025 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14026 as_echo='print -r --'
14027 as_echo_n='print -rn --'
14028 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14029 as_echo='printf %s\n'
14030 as_echo_n='printf %s'
14031 else
14032 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14033 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14034 as_echo_n='/usr/ucb/echo -n'
14035 else
14036 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14037 as_echo_n_body='eval
14038 arg=$1;
14039 case $arg in #(
14040 *"$as_nl"*)
14041 expr "X$arg" : "X\\(.*\\)$as_nl";
14042 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14043 esac;
14044 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14045 '
14046 export as_echo_n_body
14047 as_echo_n='sh -c $as_echo_n_body as_echo'
14048 fi
14049 export as_echo_body
14050 as_echo='sh -c $as_echo_body as_echo'
14051 fi
14052
14053 # The user is always right.
14054 if test "${PATH_SEPARATOR+set}" != set; then
14055 PATH_SEPARATOR=:
14056 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14057 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14058 PATH_SEPARATOR=';'
14059 }
14060 fi
14061
14062
14063 # IFS
14064 # We need space, tab and new line, in precisely that order. Quoting is
14065 # there to prevent editors from complaining about space-tab.
14066 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14067 # splitting by setting IFS to empty value.)
14068 IFS=" "" $as_nl"
14069
14070 # Find who we are. Look in the path if we contain no directory separator.
14071 case $0 in #((
14072 *[\\/]* ) as_myself=$0 ;;
14073 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14074 for as_dir in $PATH
14075 do
14076 IFS=$as_save_IFS
14077 test -z "$as_dir" && as_dir=.
14078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14079 done
14080 IFS=$as_save_IFS
14081
14082 ;;
14083 esac
14084 # We did not find ourselves, most probably we were run as `sh COMMAND'
14085 # in which case we are not to be found in the path.
14086 if test "x$as_myself" = x; then
14087 as_myself=$0
14088 fi
14089 if test ! -f "$as_myself"; then
14090 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14091 exit 1
14092 fi
14093
14094 # Unset variables that we do not need and which cause bugs (e.g. in
14095 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14096 # suppresses any "Segmentation fault" message there. '((' could
14097 # trigger a bug in pdksh 5.2.14.
14098 for as_var in BASH_ENV ENV MAIL MAILPATH
14099 do eval test x\${$as_var+set} = xset \
14100 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14101 done
14102 PS1='$ '
14103 PS2='> '
14104 PS4='+ '
14105
14106 # NLS nuisances.
14107 LC_ALL=C
14108 export LC_ALL
14109 LANGUAGE=C
14110 export LANGUAGE
14111
14112 # CDPATH.
14113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14114
14115
14116 # as_fn_error ERROR [LINENO LOG_FD]
14117 # ---------------------------------
14118 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14119 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14120 # script with status $?, using 1 if that was 0.
14121 as_fn_error ()
14122 {
14123 as_status=$?; test $as_status -eq 0 && as_status=1
14124 if test "$3"; then
14125 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14126 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14127 fi
14128 $as_echo "$as_me: error: $1" >&2
14129 as_fn_exit $as_status
14130 } # as_fn_error
14131
14132
14133 # as_fn_set_status STATUS
14134 # -----------------------
14135 # Set $? to STATUS, without forking.
14136 as_fn_set_status ()
14137 {
14138 return $1
14139 } # as_fn_set_status
14140
14141 # as_fn_exit STATUS
14142 # -----------------
14143 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14144 as_fn_exit ()
14145 {
14146 set +e
14147 as_fn_set_status $1
14148 exit $1
14149 } # as_fn_exit
14150
14151 # as_fn_unset VAR
14152 # ---------------
14153 # Portably unset VAR.
14154 as_fn_unset ()
14155 {
14156 { eval $1=; unset $1;}
14157 }
14158 as_unset=as_fn_unset
14159 # as_fn_append VAR VALUE
14160 # ----------------------
14161 # Append the text in VALUE to the end of the definition contained in VAR. Take
14162 # advantage of any shell optimizations that allow amortized linear growth over
14163 # repeated appends, instead of the typical quadratic growth present in naive
14164 # implementations.
14165 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14166 eval 'as_fn_append ()
14167 {
14168 eval $1+=\$2
14169 }'
14170 else
14171 as_fn_append ()
14172 {
14173 eval $1=\$$1\$2
14174 }
14175 fi # as_fn_append
14176
14177 # as_fn_arith ARG...
14178 # ------------------
14179 # Perform arithmetic evaluation on the ARGs, and store the result in the
14180 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14181 # must be portable across $(()) and expr.
14182 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14183 eval 'as_fn_arith ()
14184 {
14185 as_val=$(( $* ))
14186 }'
14187 else
14188 as_fn_arith ()
14189 {
14190 as_val=`expr "$@" || test $? -eq 1`
14191 }
14192 fi # as_fn_arith
14193
14194
14195 if expr a : '\(a\)' >/dev/null 2>&1 &&
14196 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14197 as_expr=expr
14198 else
14199 as_expr=false
14200 fi
14201
14202 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14203 as_basename=basename
14204 else
14205 as_basename=false
14206 fi
14207
14208 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14209 as_dirname=dirname
14210 else
14211 as_dirname=false
14212 fi
14213
14214 as_me=`$as_basename -- "$0" ||
14215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14216 X"$0" : 'X\(//\)$' \| \
14217 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14218 $as_echo X/"$0" |
14219 sed '/^.*\/\([^/][^/]*\)\/*$/{
14220 s//\1/
14221 q
14222 }
14223 /^X\/\(\/\/\)$/{
14224 s//\1/
14225 q
14226 }
14227 /^X\/\(\/\).*/{
14228 s//\1/
14229 q
14230 }
14231 s/.*/./; q'`
14232
14233 # Avoid depending upon Character Ranges.
14234 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14235 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14236 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14237 as_cr_digits='0123456789'
14238 as_cr_alnum=$as_cr_Letters$as_cr_digits
14239
14240 ECHO_C= ECHO_N= ECHO_T=
14241 case `echo -n x` in #(((((
14242 -n*)
14243 case `echo 'xy\c'` in
14244 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14245 xy) ECHO_C='\c';;
14246 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14247 ECHO_T=' ';;
14248 esac;;
14249 *)
14250 ECHO_N='-n';;
14251 esac
14252
14253 rm -f conf$$ conf$$.exe conf$$.file
14254 if test -d conf$$.dir; then
14255 rm -f conf$$.dir/conf$$.file
14256 else
14257 rm -f conf$$.dir
14258 mkdir conf$$.dir 2>/dev/null
14259 fi
14260 if (echo >conf$$.file) 2>/dev/null; then
14261 if ln -s conf$$.file conf$$ 2>/dev/null; then
14262 as_ln_s='ln -s'
14263 # ... but there are two gotchas:
14264 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14265 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14266 # In both cases, we have to default to `cp -p'.
14267 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14268 as_ln_s='cp -p'
14269 elif ln conf$$.file conf$$ 2>/dev/null; then
14270 as_ln_s=ln
14271 else
14272 as_ln_s='cp -p'
14273 fi
14274 else
14275 as_ln_s='cp -p'
14276 fi
14277 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14278 rmdir conf$$.dir 2>/dev/null
14279
14280
14281 # as_fn_mkdir_p
14282 # -------------
14283 # Create "$as_dir" as a directory, including parents if necessary.
14284 as_fn_mkdir_p ()
14285 {
14286
14287 case $as_dir in #(
14288 -*) as_dir=./$as_dir;;
14289 esac
14290 test -d "$as_dir" || eval $as_mkdir_p || {
14291 as_dirs=
14292 while :; do
14293 case $as_dir in #(
14294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14295 *) as_qdir=$as_dir;;
14296 esac
14297 as_dirs="'$as_qdir' $as_dirs"
14298 as_dir=`$as_dirname -- "$as_dir" ||
14299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14300 X"$as_dir" : 'X\(//\)[^/]' \| \
14301 X"$as_dir" : 'X\(//\)$' \| \
14302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14303 $as_echo X"$as_dir" |
14304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14305 s//\1/
14306 q
14307 }
14308 /^X\(\/\/\)[^/].*/{
14309 s//\1/
14310 q
14311 }
14312 /^X\(\/\/\)$/{
14313 s//\1/
14314 q
14315 }
14316 /^X\(\/\).*/{
14317 s//\1/
14318 q
14319 }
14320 s/.*/./; q'`
14321 test -d "$as_dir" && break
14322 done
14323 test -z "$as_dirs" || eval "mkdir $as_dirs"
14324 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14325
14326
14327 } # as_fn_mkdir_p
14328 if mkdir -p . 2>/dev/null; then
14329 as_mkdir_p='mkdir -p "$as_dir"'
14330 else
14331 test -d ./-p && rmdir ./-p
14332 as_mkdir_p=false
14333 fi
14334
14335 if test -x / >/dev/null 2>&1; then
14336 as_test_x='test -x'
14337 else
14338 if ls -dL / >/dev/null 2>&1; then
14339 as_ls_L_option=L
14340 else
14341 as_ls_L_option=
14342 fi
14343 as_test_x='
14344 eval sh -c '\''
14345 if test -d "$1"; then
14346 test -d "$1/.";
14347 else
14348 case $1 in #(
14349 -*)set "./$1";;
14350 esac;
14351 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14352 ???[sx]*):;;*)false;;esac;fi
14353 '\'' sh
14354 '
14355 fi
14356 as_executable_p=$as_test_x
14357
14358 # Sed expression to map a string onto a valid CPP name.
14359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14360
14361 # Sed expression to map a string onto a valid variable name.
14362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14363
14364
14365 exec 6>&1
14366 ## ----------------------------------- ##
14367 ## Main body of $CONFIG_STATUS script. ##
14368 ## ----------------------------------- ##
14369 _ASEOF
14370 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14371
14372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14373 # Save the log message, to keep $0 and so on meaningful, and to
14374 # report actual input values of CONFIG_FILES etc. instead of their
14375 # values after options handling.
14376 ac_log="
14377 This file was extended by $as_me, which was
14378 generated by GNU Autoconf 2.64. Invocation command line was
14379
14380 CONFIG_FILES = $CONFIG_FILES
14381 CONFIG_HEADERS = $CONFIG_HEADERS
14382 CONFIG_LINKS = $CONFIG_LINKS
14383 CONFIG_COMMANDS = $CONFIG_COMMANDS
14384 $ $0 $@
14385
14386 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14387 "
14388
14389 _ACEOF
14390
14391 case $ac_config_files in *"
14392 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14393 esac
14394
14395
14396
14397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14398 # Files that config.status was made for.
14399 config_files="$ac_config_files"
14400
14401 _ACEOF
14402
14403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14404 ac_cs_usage="\
14405 \`$as_me' instantiates files and other configuration actions
14406 from templates according to the current configuration. Unless the files
14407 and actions are specified as TAGs, all are instantiated by default.
14408
14409 Usage: $0 [OPTION]... [TAG]...
14410
14411 -h, --help print this help, then exit
14412 -V, --version print version number and configuration settings, then exit
14413 -q, --quiet, --silent
14414 do not print progress messages
14415 -d, --debug don't remove temporary files
14416 --recheck update $as_me by reconfiguring in the same conditions
14417 --file=FILE[:TEMPLATE]
14418 instantiate the configuration file FILE
14419
14420 Configuration files:
14421 $config_files
14422
14423 Report bugs to the package provider."
14424
14425 _ACEOF
14426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14427 ac_cs_version="\\
14428 config.status
14429 configured by $0, generated by GNU Autoconf 2.64,
14430 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14431
14432 Copyright (C) 2009 Free Software Foundation, Inc.
14433 This config.status script is free software; the Free Software Foundation
14434 gives unlimited permission to copy, distribute and modify it."
14435
14436 ac_pwd='$ac_pwd'
14437 srcdir='$srcdir'
14438 INSTALL='$INSTALL'
14439 AWK='$AWK'
14440 test -n "\$AWK" || AWK=awk
14441 _ACEOF
14442
14443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14444 # The default lists apply if the user does not specify any file.
14445 ac_need_defaults=:
14446 while test $# != 0
14447 do
14448 case $1 in
14449 --*=*)
14450 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14451 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14452 ac_shift=:
14453 ;;
14454 *)
14455 ac_option=$1
14456 ac_optarg=$2
14457 ac_shift=shift
14458 ;;
14459 esac
14460
14461 case $ac_option in
14462 # Handling of the options.
14463 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14464 ac_cs_recheck=: ;;
14465 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14466 $as_echo "$ac_cs_version"; exit ;;
14467 --debug | --debu | --deb | --de | --d | -d )
14468 debug=: ;;
14469 --file | --fil | --fi | --f )
14470 $ac_shift
14471 case $ac_optarg in
14472 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14473 esac
14474 as_fn_append CONFIG_FILES " '$ac_optarg'"
14475 ac_need_defaults=false;;
14476 --he | --h | --help | --hel | -h )
14477 $as_echo "$ac_cs_usage"; exit ;;
14478 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14479 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14480 ac_cs_silent=: ;;
14481
14482 # This is an error.
14483 -*) as_fn_error "unrecognized option: \`$1'
14484 Try \`$0 --help' for more information." ;;
14485
14486 *) as_fn_append ac_config_targets " $1"
14487 ac_need_defaults=false ;;
14488
14489 esac
14490 shift
14491 done
14492
14493 ac_configure_extra_args=
14494
14495 if $ac_cs_silent; then
14496 exec 6>/dev/null
14497 ac_configure_extra_args="$ac_configure_extra_args --silent"
14498 fi
14499
14500 _ACEOF
14501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14502 if \$ac_cs_recheck; then
14503 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14504 shift
14505 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14506 CONFIG_SHELL='$SHELL'
14507 export CONFIG_SHELL
14508 exec "\$@"
14509 fi
14510
14511 _ACEOF
14512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14513 exec 5>>config.log
14514 {
14515 echo
14516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14517 ## Running $as_me. ##
14518 _ASBOX
14519 $as_echo "$ac_log"
14520 } >&5
14521
14522 _ACEOF
14523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14524 #
14525 # INIT-COMMANDS
14526 #
14527 extrasub_build="$extrasub_build"
14528 extrasub_host="$extrasub_host"
14529 extrasub_target="$extrasub_target"
14530
14531 _ACEOF
14532
14533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14534
14535 # Handling of arguments.
14536 for ac_config_target in $ac_config_targets
14537 do
14538 case $ac_config_target in
14539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14540
14541 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14542 esac
14543 done
14544
14545
14546 # If the user did not use the arguments to specify the items to instantiate,
14547 # then the envvar interface is used. Set only those that are not.
14548 # We use the long form for the default assignment because of an extremely
14549 # bizarre bug on SunOS 4.1.3.
14550 if $ac_need_defaults; then
14551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14552 fi
14553
14554 # Have a temporary directory for convenience. Make it in the build tree
14555 # simply because there is no reason against having it here, and in addition,
14556 # creating and moving files from /tmp can sometimes cause problems.
14557 # Hook for its removal unless debugging.
14558 # Note that there is a small window in which the directory will not be cleaned:
14559 # after its creation but before its name has been assigned to `$tmp'.
14560 $debug ||
14561 {
14562 tmp=
14563 trap 'exit_status=$?
14564 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14565 ' 0
14566 trap 'as_fn_exit 1' 1 2 13 15
14567 }
14568 # Create a (secure) tmp directory for tmp files.
14569
14570 {
14571 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14572 test -n "$tmp" && test -d "$tmp"
14573 } ||
14574 {
14575 tmp=./conf$$-$RANDOM
14576 (umask 077 && mkdir "$tmp")
14577 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14578
14579 # Set up the scripts for CONFIG_FILES section.
14580 # No need to generate them if there are no CONFIG_FILES.
14581 # This happens for instance with `./config.status config.h'.
14582 if test -n "$CONFIG_FILES"; then
14583
14584 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14585 ac_cs_awk_getline=:
14586 ac_cs_awk_pipe_init=
14587 ac_cs_awk_read_file='
14588 while ((getline aline < (F[key])) > 0)
14589 print(aline)
14590 close(F[key])'
14591 ac_cs_awk_pipe_fini=
14592 else
14593 ac_cs_awk_getline=false
14594 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14595 ac_cs_awk_read_file='
14596 print "|#_!!_#|"
14597 print "cat " F[key] " &&"
14598 '$ac_cs_awk_pipe_init
14599 # The final `:' finishes the AND list.
14600 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14601 fi
14602 ac_cr=`echo X | tr X '\015'`
14603 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14604 # But we know of no other shell where ac_cr would be empty at this
14605 # point, so we can use a bashism as a fallback.
14606 if test "x$ac_cr" = x; then
14607 eval ac_cr=\$\'\\r\'
14608 fi
14609 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14610 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14611 ac_cs_awk_cr='\r'
14612 else
14613 ac_cs_awk_cr=$ac_cr
14614 fi
14615
14616 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14617 _ACEOF
14618
14619 # Create commands to substitute file output variables.
14620 {
14621 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14622 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14623 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14624 echo "_ACAWK" &&
14625 echo "_ACEOF"
14626 } >conf$$files.sh &&
14627 . ./conf$$files.sh ||
14628 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14629 rm -f conf$$files.sh
14630
14631 {
14632 echo "cat >conf$$subs.awk <<_ACEOF" &&
14633 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14634 echo "_ACEOF"
14635 } >conf$$subs.sh ||
14636 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14638 ac_delim='%!_!# '
14639 for ac_last_try in false false false false false :; do
14640 . ./conf$$subs.sh ||
14641 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14642
14643 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14644 if test $ac_delim_n = $ac_delim_num; then
14645 break
14646 elif $ac_last_try; then
14647 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14648 else
14649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14650 fi
14651 done
14652 rm -f conf$$subs.sh
14653
14654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14655 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14656 _ACEOF
14657 sed -n '
14658 h
14659 s/^/S["/; s/!.*/"]=/
14660 p
14661 g
14662 s/^[^!]*!//
14663 :repl
14664 t repl
14665 s/'"$ac_delim"'$//
14666 t delim
14667 :nl
14668 h
14669 s/\(.\{148\}\).*/\1/
14670 t more1
14671 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14672 p
14673 n
14674 b repl
14675 :more1
14676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14677 p
14678 g
14679 s/.\{148\}//
14680 t nl
14681 :delim
14682 h
14683 s/\(.\{148\}\).*/\1/
14684 t more2
14685 s/["\\]/\\&/g; s/^/"/; s/$/"/
14686 p
14687 b
14688 :more2
14689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14690 p
14691 g
14692 s/.\{148\}//
14693 t delim
14694 ' <conf$$subs.awk | sed '
14695 /^[^""]/{
14696 N
14697 s/\n//
14698 }
14699 ' >>$CONFIG_STATUS || ac_write_fail=1
14700 rm -f conf$$subs.awk
14701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14702 _ACAWK
14703 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14704 for (key in S) S_is_set[key] = 1
14705 FS = "\a"
14706 \$ac_cs_awk_pipe_init
14707 }
14708 {
14709 line = $ 0
14710 nfields = split(line, field, "@")
14711 substed = 0
14712 len = length(field[1])
14713 for (i = 2; i < nfields; i++) {
14714 key = field[i]
14715 keylen = length(key)
14716 if (S_is_set[key]) {
14717 value = S[key]
14718 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14719 len += length(value) + length(field[++i])
14720 substed = 1
14721 } else
14722 len += 1 + keylen
14723 }
14724 if (nfields == 3 && !substed) {
14725 key = field[2]
14726 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14727 \$ac_cs_awk_read_file
14728 next
14729 }
14730 }
14731 print line
14732 }
14733 \$ac_cs_awk_pipe_fini
14734 _ACAWK
14735 _ACEOF
14736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14737 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14738 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14739 else
14740 cat
14741 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14742 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14743 _ACEOF
14744
14745 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14746 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14747 # trailing colons and then remove the whole line if VPATH becomes empty
14748 # (actually we leave an empty line to preserve line numbers).
14749 if test "x$srcdir" = x.; then
14750 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14751 s/:*\$(srcdir):*/:/
14752 s/:*\${srcdir}:*/:/
14753 s/:*@srcdir@:*/:/
14754 s/^\([^=]*=[ ]*\):*/\1/
14755 s/:*$//
14756 s/^[^=]*=[ ]*$//
14757 }'
14758 fi
14759
14760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14761 fi # test -n "$CONFIG_FILES"
14762
14763
14764 eval set X " :F $CONFIG_FILES "
14765 shift
14766 for ac_tag
14767 do
14768 case $ac_tag in
14769 :[FHLC]) ac_mode=$ac_tag; continue;;
14770 esac
14771 case $ac_mode$ac_tag in
14772 :[FHL]*:*);;
14773 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14774 :[FH]-) ac_tag=-:-;;
14775 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14776 esac
14777 ac_save_IFS=$IFS
14778 IFS=:
14779 set x $ac_tag
14780 IFS=$ac_save_IFS
14781 shift
14782 ac_file=$1
14783 shift
14784
14785 case $ac_mode in
14786 :L) ac_source=$1;;
14787 :[FH])
14788 ac_file_inputs=
14789 for ac_f
14790 do
14791 case $ac_f in
14792 -) ac_f="$tmp/stdin";;
14793 *) # Look for the file first in the build tree, then in the source tree
14794 # (if the path is not absolute). The absolute path cannot be DOS-style,
14795 # because $ac_f cannot contain `:'.
14796 test -f "$ac_f" ||
14797 case $ac_f in
14798 [\\/$]*) false;;
14799 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14800 esac ||
14801 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14802 esac
14803 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14804 as_fn_append ac_file_inputs " '$ac_f'"
14805 done
14806
14807 # Let's still pretend it is `configure' which instantiates (i.e., don't
14808 # use $as_me), people would be surprised to read:
14809 # /* config.h. Generated by config.status. */
14810 configure_input='Generated from '`
14811 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14812 `' by configure.'
14813 if test x"$ac_file" != x-; then
14814 configure_input="$ac_file. $configure_input"
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14816 $as_echo "$as_me: creating $ac_file" >&6;}
14817 fi
14818 # Neutralize special characters interpreted by sed in replacement strings.
14819 case $configure_input in #(
14820 *\&* | *\|* | *\\* )
14821 ac_sed_conf_input=`$as_echo "$configure_input" |
14822 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14823 *) ac_sed_conf_input=$configure_input;;
14824 esac
14825
14826 case $ac_tag in
14827 *:-:* | *:-) cat >"$tmp/stdin" \
14828 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14829 esac
14830 ;;
14831 esac
14832
14833 ac_dir=`$as_dirname -- "$ac_file" ||
14834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14835 X"$ac_file" : 'X\(//\)[^/]' \| \
14836 X"$ac_file" : 'X\(//\)$' \| \
14837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14838 $as_echo X"$ac_file" |
14839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14840 s//\1/
14841 q
14842 }
14843 /^X\(\/\/\)[^/].*/{
14844 s//\1/
14845 q
14846 }
14847 /^X\(\/\/\)$/{
14848 s//\1/
14849 q
14850 }
14851 /^X\(\/\).*/{
14852 s//\1/
14853 q
14854 }
14855 s/.*/./; q'`
14856 as_dir="$ac_dir"; as_fn_mkdir_p
14857 ac_builddir=.
14858
14859 case "$ac_dir" in
14860 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14861 *)
14862 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14863 # A ".." for each directory in $ac_dir_suffix.
14864 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14865 case $ac_top_builddir_sub in
14866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14868 esac ;;
14869 esac
14870 ac_abs_top_builddir=$ac_pwd
14871 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14872 # for backward compatibility:
14873 ac_top_builddir=$ac_top_build_prefix
14874
14875 case $srcdir in
14876 .) # We are building in place.
14877 ac_srcdir=.
14878 ac_top_srcdir=$ac_top_builddir_sub
14879 ac_abs_top_srcdir=$ac_pwd ;;
14880 [\\/]* | ?:[\\/]* ) # Absolute name.
14881 ac_srcdir=$srcdir$ac_dir_suffix;
14882 ac_top_srcdir=$srcdir
14883 ac_abs_top_srcdir=$srcdir ;;
14884 *) # Relative name.
14885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14886 ac_top_srcdir=$ac_top_build_prefix$srcdir
14887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14888 esac
14889 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14890
14891
14892 case $ac_mode in
14893 :F)
14894 #
14895 # CONFIG_FILE
14896 #
14897
14898 case $INSTALL in
14899 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14900 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14901 esac
14902 _ACEOF
14903
14904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14905 # If the template does not know about datarootdir, expand it.
14906 # FIXME: This hack should be removed a few years after 2.60.
14907 ac_datarootdir_hack=; ac_datarootdir_seen=
14908 ac_sed_dataroot='
14909 /datarootdir/ {
14910 p
14911 q
14912 }
14913 /@datadir@/p
14914 /@docdir@/p
14915 /@infodir@/p
14916 /@localedir@/p
14917 /@mandir@/p'
14918 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14919 *datarootdir*) ac_datarootdir_seen=yes;;
14920 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14922 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14923 _ACEOF
14924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14925 ac_datarootdir_hack='
14926 s&@datadir@&$datadir&g
14927 s&@docdir@&$docdir&g
14928 s&@infodir@&$infodir&g
14929 s&@localedir@&$localedir&g
14930 s&@mandir@&$mandir&g
14931 s&\\\${datarootdir}&$datarootdir&g' ;;
14932 esac
14933 _ACEOF
14934
14935 # Neutralize VPATH when `$srcdir' = `.'.
14936 # Shell code in configure.ac might set extrasub.
14937 # FIXME: do we really want to maintain this feature?
14938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14939 ac_sed_extra="$ac_vpsub
14940 $extrasub
14941 _ACEOF
14942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14943 :t
14944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14945 s|@configure_input@|$ac_sed_conf_input|;t t
14946 s&@top_builddir@&$ac_top_builddir_sub&;t t
14947 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14948 s&@srcdir@&$ac_srcdir&;t t
14949 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14950 s&@top_srcdir@&$ac_top_srcdir&;t t
14951 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14952 s&@builddir@&$ac_builddir&;t t
14953 s&@abs_builddir@&$ac_abs_builddir&;t t
14954 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14955 s&@INSTALL@&$ac_INSTALL&;t t
14956 $ac_datarootdir_hack
14957 "
14958 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14959 if $ac_cs_awk_getline; then
14960 $AWK -f "$tmp/subs.awk"
14961 else
14962 $AWK -f "$tmp/subs.awk" | $SHELL
14963 fi >$tmp/out \
14964 || as_fn_error "could not create $ac_file" "$LINENO" 5
14965
14966 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14967 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14970 which seems to be undefined. Please make sure it is defined." >&5
14971 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14972 which seems to be undefined. Please make sure it is defined." >&2;}
14973
14974 rm -f "$tmp/stdin"
14975 case $ac_file in
14976 -) cat "$tmp/out" && rm -f "$tmp/out";;
14977 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14978 esac \
14979 || as_fn_error "could not create $ac_file" "$LINENO" 5
14980 ;;
14981
14982
14983
14984 esac
14985
14986
14987 case $ac_file$ac_mode in
14988 "Makefile":F) sed "$extrasub_build" Makefile |
14989 sed "$extrasub_host" |
14990 sed "$extrasub_target" > mf$$
14991 mv -f mf$$ Makefile ;;
14992
14993 esac
14994 done # for ac_tag
14995
14996
14997 as_fn_exit 0
14998 _ACEOF
14999 ac_clean_files=$ac_clean_files_save
15000
15001 test $ac_write_fail = 0 ||
15002 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15003
15004
15005 # configure is writing to config.log, and then calls config.status.
15006 # config.status does its own redirection, appending to config.log.
15007 # Unfortunately, on DOS this fails, as config.log is still kept open
15008 # by configure, so config.status won't be able to write to it; its
15009 # output is simply discarded. So we exec the FD to /dev/null,
15010 # effectively closing config.log, so it can be properly (re)opened and
15011 # appended to by config.status. When coming back to configure, we
15012 # need to make the FD available again.
15013 if test "$no_create" != yes; then
15014 ac_cs_success=:
15015 ac_config_status_args=
15016 test "$silent" = yes &&
15017 ac_config_status_args="$ac_config_status_args --quiet"
15018 exec 5>/dev/null
15019 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15020 exec 5>>config.log
15021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15022 # would make configure fail if this is the last instruction.
15023 $ac_cs_success || as_fn_exit $?
15024 fi
15025 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15027 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15028 fi
15029
This page took 0.760761 seconds and 5 git commands to generate.